@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest/static/Onest-Regular.ttf") format("ttf");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest/static/Onest-Medium.ttf") format("ttf");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/Onest/static/Onest-SemiBold.ttf") format("ttf");
    font-weight: 600;
    font-display: swap;
}

:root {
    --main-bg-color: #F6F7F9;
    --main-text-color: #333333;
    --padding-standart: 16px;
    --accent: #0E7C86;
    --text: #141414;
    --gray: #CCCFD4;
    --dark-gray: #6C7879;
    --border: #D2E0E2;
    --white: #FFFFFF;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 48px;
    --padding-big: 40px;
    --light-gray: #EBEBEB;
    --padding-lr-big: 0 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--main-bg-color);
    font-family: "Onest", sans-serif;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
}

h1,
h2 {
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
    margin-bottom: 30px;
}

h1:has(+ .intro) {
    margin-bottom: 10px;
}

.bold {
    font-weight: bold;
}

.intro,
.intro-block-text {
    margin-bottom: 30px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: var(--padding-lr-big);
}
.info.about ul {
    list-style: disc;
    list-style-position: inside;
    margin: 20px 0;
}
.info.about p {
    margin-bottom: 15px;
}
/* =====================
   HEADER
===================== */

.header {
    position: relative;
    z-index: 100;
}

.header__inner {
    min-height: 116px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* =====================
   LOGO
===================== */

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.logo__icon {
    width: 48px;
    height: 48px;
}

.logo__icon img {
    width: 100%;
    display: block;
}

.logo__content {
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-weight: 500;
    font-size: 24px;
    line-height: 110%;
    color: var(--accent);
}

.logo__subtitle {
    color: var(--gray);
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
}

/* =====================
   MENU
===================== */

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: 12px;
}

.nav__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
    transition: .3s;
}

.nav__list a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =====================
   ACTIONS
===================== */

.header__actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__phone {
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.header__phone:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    transition: .3s;
    border: none;
    font-size: 16px;
}

.btn:hover {
    opacity: .9;
    cursor: pointer;
}

.btn.btn-outline {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--main-text-color);
}

.btn.btn-outline:hover {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--white);
}

.breadcrumbs {
    margin-bottom: 50px;
}

.breadcrumbs ul {
    display: flex;
    column-gap: 40px;
}

.breadcrumbs ul li {
    position: relative;
}

.breadcrumbs ul li a {
    color: var(--gray);
}

