/*
Theme Name: White Orel Dental
Theme URI: https://white-orel.ru
Author: Леонид Саровский
Author URI: https://DoctorBlack.ru
Description: Тема для сайта стоматологии White — Орёл. HTML-структура полностью перенесена в WordPress.
Version: 1.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: white-orel
Tags: dental, clinic, medical, responsive
*/

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'HelveticaNeueCur', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    /* Предотвращаем горизонтальный скролл от «вытекающей» 4-й карточки направлений. */
    overflow-x: clip;
}

/* Основной контейнер */
.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: 127px;
    background-color: #1D1D1D;
    width: 100%;
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* Первый блок: Логотип и название */
.header-logo-block {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 13px;
}

.site-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400; /* Roman */
    white-space: nowrap;
}

/* Второй блок: Меню навигации */
.header-menu-block {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    list-style: none;
}

.menu-item,
.main-menu li a {
    display: inline-block;
    background-color: #D9D9D9;
    color: #1D1D1D;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 40px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.menu-item:hover,
.main-menu li a:hover {
    background-color: #c0c0c0;
}

/* Третий блок: Иконки */
.header-icons-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
}

.icon-circle {
    width: 71px;
    height: 71px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.burger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Header Breadcrumbs */
.header-breadcrumbs {
    background-color: #ffffff;
    width: 100%;
    padding: 15px 0;
}

.breadcrumbs-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #525252;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #000000;
}

.breadcrumb-separator {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #525252;
}

.breadcrumb-current {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #525252;
}

/* Основной контент */
.main-content {
    min-height: calc(100vh - 127px);
    padding: 40px 20px;
}

/* Footer */
.footer {
    background-color: #1D1D1D;
    width: 100%;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Accordion */
.footer-accordion-header {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    cursor: default;
    padding: 0;
    text-align: left;
    align-items: center;
    justify-content: space-between;
}

.accordion-icon {
    display: none;
    width: 12px;
    height: 12px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #8A8A8A;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 5px;
    left: 0;
}

.accordion-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 5px;
}

.footer-accordion.active .accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.footer-accordion-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.footer-block {
    width: 100%;
}

.footer-top-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column:nth-child(1) {
    flex: 1.3;
}

.footer-column:nth-child(2) {
    flex: 1.3;
}

.footer-column:nth-child(3) {
    flex: 0.6;
}

.footer-column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.footer-column-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #8A8A8A;
    margin: 0 0 15px 0;
}

.footer-company-name {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #8A8A8A;
    margin: 0 0 15px 0;
    text-align: right;
}

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

.footer-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-company-info {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF;
    text-align: right;
}

.footer-company-info p {
    margin: 5px 0;
}

.footer-license {
    margin-top: 60px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #FFFFFF;
    text-align: right;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer-middle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-contacts-title h2 {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #666666;
    margin: 0;
}

.footer-phone,
.footer-email {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-label {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #525252;
    text-align: left;
}

.footer-phone a,
.footer-email a {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-phone a:hover,
.footer-email a:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 13px;
}

.social-circle {
    width: 71px;
    height: 71px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #666666;
    margin-bottom: 20px;
}

.footer-disclaimer {
    font-size: 14px;
    color: #666666;
    text-align: center;
}

/* Contacts Page */
.contacts-page {
    padding: 60px 0;
    min-height: auto;
}

.contacts-header-block {
    margin-bottom: 40px;
}

.contacts-info-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 0px;
}

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

.contacts-info-label {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #525252;
}

.contacts-info-value {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contacts-info-value:hover {
    opacity: 0.7;
}

.contacts-button-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contacts-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 28px 39px 27px 40px;
    gap: 10px;
    width: 240px;
    height: 71px;
    background: #1D1D1D;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.contacts-btn:hover {
    background-color: #333333;
}

/* Reviews Page */
.reviews-page {
    padding: 60px 0;
    min-height: auto;
}

/* Info Page */
.info-page {
    padding: 60px 0;
    min-height: auto;
}

.info-header-block {
    margin-bottom: 20px;
}

.info-page-lead {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #525252;
    margin: 16px 0 0;
    max-width: 780px;
}

.info-page-intro {
    margin-top: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }
}

.info-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #F4F4F4;
    box-sizing: border-box;
    min-height: 173px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.info-card:hover {
    background-color: #FAFAFA;
}

.info-card-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 32px;
    text-decoration-line: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 6px;
    color: #000000;
    margin: 0;
}

.info-card-btn {
    align-self: flex-end;
    width: 51px;
    height: 51px;
    background: #1D1D1D;
    border-radius: 5554px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 20px;
}

.info-card-btn svg {
    width: 24px;
    height: 24px;
}

.info-page-disclaimer,
.info-page-empty {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #868686;
    margin: 40px 0 0;
    max-width: 900px;
}

body.info-doc-modal-open {
    overflow: hidden;
}

.info-doc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.info-doc-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.info-doc-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    background: #FFFFFF;
    padding: 36px 40px 40px;
    box-sizing: border-box;
    outline: none;
}

.info-doc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-doc-modal-close:hover {
    opacity: 0.6;
}

.info-doc-modal-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #000000;
    margin: 0 40px 24px 0;
}

.info-doc-modal-body,
.info-single-content {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #525252;
}

.info-doc-modal-body h2,
.info-single-content h2 {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 400;
    color: #000000;
    margin: 28px 0 12px;
}

.info-doc-modal-body h2:first-child,
.info-single-content h2:first-child {
    margin-top: 0;
}

.info-doc-modal-body h3,
.info-single-content h3 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
    color: #000000;
    margin: 20px 0 10px;
}

.info-doc-modal-body p,
.info-single-content p {
    margin: 0 0 12px;
}

.info-doc-modal-body ul,
.info-single-content ul {
    margin: 0 0 14px;
    padding-left: 1.25em;
}

.info-doc-modal-body li,
.info-single-content li {
    margin-bottom: 8px;
}

.info-doc-modal-body em,
.info-single-content em {
    color: #868686;
    font-style: italic;
}

.info-single-page {
    padding: 60px 0;
}

.info-single-back {
    margin: 0 0 24px;
}

.info-single-back a {
    color: #525252;
    text-decoration: none;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.info-single-back a:hover {
    color: #000000;
}

.info-single-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.15;
    color: #000000;
    margin: 0 0 28px;
}

@media (max-width: 768px) {
    .info-card-title {
        font-size: 22px;
        line-height: 26px;
    }

    .info-doc-modal {
        padding: 28px 20px 28px;
        max-height: 90vh;
    }

    .info-doc-modal-title {
        font-size: 24px;
        margin-right: 36px;
    }

    .info-single-title {
        font-size: 28px;
    }
}

.reviews-header-block {
    margin-bottom: 20px;
}

.reviews-subtitle-block {
    margin-bottom: 40px;
}

