/* ===== Модуль локального поиска — Семейная стоматология братьев Улиханян ===== */

/* --- Навигационные иконки поиска в шапке --- */
.topline .menu-item-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #219090;
    padding: 0 0.25rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.search-nav-link:hover {
    color: #219090;
    transform: scale(1.1);
}
.search-nav-link svg {
    width: 24px;
    height: 24px;
}

/* Мобильная кнопка поиска (рядом с глазом) */
.search-dropdown-wrap-mobile {
    display: none !important;
    vertical-align: middle;
}
.search-mobile-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 18px;
    color: #219090;
    text-decoration: none;
    position: relative;
    z-index: 3;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.search-mobile-btn:hover {
    color: #219090;
    transform: scale(1.1);
}
.search-mobile-btn svg {
    width: 26px;
    height: 26px;
}

/* --- Иконка карты сайта в навигации --- */
.topline .menu-item-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.map-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #219090;
    padding: 0 0.25rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.map-nav-link:hover {
    color: #219090;
    transform: scale(1.1);
}
.map-nav-link svg {
    width: 24px;
    height: 24px;
}
.menu-item-map.active .map-nav-link {
    color: #b3812a;
}

/* --- Стилизованные всплывающие подсказки (tooltips) для иконок в меню ПК --- */
@media screen and (min-width: 992px) {
    /* Базовое позиционирование для иконок шапки с подсказками */
    .topline .bvi-nav-link,
    .topline .search-nav-link,
    .topline .map-nav-link {
        position: relative;
        color: #219090;
        transition: color 0.2s ease;
    }

    /* Масштабируем SVG внутри ссылок без искажения подсказки */
    .topline .bvi-nav-link:hover,
    .topline .search-nav-link:hover,
    .topline .map-nav-link:hover {
        color: #219090;
        transform: none;
    }
    .topline .bvi-nav-link svg,
    .topline .search-nav-link svg,
    .topline .map-nav-link svg {
        transition: transform 0.2s ease;
    }
    .topline .bvi-nav-link:hover svg,
    .topline .search-nav-link:hover svg,
    .topline .map-nav-link:hover svg {
        transform: scale(1.12);
    }

    /* Стрелочка подсказки */
    .topline [data-tooltip]::before {
        content: '';
        position: absolute;
        top: calc(100% + 5px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        border-width: 0 5px 5px 5px;
        border-style: solid;
        border-color: transparent transparent #219090 transparent;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.2s;
        z-index: 1060;
    }

    /* Текстовый блок подсказки в фирменном стиле */
    .topline [data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        background: #219090;
        color: #ffffff;
        font-family: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 11.5px;
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: 0.02em;
        padding: 5px 10px;
        border-radius: 6px;
        white-space: nowrap;
        box-shadow: 0 4px 14px rgba(33, 144, 144, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        user-select: none;
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.2s;
        z-index: 1060;
    }

    /* Появление при наведении или клавиатурном фокусе */
    .topline [data-tooltip]:hover::before,
    .topline [data-tooltip]:focus-visible::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .topline [data-tooltip]:hover::after,
    .topline [data-tooltip]:focus-visible::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Скрытие подсказки поиска при раскрытии выпадающего меню */
    .search-dropdown-wrap:has(.search-dropdown-menu.active) [data-tooltip]::before,
    .search-dropdown-wrap:has(.search-dropdown-menu.active) [data-tooltip]::after,
    .search-dropdown-wrap:focus-within [data-tooltip]::before,
    .search-dropdown-wrap:focus-within [data-tooltip]::after {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
    }
}

/* Пункт карты сайта для мобильного меню (скрыт на десктопе по умолчанию) */
.menu-item-mobile-map {
    display: none !important;
}
.menu-item-mobile-map.active > a {
    color: #219090 !important;
}

/* --- Выпадающее окно (Dropdown) --- */
.search-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.search-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1050;
    border: 1px solid #eef2f5;
}
.search-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search-dropdown-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.search-dropdown-input {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-dropdown-input:focus {
    border-color: #219090;
    box-shadow: 0 0 0 0.2rem rgba(33, 144, 144, 0.15);
}
.search-dropdown-btn {
    background: #b3812a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.search-dropdown-btn:hover {
    background: #219090;
    transform: scale(1.05);
}
.search-dropdown-close {
    background: none;
    border: none;
    color: #999;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}
.search-dropdown-close:hover {
    color: #212529;
}

/* --- Адаптивность для выпадающего меню --- */
@media screen and (max-width: 1100px) {
    .search-dropdown-wrap-mobile {
        display: inline-flex !important;
    }
    .search-mobile-btn {
        display: inline-flex !important;
    }
    .menu-item-search {
        display: none !important;
    }
    .menu-item-map {
        display: none !important;
    }
    .menu-item-mobile-map {
        display: block !important;
    }
    .search-dropdown-menu {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }
}

/* --- Страница поиска (search.php) --- */
.search-page-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.search-page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #212529;
}
.search-page-subtitle {
    font-size: 1rem;
}
.site-search-form {
    max-width: 640px;
    margin: 0 auto;
}
.site-search-form .search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid #E5E7EB;
    font-size: 1rem;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.site-search-form input[type="search"]:focus {
    border-color: #219090;
    box-shadow: 0 0 0 0.2rem rgba(33, 144, 144, 0.15);
}
.site-search-form button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: #b3812a;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.site-search-form button:hover {
    background: #219090;
    transform: translateY(-1px);
}

/* --- Список результатов --- */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}
.search-result-card {
    display: block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #333;
}
.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(33, 144, 144, 0.08);
    border-color: #219090;
    color: #333;
}
.search-result-page {
    font-size: 0.82rem;
    color: #b3812a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}
.search-result-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #219090;
    margin-bottom: 0.5rem;
}
.search-result-snippet {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.55;
}
.search-result-snippet mark {
    background: #fef08a;
    color: #713f12;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-weight: 600;
}
.search-no-results {
    border: 1px dashed #e0e0e0;
    border-radius: 14px;
    background: #fafbfc;
}