.breadcrumbs ul li::after {
    position: absolute;
    content: '';
    width: 12px;
    height: 12px;
    background: url('/assets/images/design/icon/arrow-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    right: -30px;
    top: 0;
    bottom: 0;
    margin: auto;
}

.breadcrumbs ul li:last-child:after {
    width: 0;
}

/* =====================
   BURGER
===================== */

.burger {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.burger span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
    transform-origin: center;
}

.burger span:nth-child(1) {
    top: 16px;
    transform: translateX(-50%);
}

.burger span:nth-child(2) {
    top: 23px;
    transform: translateX(-50%);
}

.burger span:nth-child(3) {
    top: 30px;
    transform: translateX(-50%);
}

/* состояние OPEN */
.burger.active {
    border: 1px solid var(--border);
    background: transparent;
}

.burger.active span:nth-child(1) {
    top: 23px;
    transform: translateX(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 23px;
    transform: translateX(-50%) rotate(-45deg);
}

.menu-open .burger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
}

.nav__mobile-info {
    display: none;
}

.menu-overlay {
    display: none;
}

/* =====================
   TABLET
===================== */

@media (max-width: 1200px) {

    .header__actions {
        display: none;
    }

    .burger {
        display: block;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 360px;
        max-width: 100%;
        height: 100vh;
        background: var(--main-bg-color);
        z-index: 1000;
        transition: .35s;
        overflow-y: auto;
        padding: 0 24px;
    }

    .nav.active {
        right: 0;
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 44px;
        height: 44px;
        border: none;
        background: #f5f5f5;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        top: 20px;
        border: 1px solid var(--border);
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        margin-top: 90px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .nav__list a {
        border: none;
        border-radius: 0;
        height: 45px;
        justify-content: flex-start;
        padding: 0;
        font-size: 18px;
    }

    .nav__mobile-info {
        display: block;
        margin-top: 40px;
    }

    .nav__contacts {
        background: white;
        border-radius: 24px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .nav__contacts .icon {
        padding-left: 40px;
        position: relative;
        font-weight: 500;
        font-size: 14px;
        line-height: 130%;
    }

    .nav__contacts .icon::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 28px;
        height: 28px;
    }

    .nav__contacts .icon.address::before {
        background: url('/assets/images/design/icon/icon-location.svg');
    }

    .nav__contacts .icon.phone::before {
        background: url('/assets/images/design/icon/icon-phone.svg');
    }

    .nav__contacts .icon.time_work::before {
        background: url('/assets/images/design/icon/icon-clock.svg');
    }

    .nav__contacts .icon.email::before {
        background: url('/assets/images/design/icon/icon-letter.svg');
    }

    .nav__contacts span {
        display: block;
        margin-bottom: 5px;
        color: var(--gray);
        font-size: 14px;
    }

    .btn--full {
        width: 100%;
        margin-top: 24px;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        z-index: 999;
        display: block;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* =====================
   MOBILE
===================== */

@media (max-width: 768px) {
    h1,
    h2 {
        font-size: 28px;
        line-height: 110%;
    }

    .menu-open .logo {
        z-index: 1001;
        position: fixed;
    }

    .container {
        padding: 0 20px;
    }

    .header__inner {
        min-height: 88px;
    }

    .logo__icon {
        width: 40px;
        height: 40px;
    }

    .logo__title {
        font-size: 20px;
    }

    .logo__subtitle {
        font-size: 12px;
    }

    .burger {
        width: 48px;
        height: 48px;
    }

    .nav {
        width: 100%;
    }
}

/* Обертка футера */
.site-footer {
    padding: 40px 0;
    color: var(--light-gray);
}

/* Цветная плашка футера */
.footer-box {
    background-color: var(--accent);
    /* Темно-бирюзовый цвет из макета */
    border-radius: var(--radius-md);
    padding: 50px;
    color: var(--white);
}

/* Сетка колонок */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* --- Колонка 1: Бренд --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon img{
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 110%;
}

.logo-subtitle {
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: var(--gray);
}

.footer-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--light-gray);
    margin-bottom: 20px;
}

footer .btn.btn-outline {
    display: inline-block;
    background-color: #ffffff;
    color: var(--main-text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    border: none;
}

footer .btn.btn-outline:hover {
    opacity: 0.9;
    background-color: #ffffff;
    color: var(--main-text-color);
    border: none;
}

/* --- Колонки: Навигация --- */
.footer-heading {
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    color: var(--light-gray);
    margin: 0 0 20px 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--light-gray);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    transition: opacity 0.3s ease, text-decoration 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Колонка: Контакты --- */
.contact-item {
    margin-bottom: 15px;
    font-size: 13px;
}

.contact-item p {
    margin: 4px 0 0 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

.contact-label {
    color: #D2E0E2;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* --- Нижняя часть (Копирайт) --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.copyright {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        /* 2 колонки на планшетах */
        gap: 30px;
    }

    .footer-box {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        /* 1 колонка на мобильных */
        gap: 40px;
    }

    .footer-box {
        padding: 30px 20px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-desc br {
        display: none;
        /* Убираем жесткий перенос строк на мобилках */
    }
}



/* --- Оверлей модального окна --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Полупрозрачный темный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;

    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Класс для показа модального окна */
.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* --- Контейнер модального окна --- */
.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 550px;
    /* Ширина как на макете */
    border-radius: 24px;
    /* Скругление углов */
    padding: 40px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Кнопка закрытия (крестик) --- */
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    /* Тонкая серая рамка */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* --- Тексты --- */
.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    padding-right: 40px;
    /* Чтобы не наезжало на крестик */
}

.modal-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

/* --- Форма --- */
.modal-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.form-input {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    /* Светло-серая рамка */
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: var(--accent);
    /* Фирменный бирюзовый цвет при фокусе */
}

/* --- Чекбокс согласия --- */
.form-agreement {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 30px;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.custom-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    /* Бирюзовый цвет галочки */
}

.agreement-label {
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.agreement-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.agreement-link:hover {
    text-decoration: none;
}

/* --- Кнопка отправки --- */
.form-submit-btn {
    background-color: var(--accent);
    /* Бирюзовый цвет */
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    /* Кнопка в виде пилюли */
    padding: 16px 28px;
    cursor: pointer;
    align-self: flex-start;
    /* Прижимает кнопку к левому краю */
    transition: opacity 0.2s, background-color 0.2s;
}

.form-submit-btn:hover {
    opacity: 0.9;
}

/* Контейнер ошибки, который FetchIt генерирует автоматически */
.form-group .error,
.form-agreement .error {
    display: flex;
    align-items: center;
    background-color: #FFF0F0;
    /* Светло-розовый фон */
    color: #5C1F1F;
    /* Цвет текста ошибки */
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
    /* Скругление углов */
    margin-top: 6px;
    box-sizing: border-box;
    width: 100%;
    animation: fadeIn 0.2s ease-in-out;
    /* Плавное появление */
}

/* Иконка восклицательного знака */
.form-group .error::before,
.form-agreement .error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid #EF4444;
    /* Красный кружок */
    color: #EF4444;
    /* Красный восклицательный знак */
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    /* Чтобы круг не сжимался при длинном тексте */
}

/* Плавная анимация появления ошибки */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 576px) {
    .modal-content {
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 60px 20px 30px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
    }

    .form-submit-btn {
        width: 100%;
        /* На мобильных кнопка на всю ширину */
        align-self: stretch;
    }
}

.modal-success-title {
    font-weight: 500;
    font-size: 28px;
    line-height: 110%;
    margin-bottom: 30px;
}

.modal-success-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    margin-bottom: 50px;
}

.cta-section {
    padding: 60px 0;
    background-color: transparent;
}

.cta-banner {
    background-color: var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--padding-big);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-title {
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.cta-desc {
    color: var(--white);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 32px 0;
    max-width: 480px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--padding-standart);
    /* 16px */
    width: 100%;
}

.cta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    /* 48px для формы пилюли */
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}


