/* =========================================
   1. ОБЩИЕ СТИЛИ (ДЛЯ ВСЕХ СТРАНИЦ)
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    background-color: #f3eadf;
    background-image: url('Gemini_Generated_Image_wplcj6wplcj6wplc.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    height: 100vh;
    color: #1a3c1a;
    position: relative;
    /* По умолчанию скрываем скролл, включим его только там, где нужно */
    overflow: hidden; 
}

/* МЕНЮ (Левая треть) */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 60px;
    z-index: 100;
    box-sizing: border-box;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.side-menu a {
    text-decoration: none;
    color: #1a3c1a;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: 0.4s ease;
    opacity: 0.8;
}

.side-menu a:hover {
    color: #2F821B;
    opacity: 1;
    transform: translateX(10px);
}

/* =========================================
   2. ГЛАВНАЯ СТРАНИЦА (ВОЗВРАТ ДИЗАЙНА)
   ========================================= */
.page-home .center-text {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.page-home .main-title {
    font-size: clamp(50px, 6vw, 80px);
    text-transform: uppercase;
    letter-spacing: 15px;
    margin: 0;
    line-height: 1.1;
}

.page-home .main-title span {
    display: block;
    font-size: clamp(35px, 4vw, 60px);
    font-weight: 600;
    letter-spacing: 20px;
    margin-top: 10px;
}

.page-home .hero-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100vh;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.page-home .hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   3. СТРАНИЦА УСЛУГ (ПРАЙС-ЛИСТ)
   ========================================= */
.page-services {
    overflow-y: auto !important; /* Разрешаем прокрутку */
}

.services-wrapper {
    margin-left: 30%; 
    padding: 80px 40px;
    min-height: 100vh;
    box-sizing: border-box;
}

.services-container {
    max-width: 900px;
    margin: 0 auto;
}

.services-accordion {
    display: grid;
    gap: 8px;
}

.acc-item {
    overflow: hidden;
    border-radius: 18px 18px 22px 22px;
}

.services-main-title {
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 40px;
}

.services-cta {
    margin-top: 42px;
    padding: 34px 32px 38px;
    text-align: center;
    background: rgba(255, 250, 245, 0.72);
    border: 1px solid rgba(26, 60, 26, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(26, 60, 26, 0.08);
    backdrop-filter: blur(10px);
}

.services-cta-text {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

/* Категории (как на скрине) */
.acc-header {
    width: 100%;
    padding: 15px 25px;
    background: #1a3c1a; 
    color: #fff;
    border: none;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    border-radius: 18px;
    transition: background 0.3s ease;
}

.acc-header.active,
.acc-header:hover {
    background: #234b23;
}

.acc-header.active {
    border-radius: 18px 18px 0 0;
}

.acc-icon {
    flex: 0 0 auto;
    margin-left: 16px;
    font-size: 28px;
    line-height: 1;
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 0 0 22px 22px;
    margin-top: -1px;
}

.service-col-name,
.service-name {
    flex: 2;
}

.service-col-price,
.service-price {
    flex: 1;
    text-align: right;
}

.service-table-head {
    display: flex;
    background: #98c07e; 
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
}

.service-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(26, 60, 26, 0.1);
}

.service-price {
    font-weight: 600;
}

.services-empty {
    margin: 0;
    padding: 24px 28px;
    background: rgba(255, 250, 245, 0.72);
    border: 1px solid rgba(26, 60, 26, 0.12);
    border-radius: 22px;
    line-height: 1.6;
}

.main-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a3c1a;
    color: white;
    border: none;
    padding: 18px 40px;
    font-family: 'Oswald';
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(26, 60, 26, 0.22);
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.main-order-btn:hover {
    background: #2F821B;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(26, 60, 26, 0.28);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 30, 18, 0.56);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-window {
    position: relative;
    width: min(100%, 460px);
    padding: 38px 34px 34px;
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.98) 0%, rgba(248, 244, 238, 0.96) 100%);
    border: 1px solid rgba(26, 60, 26, 0.12);
    border-radius: 28px;
    box-shadow: 0 36px 90px rgba(18, 30, 18, 0.28);
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 60, 26, 0.08);
    color: #1a3c1a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.modal-close:hover {
    background: rgba(26, 60, 26, 0.16);
    transform: rotate(90deg);
}

.modal-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #587153;
}

.modal-title {
    margin: 0 0 14px;
    font-size: 34px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
}

.modal-text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(26, 60, 26, 0.86);
}

.application-form {
    display: grid;
    gap: 12px;
}

.application-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #587153;
}