/* --- Подсветка на целевых страницах --- */
.search-hit {
    background: #fef08a !important;
    color: #713f12 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-weight: inherit !important;
    display: inline !important;
    animation: searchHitFade 30s ease forwards;
}
.search-row-target {
    background-color: #fff9db !important;
    outline: 2px solid #219090 !important;
    outline-offset: -2px;
    transition: background-color 1s ease, outline-color 1s ease;
}
@keyframes searchHitFade {
    0% { background: #fef08a; }
    90% { background: #fef08a; }
    100% { background: transparent; color: inherit; }
}

/* --- Autocomplete выпадающий список --- */
.search-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 1060;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    text-align: left;
}
.search-autocomplete-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.92rem;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.15s, color 0.15s;
}
.search-autocomplete-item:last-child {
    border-bottom: none;
}
.search-autocomplete-item:hover {
    background: #f0fbfb;
    color: #219090;
}
.search-autocomplete-item strong {
    color: #219090;
    font-weight: 700;
}
.search-dropdown-menu .search-autocomplete-list {
    top: calc(100% + 4px);
    border-radius: 0 0 12px 12px;
}

/* --- Карта сайта (Sitemap page) --- */
.sitemap-page-main {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 920px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
.sitemap-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.sitemap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(33, 144, 144, 0.12);
    border-color: #219090;
}
.sitemap-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sitemap-card h3 svg {
    width: 24px;
    height: 24px;
    color: #219090;
    flex-shrink: 0;
}
.sitemap-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sitemap-card ul li {
    margin-bottom: 12px;
}
.sitemap-card ul li:last-child {
    margin-bottom: 0;
}
.sitemap-card ul a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.sitemap-card ul a svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #219090;
    transition: color 0.2s ease, transform 0.2s ease;
}
.sitemap-card ul a:hover {
    color: #b3812a;
    padding-left: 4px;
}
.sitemap-card ul a:hover svg {
    color: #b3812a;
    transform: scale(1.15);
}

/* --- Десктопная шапка: распределение колонок и отступы меню --- */
@media screen and (min-width: 1200px) {
    .topline .header-logo-col {
        flex: 0 0 auto !important;
        width: 13% !important;
        max-width: 13% !important;
    }
    .topline .header-menu-col {
        flex: 0 0 auto !important;
        width: 47% !important;
        max-width: 47% !important;
    }
    .topline .header-contacts-col {
        flex: 0 0 auto !important;
        width: 40% !important;
        max-width: 40% !important;
    }
    .topline .header-contacts-col .col-7 {
        flex: 0 0 auto !important;
        width: 58.333333% !important;
    }
    .topline .header-contacts-col .col-1 {
        flex: 0 0 auto !important;
        width: 8.333333% !important;
    }
    .topline .header-contacts-col .col-4 {
        flex: 0 0 auto !important;
        width: 33.333333% !important;
    }
    .topline .header-contacts-col .small {
        white-space: nowrap !important;
        font-size: 0.84rem !important;
    }
}