.cta-btn_primary {
    background-color: var(--white);
    color: var(--main-text-color);
    border: 1px solid var(--white);
}

.cta-btn_secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cta-btn_secondary:hover {
    background-color: var(--white);
    color: var(--accent);
}

.cta-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.cta-image {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
}


@media (max-width: 992px) {
    .cta-banner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px var(--padding-standart);
    }

    .cta-title {
        font-size: 28px;
        text-align: left;
    }

    .cta-desc {
        font-size: 14px;
        margin-bottom: 35px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        padding: 16px 24px;
    }

    .cta-image-wrap {
        margin-top: 8px;
    }

    .cta-image {
        max-height: 240px;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 24px;
    }
}

/* --- Стили секции Контактов --- */
.contacts-section {
    padding: 60px 0;
    background-color: var(--main-bg-color);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--padding-big);
    align-items: stretch;
}


.contacts-map-box {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contacts-map-box iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.contacts-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--padding-big);
    box-shadow: var(--shadow-sm);

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
}

.contacts-item {
    position: relative;
    padding-left: 42px;
    /* 28px иконка + 14px отступ до текста */
    min-height: 36px;
    /* Гарантирует правильное выравнивание при коротком тексте */
    display: flex;
    /* align-items: center; */
}

.contacts-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    /* margin: auto; */
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.contacts-item_address::before {
    background-image: url('/assets/images/design/icon/icon-location.svg');
}

.contacts-item_phone::before {
    background-image: url('/assets/images/design/icon/icon-phone.svg');
}

.contacts-item_hours::before {
    background-image: url('/assets/images/design/icon/icon-clock.svg');
}

.contacts-item_email::before {
    background-image: url('/assets/images/design/icon/icon-letter.svg');
}

.contacts-text {
    display: flex;
    flex-direction: column;
}

.contacts-label {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}