.reviews-subtitle {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

.reviews-actions-block {
    margin-top: 50px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviews-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 28px 39px 27px 40px;
    gap: 10px;
    width: 277px;
    height: 71px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.reviews-btn-primary {
    background: #1D1D1D;
    border: none;
    color: #FFFFFF;
}

.reviews-btn-primary:hover {
    background: #333333;
}

.reviews-btn-secondary {
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
}

.reviews-btn-secondary:hover {
    background: #f5f5f5;
}

.reviews-images-block {
    margin-top: 80px;
    margin-bottom: 80px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.review-image {
    flex: 1;
    max-width: 100%;
    height: auto;
}

.contacts-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 86px;
    line-height: 86px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.contacts-map {
    width: 100%;
    line-height: 0;
    margin-top: 0;
    filter: grayscale(100%);
}

.contacts-map iframe,
.contacts-map > script + * {
    display: block;
    width: 100%;
}

/* Front Hero (главная страница) */
.front-hero {
    width: 100%;
    height: 100vh;
    max-height: 1117px;
    background-color: #1D1D1D;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.front-hero .front-hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    padding-top: 38px;
    padding-bottom: 60px;
}

.front-hero-top {
    width: 100%;
}

/* На главной странице меню должно остаться читаемым на тёмном фото — */
/* пилюли уже серые, поэтому отдельных правил для .header-content внутри .front-hero не требуется. */

.front-hero-bottom {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.front-hero-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.front-hero-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.front-hero-title {
    width: 668px;
    max-width: 100%;
    height: 92px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 46px;
    color: #FFFFFF;
    margin: 0;
}

.front-hero-subtitle {
    width: 537px;
    max-width: 100%;
    height: 56px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 21px;
    line-height: 28px;
    color: #DCDCDC;
    margin: 0;
}

.front-hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 0;
}

.front-hero-btn {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 240px;
    height: 71px;
    border-radius: 4px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.front-hero-btn-primary {
    padding: 28px 39px 27px 40px;
    background: #1D1D1D;
    border: none;
}

.front-hero-btn-primary:hover {
    background: #333333;
}

.front-hero-btn-secondary {
    padding: 28px 73px 27px 74px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.front-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.front-hero-features {
    width: auto;
    height: 14px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    text-align: left;
    color: #DCDCDC;
    margin: 0;
}

.front-hero-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 10px;
    flex-shrink: 0;
}

.front-hero-phone,
.front-hero-address {
    width: auto;
    min-width: 338px;
    max-width: 100%;
    height: 42px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 42px;
    line-height: 42px;
    color: #FFFFFF;
    text-decoration: none;
    text-align: right;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.front-hero-phone:hover {
    opacity: 0.8;
}

/* Directions Section (главная: блок «Направления» с каруселью) */
.directions-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 80px 0 60px;
}

.directions-container {
    /* Полностью использует .container (max-width 1480, padding 20). */
}

.directions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.directions-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 86px;
    line-height: 86px;
    color: #000000;
    margin: 0;
}

.directions-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.directions-nav-btn {
    width: 71px;
    height: 71px;
    border-radius: 5554px;
    background: #1D1D1D;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.directions-nav-btn:hover {
    opacity: 0.85;
}

.directions-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.directions-nav-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.directions-slider {
    position: relative;
    width: 100%;
    /* Не клипуем 4-ю карточку — пусть уходит правой частью за пределы вьюпорта. */
    overflow: visible;
}

.directions-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.direction-card {
    flex: 0 0 397px;
    width: 397px;
    height: 532px;
    background: linear-gradient(25.43deg, #F2F2F2 41.52%, #FFFFFF 100%);
    padding: 35px;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Direction Card Image (centered photo from ACF) */
.direction-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Затемнение поверх фото */
.direction-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

.direction-card:hover::after {
    background: rgba(0, 0, 0, 0.45);
}

.direction-card-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #E8E8E8 25%, #F5F5F5 50%, #E8E8E8 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
    z-index: 1;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.direction-card-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.direction-card-img.loaded {
    opacity: 1;
}

.direction-card:hover .direction-card-img {
    transform: scale(1.07);
}

.direction-card-skeleton.hidden {
    display: none;
}

.direction-card-title {
    display: block;
    position: relative;
    z-index: 3;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 36px;
    color: #FFFFFF;
    max-width: 240px;
}

/* CTA-кнопка под каруселями («Смотреть все...») */
.section-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.section-cta-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 28px 73px 27px 74px;
    gap: 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.section-cta-btn:hover {
    background-color: #1D1D1D;
    color: #FFFFFF;
}

/* На мобильных разрешениях карусель ничего не «выпускает» в поле экрана — обрезаем лишнее. */
@media (max-width: 992px) {
    .directions-section .directions-slider {
        overflow: hidden;
    }
}

/* News Section (главная: блок «Новости») */
.news-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 80px 0 90px;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.news-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #000000;
    margin: 0;
}

.news-slider {
    position: relative;
    width: 100%;
    overflow: visible;
}

.news-track {
    display: flex;
    gap: 22px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.news-card {
    flex: 0 0 397px;
    width: 397px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    opacity: 0.85;
}

.news-card-image {
    width: 397px;
    height: 285px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-placeholder {
    background-color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #000000;
    margin: 30px 0 0;
    max-width: 362px;
}

.news-card-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #525252;
    margin: 20px 0 0;
    max-width: 397px;
}

@media (max-width: 992px) {
    .news-section .news-slider {
        overflow: hidden;
    }

    .news-section {
        padding: 60px 0 50px;
    }

    .news-header {
        margin-bottom: 30px;
        gap: 15px;
    }

    .news-title {
        font-size: 32px;
        line-height: 32px;
    }

    .news-track {
        gap: 15px;
    }

    .news-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .news-card-image {
        width: 100%;
        height: 220px;
    }

    .news-card-title {
        font-size: 22px;
        line-height: 24px;
    }

    .news-card-text {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Equipment Section (главная: блок «Современное оборудование») */
.equipment-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 80px 0 90px;
}

.equipment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.equipment-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #000000;
    margin: 0;
}

.equipment-slider {
    position: relative;
    width: 100%;
    overflow: visible;
}

.equipment-track {
    display: flex;
    gap: 22px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.equipment-card {
    flex: 0 0 397px;
    width: 397px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.equipment-card-image {
    width: 397px;
    height: 285px;
    overflow: hidden;
    flex-shrink: 0;
}

.equipment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipment-card-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #000000;
    margin: 30px 0 0;
    max-width: 362px;
}

.equipment-card-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #525252;
    margin: 20px 0 0;
    max-width: 397px;
}

@media (max-width: 992px) {
    .equipment-section .equipment-slider {
        overflow: hidden;
    }

    .equipment-section {
        padding: 60px 0 50px;
    }

    .equipment-header {
        margin-bottom: 30px;
        gap: 15px;
    }

    .equipment-title {
        font-size: 32px;
        line-height: 32px;
    }

    .equipment-track {
        gap: 15px;
    }

    .equipment-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .equipment-card-image {
        width: 100%;
        height: 220px;
    }

    .equipment-card-title {
        font-size: 22px;
        line-height: 24px;
    }

    .equipment-card-text {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Uslugi Page (Услуги и цены) */
.uslugi-page {
    padding: 60px 0;
    min-height: auto;
}

.uslugi-header-block {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.uslugi-header-text {
    flex: 1;
    min-width: 0;
}

.uslugi-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.05;
    color: #000000;
    margin: 0 0 16px;
    text-align: left;
}

.uslugi-subtitle {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #525252;
    margin: 0;
    max-width: 640px;
}

.uslugi-header-actions {
    flex-shrink: 0;
}

.uslugi-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Левая колонка: Направления */
.uslugi-directions-column {
    flex: 0 0 28%;
    width: 28%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.uslugi-directions-chips {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.uslugi-direction-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    width: 100%;
    padding: 16px 0;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.2s ease;
    border: none;
    border-bottom: 1px solid #D4D4D4;
    background: transparent;
    text-align: left;
    position: relative;
    font: inherit;
    color: inherit;
}

.uslugi-direction-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.uslugi-direction-item:hover::after,
.uslugi-direction-item.active::after {
    width: 100%;
}

.uslugi-direction-name {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #000000;
    flex: 1;
    min-width: 0;
}

.uslugi-direction-meta {
    flex: 1 0 100%;
    order: 3;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 16px;
    color: #868686;
}

.uslugi-direction-item.active .uslugi-direction-meta {
    color: #525252;
}

.uslugi-direction-arrow {
    flex-shrink: 0;
    margin-left: auto;
    color: #000000;
    opacity: 0.35;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.uslugi-direction-item:hover .uslugi-direction-arrow,
.uslugi-direction-item.active .uslugi-direction-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Правая колонка: Услуги */
.uslugi-services-column {
    flex: 0 0 72%;
    width: 72%;
    min-width: 0;
}

.uslugi-search-wrap {
    margin-bottom: 24px;
}

.uslugi-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1px solid #D4D4D4;
    background: #FFFFFF;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    outline: none;
    transition: border-color 0.2s ease;
}

.uslugi-search-input:focus {
    border-color: #000000;
}

.uslugi-search-input::placeholder {
    color: #868686;
}

.uslugi-search-hint {
    margin: 10px 0 0;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #868686;
}

.uslugi-services-group {
    display: none;
}

.uslugi-services-group.visible {
    display: block;
}

.uslugi-group-header {
    margin-bottom: 20px;
}

.uslugi-group-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.15;
    color: #000000;
    margin: 0 0 8px;
}

.uslugi-group-badge {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #525252;
    margin: 0 0 10px;
}

.uslugi-group-desc {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #525252;
    margin: 0;
    max-width: 720px;
}

.uslugi-group-seo {
    position: relative;
    margin: 0 0 40px;
    padding: 32px;
    background-color: #1D1D1D;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.uslugi-group-seo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.uslugi-group-seo > * {
    position: relative;
    z-index: 2;
}

.uslugi-group-seo-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.uslugi-group-seo-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #FFFFFF;
    max-width: 820px;
}

.uslugi-group-seo-text p {
    margin: 0 0 14px;
}

.uslugi-group-seo-text p:last-child {
    margin-bottom: 0;
}

.uslugi-group-seo-text ul {
    margin: 0 0 14px;
    padding-left: 1.25em;
}

.uslugi-group-seo-text li {
    margin-bottom: 8px;
}

.uslugi-group-seo-text li:last-child {
    margin-bottom: 0;
}

.uslugi-group-seo-text a {
    color: #FFFFFF;
}

.uslugi-group-seo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 28px;
    background: #FFFFFF;
    color: #1D1D1D;
    text-decoration: none;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.uslugi-group-seo-cta:hover {
    opacity: 0.85;
    color: #1D1D1D;
}

.uslugi-price-table {
    margin-top: 0;
}

.price-row--link {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    min-height: 56px;
    height: auto;
    padding: 14px 20px;
    transition: background-color 0.2s ease;
}

.price-row--link:hover {
    background: #EBEBEB;
}

.price-row--link .price-row-name {
    padding-right: 12px;
}

.price-row-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 12px;
    color: #000000;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.price-row--link:hover .price-row-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.price-row--link.is-hidden {
    display: none;
}

.uslugi-no-services {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #666666;
    padding: 40px 0;
}

.uslugi-bottom-cta {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #D4D4D4;
}

.uslugi-disclaimer {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #868686;
    margin: 0 0 28px;
    max-width: 900px;
}

.uslugi-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: #F5F5F5;
}

.uslugi-bottom-cta-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 8px;
}

.uslugi-bottom-cta-subtitle {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #525252;
    margin: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive для страницы услуг */
@media (max-width: 992px) {
    .uslugi-header-block {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .uslugi-title {
        font-size: 32px;
    }

    .uslugi-content-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .uslugi-directions-column,
    .uslugi-services-column {
        flex: 0 0 100%;
        width: 100%;
        position: static;
    }

    .uslugi-directions-chips {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .uslugi-direction-item {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 160px;
        max-width: 220px;
        padding: 14px 16px;
        border: 1px solid #D4D4D4;
        border-bottom: 1px solid #D4D4D4;
        background: #FFFFFF;
    }

    .uslugi-direction-item.active {
        border-color: #000000;
        background: #F5F5F5;
    }

    .uslugi-direction-item::after {
        display: none;
    }

    .uslugi-direction-meta {
        flex: none;
        order: 0;
    }

    .uslugi-direction-arrow {
        display: none;
    }

    .uslugi-group-title {
        font-size: 26px;
    }

    .uslugi-bottom-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .uslugi-group-seo {
        padding: 24px;
    }

    .uslugi-group-seo-title {
        font-size: 22px;
    }

    .price-row--link {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 8px;
    }

    .price-row--link .price-row-code {
        min-width: 0;
        margin-right: 12px;
        font-size: 14px;
    }

    .price-row--link .price-row-name {
        flex: 1 1 calc(100% - 40px);
        font-size: 16px;
        line-height: 22px;
        order: 2;
        width: 100%;
        padding-right: 0;
    }

    .price-row--link .price-row-price {
        margin-left: auto;
        font-size: 16px;
        order: 1;
    }

    .price-row--link .price-row-arrow {
        order: 1;
    }
}

@media (max-width: 576px) {
    .uslugi-page {
        padding: 40px 0;
    }

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

    .uslugi-bottom-cta-title {
        font-size: 22px;
    }
}

/* About Clinic Section (главная страница: О клинике) */
.about-clinic-section {
    width: 100%;
    background-color: #F5F5F5;
    padding: 0;
}

/* News Page (/novosti/) */
.news-page {
    padding: 60px 0;
    min-height: auto;
}

.news-page-header {
    margin-bottom: 60px;
}

.news-page-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 86px;
    line-height: 86px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.news-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-page-grid .news-card {
    flex: none;
    width: 100%;
}

.news-page-grid .news-card-image {
    width: 100%;
}

.news-page-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    color: #666666;
}

/* Responsive для страницы новостей */
@media (max-width: 1200px) {
    .news-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .news-page-header {
        margin-bottom: 40px;
    }

    .news-page-title {
        font-size: 48px;
        line-height: 48px;
    }

    .news-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .news-card-image {
        width: 100%;
        height: 220px;
    }

    .news-card-title {
        font-size: 22px;
        line-height: 24px;
    }

    .news-card-text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 576px) {
    .news-page-title {
        font-size: 36px;
        line-height: 36px;
    }

    .news-page-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Post Page (страница записи) */
.single-post-page {
    padding: 60px 0;
    min-height: auto;
}

.single-post-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.single-post-content {
    flex: 0 0 75%;
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.single-post-image {
    width: 100%;
    height: 735px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 48px;
    line-height: 47px;
    color: #000000;
    margin: 70px 0 0;
}

.single-post-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    text-align: justify;
    color: #525252;
    margin-top: 30px;
}

.single-post-text p {
    margin: 0 0 24px;
}

.single-post-text p:last-child {
    margin-bottom: 0;
}

.single-post-text h2,
.single-post-text h3,
.single-post-text h4 {
    color: #000000;
    margin: 40px 0 16px;
}

.single-post-text ul,
.single-post-text ol {
    margin: 0 0 24px;
    padding-left: 30px;
}

.single-post-text li {
    margin-bottom: 10px;
}

.single-post-text img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    display: block;
}

.single-post-text blockquote {
    border-left: 3px solid #1D1D1D;
    padding: 10px 0 10px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #333333;
}

/* Sidebar (правая колонка) */
.single-post-sidebar {
    flex: 0 0 25%;
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.single-sidebar-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

.single-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.single-sidebar-card:hover {
    opacity: 0.75;
}

.single-sidebar-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.single-sidebar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-sidebar-card-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #000000;
    margin: 0;
}

.single-sidebar-card-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #525252;
    margin: 0;
}

/* Single Post Responsive */
@media (max-width: 992px) {
    .single-post-row {
        flex-direction: column;
        gap: 50px;
    }

    .single-post-content,
    .single-post-sidebar {
        flex: 0 0 100%;
        width: 100%;
    }

    .single-post-image {
        height: 400px;
    }

    .single-post-title {
        font-size: 32px;
        line-height: 36px;
        margin-top: 40px;
    }

    .single-post-text {
        font-size: 17px;
        line-height: 28px;
        margin-top: 24px;
    }
}

@media (max-width: 576px) {
    .single-post-image {
        height: 260px;
    }

    .single-post-title {
        font-size: 26px;
        line-height: 30px;
        margin-top: 30px;
    }

    .single-post-text {
        font-size: 16px;
        line-height: 26px;
        margin-top: 20px;
    }
}

/* Team Section (главная страница: Команда профессионалов) */
.team-section {
    width: 100%;
    background-color: #1D1D1D;
    padding: 80px 0;
}

/* Белый разделитель на странице врачей */
.vrachi-spacer {
    width: 100%;
    height: 40px;
    background-color: #ffffff;
}

/* CTA блок на странице врачей */
.vrachi-cta-section {
    width: 100%;
    background-color: #F5F5F5;
    padding: 60px 0;
}

.vrachi-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.vrachi-cta-text {
    flex: 0 0 calc(75% - 30px);
    width: calc(75% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.vrachi-cta-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 48px;
    line-height: 47px;
    color: #000000;
    margin: 0;
}

.vrachi-cta-subtitle {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 30px;
    color: #000000;
    margin: 0;
}

.vrachi-cta-form {
    flex: 0 0 calc(25% - 10px);
    width: calc(25% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Форма заявки */
.vrachi-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vrachi-form-input {
    width: 100%;
    height: 67px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 4px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #525252;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.vrachi-form-input::placeholder {
    color: #525252;
}

.vrachi-form-input:focus {
    outline: none;
    border-color: #1D1D1D;
}

.vrachi-form-btn {
    width: 100%;
    height: 71px;
    padding: 0;
    background: #1D1D1D;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.vrachi-form-btn:hover {
    background: #333333;
}

.vrachi-form-disclaimer {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 15px;
    color: #000000;
    margin: 0;
    text-align: center;
}

.team-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 86px;
    line-height: 86px;
    color: #FFFFFF;
    margin: 0 0 60px 0;
}

.team-title br {
    display: block;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 96px;
    margin-bottom: 80px;
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-member:nth-child(odd) {
    flex-direction: row-reverse;
}

.team-member-image {
    flex: 0 0 397px;
    width: 397px;
    height: 532px;
    overflow: hidden;
    flex-shrink: 0;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: center;
}

.team-member-name {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 36px;
    color: #FFFFFF;
    margin: 0;
}

.team-member-description {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 21px;
    line-height: 28px;
    color: #DCDCDC;
    margin: 0;
}

.team-empty {
    text-align: center;
    padding: 80px 0;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    color: #DCDCDC;
}

.about-clinic-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.about-clinic-text {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 860px;
    flex: 1;
    padding: 80px 0;
}

.about-clinic-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #000000;
    margin: 0;
}

.about-clinic-description {
    width: 860px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-clinic-description p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 29px;
    color: #000000;
    margin: 0;
}

.about-clinic-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-clinic-read-more {
    align-self: flex-start;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 29px;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.about-clinic-read-more:hover {
    opacity: 0.7;
}

.about-clinic-popup {
    width: 760px;
    padding: 50px 40px 40px;
}

.about-clinic-popup-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-clinic-popup-body p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 26px;
    color: #000000;
    margin: 0;
}

.about-clinic-popup-subheading {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    color: #000000;
}

.about-clinic-image {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    flex-shrink: 0;
    align-self: stretch;
}

.about-clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1200px) {
    .team-section {
        padding: 60px 0;
    }

    .team-title {
        font-size: 64px;
        line-height: 64px;
    }

    .team-member {
        gap: 60px;
        margin-bottom: 60px;
    }

    .team-member-image {
        flex: 0 0 300px;
        width: 300px;
        height: 400px;
    }

    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-item,
    .main-menu li a {
        font-size: 14px;
        padding: 6px 10px;
    }
}

@media (max-width: 992px) {
    .site-title {
        display: none;
    }

    .logo {
        margin-right: 0;
    }

    .burger-menu {
        display: flex;
    }

    .main-menu {
        position: fixed;
        top: 127px;
        left: 0;
        right: 0;
        background-color: #1D1D1D;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .main-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-item,
    .main-menu li a {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .footer-top-content {
        flex-direction: column;
        gap: 0;
    }

    .footer-column:nth-child(1),
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        flex: 1;
    }

    .footer-accordion-header {
        display: flex;
        border-bottom: 1px solid #333;
        position: relative;
        cursor: pointer;
        padding: 15px 0;
    }

    .accordion-icon {
        display: block;
    }

    .footer-column-title {
        flex: 1;
        text-align: left;
    }

    .accordion-icon {
        flex-shrink: 0;
        margin-left: 10px;
    }

    .footer-accordion-content {
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .footer-accordion.active .footer-accordion-content {
        max-height: 500px;
    }

    .footer-two-columns {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 0 20px 20px;
    }

    .footer-middle-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contacts-title h2 {
        font-size: 36px;
    }

    .footer-phone a,
    .footer-email a {
        font-size: 20px;
        line-height: 20px;
    }

    .footer-accordion {
        width: 100%;
    }

    .footer-column {
        width: 100%;
        padding-top: 20px;
    }

    .footer-block-top {
        margin-bottom: 20px;
    }

    .footer-phone,
    .footer-email {
        width: 100%;
    }

    .footer-social {
        width: 100%;
        justify-content: flex-start;
    }

    .social-circle {
        width: 50px;
        height: 50px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }

    /* Contacts Page Mobile */
    .contacts-title {
        font-size: 48px;
        line-height: 48px;
    }

    .contacts-info-block {
        flex-direction: column;
        gap: 30px;
    }

    .contacts-info-item {
        width: 100%;
    }

    .contacts-info-value {
        font-size: 20px;
        line-height: 20px;
    }

    .contacts-button-wrapper {
        width: 100%;
        justify-content: flex-start;
    }

    .contacts-btn {
        width: 100%;
        padding: 20px;
        height: auto;
    }

    /* Reviews Page Mobile */
    .reviews-actions-block {
        flex-direction: column;
        width: 100%;
    }

    .reviews-btn {
        width: 100%;
        padding: 20px;
        height: auto;
    }

    .reviews-images-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Front Hero Mobile */
    .front-hero {
        height: auto;
        max-height: none;
        min-height: 760px;
    }

    .front-hero .front-hero-container {
        padding-top: 20px;
        padding-bottom: 40px;
        gap: 60px;
    }

    .front-hero-row {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .front-hero-title {
        width: 100%;
        height: auto;
        font-size: 32px;
        line-height: 32px;
    }

    .front-hero-subtitle {
        width: 100%;
        height: auto;
        font-size: 16px;
        line-height: 22px;
    }

    .front-hero-contacts {
        align-items: flex-start;
        text-align: left;
    }

    .front-hero-phone,
    .front-hero-address {
        width: 100%;
        min-width: 0;
        height: auto;
        font-size: 24px;
        line-height: 28px;
        text-align: left;
        white-space: normal;
    }

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

    .front-hero-btn {
        width: 100%;
        height: auto;
        padding: 18px 20px;
    }

    .front-hero-btn-secondary {
        padding: 18px 20px;
    }

    .front-hero-features {
        height: auto;
    }

    /* Directions Mobile (по 1 карточке) */
    .directions-section {
        padding: 60px 0 40px;
    }

    .directions-header {
        margin-bottom: 30px;
        gap: 15px;
    }

    .directions-title {
        font-size: 36px;
        line-height: 36px;
    }

    .directions-nav-btn {
        width: 48px;
        height: 48px;
    }

    .directions-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .directions-track {
        gap: 15px;
    }

    .direction-card {
        flex: 0 0 100%;
        width: 100%;
        height: 420px;
        padding: 25px;
    }

    .direction-card-title {
        font-size: 28px;
        line-height: 32px;
    }

    /* About Clinic Mobile */
    .about-clinic-section {
        padding: 0;
    }

    .about-clinic-row {
        flex-direction: column;
        gap: 30px;
    }

    .about-clinic-text {
        gap: 30px;
    }

    .about-clinic-title {
        font-size: 32px;
        line-height: 32px;
    }

    .about-clinic-description {
        width: 100%;
    }

    .about-clinic-description p,
    .about-clinic-read-more {
        font-size: 18px;
        line-height: 24px;
    }

    .about-clinic-read-more {
        text-underline-offset: 6px;
    }

    .about-clinic-popup {
        width: 100%;
        padding: 40px 24px 32px;
    }

    .about-clinic-popup-body p {
        font-size: 16px;
        line-height: 24px;
    }

    .about-clinic-popup-subheading {
        font-size: 18px;
        line-height: 22px;
    }

    .about-clinic-image {
        justify-content: center;
    }

    /* Team Mobile */
    .team-section {
        padding: 60px 0;
    }

    .team-title {
        font-size: 36px;
        line-height: 36px;
        margin-bottom: 40px;
    }

    .team-member,
    .team-member:nth-child(odd) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .team-member:last-child {
        margin-bottom: 0;
    }

    .team-member-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 397px;
        height: auto;
        aspect-ratio: 397 / 532;
    }

    .team-member-name {
        font-size: 28px;
        line-height: 32px;
    }

    .team-member-description {
        font-size: 16px;
        line-height: 24px;
    }

    /* Vrachi CTA Mobile */
    .vrachi-cta-section {
        padding: 40px 0;
    }

    .vrachi-cta-row {
        flex-direction: column;
        gap: 30px;
    }

    .vrachi-cta-text,
    .vrachi-cta-form {
        flex: 0 0 100%;
        width: 100%;
    }

    .vrachi-cta-title {
        font-size: 32px;
        line-height: 36px;
    }

    .vrachi-cta-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .vrachi-form-input {
        height: 60px;
        font-size: 14px;
    }

    .vrachi-form-btn {
        height: 64px;
        padding: 20px;
        font-size: 14px;
    }

    .vrachi-form-disclaimer {
        font-size: 11px;
        line-height: 14px;
    }
}

/* Appointment Popup */
.appointment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.appointment-popup {
    position: relative;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 50px 40px 40px;
    width: 420px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.appointment-overlay.active .appointment-popup {
    transform: translateY(0) scale(1);
}

.appointment-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: color 0.3s ease;
    padding: 0;
}

.appointment-popup-close:hover {
    color: #000000;
}

.appointment-popup-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #000000;
    margin: 0 0 12px;
}

.appointment-popup-subtitle {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    color: #525252;
    margin: 0 0 30px;
}

.appointment-popup-form,
.question-popup-form,
.review-popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-popup-input {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #D4D4D4;
    border-radius: 4px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #525252;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.appointment-popup-input::placeholder {
    color: #525252;
}

.appointment-popup-input:focus {
    outline: none;
    border-color: #1D1D1D;
}

.appointment-popup-textarea {
    height: auto;
    padding: 16px 20px;
    resize: vertical;
    min-height: 100px;
    line-height: 22px;
}

.appointment-popup-btn {
    width: 100%;
    height: 64px;
    padding: 0;
    background: #1D1D1D;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.appointment-popup-btn:hover {
    background: #333333;
}

.appointment-popup-disclaimer {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 15px;
    color: #666666;
    margin: 0;
    text-align: center;
}

/* Form success message */
.form-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px 20px;
    text-align: center;
}

.form-success-message p {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

.vrachi-form .form-success-message p {
    color: #000000;
}

.vrachi-form .form-success-message svg {
    stroke: #66BB6A;
}

@media (max-width: 576px) {
    .appointment-popup {
        padding: 40px 24px 30px;
        width: 100%;
        max-width: calc(100vw - 30px);
    }

    .appointment-popup-title {
        font-size: 24px;
        line-height: 28px;
    }

    .appointment-popup-input {
        height: 54px;
        font-size: 14px;
    }

    .appointment-popup-btn {
        height: 58px;
    }
}

/* ==========================================================================
   Search Overlay (полноэкранный поиск)
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 80px;
}

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

.search-overlay-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 20px;
    color: #999999;
    pointer-events: none;
    width: 24px;
    height: 24px;
}

.search-overlay-input {
    width: 100%;
    height: 64px;
    padding: 0 20px 0 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 64px;
    color: #FFFFFF;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.search-overlay-input::placeholder {
    color: #999999;
}

.search-overlay-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.search-overlay-close {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Results area */
.search-overlay-results {
    overflow-y: auto;
    padding-top: 30px;
    flex: 1;
}

.search-hint,
.search-loading,
.search-empty,
.search-error {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 24px;
    color: #999999;
    text-align: center;
    padding: 40px 0;
    margin: 0;
}

.search-error {
    color: #e57373;
}

/* Groups */
.search-group {
    margin-bottom: 35px;
}

.search-group-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    padding: 0;
}

.search-group-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Result item */
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-excerpt {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: #999999;
    margin: 6px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-arrow {
    flex-shrink: 0;
    color: #666666;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover .search-item-arrow {
    color: #FFFFFF;
    transform: translateX(4px);
}

/* Highlight */
.search-highlight {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-radius: 2px;
    padding: 0 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .search-overlay {
        padding-top: 40px;
    }

    .search-overlay-content {
        max-height: calc(100vh - 60px);
    }

    .search-overlay-input {
        height: 54px;
        font-size: 16px;
        line-height: 54px;
    }

    .search-item-title {
        font-size: 17px;
        line-height: 22px;
    }

    .search-item-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .search-overlay {
        padding-top: 20px;
    }

    .search-overlay-header {
        gap: 10px;
        padding-bottom: 20px;
    }

    .search-overlay-input {
        height: 48px;
        font-size: 15px;
        line-height: 48px;
        padding-left: 48px;
    }

    .search-input-icon {
        left: 14px;
        width: 20px;
        height: 20px;
    }

    .search-overlay-close {
        width: 40px;
        height: 40px;
    }

    .search-group-title {
        font-size: 12px;
    }

    .search-result-item {
        padding: 12px 14px;
    }

    .search-item-title {
        font-size: 15px;
        line-height: 20px;
    }
}

/* ==========================================================================
   Accessibility Panel (версия для слабовидящих)
   ========================================================================== */
.acc-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 99998;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.acc-panel.active {
    right: 0;
}

.acc-panel-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px 24px;
}

.acc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}

.acc-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #1D1D1D;
    margin: 0;
}

.acc-panel-title svg {
    flex-shrink: 0;
}

.acc-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F5F5F5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    transition: background-color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.acc-panel-close:hover {
    background: #E0E0E0;
}

.acc-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.acc-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acc-group-label {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 13px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acc-group-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.acc-option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #333333;
    transition: all 0.2s ease;
}

.acc-option-btn:hover {
    border-color: #1D1D1D;
    background: #F8F8F8;
}

.acc-option-btn.acc-active {
    background: #1D1D1D;
    border-color: #1D1D1D;
    color: #FFFFFF;
}

.acc-option-btn-md {
    font-size: 20px;
}

.acc-option-btn-lg {
    font-size: 24px;
}

.acc-option-btn-wide {
    width: 100%;
    font-size: 14px;
}

/* Цветовые превью в панели */
.acc-color-opt-normal {
    background: #FFFFFF;
    color: #000000;
}

.acc-color-opt-bw {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000;
    font-weight: 700;
}

.acc-color-opt-dark {
    background: #1D1D1D;
    color: #FFFFFF;
    border-color: #1D1D1D;
}

.acc-color-opt-blue {
    background: #195183;
    color: #FFFFFF;
    border-color: #195183;
}

.acc-color-opt-bw.acc-active {
    background: #000000;
    color: #FFFFFF;
}

.acc-color-opt-dark.acc-active {
    background: #333333;
    color: #FFD700;
    border-color: #FFD700;
}

.acc-color-opt-blue.acc-active {
    background: #0D3A5C;
    color: #A8D8FF;
    border-color: #A8D8FF;
}

.acc-panel-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E8E8E8;
}

.acc-reset-btn {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    background: transparent;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #666666;
    transition: all 0.2s ease;
}

.acc-reset-btn:hover {
    border-color: #1D1D1D;
    color: #1D1D1D;
}

/* ==========================================================================
   Maintenance Notice (плавающий баннер о тех. работах)
   ========================================================================== */
.maintenance-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99997;
    background: #1D1D1D;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.maintenance-notice.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.maintenance-notice-content {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.maintenance-notice-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #FFC107;
}

.maintenance-notice-text {
    flex: 1;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    margin: 0;
}

.maintenance-notice-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: background-color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.maintenance-notice-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
    .maintenance-notice {
        padding: 14px 16px;
    }

    .maintenance-notice-text {
        font-size: 13px;
        line-height: 18px;
    }
}