@media screen and (min-width: 1101px) {
    .topline .navbar-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    .topline .navbar-nav > li > a {
        padding: 4px 4px !important;
        white-space: nowrap !important;
        font-size: 0.96rem;
    }
}

/* --- Страница «Пациентам» (Doc page) --- */
.pacientam-page-main {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}
.doc-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .doc-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
@media (max-width: 576px) {
    .doc-tiles {
        grid-template-columns: 1fr;
    }
}
.doc-tile {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 14.5px;
    color: #1a202c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.doc-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(33, 144, 144, 0.12);
    border-color: #219090;
    color: #219090;
}
.doc-tile svg {
    width: 28px;
    height: 28px;
    color: #219090;
    transition: color 0.2s ease, transform 0.2s ease;
}
.doc-tile:hover svg {
    color: #b3812a;
    transform: scale(1.1);
}

.doc-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}
.doc-section > h2 {
    font-size: clamp(20px, 2.5vw, 27px);
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
    color: #1a202c;
}
.doc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .doc-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.doc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.doc-card:hover {
    border-color: #219090;
    box-shadow: 0 6px 20px rgba(33, 144, 144, 0.09);
    transform: translateY(-2px);
}
.doc-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #1a202c;
}
.doc-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.doc-card a {
    color: #219090;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}
.doc-card a:hover {
    color: #b3812a;
    text-decoration: underline;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.doc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.doc-link:hover {
    border-color: #219090;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(33, 144, 144, 0.08);
    color: #219090;
}
.doc-link svg {
    width: 20px;
    height: 20px;
    color: #219090;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.doc-link:hover svg {
    color: #b3812a;
}
.doc-link .dl-ext {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #219090;
    background: #f0fbfb;
    border: 1px solid #cbe9e9;
    border-radius: 6px;
    padding: 3px 8px;
}
.doc-link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}
.doc-link-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #2d3748;
    transition: color 0.2s ease;
}
.doc-link:hover .doc-link-title {
    color: #219090;
}
.doc-link-details {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}
.doc-link-qr-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-link:hover .doc-link-qr-wrap {
    border-color: #219090;
    box-shadow: 0 4px 12px rgba(33, 144, 144, 0.15);
}
.doc-link-qr {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}
@media (max-width: 576px) {
    .doc-link--with-qr {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .doc-link--with-qr .doc-link-content {
        flex: 1 1 calc(100% - 34px);
    }
    .doc-link--with-qr .doc-link-qr-wrap {
        margin-left: 34px;
    }
    .doc-link--with-qr .dl-ext {
        margin-left: auto;
        align-self: center;
    }
}

/* Спойлеры */
.spoiler {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    margin-top: 18px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.spoiler.open {
    border-color: #219090;
    box-shadow: 0 6px 20px rgba(33, 144, 144, 0.1);
}
.spoiler-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 16px;
    color: #1a202c;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.spoiler-toggle:hover {
    background: #f0fbfb;
    color: #219090;
}
.spoiler-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.2s ease;
    color: #219090;
}
.spoiler.open > .spoiler-toggle svg {
    transform: rotate(180deg);
}
.spoiler.open > .spoiler-toggle {
    background: #f0fbfb;
    color: #219090;
    border-bottom: 1px solid #e2e8f0;
}
.spoiler-body {
    display: none;
    padding: 16px 22px 22px;
}
.spoiler.open > .spoiler-body {
    display: block;
    animation: docExpandFade 0.25s ease-out;
}

