/* Содконсалт — дополнительные стили */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to right, #059669, #10b896);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(16, 184, 150, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(to right, #047857, #059669);
    box-shadow: 0 20px 25px -5px rgba(16, 184, 150, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #047857;
    background: #fff;
    border: 2px solid #a7f3e0;
    border-radius: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #ecfdf8;
    border-color: #6ee7c7;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 1.35em;
    height: 1.35em;
    flex-shrink: 0;
}

.btn-with-icon {
    justify-content: flex-start;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-label-light {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    color: #1e293b;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10b896;
    box-shadow: 0 0 0 4px rgba(16, 184, 150, 0.2);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input-light {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    color: #fff;
    background: #334155;
    border: 2px solid #475569;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.form-input-light:focus {
    outline: none;
    border-color: #10b896;
    box-shadow: 0 0 0 4px rgba(16, 184, 150, 0.2);
}

.form-input-light option {
    color: #1e293b;
    background: #fff;
}

.card-feature {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.2);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.card-feature:hover {
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.25);
    border-color: #a7f3e0;
}

.card-service {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(148, 163, 184, 0.2);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.card-service:hover {
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.25);
    border-color: #a7f3e0;
    transform: translateY(-4px);
}

.card-team {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.2);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.card-team:hover {
    box-shadow: 0 25px 50px -12px rgba(148, 163, 184, 0.3);
}

.team-card__description {
    width: 100%;
}

.card-form {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.2);
    border: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
    .card-form {
        padding: 3rem;
    }
}

.calc-step {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    padding: 1.25rem;
    border-left: 4px solid #10b896;
}

.calc-step h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.calc-step p {
    color: #cbd5e1;
    line-height: 1.625;
}

@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll-gallery {
    animation: scroll-gallery 40s linear infinite;
    width: max-content;
}

.animate-scroll-gallery:hover {
    animation-play-state: paused;
}

section {
    scroll-margin-top: 6rem;
}

.message-success {
    color: #059669;
}