.contacts-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    text-decoration: none;
}

.contacts-link {
    transition: color 0.25s ease;
}

.contacts-link:hover {
    color: var(--accent);
}

/* Фотография здания клиники */
.contacts-photo-box {
    width: 100%;
    flex-grow: 1;
    border-radius: var(--radius-lg);
    /* 32px */
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contacts-photo {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .contacts-section {
        padding: 40px 0;
    }

    .contacts-main-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacts-map-box {
        height: 340px;
        border-radius: var(--radius-md);
    }

    .contacts-info-column {
        gap: 20px;
    }

    .contacts-card {
        grid-template-columns: 1fr;
        padding: 32px var(--padding-standart);
        gap: 20px;
        border-radius: var(--radius-md);
    }

    .contacts-photo-box {
        border-radius: var(--radius-md);
    }

    .contacts-photo {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .contacts-main-title {
        font-size: 24px;
    }

    .contacts-map-box {
        height: 280px;
    }
}

/* Контейнер и общие настройки страницы */
.price-page {
    padding: 60px 0;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--main-text-color);
}

/* Сетка для Bento-блоков */
.price-blocks-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Отступы между карточками категорий */
}

/* Карточка категории (Белая подложка) */
.price-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

/* Шапка карточки */
.price-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.price-card__title {
    font-weight: 500;
    font-size: 32px;
    line-height: 110%;
    margin: 0;
}

.price-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    /* Глубокий бирюзовый */
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.price-card__btn:hover {
    opacity: .9;
    cursor: pointer;
}

/* Таблица / Список цен */
.price-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Отступы между строками цен */
}

/* Строка прайса */
.price-table__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1fbfc;
    /* Мятно-голубой фон плашки */
    border-radius: 10px;
    padding: 18px 24px;
    transition: transform 0.2s ease;
}

.price-table__row:hover {
    transform: translateX(4px);
    /* Легкий интерактивный сдвиг при наведении */
}

/* Ячейки */
.price-table__cell.name {
    font-size: 16px;
    font-weight: 500;
    color: #1c2e3d;
    padding-right: 20px;
}

.price-table__cell.cost {
    font-size: 18px;
    font-weight: 600;
    color: #007d8a;
    /* Цвет цены */
    white-space: nowrap;
    /* Чтобы рубли не переносились */
}

/* Адаптив под мобильные устройства */
@media (max-width: 768px) {
    .price-card {
        padding: 24px;
    }

    .price-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .price-card__btn {
        width: 100%;
    }

    .price-table__row {
        padding: 14px 16px;
    }

    .price-table__cell.name {
        font-size: 14px;
    }

    .price-table__cell.cost {
        font-size: 16px;
    }
}


/* --- Вкладки / Табы --- */
.doctors-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: white;
    padding: 10px;
    border-radius: var(--radius-md);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #5c636a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn span {
    opacity: 0.6;
    margin-left: 4px;
}

/* Активный таб */
.tab-btn.active {
    background-color: #0d8a94;
    /* Глубокий бирюзовый цвет */
    color: #ffffff;
}

/* --- Сетка карточек --- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

/* --- Карточка доктора --- */
.doctor-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-in-out;
}

/* Контейнер для фото */
.doctor-photo-wrap {
    /* width: 100%; */
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #51a1b4;
    margin-bottom: 20px;
}

.doctor-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-name {
    font-weight: 500;
    font-size: 25px;
    line-height: 110%;
    text-align: center;
    color: var(--main-text-color);
    margin-bottom: auto;
    padding: 0 8px;
    min-height: 52px;
}

.doctor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--main-text-color);
    padding-top: 12px;
}

.specialty {
    color: #6c757d;
    font-weight: 400;
}

.experience {
    font-weight: 600;
}

.doctor-link-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.info h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        /* Слегка приподнимаем при появлении */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1280px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

}

@media (max-width: 996px) {
    .doctors-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .doctors-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .doctor-name {
        font-size: 16px;
        min-height: auto;
        margin-bottom: 12px;
    }

    .doctor-meta {
        margin-top: 16px;
    }
}