/* Раскрывающийся блок внутри doc-list */
.doc-list .doc-expandable {
    margin-top: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.doc-list .doc-expandable:hover {
    border-color: #219090;
    box-shadow: 0 4px 14px rgba(33, 144, 144, 0.08);
}
.doc-list .doc-expandable.open {
    border-color: #219090;
    box-shadow: 0 6px 20px rgba(33, 144, 144, 0.1);
    border-radius: 14px;
}
.doc-expandable-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.doc-expandable-toggle:hover {
    background: #f0fbfb;
    color: #219090;
}
.doc-expandable.open .doc-expandable-toggle {
    background: #f0fbfb;
    color: #219090;
    border-bottom: 1px solid #e2e8f0;
}
.doc-expandable-toggle .doc-link-main-icon {
    width: 20px;
    height: 20px;
    color: #219090;
    flex-shrink: 0;
    transform: none !important;
}
.doc-expandable-title {
    flex: 1;
}
.doc-expandable-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.doc-expandable-chevron {
    width: 18px;
    height: 18px;
    color: #219090;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.doc-expandable.open .doc-expandable-chevron {
    transform: rotate(180deg);
}
.doc-list .doc-expandable .spoiler-body {
    display: none;
    padding: 20px;
    background: #fafdfd;
}
.doc-list .doc-expandable.open > .spoiler-body {
    display: block;
}
@keyframes docExpandFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Структура организации */
.org-structure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .org-structure-grid {
        grid-template-columns: 1fr;
    }
}
.org-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.org-card--wide {
    grid-column: span 2;
}
@media (max-width: 768px) {
    .org-card--wide {
        grid-column: span 1;
    }
}
.org-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}
.org-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0fbfb;
    color: #219090;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.org-card-icon svg {
    width: 17px;
    height: 17px;
}
.org-card-header h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}
.org-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.org-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #2d3748;
    font-weight: 500;
}
.org-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #219090;
    flex-shrink: 0;
}
.org-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .org-services-grid {
        grid-template-columns: 1fr;
    }
}
.org-service-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.org-service-item--paused {
    background: #fffbf5;
    border-color: #fae3cc;
}
.org-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14.5px;
    color: #1a202c;
}
.org-service-head strong {
    font-weight: 700;
}
.org-service-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}
.org-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
    white-space: nowrap;
    flex-shrink: 0;
}
.org-outsource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .org-outsource-grid {
        grid-template-columns: 1fr;
    }
}
.org-outsource-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #2d3748;
}

/* Стили для спойлеров Вакансии, Учредители, Виды медпомощи */
.vacancies-empty {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vacancy-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #219090;
    border-radius: 8px;
    padding: 14px 18px;
}

.vacancy-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vacancy-desc {
    margin: 0;
    font-size: 0.93rem;
    color: #64748b;
    line-height: 1.5;
}

.vacancy-desc a {
    color: #219090;
    font-weight: 500;
    text-decoration: none;
}

.vacancy-desc a:hover {
    text-decoration: underline;
}

.founders-text {
    margin: 0;
    color: #1a202c;
    font-size: 15px;
    line-height: 1.5;
}

.medpom-intro {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.55;
}

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

.medpom-card {
    display: flex;
    flex-direction: column;
}

.medpom-card .org-card-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.medpom-card .org-card-header h4 {
    font-size: 14.5px;
    line-height: 1.45;
    color: #1a202c;
    font-weight: 700;
}

.medpom-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.medpom-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.45;
}

.medpom-card-list li .org-dot {
    margin-top: 0;
}

/* Ближайшее государственное учреждение (ОМС) */
.free-clinic-header {
    margin-bottom: 14px;
}
.free-clinic-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #219090;
    background: #f0fbfb;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.free-clinic-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    margin: 0;
}
.free-clinic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 768px) {
    .free-clinic-grid {
        grid-template-columns: 1fr;
    }
}
.free-clinic-branch {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.free-clinic-branch-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14.5px;
    color: #1a202c;
    line-height: 1.4;
}
.free-clinic-branch-title svg {
    width: 17px;
    height: 17px;
    color: #219090;
    flex-shrink: 0;
    margin-top: 2px;
}
.free-clinic-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.free-clinic-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
}
.free-clinic-contact-row svg {
    width: 15px;
    height: 15px;
    color: #219090;
    flex-shrink: 0;
}
.free-clinic-contact-row a {
    color: #219090;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.free-clinic-contact-row a:hover {
    color: #166565;
}
.free-clinic-schedule {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #2d3748;
}
.free-clinic-schedule-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a202c;
    font-weight: 700;
}
.free-clinic-schedule-head svg {
    width: 16px;
    height: 16px;
    color: #219090;
    flex-shrink: 0;
}
.free-clinic-schedule-items {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
}
.free-clinic-schedule-item span {
    font-weight: 700;
    color: #1a202c;
}
.free-clinic-schedule-sep {
    color: #cbd5e1;
}