/* ------------ Accessibility Modes (applied to body) ------------ */

/* Font size: medium */
body.acc-font-medium {
    font-size: 120% !important;
}

body.acc-font-medium .menu-item,
body.acc-font-medium .main-menu li a {
    font-size: 18px !important;
}

body.acc-font-medium h1,
body.acc-font-medium h2,
body.acc-font-medium h3 {
    font-size: 130% !important;
}

/* Font size: large */
body.acc-font-large {
    font-size: 140% !important;
}

body.acc-font-large .menu-item,
body.acc-font-large .main-menu li a {
    font-size: 20px !important;
}

body.acc-font-large h1,
body.acc-font-large h2,
body.acc-font-large h3 {
    font-size: 160% !important;
}

/* Letter spacing: medium */
body.acc-letter-medium {
    letter-spacing: 1px !important;
}

body.acc-letter-medium * {
    letter-spacing: 1px !important;
}

/* Letter spacing: large */
body.acc-letter-large {
    letter-spacing: 3px !important;
}

body.acc-letter-large * {
    letter-spacing: 3px !important;
}

/* Line height: medium */
body.acc-line-medium {
    line-height: 1.8 !important;
}

body.acc-line-medium * {
    line-height: 1.8 !important;
}

/* Line height: large */
body.acc-line-large {
    line-height: 2.2 !important;
}