.message-error {
    color: #dc2626;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Встроенные SVG-иллюстрации */
.visual-block {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    line-height: 0;
    overflow: hidden;
}

.visual-block svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.aspect-video .visual-block svg,
.aspect-\[4\/3\] .visual-block svg {
    min-height: 0;
}

.visual-fallback {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #059669, #0ea5e9);
}

.img-cover {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.gallery-img .visual-block svg {
    min-height: 14rem;
}

.team-photo-wrap .visual-block svg {
    min-height: 100%;
    height: 100%;
}

/* Карусель экспертов */
.team-carousel {
    position: relative;
    padding: 0 3rem;
}

.team-carousel-viewport {
    border-radius: 1rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.team-carousel-track {
    display: flex;
}

.team-carousel-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .team-carousel-slide {
        flex: 0 0 50%;
    }
}

.team-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #059669;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-carousel-btn:hover {
    background: #059669;
    color: #fff;
}

.team-carousel-prev {
    left: 0;
}

.team-carousel-next {
    right: 0;
}

.team-carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.team-carousel-dot.active {
    background: #059669;
    transform: scale(1.2);
}

@media (max-width: 640px) {
    .team-carousel {
        padding: 0 2.5rem;
    }

    .team-carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
}

.hero-img-wrap {
    min-height: 0;
}

@media (min-width: 1024px) {
    .hero-img-wrap {
        min-height: 0;
    }
}

.team-photo-wrap {
    min-height: 12rem;
    min-width: 12rem;
}

@media (min-width: 640px) {
    .team-photo-wrap {
        min-height: 14rem;
        min-width: 14rem;
    }
}

.gallery-img {
    min-height: 14rem;
    min-width: 20rem;
}

/* Таблица тарифов и шапка сайта */
:root {
    --site-header-height: 4.5rem;
    --site-header-bar-height: 4.5rem;
}

@media (min-width: 1280px) {
    :root {
        --site-header-height: 5rem;
        --site-header-bar-height: 5rem;
    }
}

/* Компактная залипшая полоска для блока «Что разберём на консультации» */
.services-sticky-bar {
    position: fixed;
    top: var(--site-header-height, 5rem);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    pointer-events: none;
}

.services-sticky-bar.is-visible {
    display: flex;
}

.services-sticky-bar__title {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    text-align: center;
}

.site-header__inner {
    width: 100%;
    height: var(--site-header-bar-height);
    min-height: var(--site-header-bar-height);
    flex-shrink: 0;
}

#mobile-menu > div {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

#mobile-menu {
    max-height: calc(100dvh - var(--site-header-bar-height, 4.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.site-mobile-menu-open {
    overflow: hidden;
}

.site-header__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.site-header__auth-link-mobile {
    display: block;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.site-header__auth-link-mobile:hover,
.site-header__auth-link-mobile:focus-visible {
    color: #059669;
    border-color: #a7f3d0;
}

.site-header__nav {
    gap: 0.75rem;
    padding: 0 0.5rem;
}

@media (min-width: 1536px) {
    .site-header__nav {
        gap: 1.25rem;
        padding: 0 1rem;
    }
}

.site-header__nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    transition: color 0.15s ease;
    text-decoration: none;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
    color: #059669;
}

@media (min-width: 1536px) {
    .site-header__nav-link {
        font-size: 1rem;
    }
}

.site-header__actions {
    margin-left: 0.25rem;
}

.site-header__cta {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    white-space: nowrap;
    line-height: 1.25;
}

@media (min-width: 1536px) {
    .site-header__cta {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
        border-radius: 0.875rem;
    }
}

.site-header__cta-short {
    display: inline;
}

.site-header__cta-full {
    display: none;
}

@media (min-width: 1536px) {
    .site-header__cta-short {
        display: none;
    }

    .site-header__cta-full {
        display: inline;
    }
}

.site-header__auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    padding: 0.375rem 0.5rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-header__auth-link:hover,
.site-header__auth-link:focus-visible {
    color: #059669;
}

@media (min-width: 1536px) {
    .site-header__auth-link {
        font-size: 0.9375rem;
    }
}

.site-header__cta-mobile {
    font-size: 1.125rem;
    padding: 0.875rem 1rem;
}

.site-nav-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 60;
}

.site-nav-dropdown:hover .site-nav-dropdown__panel,
.site-nav-dropdown:focus-within .site-nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav-dropdown__menu {
    min-width: 17.5rem;
    padding: 0.375rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.site-nav-dropdown__link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-dropdown__link:hover,
.site-nav-dropdown__link:focus-visible {
    background: #ecfdf8;
    color: #047857;
    outline: none;
}

.site-nav-dropdown__footer {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid #f1f5f9;
}

.site-nav-dropdown__link--all {
    color: #059669;
    font-weight: 600;
}

.site-nav-mobile-services__list {
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid #a7f3e0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.site-nav-mobile-services__link {
    display: block;
    padding: 0.375rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
}

.site-nav-mobile-services__link:hover {
    color: #059669;
}

.site-nav-mobile-services__link--all {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    font-weight: 600;
    color: #059669;
}

.tariff-table-wrap {
    overflow-x: auto;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
    background: #fff;
}

.tariff-table-wrap.tariff-table-wrap--sticky-head {
    overflow: visible;
}

.tariff-table-wrap--sticky-head .tariff-table thead th {
    position: sticky;
    top: var(--site-header-height, 5rem);
    z-index: 40;
}

.tariff-table-wrap--sticky-head .tariff-table thead th.tariff-table-service {
    z-index: 45;
    left: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 4px 0 12px -8px rgba(15, 23, 42, 0.2), 0 1px 0 #e2e8f0;
}

.tariff-table-wrap--sticky-head .tariff-table thead th.tariff-table-plan {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 1px 0 #e2e8f0;
}

.tariff-table-wrap--sticky-head .tariff-table thead th.tariff-table-plan--highlight {
    background: linear-gradient(180deg, #ecfdf8 0%, #d1fae5 100%);
}

@media (max-width: 767px) {
    .tariff-table-wrap.tariff-table-wrap--sticky-head {
        overflow-x: auto;
    }
}

.tariff-table {
    width: 100%;
    min-width: 640px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.tariff-col-service {
    width: 220px;
}

.tariff-col-plan {
    width: auto;
}

.tariff-table thead th {
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    vertical-align: bottom;
}

.tariff-table tbody th,
.tariff-table tbody td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.tariff-table tbody tr:last-child th,
.tariff-table tbody tr:last-child td {
    border-bottom: 1px solid #f1f5f9;
}

.tariff-table tfoot th,
.tariff-table tfoot td {
    padding: 1.1rem 1rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.tariff-table tfoot .tariff-table-service {
    text-align: left;
}

.tariff-table-service {
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 220px;
    box-shadow: 4px 0 12px -8px rgba(15, 23, 42, 0.2);
}

.tariff-table-plan {
    text-align: center;
    min-width: 140px;
}

.tariff-table-plan-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.tariff-table-plan-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: #d1fae5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tariff-table-plan--highlight {
    background: linear-gradient(180deg, #ecfdf8 0%, #d1fae5 100%);
}

.tariff-table-cell {
    text-align: center;
    background: #fff;
}

.tariff-table-cell--highlight {
    background: #f0fdf9;
}

.tariff-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 700;
}

.tariff-mark--yes {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.55);
}

.tariff-mark--no {
    color: #cbd5e1;
}

.tariff-table tfoot .tariff-table-service {
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
}

.tariff-table-price {
    background: #f8fafc;
}

.tariff-table-cell--highlight.tariff-table-price {
    background: #ecfdf8;
}

.tariff-price-value {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #047857;
    line-height: 1.3;
}

.tariff-price-value--empty {
    color: #cbd5e1;
    font-weight: 600;
}

/* Видеоотзывы */
.video-review-card {
    height: 100%;
}

.video-review-media {
    isolation: isolate;
}

.video-review-play {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #0f172a;
}

.video-review-play:hover .video-review-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-review-thumb--placeholder {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.video-review-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    color: #fff;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.video-reviews-carousel {
    position: relative;
    padding: 0 3rem;
}

.video-reviews-viewport {
    border-radius: 1.5rem;
}

.video-reviews-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.video-reviews-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.video-reviews-prev {
    left: 0;
}

.video-reviews-next {
    right: 0;
}

.video-reviews-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    background: #cbd5e1;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.video-reviews-dot.active {
    background: #059669;
    transform: scale(1.15);
}

@media (max-width: 767px) {
    .video-reviews-carousel {
        padding: 0 2.5rem;
    }

    .video-reviews-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
}

/* Модальное окно консультации */
body.consultation-modal-open {
    overflow: hidden;
}

.form-label-compact {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.form-input-compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
}

.consultation-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.consultation-modal.hidden {
    display: none;
}

.consultation-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.consultation-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
    padding: 1.25rem 1.25rem 1rem;
}

@media (min-width: 640px) {
    .consultation-modal__panel {
        padding: 1.5rem 1.75rem 1.25rem;
    }
}

.consultation-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.consultation-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.consultation-modal__header {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.consultation-modal__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}

.consultation-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .consultation-modal__title {
        font-size: 1.75rem;
    }
}

.consultation-modal__price {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #d1fae5;
    color: #047857;
    font-size: 0.875rem;
    font-weight: 700;
}

.consultation-modal__subtitle {
    margin-top: 0.35rem;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #64748b;
}

.consultation-modal__modes {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    border-radius: 0.875rem;
    background: #f1f5f9;
}

.consultation-modal__mode {
    border: 0;
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: transparent;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.consultation-modal__mode.is-active {
    background: #fff;
    color: #047857;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.consultation-modal__form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.consultation-modal-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
    align-content: start;
}

.consultation-modal-field--wide {
    grid-column: 1 / -1;
}

.consultation-modal-field--optional.is-hidden {
    display: none;
}

.consultation-modal__footer {
    flex-shrink: 0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.consultation-modal__submit {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
}

.consultation-modal__message {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
}

.consultation-modal--short .consultation-modal__panel {
    width: min(520px, 100%);
    min-height: min(34rem, calc(100vh - 2rem));
}

.consultation-modal--short .consultation-modal__header {
    margin-bottom: 1.25rem;
}

.consultation-modal--short .consultation-modal__subtitle {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

.consultation-modal--short .consultation-modal__modes {
    margin-bottom: 1.25rem;
}

.consultation-modal--short .consultation-modal-fields {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    min-height: 11rem;
    padding: 0.5rem 0.25rem 1rem;
    overflow-y: visible;
    align-content: start;
}

.consultation-modal--short .form-label-compact {
    font-size: 0.9375rem;
    margin-bottom: 0.45rem;
}

.consultation-modal--short .form-input-compact {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    min-height: 3.25rem;
}

.consultation-modal--short .consultation-modal__footer {
    margin-top: auto;
    padding-top: 1.25rem;
}

.consultation-modal--short .consultation-modal__submit {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.consultation-modal--short .consultation-modal__form {
    flex: 1;
}

@media (max-width: 639px) {
    .consultation-modal-fields {
        grid-template-columns: 1fr;
    }

    .consultation-modal-field--wide {
        grid-column: auto;
    }
}