/* Правила записи на прием */
.pravila-doc {
    color: #2d3748;
    font-size: 14.5px;
    line-height: 1.6;
}
.pravila-doc-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.35;
}
.pravila-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}
.pravila-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.pravila-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pravila-section p {
    margin-bottom: 8px;
    color: #2d3748;
}
.pravila-list {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pravila-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pravila-list li .org-dot {
    margin-top: 7px;
}
.pravila-schedule-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.pravila-schedule-box strong {
    color: #1a202c;
}
.pravila-callout {
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 16px;
}
.pravila-callout--info {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
}
.pravila-callout--legal {
    background: #faf8f5;
    border: 1px solid #ebdccb;
}
.pravila-callout-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.pravila-callout--info .pravila-callout-head {
    color: #0f766e;
}
.pravila-callout--legal .pravila-callout-head {
    color: #8c5b23;
}
.pravila-callout-head svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.pravila-callout p {
    margin-bottom: 8px;
}
.pravila-callout p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Страница контактов и форма обратной связи
   ========================================================================== */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2.5rem;
}
@media (max-width: 991px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}
.contact-card-box {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(49, 188, 188, 0.18);
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(14, 60, 60, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.contact-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 60, 60, 0.1);
    border-color: rgba(49, 188, 188, 0.45);
}
.contact-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e0f4f4;
    color: #219090;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.contact-card-box:hover .contact-card-icon {
    transform: scale(1.06);
    background: #d0f0f0;
}
.contact-card-icon svg {
    width: 22px;
    height: 22px;
}
.contact-card-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #219090;
    margin-bottom: 6px;
}
.contact-card-val {
    font-family: "Montserrat-Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #202626;
    margin-bottom: 6px;
    word-break: break-word;
}
.contact-card-desc {
    font-size: 13.5px;
    color: #6c757d;
    margin-bottom: 14px;
    flex-grow: 1;
}
.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #219090;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease, transform 0.2s ease;
}
.contact-card-link:hover {
    color: #b3812a;
    transform: translateX(3px);
}
.contact-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.contact-card-box:hover .contact-card-link svg {
    transform: translateX(3px);
}

.contact-eyebrow {
    display: inline-block;
    background: rgba(33, 144, 144, 0.1);
    color: #219090;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

#feedback {
    scroll-margin-top: 100px;
}

.contact-form-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(49, 188, 188, 0.18);
    padding: 36px 32px;
    box-shadow: 0 6px 24px rgba(14, 60, 60, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .contact-form-card {
        padding: 24px 18px;
    }
}

.contact-field {
    margin-bottom: 18px;
}
.contact-field label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #202626;
}
.contact-field label em {
    color: #dc3545;
    font-style: normal;
    font-weight: bold;
}
.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #202626;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #219090;
    box-shadow: 0 0 0 3px rgba(33, 144, 144, 0.15);
}
.contact-field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-consent-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13.5px;
    color: #495057;
    line-height: 1.45;
}
.contact-consent-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #219090;
    flex-shrink: 0;
    cursor: pointer;
}
.contact-consent-line a {
    color: #219090;
    text-decoration: underline;
    font-weight: 600;
}
.contact-consent-line a:hover {
    color: #b3812a;
}

.contact-sd-box {
    background: #fff;
    border: 1px solid rgba(49, 188, 188, 0.18);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 6px 24px rgba(14, 60, 60, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .contact-sd-box {
        padding: 24px 18px;
        height: auto;
    }
}
.contact-sd-box:last-child {
    margin-bottom: 0;
}
.contact-sd-box h3 {
    font-family: "Montserrat-Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.22rem;
    margin-bottom: 16px;
    color: #202626;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-sd-box h3 svg {
    width: 22px;
    height: 22px;
    color: #219090;
    flex-shrink: 0;
}

.contact-hours-table {
    width: 100%;
    font-size: 14px;
}
.contact-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(49, 188, 188, 0.25);
}
.contact-hours-row:last-child {
    border-bottom: none;
}
.contact-hours-lbl {
    font-weight: 600;
    color: #343a40;
}
.contact-hours-val {
    font-weight: 700;
    color: #219090;
}
.contact-hours-note {
    font-size: 13px;
    color: #6c757d;
    margin-top: 14px;
    line-height: 1.45;
}