body.acc-line-large * {
    line-height: 2.2 !important;
}

/* Color scheme: Чёрно-белая */
body.acc-color-bw,
body.acc-color-bw .header,
body.acc-color-bw .footer,
body.acc-color-bw .front-hero,
body.acc-color-bw .team-section,
body.acc-color-bw .directions-section,
body.acc-color-bw .equipment-section,
body.acc-color-bw .news-section,
body.acc-color-bw .about-clinic-section {
    background-color: #FFFFFF !important;
    background-image: none !important;
}

body.acc-color-bw,
body.acc-color-bw * {
    color: #000000 !important;
    border-color: #000000 !important;
}

body.acc-color-bw a {
    color: #000000 !important;
    text-decoration: underline !important;
}

body.acc-color-bw .menu-item,
body.acc-color-bw .main-menu li a {
    background-color: transparent !important;
    border: 1px solid #000000 !important;
}

body.acc-color-bw .directions-nav-btn,
body.acc-color-bw .contacts-btn,
body.acc-color-bw .front-hero-btn-primary,
body.acc-color-bw .appointment-popup-btn,
body.acc-color-bw .vrachi-form-btn {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Color scheme: Тёмная */
body.acc-color-dark,
body.acc-color-dark .header,
body.acc-color-dark .footer,
body.acc-color-dark .front-hero,
body.acc-color-dark .team-section,
body.acc-color-dark .directions-section,
body.acc-color-dark .equipment-section,
body.acc-color-dark .news-section,
body.acc-color-dark .about-clinic-section,
body.acc-color-dark .contacts-page,
body.acc-color-dark .main-content {
    background-color: #1A1A1A !important;
    background-image: none !important;
}

body.acc-color-dark,
body.acc-color-dark * {
    color: #F0F0F0 !important;
    border-color: #444444 !important;
}

body.acc-color-dark a {
    color: #FFD700 !important;
}

body.acc-color-dark .menu-item,
body.acc-color-dark .main-menu li a {
    background-color: #333333 !important;
    border-color: #555555 !important;
    color: #F0F0F0 !important;
}

body.acc-color-dark .directions-nav-btn,
body.acc-color-dark .contacts-btn,
body.acc-color-dark .front-hero-btn-primary,
body.acc-color-dark .appointment-popup-btn,
body.acc-color-dark .vrachi-form-btn {
    background-color: #FFD700 !important;
    color: #000000 !important;
}

body.acc-color-dark .direction-card,
body.acc-color-dark .usluga-card {
    background: #2A2A2A !important;
}

/* Color scheme: Синяя */
body.acc-color-blue,
body.acc-color-blue .header,
body.acc-color-blue .footer,
body.acc-color-blue .front-hero,
body.acc-color-blue .team-section,
body.acc-color-blue .directions-section,
body.acc-color-blue .equipment-section,
body.acc-color-blue .news-section,
body.acc-color-blue .about-clinic-section,
body.acc-color-blue .contacts-page,
body.acc-color-blue .main-content {
    background-color: #0D2B47 !important;
    background-image: none !important;
}

body.acc-color-blue,
body.acc-color-blue * {
    color: #A8D8FF !important;
    border-color: #1E5A8A !important;
}

body.acc-color-blue a {
    color: #FFFFFF !important;
}

body.acc-color-blue .menu-item,
body.acc-color-blue .main-menu li a {
    background-color: #1E5A8A !important;
    border-color: #3A7AB5 !important;
    color: #FFFFFF !important;
}

body.acc-color-blue .directions-nav-btn,
body.acc-color-blue .contacts-btn,
body.acc-color-blue .front-hero-btn-primary,
body.acc-color-blue .appointment-popup-btn,
body.acc-color-blue .vrachi-form-btn {
    background-color: #3A7AB5 !important;
    color: #FFFFFF !important;
}

body.acc-color-blue .direction-card,
body.acc-color-blue .usluga-card {
    background: #0F3D5E !important;
}

/* Hide images */
body.acc-hide-images .news-card-image,
body.acc-hide-images .equipment-card-image,
body.acc-hide-images .team-member-image,
body.acc-hide-images .about-clinic-image,
body.acc-hide-images .reviews-images-block,
body.acc-hide-images video {
    display: none !important;
}

body.acc-hide-images .front-hero {
    background-image: none !important;
    height: auto !important;
    max-height: none !important;
}

body.acc-hide-images .news-card-image img,
body.acc-hide-images .equipment-card-image img,
body.acc-hide-images .team-member-image img,
body.acc-hide-images .about-clinic-image img,
body.acc-hide-images .direction-card img,
body.acc-hide-images .oklinike-nav-card-img,
body.acc-hide-images .front-hero-container img:not(.logo):not(.icon) {
    display: none !important;
}

/* Responsive: мобильная версия панели (сверху) */
@media (max-width: 992px) {
    .acc-panel {
        top: -100%;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 85vh;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
        transition: top 0.35s ease;
    }

    .acc-panel.active {
        top: 0;
        right: 0;
    }

    .acc-panel-inner {
        padding: 20px 16px;
    }

    .acc-panel-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .acc-panel-body {
        gap: 18px;
    }

    .acc-option-btn {
        min-width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   О клинике Hero (/o-klinike/)
   ========================================================================== */
.oklinike-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    max-height: 600px;
    background-color: #1D1D1D;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.oklinike-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.oklinike-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    height: 100%;
    min-height: 600px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 0 20px 60px;
}

.oklinike-hero-content {
    width: 1072px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.oklinike-hero .front-hero-title {
    width: auto;
    max-width: 100%;
    height: auto;
}

.oklinike-hero .front-hero-subtitle {
    width: auto;
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .oklinike-hero {
        min-height: 650px;
        max-height: none;
    }

    .oklinike-hero-inner {
        min-height: 650px;
        max-height: none;
        padding-bottom: 40px;
        align-items: center;
    }

    .oklinike-hero .front-hero-title {
        font-size: 32px;
        line-height: 36px;
    }

    .oklinike-hero .front-hero-subtitle {
        font-size: 16px;
        line-height: 22px;
    }

    .oklinike-hero .front-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .oklinike-hero .front-hero-btn {
        width: 100%;
        height: auto;
        padding: 18px 20px;
    }
}

/* Навигация О клинике */
.oklinike-nav {
    width: 100%;
    background-color: #FFFFFF;
    padding: 100px 0;
}

.oklinike-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.oklinike-nav-card {
    position: relative;
    height: 319px;
    background: linear-gradient(25.43deg, #F2F2F2 41.52%, #FFFFFF 100%), #F2F2F2;
    padding: 25px;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.oklinike-nav-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

.oklinike-nav-card:hover::after {
    background: rgba(0, 0, 0, 0.45);
}

.oklinike-nav-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.oklinike-nav-card-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.oklinike-nav-card:hover .oklinike-nav-card-img {
    transform: scale(1.07);
}

.oklinike-nav-card-title {
    position: relative;
    z-index: 3;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #FFFFFF;
    margin: 0;
}

.oklinike-nav-card-icon {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 3;
    width: 51px;
    height: 51px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .oklinike-nav {
        padding: 60px 0;
    }

    .oklinike-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .oklinike-nav-card {
        height: 240px;
    }

    .oklinike-nav-card-title {
        font-size: 22px;
        line-height: 24px;
    }
}

@media (max-width: 576px) {
    .oklinike-nav-card {
        height: 200px;
    }

    .oklinike-nav-card-title {
        font-size: 20px;
        line-height: 22px;
    }
}

/* Почему нам доверяют */
.oklinike-trust {
    width: 100%;
    background-color: #FFFFFF;
    padding: 100px 0;
}

.oklinike-trust-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 86px;
    line-height: 86px;
    color: #000000;
    margin: 0 0 88px;
}

.oklinike-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 90px 30px;
}

.oklinike-trust-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.oklinike-trust-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.oklinike-trust-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.oklinike-trust-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    color: #000000;
    margin: 0;
}

@media (max-width: 992px) {
    .oklinike-trust {
        padding: 60px 0;
    }

    .oklinike-trust-title {
        font-size: 48px;
        line-height: 48px;
        margin-bottom: 50px;
    }

    .oklinike-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .oklinike-trust-icon {
        width: 60px;
        height: 60px;
    }

    .oklinike-trust-text {
        font-size: 22px;
        line-height: 24px;
    }
}

@media (max-width: 576px) {
    .oklinike-trust-title {
        font-size: 36px;
        line-height: 36px;
    }

    .oklinike-trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .oklinike-trust-icon {
        width: 50px;
        height: 50px;
    }

    .oklinike-trust-text {
        font-size: 20px;
        line-height: 22px;
    }
}

/* Философия клиники */
.oklinike-philosophy {
    width: 100%;
    background: #F5F5F5;
    min-height: 410px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.oklinike-philosophy-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.oklinike-philosophy-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #000000;
    margin: 0;
    align-self: stretch;
}

.oklinike-philosophy-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 24px;
    text-align: justify;
    color: #000000;
    margin: 0;
    align-self: stretch;
}

@media (max-width: 992px) {
    .oklinike-philosophy {
        min-height: auto;
        padding: 60px 0;
    }

    .oklinike-philosophy-title {
        font-size: 32px;
        line-height: 36px;
    }

    .oklinike-philosophy-text {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Оборудование на странице О клинике */
.oklinike-equipment {
    background-color: #F5F5F5;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Single Uslugi: SEO блок (заголовок + описание) */
.uslugi-seo-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 100px 0;
}

.uslugi-seo-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #000000;
    margin: 0;
}

.uslugi-seo-text {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 24px;
    text-align: justify;
    color: #000000;
    margin: 30px 0 0;
}

.uslugi-seo-text p {
    margin: 0 0 20px;
}

.uslugi-seo-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .uslugi-seo-section {
        padding: 60px 0;
    }

    .uslugi-seo-title {
        font-size: 32px;
        line-height: 36px;
    }

    .uslugi-seo-text {
        font-size: 18px;
        line-height: 24px;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .uslugi-seo-section {
        padding: 40px 0;
    }

    .uslugi-seo-title {
        font-size: 26px;
        line-height: 30px;
    }

    .uslugi-seo-text {
        font-size: 16px;
        line-height: 22px;
        margin-top: 16px;
    }
}

/* ==========================================================================
   Таблица стоимости услуг
   ========================================================================== */

/* Vrachi Hero Badge (должность) */
.vrachi-hero-badge {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 9px 17px 8px 16px;
    gap: 10px;
    background: #FFFFFF;
    border-radius: 44px;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    color: #919191;
    align-self: flex-start;
    margin-bottom: 0px;
}

/* Vrachi Hero Info Block */
.vrachi-hero-info {
    max-width: 700px;
    margin-top: 40px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 0.5fr 1.3fr 1fr;
    gap: 0;
}

.vrachi-hero-info-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.vrachi-hero-info-col:first-child {
    padding-left: 0;
}

.vrachi-hero-info-col:last-child {
    border-right: none;
    padding-right: 0;
}

.vrachi-hero-info-label {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF;
}

.vrachi-hero-info-value {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF;
}

.vrachi-hero-info-num {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 46px;
    color: #FFFFFF;
}

.vrachi-hero-info-address {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 21px;
    line-height: 21px;
    color: #FFFFFF;
}

@media (max-width: 992px) {
    .vrachi-hero-info {
        max-width: 100%;
        margin-top: 30px;
        margin-bottom: 40px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vrachi-hero-info-col {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        padding-bottom: 20px;
    }

    .vrachi-hero-info-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .vrachi-hero-info-num {
        font-size: 36px;
        line-height: 36px;
    }

    .vrachi-hero-info-address {
        font-size: 18px;
        line-height: 20px;
    }
}
.price-table {
    width: 100%;
    margin-top: 30px;
}

.price-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 53px;
    padding: 0 20px;
}

.price-row--gray {
    background: #F5F5F5;
}

.price-row--white {
    background: #ffffff;
}

.price-row-code {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 21px;
    line-height: 21px;
    color: #868686;
    white-space: nowrap;
    margin-right: 20px;
    min-width: 160px;
}

.price-row-name {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 21px;
    line-height: 21px;
    color: #000000;
    flex: 1;
}

.price-row-price {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 21px;
    line-height: 21px;
    text-align: right;
    color: #000000;
    white-space: nowrap;
    margin-left: 20px;
}

/* ==========================================================================
   Универсальный шаблон (Universal Page)
   ========================================================================== */
.universal-page {
    padding: 60px 0;
    min-height: auto;
}

.universal-header-block {
    margin-bottom: 40px;
}

.universal-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.universal-content-block {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #525252;
}

.universal-content-block h2,
.universal-content-block h3,
.universal-content-block h4 {
    color: #000000;
    margin: 30px 0 16px;
}

.universal-content-block h2 {
    font-size: 28px;
    line-height: 28px;
}

.universal-content-block h3 {
    font-size: 24px;
    line-height: 24px;
}

.universal-content-block p {
    margin: 0 0 20px;
}

.universal-content-block p:last-child {
    margin-bottom: 0;
}

.universal-content-block ul,
.universal-content-block ol {
    margin: 0 0 20px;
    padding-left: 30px;
}

.universal-content-block li {
    margin-bottom: 8px;
}

.universal-content-block a {
    color: #1D1D1D;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.universal-content-block a:hover {
    opacity: 0.7;
}

/* Privacy Policy meta info */
.privacy-policy-meta {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #666666;
    margin: 8px 0 0;
}

.privacy-policy-page .universal-header-block {
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 20px;
    margin-bottom: 50px;
}

/* Tables inside universal template */
.universal-content-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    line-height: 22px;
}

.universal-content-block table thead {
    background: #1D1D1D;
}

.universal-content-block table thead th {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    color: #FFFFFF;
    padding: 18px 20px;
    text-align: left;
}

.universal-content-block table tbody tr {
    border-bottom: 1px solid #E8E8E8;
}

.universal-content-block table tbody tr:nth-child(odd) {
    background: #F5F5F5;
}

.universal-content-block table tbody tr:nth-child(even) {
    background: #FFFFFF;
}

.universal-content-block table tbody td {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    padding: 16px 20px;
    vertical-align: top;
}

/* Column sizes via data-col-size */
.universal-content-block table th[data-col-size="lg"],
.universal-content-block table td[data-col-size="lg"] {
    width: 50%;
}

.universal-content-block table th[data-col-size="md"],
.universal-content-block table td[data-col-size="md"] {
    width: 25%;
}

.universal-content-block table th[data-col-size="sm"],
.universal-content-block table td[data-col-size="sm"] {
    width: 15%;
}

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

    .universal-title {
        font-size: 32px;
        line-height: 36px;
    }

    .universal-content-block {
        font-size: 16px;
        line-height: 24px;
    }

    .universal-content-block table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .universal-content-block table thead th,
    .universal-content-block table tbody td {
        font-size: 14px;
        line-height: 18px;
        padding: 12px 14px;
        white-space: nowrap;
    }

    .universal-content-block table th[data-col-size="lg"],
    .universal-content-block table td[data-col-size="lg"],
    .universal-content-block table th[data-col-size="md"],
    .universal-content-block table td[data-col-size="md"],
    .universal-content-block table th[data-col-size="sm"],
    .universal-content-block table td[data-col-size="sm"] {
        width: auto;
    }
}