@media (max-width: 596px) {

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

    .doctor-photo-wrap {
        height: auto;
    }

    .doctor-card {
        max-width: 100%;
        margin: 0 auto;
    }

}

/* Стили секции */
.faq-section {
    padding: 40px 20px;
}

.faq-title {
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
    margin-bottom: 32px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Элемент аккордеона */
.faq-item {
    background-color: #F0F2F5;
    border-radius: var(--radius-md);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Активное состояние (первый элемент или открытый по клику) */
.faq-item.active {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Кнопка-триггер */
.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.faq-question {
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    padding-right: 20px;
}

/* Круглая иконка со стрелочкой */
.faq-icon {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Рисуем стрелочку с помощью border */
.faq-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Анимация иконки при открытии */
.faq-item.active .faq-icon {
    background-color: transparent;
}

.faq-item.active .faq-icon::before {
    transform: translateY(2px) rotate(-135deg);
}

/* Контейнер для текста (анимация через max-height) */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-text {
    padding: 0 32px 34px 32px;
    margin: 0;
    font-size: 16px;
    line-height: 130%;
    color: var(--text-muted);
}

@media (max-width: 996px) {
    .faq-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .faq-trigger {
        padding: 16px 20px;
    }

    .faq-text {
        padding: 0 20px 20px 20px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
    }
}

.specialists-block {
    padding: 60px 0;
}

/* Флекс-шапка со стрелочками */
.specialists-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 30px;
}

.specialists-header-text {
    max-width: calc(100% - 150px);
}

.specialists-header h2 {
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
    margin: 0 0 12px 0;
}

.specialists-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 130%;
    margin: 0;
}

.specialists-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
}

.swiper-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swiper-nav-btn:hover {
    border-color: #0E7C86;
    color: #0E7C86;
}

.reviews-section {
    padding: 60px 0;
}

.review_page .review-card {
    margin-bottom: 30px;
}

/* Шапка блока */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.reviews-btn-all {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.reviews-btn-all:hover {
    background-color: var(--border);
}

/* Сетка карточек */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* Карточка отзыва */
.review-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

/* Мета-данные (Автор, дата, платформа) */
.review-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author {
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
}

.review-platform {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Пример добавления иконок перед платформой через псевдоэлементы */
.review-platform::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
}
.review-platform.class-yandex::before { background-image: url('/assets/images/design/icon/yandex.svg'); }
.review-platform.class-2gis::before { background-image: url('/assets/images/design/icon/2gis.svg'); }
.review-platform.class-prodoctorov::before { background-image: url('/assets/images/design/icon/prodoctorov.svg'); }

.review-date {
    font-size: 0.9rem;
    color: #CCCFD4;
    align-self: start;
    padding-top: 4px;
}

/* Текст отзыва */
.review-text {
    font-size: 16px;
    line-height: 130%;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    max-height: calc(1.3em * 3); 
    transition: max-height 0.3s ease;
}
.review-card.is-open .review-text {
    display: block;
    -webkit-line-clamp: none;
    max-height: none; /* Снимаем ограничение по высоте */
}

.review-card.is-open .review-text-wrap {
    display: block;
    -webkit-line-clamp: none;
}
.review-more-btn {
    display: none;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: #0098a6;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    /* display: inline-flex; */
    align-items: center;
    gap: 4px;
    font-family: inherit;
    text-align: left;
    margin-top: auto; 
}

.review-more-btn:hover {
    text-decoration: underline;
}

.review-card.has-overflow .review-more-btn {
    display: inline-flex;
}

.review-more-btn span {
    position: relative;
    padding-right: 15px;
}
.review-more-btn span::after {
    position: absolute;
    content: '';
    width: 9px;
    height: 12px;
    background: url('/assets/images/design/icon/arrow-bottom.svg');
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}
.review-card.is-open .review-more-btn span::after {
    transform: rotate(180deg);
}
/* Адаптивность */
@media (max-width: 992px) {
    .specialists-header h2 {
        font-size: 28px;
    }
    .specialists-subtitle {
        font-size: 16px;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-title {
        font-size: 2rem;
    }
}