.contact-requisites-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}
.contact-requisites-table tr {
    border-bottom: 1px dashed rgba(49, 188, 188, 0.22);
}
.contact-requisites-table tr:last-child {
    border-bottom: none;
}
.contact-requisites-table td {
    padding: 10px 0;
    vertical-align: top;
    text-align: left;
}
.contact-requisites-table td:first-child {
    color: #64748b;
    width: 38%;
    min-width: 155px;
    padding-right: 14px;
    font-weight: 500;
    text-align: left;
}
.contact-requisites-table td:last-child {
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
    text-align: left;
}
@media (max-width: 576px) {
    .contact-requisites-table td:first-child {
        width: 45%;
        min-width: 130px;
        padding-right: 8px;
        font-size: 13px;
    }
    .contact-requisites-table td:last-child {
        font-size: 13px;
    }
}
.contact-requisites-note {
    font-size: 12.5px;
    color: #6c757d;
    margin-top: auto;
    padding-top: 14px;
    line-height: 1.4;
}

.contact-flash-msg {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-flash-msg.ok {
    background: #e6f7f7;
    border: 1.5px solid #219090;
    color: #0f5454;
}
.contact-flash-msg.err {
    background: #fdecea;
    border: 1.5px solid #dc3545;
    color: #842029;
}
.contact-flash-msg svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-map-box {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(49, 188, 188, 0.18);
    box-shadow: 0 6px 24px rgba(14, 60, 60, 0.05);
    overflow: hidden;
    padding: 24px;
    margin-top: 2.5rem;
}
.contact-map-box iframe {
    width: 100%;
    height: 460px;
    border-radius: 14px;
    border: 0;
    display: block;
}
@media (max-width: 640px) {
    .contact-map-box {
        padding: 14px;
    }
    .contact-map-box iframe {
        height: 320px;
    }
}

/* ============================================================
   РЕКВИЗИТЫ НА ВСЮ ШИРИНУ ЭКРАНА
   ============================================================ */
.contact-requisites-fullwidth-box {
    background: #fff;
    border: 1px solid rgba(49, 188, 188, 0.2);
    border-radius: 20px;
    padding: 34px 36px;
    box-shadow: 0 6px 24px rgba(14, 60, 60, 0.05);
    margin-bottom: 2.5rem;
}
.contact-requisites-fullwidth-box h3 {
    font-family: "Montserrat-Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.28rem;
    margin-bottom: 20px;
    color: #202626;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-requisites-fullwidth-box h3 svg {
    width: 24px;
    height: 24px;
    color: #219090;
    flex-shrink: 0;
}
.contact-requisites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
}
.requisite-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(49, 188, 188, 0.22);
    font-size: 14px;
    gap: 16px;
}
.requisite-item:last-child {
    border-bottom: 1px dashed rgba(49, 188, 188, 0.22);
}
.requisite-label {
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 150px;
}
.requisite-val {
    font-weight: 600;
    color: #202626;
    text-align: right;
    word-break: break-word;
}
.contact-requisites-note-full {
    font-size: 13px;
    color: #6c757d;
    margin-top: 18px;
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    line-height: 1.45;
}
@media (max-width: 991px) {
    .contact-requisites-fullwidth-box {
        padding: 24px 20px;
    }
    .contact-requisites-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .requisite-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .requisite-val {
        text-align: left;
    }
}

/* ============================================================
   АНКЕТА ОЦЕНКИ КАЧЕСТВА И ОБРАТНОЙ СВЯЗИ
   ============================================================ */
.only-comment-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 13px 18px;
    margin: 18px 0 22px;
    transition: background-color 0.2s ease;
}
.only-comment-box:hover {
    background: #f1f5f9;
}
.only-comment-box .sub-hint {
    font-weight: normal;
    color: #64748b;
    font-size: 13px;
    margin-left: 4px;
}
.custom-checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #334155;
    margin: 0;
    font-weight: 600;
}
.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.custom-checkbox-container .checkmark {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #94a3b8;
    border-radius: 5px;
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}
.custom-checkbox-container:hover input ~ .checkmark {
    border-color: #219090;
}
.custom-checkbox-container input:checked ~ .checkmark {
    background-color: #219090;
    border-color: #219090;
}
.custom-checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.survey-block {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
    margin-bottom: 24px;
    max-height: 1500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}