@media (max-width: 992px) {
    .price-row {
        height: auto;
        min-height: 48px;
        padding: 10px 16px;
    }

    .price-row-code {
        font-size: 16px;
        line-height: 16px;
        min-width: 120px;
        margin-right: 12px;
    }

    .price-row-name {
        font-size: 16px;
        line-height: 16px;
    }

    .price-row-price {
        font-size: 16px;
        line-height: 16px;
        margin-left: 12px;
    }
}

@media (max-width: 576px) {
    .price-row {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 12px;
        gap: 4px;
    }

    .price-row-code {
        font-size: 14px;
        line-height: 14px;
        min-width: auto;
        margin-right: 0;
        width: 100%;
    }

    .price-row-name {
        font-size: 14px;
        line-height: 18px;
        flex: 1;
    }

    .price-row-price {
        font-size: 14px;
        line-height: 14px;
        margin-left: auto;
    }
}

/* ==========================================================================
   Before-After Section (Примеры работ с ползунком)
   ========================================================================== */
.before-after-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 80px 0 60px;
}

.before-after-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 60px;
}

.before-after-title {
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 86px;
    line-height: 86px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.before-after-slider {
    position: relative;
    width: 100%;
    overflow: visible;
}

.before-after-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.before-after-item {
    flex: 0 0 calc((100% - 30px) / 2);
    width: calc((100% - 30px) / 2);
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    border-radius: 8px;
}

.before-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ДО: clip-path для эффекта сравнения */
.before-image {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* ПОСЛЕ: всегда на всю ширину */
.after-image {
    z-index: 1;
}

.before-after-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 20px;
    background: rgba(29, 29, 29, 0.85);
    color: #FFFFFF;
    font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* Handle (ползунок) */
.before-after-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    pointer-events: none;
}

.before-after-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.before-after-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1D1D1D;
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.before-after-handle:hover .before-after-handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Mobile responsive */
@media (max-width: 992px) {
    .before-after-section {
        padding: 60px 0 40px;
    }
    
    .before-after-header {
        margin-bottom: 40px;
        gap: 15px;
    }

    .before-after-title {
        font-size: 48px;
        line-height: 48px;
    }

    .before-after-section .before-after-slider {
        overflow: hidden;
    }

    .before-after-track {
        gap: 20px;
    }

    .before-after-item {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .before-after-container {
        height: 400px;
    }
    
    .before-after-handle-circle {
        width: 48px;
        height: 48px;
    }
    
    .before-after-label {
        font-size: 12px;
        padding: 6px 14px;
        bottom: 15px;
    }
    
    .before-label {
        left: 15px;
    }
    
    .after-label {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .before-after-header {
        margin-bottom: 30px;
    }

    .before-after-title {
        font-size: 36px;
        line-height: 36px;
    }
    
    .before-after-container {
        height: 320px;
    }
    
    .before-after-handle-circle {
        width: 40px;
        height: 40px;
    }
    
    .before-after-handle-circle svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   ANIMATIONS — Scroll Reveal, Ken Burns, Parallax
   ========================================================================== */

/* 1. Ken Burns — плавное увеличение фона героя */
@keyframes kenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.front-hero {
    overflow: hidden;
    position: relative;
}

.front-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-out forwards;
    z-index: 0;
}

.front-hero .front-hero-container {
    position: relative;
    z-index: 1;
}

/* Hero entrance: fade-up для текста и кнопок */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.front-hero-title,
.front-hero-subtitle,
.front-hero-buttons,
.front-hero-features,
.front-hero-contacts {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
}

.front-hero-title {
    animation-delay: 0.3s;
}

.front-hero-subtitle {
    animation-delay: 0.5s;
}

.front-hero-buttons {
    animation-delay: 0.7s;
}

.front-hero-features {
    animation-delay: 0.9s;
}

.front-hero-contacts {
    animation-delay: 0.6s;
}

/* 2. Scroll Reveal — базовые состояния */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Каскадное появление карточек */
[data-reveal-children] > * {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal-children].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-children].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-children].is-visible > *:nth-child(3) { transition-delay: 0.24s; }
[data-reveal-children].is-visible > *:nth-child(4) { transition-delay: 0.36s; }
[data-reveal-children].is-visible > *:nth-child(5) { transition-delay: 0.48s; }
[data-reveal-children].is-visible > *:nth-child(6) { transition-delay: 0.60s; }
[data-reveal-children].is-visible > *:nth-child(7) { transition-delay: 0.72s; }
[data-reveal-children].is-visible > *:nth-child(8) { transition-delay: 0.84s; }

[data-reveal-children].is-visible > * {
    opacity: 1;
}

/* 4. Заголовки секций — появление слева */
[data-reveal-title] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal-title].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 5. Команда профессионалов — параллакс фото */
.team-member-image {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out,
                transform 0.6s ease-out;
    will-change: transform;
}

.team-member.is-visible .team-member-image {
    opacity: 1;
    transform: translateY(var(--parallax-y, 0px));
    transition: opacity 0.6s ease-out,
                transform 0.15s linear;
}

.team-member-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out 0.2s,
                transform 0.7s ease-out 0.2s;
}

.team-member.is-visible .team-member-content {
    opacity: 1;
    transform: translateY(0);
}

/* 6. О клинике — scale эффект на изображении */
.about-clinic-image {
    overflow: hidden;
}

.about-clinic-image img {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.7s ease-out;
}

.about-clinic-section.is-visible .about-clinic-image img {
    transform: scale(1);
    opacity: 1;
}

.about-clinic-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out,
                transform 0.7s ease-out;
}

.about-clinic-section.is-visible .about-clinic-text {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   prefers-reduced-motion — отключаем анимации для пользователей с настройкой
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal],
    [data-reveal-title],
    [data-reveal-children] > *,
    .team-member-content,
    .team-member-image,
    .about-clinic-image img,
    .about-clinic-text,
    .front-hero-title,
    .front-hero-subtitle,
    .front-hero-buttons,
    .front-hero-features,
    .front-hero-contacts {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