.application-input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(26, 60, 26, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: #1a3c1a;
    font: inherit;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.application-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.application-input:focus {
    border-color: rgba(47, 130, 27, 0.7);
    box-shadow: 0 0 0 4px rgba(47, 130, 27, 0.12);
    background: #ffffff;
}

.application-input.is-invalid {
    border-color: rgba(176, 69, 43, 0.8);
    box-shadow: 0 0 0 4px rgba(176, 69, 43, 0.12);
}

.send-form-btn {
    margin-top: 8px;
    width: 100%;
    padding: 17px 20px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a3c1a 0%, #295729 100%);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.send-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(26, 60, 26, 0.18);
    filter: brightness(1.03);
}

.application-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(26, 60, 26, 0.68);
}

.application-hint {
    margin: -4px 0 2px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(26, 60, 26, 0.58);
}

.application-status {
    min-height: 22px;
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.application-status.is-pending {
    color: #587153;
}

.application-status.is-success {
    color: #2f6b2f;
}

.application-status.is-error {
    color: #9d3f2a;
}

.application-hidden-field {
    display: none;
}

/* =========================================
   4. СТРАНИЦА ДОКУМЕНТОВ
   ========================================= */

.page-documents {
    overflow-y: auto !important;
}

.documents-wrapper {
    margin-left: 30%;
    padding: 80px 40px;
    min-height: 100vh;
    box-sizing: border-box;
}

.documents-container {
    max-width: 980px;
    margin: 0 auto;
}

.documents-intro {
    margin-bottom: 36px;
    padding: 34px 36px;
    background: rgba(255, 250, 245, 0.72);
    border: 1px solid rgba(26, 60, 26, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(26, 60, 26, 0.08);
    backdrop-filter: blur(10px);
}

.documents-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #587153;
}

.documents-title {
    margin: 0 0 18px;
    font-size: 44px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.documents-text {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.75;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.document-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(26, 60, 26, 0.1);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(26, 60, 26, 0.06);
    backdrop-filter: blur(8px);
}

.document-type {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #587153;
}

.document-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.document-note {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.document-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 6px;
    padding: 14px 22px;
    background: #1a3c1a;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 24px rgba(26, 60, 26, 0.16);
}

.document-link:hover {
    background: #234b23;
    transform: translateY(-2px);
}

.documents-empty {
    margin: 0;
    padding: 24px 28px;
    background: rgba(255, 250, 245, 0.72);
    border: 1px solid rgba(26, 60, 26, 0.12);
    border-radius: 22px;
    line-height: 1.6;
}

/* =========================================
   6. ОБНОВЛЕННАЯ СТРАНИЦА КОНТАКТОВ (ИСПРАВЛЕННАЯ)
   ========================================= */

.page-contacts {
    overflow-y: auto !important; /* Включаем прокрутку, чтобы низ не обрезался */
}

.page-contacts .contacts-wrapper {
    margin-left: 25%; /* Сместили левее (было 30%) */
    padding: 40px 40px 80px 40px; /* Уменьшили верхний отступ (был 60px) и добавили нижний для запаса */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Подняли выше (было center) */
    box-sizing: border-box;
}

.contacts-container {
    width: 100%;
    max-width: 950px; /* Немного ужали ширину для компактности */
    text-align: center;
}

.contacts-title {
    font-size: 40px; /* Чуть уменьшили размер, чтобы сэкономить место */
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 25px;
}

/* Карта */
.map-large {
    width: 100%;
    height: 400px; /* Немного уменьшили высоту (было 450px), чтобы влезло в экран */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #1a3c1a;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

/* Сетка с информацией */
.contacts-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.5); /* Сделали подложку чуть плотнее для читаемости */
    padding: 25px;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.info-item h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2F821B;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}





/* =========================================
   5. СТРАНИЦА "О НАС" (ABOUT)
   ========================================= */

.page-about {
    overflow-y: auto !important; /* Разрешаем скролл */
}

.about-wrapper {
    margin-left: 30%; /* Место для меню */
    padding: 80px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.about-container {
    display: flex;
    gap: 80px; /* Расстояние между текстом и фото */
    max-width: 1100px;
    align-items: flex-start;
}

.about-text-section {
    flex: 1.5;
}

.about-title {
    font-size: 50px;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 40px;
}

.about-text-section p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Секция врача */
.doctor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doctor-photo-frame {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3 / 4; /* Портретный формат */
    background: rgba(26, 60, 26, 0.1); /* Заглушка, пока нет фото */
    border: 1px solid #1a3c1a;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Придает благородный вид */
    transition: 0.5s;
}

.doctor-img:hover {
    filter: grayscale(0%);
}

.doctor-name {
    font-size: 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.doctor-rank {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: lowercase;
    font-style: italic;
    margin-top: 5px;
    opacity: 0.8;
}

/* =========================================
   ОБЩАЯ АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ И ПЛАНШЕТОВ
   ========================================= */

/* =========================================
   7. ФИНАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (1024px и ниже)
   ========================================= */

@media (max-width: 1024px) {
    body {
        background: linear-gradient(180deg, #f2ebde 0%, #f8f3ea 46%, #efe5d8 100%) !important;
        overflow-x: hidden;
        overflow-y: auto !important;
        min-height: 100vh;
        height: auto;
    }

    body.page-home {
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden !important;
    }

    .page-home {
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden !important;
        background: url('Gemini_Generated_Image_wplcj6wplcj6wplc.png') center center / cover no-repeat;
        isolation: isolate;
    }

    .page-home::before {
        content: "";
        position: fixed;
        inset: 0 0 -2px 0;
        background:
            linear-gradient(180deg, rgba(244, 237, 225, 0.34) 0%, rgba(251, 246, 237, 0.42) 42%, rgba(241, 232, 218, 0.38) 100%),
            url('Gemini_Generated_Image_wplcj6wplcj6wplc.png') center center / cover no-repeat;
        z-index: 0;
        pointer-events: none;
    }

    .side-menu {
        position: fixed;
        top: 14px;
        left: 14px;
        right: 14px;
        width: auto !important;
        height: auto;
        padding: 10px 14px;
        background: rgba(255, 252, 247, 0.92);
        backdrop-filter: blur(14px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        border: 1px solid rgba(26, 60, 26, 0.08);
        border-radius: 22px;
        box-shadow: 0 10px 30px rgba(26, 60, 26, 0.08);
    }

    .page-home .side-menu {
        z-index: 5;
    }

    .page-home .center-text,
    .page-home .hero-right {
        z-index: 1;
    }

    .menu-items {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        align-items: center;
    }

    .side-menu a {
        display: block;
        text-align: center;
        font-size: 12px;
        line-height: 1.2;
        letter-spacing: 1px;
        padding: 8px 4px;
        opacity: 0.9;
    }

    .side-menu a:hover {
        transform: none;
    }

    .page-home .center-text {
        height: 100dvh;
        min-height: 100dvh;
        display: grid;
        place-items: center;
        align-content: center;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 24px;
        box-sizing: border-box;
        overflow: hidden;
        pointer-events: none;
    }

    .page-home .main-title {
        font-size: clamp(34px, 8vw, 52px);
        letter-spacing: 0.12em;
        text-align: center;
        line-height: 1.1;
        max-width: 10ch;
        text-shadow: 0 14px 32px rgba(255, 249, 241, 0.7);
        transform: translateY(-10svh);
    }

    .page-home .main-title span {
        font-size: clamp(22px, 5vw, 32px);
        letter-spacing: 0.16em;
        margin-top: 12px;
    }

    .page-home .hero-right {
        display: none !important;
        width: min(72vw, 360px);
        height: min(50svh, 420px);
        right: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(50%);
        opacity: 0.5;
        mix-blend-mode: multiply;
        pointer-events: none;
    }

    .page-home .hero-right img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
        mix-blend-mode: multiply;
        filter: contrast(1.06) saturate(0.92);
    }

    .services-wrapper {
        margin-left: 0 !important;
        padding: 110px 18px 42px;
    }

    .services-main-title {
        font-size: 34px;
        letter-spacing: 0.12em;
        margin-bottom: 28px;
    }

    .services-accordion {
        gap: 10px;
    }

    .acc-header {
        padding: 18px 20px;
        font-size: 17px;
        letter-spacing: 0.08em;
    }

    .acc-icon {
        font-size: 24px;
    }

    .service-table-head {
        padding: 12px 18px;
        font-size: 12px;
    }

    .service-row {
        padding: 16px 18px;
        gap: 14px;
    }

    .service-name {
        padding-right: 18px;
    }

    .service-price {
        white-space: nowrap;
    }

    .main-order-btn {
        width: 100%;
        padding: 18px 20px;
        font-size: 16px;
        text-align: center;
    }

    .services-cta {
        margin-top: 28px;
        padding: 26px 18px 24px;
        border-radius: 22px;
    }

    .services-cta-text {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .modal-overlay {
        padding: 16px;
    }

    .modal-window {
        padding: 34px 20px 24px;
        border-radius: 22px;
        max-height: calc(100svh - 32px);
        overflow-y: auto;
    }

    .modal-title {
        font-size: 28px;
    }

    .page-about .about-wrapper {
        margin-left: 0 !important;
        padding: 112px 20px 42px;
        align-items: flex-start;
    }

    .documents-wrapper {
        margin-left: 0 !important;
        padding: 112px 20px 42px;
    }

    .documents-intro {
        margin-bottom: 24px;
        padding: 26px 22px;
        border-radius: 22px;
    }

    .documents-title {
        font-size: 34px;
        letter-spacing: 0.12em;
        margin-bottom: 14px;
    }

    .documents-text {
        font-size: 17px;
        line-height: 1.7;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .document-card {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .document-title {
        font-size: 24px;
    }

    .about-container {
        flex-direction: column;
        gap: 28px;
    }

    .about-text-section {
        min-height: 0;
        padding-bottom: 0;
    }

    .about-title {
        font-size: 34px;
        letter-spacing: 0.12em;
        margin-bottom: 22px;
    }

    .about-text-section p {
        font-size: 17px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    .doctor-section {
        width: 100%;
        margin-top: 0;
        padding-bottom: 0;
        border-top: 1px solid rgba(26, 60, 26, 0.1);
        padding-top: 28px;
    }

    .doctor-photo-frame {
        max-width: 320px;
    }

    .page-contacts .contacts-wrapper {
        margin-left: 0 !important;
        padding: 112px 20px 40px;
    }

    .contacts-title {
        font-size: 34px;
        letter-spacing: 0.12em;
        margin-bottom: 20px;
    }

    .map-large {
        height: 320px;
        margin-bottom: 25px;
        border-radius: 20px;
    }

    .contacts-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 20px;
    }

    .info-item {
        padding: 18px;
        background: rgba(255, 255, 255, 0.68);
        border-radius: 16px;
        text-align: left;
    }

    .info-item a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 680px) {
    .side-menu {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 10px;
        border-radius: 18px;
    }

    .menu-items {
        gap: 4px;
    }

    .side-menu a {
        font-size: 11px;
        letter-spacing: 0.04em;
        padding: 8px 2px;
    }

    .page-home .center-text {
        height: 100dvh;
        min-height: 100dvh;
        padding: 0 18px;
        align-content: center;
    }

    .page-home .main-title {
        font-size: clamp(30px, 9vw, 42px);
        letter-spacing: 0.08em;
        transform: translateY(-9svh);
    }

    .page-home .main-title span {
        font-size: clamp(19px, 5.4vw, 26px);
        letter-spacing: 0.1em;
    }

    .page-home .hero-right {
        display: none !important;
    }

    .page-home::before {
        background-position: center top;
    }

    .services-wrapper,
    .documents-wrapper,
    .page-about .about-wrapper,
    .page-contacts .contacts-wrapper {
        padding-left: 14px;
        padding-right: 14px;
    }

    .services-main-title,
    .documents-title,
    .about-title,
    .contacts-title {
        font-size: 28px;
        letter-spacing: 0.08em;
    }

    .documents-intro {
        padding: 22px 16px;
    }

    .documents-text {
        font-size: 16px;
        line-height: 1.65;
    }

    .document-card {
        padding: 18px 16px;
    }

    .document-title {
        font-size: 20px;
    }

    .document-note {
        font-size: 15px;
    }

    .document-link {
        width: auto;
        min-width: 0;
        align-self: flex-start;
        padding: 15px 18px;
    }

    .acc-header {
        padding: 16px 16px;
        font-size: 15px;
        letter-spacing: 0.06em;
    }

    .acc-icon {
        margin-left: 10px;
        font-size: 21px;
    }

    .service-table-head {
        display: none;
    }

    .service-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        padding: 16px;
    }

    .service-name {
        padding-right: 10px;
        font-size: 16px;
        line-height: 1.45;
    }

    .service-price {
        font-size: 16px;
        text-align: right;
    }

    .services-cta {
        padding: 22px 16px 18px;
    }

    .services-cta-text {
        font-size: 16px;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-window {
        width: 100%;
        padding: 30px 16px 18px;
        border-radius: 20px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text {
        font-size: 15px;
        line-height: 1.55;
    }

    .application-input {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .application-textarea {
        min-height: 110px;
    }

    .send-form-btn {
        padding: 16px 18px;
        font-size: 15px;
    }

    .about-container {
        gap: 24px;
    }

    .about-text-section p {
        font-size: 16px;
        line-height: 1.7;
    }

    .doctor-photo-frame {
        max-width: 100%;
    }

    .doctor-name {
        font-size: 22px;
        letter-spacing: 0.08em;
    }

    .doctor-rank {
        font-size: 14px;
    }

    .map-large {
        height: 260px;
        margin-bottom: 18px;
        border-radius: 18px;
    }

    .contacts-info-grid {
        padding: 12px;
    }

    .info-item {
        padding: 16px;
    }

    .info-item h3 {
        font-size: 14px;
        letter-spacing: 0.1em;
    }

    .info-item p {
        font-size: 15px;
    }
}