.survey-block.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
    border-width: 0;
    pointer-events: none;
}
.survey-inner {
    padding: 24px;
}
.survey-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ccfbf1;
}
.survey-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #219090;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.survey-title {
    font-size: 17px;
    font-weight: 700;
    color: #0e3c3c;
    margin-bottom: 4px;
}
.survey-subtitle {
    font-size: 13.5px;
    color: #176d6d;
    margin-bottom: 0;
}
/* Компактная карточка формы на ПК */
.feedback-compact-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 34px 34px;
}
@media (max-width: 768px) {
    .feedback-compact-card {
        padding: 22px 16px;
    }
}

/* Компактная сетка вопросов анкеты (2 колонки на ПК) */
.survey-questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.survey-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.survey-card-item:hover {
    border-color: #5eead4;
    box-shadow: 0 4px 12px rgba(33, 144, 144, 0.08);
}
.survey-card-question {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}
.survey-card-item-featured {
    grid-column: 1 / -1;
    background: #f0fdfa;
    border: 1.5px solid #99f6e4;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
}
.survey-card-item-featured:hover {
    border-color: #219090;
    box-shadow: 0 4px 14px rgba(33, 144, 144, 0.12);
}
.q-num {
    width: 22px;
    height: 22px;
    background: #e2e8f0;
    color: #0e3c3c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.q-num-featured {
    background: #219090;
    color: #ffffff;
}
.star-rating-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.survey-card-item-featured .star-rating-box {
    width: auto;
    flex-shrink: 0;
    gap: 14px;
}
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 3px;
    font-size: 24px;
    line-height: 1;
    user-select: none;
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    color: #cbd5e1;
    cursor: pointer;
    margin: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f59e0b;
    transform: scale(1.18);
}
.star-rating input:checked ~ label {
    color: #f59e0b;
}
.rating-text {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    text-align: right;
    display: inline-block;
}

/* Компактная кнопка отправки */
.btn-feedback-submit-compact {
    min-width: 260px;
    max-width: 340px;
    width: 100%;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(33, 144, 144, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-feedback-submit-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 144, 144, 0.32);
}

@media (max-width: 768px) {
    .survey-inner {
        padding: 16px 14px;
    }
    .survey-questions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .survey-card-item-featured {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .survey-card-item-featured .star-rating-box {
        width: 100%;
    }
}

/* ==========================================================================
   Информация о платных услугах и страница «Государственные гарантии»
   ========================================================================== */
.plat-info-content {
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
}
.plat-info-content p {
    margin-bottom: 14px;
}
.plat-info-content p:last-of-type {
    margin-bottom: 16px;
}
.plat-info-link-wrap {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.plat-info-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #eef8f8;
    border: 1px solid #c2e5e5;
    border-radius: 10px;
    color: #177474;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.plat-info-link:hover {
    background: #219090;
    color: #ffffff;
    border-color: #219090;
    box-shadow: 0 4px 14px rgba(33, 144, 144, 0.2);
}
.plat-info-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.plat-info-link-badge {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Стили страницы «Государственные гарантии» (сдержанное оформление) */
.gos-garantii-article {
    max-width: 1000px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #374151;
}
.gos-garantii-article h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f6;
}
.gos-garantii-article h2:first-of-type {
    margin-top: 10px;
}
.gos-garantii-notice {
    background: #f8fafc;
    border-left: 3px solid #219090;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 18px 0;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.6;
}
.gos-garantii-list {
    margin: 14px 0 18px 0;
    padding-left: 20px;
}
.gos-garantii-list li {
    margin-bottom: 10px;
    line-height: 1.65;
}
.gos-clinic-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 18px 0;
}
.gos-clinic-name {
    font-size: 16.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.gos-clinic-details p {
    font-size: 14.5px;
    color: #475569;
}
.gos-clinic-details a {
    color: #219090;
    font-weight: 600;
    text-decoration: none;
}
.gos-clinic-details a:hover {
    text-decoration: underline;
}
.gos-garantii-nav-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 768px) {
    .gos-garantii-article h2 {
        font-size: 18px;
        margin-top: 28px;
    }
    .gos-clinic-info {
        padding: 14px 16px;
    }
    .plat-info-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}




