/* ==========================================
   ONKOPOMOSH — Main CSS Entry Point
   ==========================================
   All component styles are imported below.
   Order matters: base first, then components.
   ========================================== */

/* --- Base --- */
/* === ./base/variables.css === */
/* ==========================================
   CSS VARIABLES (Design Tokens)
   ========================================== */
:root {
    --color-primary: #759283;
    --color-accent: #E9DEC8;
    --color-secondary: #BFC3B8;
    --color-bg: #F2EEE3;
    --color-bg-alt: #EAE5D8;
    --color-text: #1a1a1a;
    --color-text-light: #555;
    --color-white: #ffffff;
    --color-border: rgba(117, 146, 131, 0.15);

    --font-family: 'Manrope', sans-serif;
    --container-max: 1280px;
    --container-padding: 20px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 4px 24px rgba(26, 26, 26, 0.06);
    --shadow-lg: 0 8px 40px rgba(26, 26, 26, 0.08);
    --shadow-glass: 0 8px 32px rgba(117, 146, 131, 0.1);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --section-gap: 100px;
    --header-height: 130px;
}

/* Tablet overrides */
@media (max-width: 1024px) {
    :root {
        --section-gap: 80px;
        --header-height: 80px;
    }
}

/* Mobile overrides */
@media (max-width: 767px) {
    :root {
        --section-gap: 60px;
        --container-padding: 16px;
    }
}


/* === ./base/reset.css === */
/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}


/* === ./base/utilities.css === */
/* ==========================================
   UTILITIES
   ========================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 56px;
    color: var(--color-text);
    line-height: 1.2;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.link-arrow::after {
    content: '→';
    transition: transform var(--transition);
}

.link-arrow:hover {
    color: var(--color-text);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* Reusable section footer (used by diseases, symptoms, doctors, clinics, services) */
.section-footer,
.diseases__footer,
.symptoms__footer,
.services__footer,
.doctors__footer,
.clinics__footer {
    text-align: right;
    margin-top: 40px;
    padding-right: 8px;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 36px;
    }
}


/* === ./base/buttons.css === */
/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: #637f72;
    box-shadow: 0 4px 16px rgba(117, 146, 131, 0.3);
    transform: translateY(-1px);
}

.btn--outline {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: 700;
    font-size: 16px;
}

.btn--accent:hover {
    background: #ddd0b5;
    box-shadow: 0 6px 24px rgba(233, 222, 200, 0.5);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 48px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn--full {
    width: 100%;
}


/* === ./base/animations.css === */
/* ==========================================
   SCROLL REVEAL & SHARED ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* --- Components --- */
/* === ./components/header.css === */
/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(242, 238, 227, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.header--scrolled {
    background: rgba(242, 238, 227, 0.95);
    box-shadow: var(--shadow-md);
}

.header--scrolled .header__top {
    padding: 8px 0;
}

.header__top {
    padding: 14px 0;
    transition: padding var(--transition);
}

.header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo svg {
    display: block;
}

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

.header__brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-text);
    line-height: 1.2;
}

.header__brand-desc {
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.3;
    max-width: 240px;
}

.header__actions {
    display: flex;
    gap: 10px;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.header__schedule {
    font-size: 12px;
    color: var(--color-text-light);
}

.header__phone {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

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

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Header Bottom */
.header__bottom {
    border-top: 1px solid var(--color-border);
    padding: 0;
}

.header__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.header__nav-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.header__nav-item {
    position: relative;
}

.header__nav-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text);
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color var(--transition);
}

.header__nav-caret {
    transition: transform var(--transition);
}

.header__nav-item--has-submenu:hover .header__nav-caret,
.header__nav-item--has-submenu:focus-within .header__nav-caret {
    transform: rotate(180deg);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-primary);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}

/* --- Submenu (desktop dropdown, 2-level) --- */
.header__submenu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 280px;
    padding: 10px 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 1100;
}

.header__nav-item--has-submenu:hover > .header__submenu,
.header__nav-item--has-submenu:focus-within > .header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__submenu li {
    list-style: none;
    position: relative;
}

/* --- 3rd-level flyout (appears to the right) --- */
.header__submenu--deep {
    top: -10px;
    left: 100%;
    right: auto;
    /* override 2nd-level transforms */
    transform: translateX(8px);
}

.header__submenu-item--has-sub:hover > .header__submenu--deep,
.header__submenu-item--has-sub:focus-within > .header__submenu--deep {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.header__submenu-link--has-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header__submenu-link--has-sub::after {
    margin-left: auto;
    content: '›';
    font-size: 18px;
    line-height: 1;
    color: var(--color-text-light);
    flex-shrink: 0;
    margin-left: auto;
    transition: color var(--transition);
}

.header__submenu-item--has-sub:hover > .header__submenu-link--has-sub::after,
.header__submenu-item--has-sub:focus-within > .header__submenu-link--has-sub::after {
    margin-left: auto;
    color: var(--color-primary);
}

.header__submenu-link {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.35;
    transition: background var(--transition), color var(--transition);
}

.header__submenu-link.header__submenu-link--has-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header__submenu-link:hover,
.header__submenu-link:focus {
    background: rgba(117, 146, 131, 0.08);
    color: var(--color-primary);
}

.header__submenu-link--all {
    color: var(--color-primary);
    font-weight: 700;
}

.header__submenu-divider {
    height: 1px;
    margin: 6px 14px;
    background: var(--color-border);
}

.header__search {
    position: relative;
}

.header__search-input {
    width: 180px;
    padding: 8px 36px 8px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: rgba(117, 146, 131, 0.08);
    border-radius: 24px;
    color: var(--color-text);
    transition: all var(--transition);
}

.header__search-input::placeholder {
    color: var(--color-text-light);
}

.header__search-input:focus {
    width: 220px;
    background: rgba(117, 146, 131, 0.14);
}

.header__search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .header__actions {
        display: none;
    }

    .header__contacts {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__bottom {
        display: none;
    }
}

/* Responsive — Mobile */
@media (max-width: 767px) {
    .header__brand-desc {
        display: none;
    }

    .header__brand-name {
        font-size: 16px;
    }

    .header__logo svg {
        width: 36px;
        height: 36px;
    }

    .header__top {
        padding: 10px 0;
    }
}


/* === ./components/mobile-menu.css === */
/* ==========================================
   MOBILE FULLSCREEN MENU
   ========================================== */
.mob {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mob.open {
    transform: translateX(0);
}

.mob__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mob__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
}

.mob__logo svg {
    flex-shrink: 0;
}

.mob__x {
    font-size: 32px;
    line-height: 1;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
}

.mob__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 20px;
}

.mob__link {
    font-size: 18px;
    font-weight: 700;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.mob__link:active {
    color: var(--color-primary);
}

/* --- Mobile submenu (group with toggle) --- */
.mob__group {
    border-bottom: 1px solid var(--color-border);
}

.mob__group-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.mob__link--with-toggle {
    flex: 1;
    border-bottom: none;
}

.mob__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: none;
    border: none;
    border-left: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    transition: transform 0.25s ease, color 0.2s;
}

.mob__toggle[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.mob__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mob__group--open .mob__submenu {
    max-height: 1000px;
}

.mob__sublink {
    display: block;
    padding: 12px 0 12px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-top: 1px solid var(--color-border);
    transition: color 0.2s;
}

.mob__sublink:active {
    color: var(--color-primary);
}

.mob__sublink--all {
    color: var(--color-primary);
    font-weight: 700;
}

/* --- 3rd level (inside 2nd-level submenu) --- */
.mob__subitem {
    list-style: none;
}

.mob__subitem-row {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--color-border);
}

.mob__sublink--with-toggle {
    flex: 1;
    border-top: none !important;
}

.mob__subtoggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background: none;
    border: none;
    border-left: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
}

.mob__subtoggle[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.mob__sublevel {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(117, 146, 131, 0.04);
}

.mob__subitem--open .mob__sublevel {
    max-height: 600px;
}

.mob__sublevel-link {
    display: block;
    padding: 10px 16px 10px 36px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-top: 1px solid var(--color-border);
    transition: color 0.2s;
}

.mob__sublevel-link:active {
    color: var(--color-primary);
}

.mob__bottom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.mob__phone {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

.mob__hours {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}


/* === ./components/hero.css === */
/* ==========================================
   HERO
   ========================================== */
.hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__decor-circle {
    position: absolute;
    border-radius: 50%;
}

.hero__decor-circle--1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(117, 146, 131, 0.06) 0%, transparent 70%);
}

.hero__decor-circle--2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -80px;
    background: radial-gradient(circle, rgba(233, 222, 200, 0.15) 0%, transparent 70%);
}

.hero__decor-line {
    position: absolute;
    background: var(--color-primary);
    opacity: 0.06;
}

.hero__decor-line--1 {
    width: 1px;
    height: 200px;
    top: 10%;
    left: 20%;
    transform: rotate(15deg);
}

.hero__decor-line--2 {
    width: 1px;
    height: 160px;
    bottom: 5%;
    right: 25%;
    transform: rotate(-20deg);
}

.hero__decor-cross {
    position: absolute;
}

.hero__decor-cross--1 {
    top: 18%;
    right: 12%;
    animation: floatSlow 8s ease-in-out infinite;
}

.hero__decor-cross--2 {
    bottom: 25%;
    left: 8%;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.hero__decor-cross--3 {
    top: 60%;
    right: 35%;
    animation: floatSlow 12s ease-in-out infinite 2s;
}

.hero__decor-dots {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(117, 146, 131, 0.12) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 620px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(117, 146, 131, 0.08);
    border: 1px solid rgba(117, 146, 131, 0.15);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero__text {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero__trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__trust-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.hero__trust-label {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
}

.hero__trust-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

/* Hero visual */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    max-width: 560px;
    width: 100%;
}

.hero__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    border-radius: var(--radius-lg);
}

/* Hero Stat Badges */
.hero__stat-badge {
    position: absolute;
    background: var(--color-primary);
    color: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(117, 146, 131, 0.35);
}

.hero__stat-badge--1 {
    bottom: 48px;
    right: -10px;
}

.hero__stat-badge--2 {
    top: 32px;
    left: -10px;
}

.hero__stat-badge-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero__stat-badge-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero__float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    white-space: nowrap;
    z-index: 2;
}

.hero__float-card--1 {
    top: 24px;
    right: 20px;
}

.hero__float-card--2 {
    bottom: 36px;
    left: 20px;
}

.hero__action {
    flex-shrink: 0;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }

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

    .hero__visual {
        max-width: 500px;
    }

    .hero__float-card--1 {
        right: 0;
    }

    .hero__float-card--2 {
        left: 0;
    }

    .hero__action {
        align-self: flex-start;
    }
}

/* Responsive — Mobile */
@media (max-width: 767px) {
    .hero {
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 48px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__buttons {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .hero__trust {
        gap: 16px;
    }

    .hero__trust-num {
        font-size: 22px;
    }

    .hero__float-card {
        display: none;
    }

    .hero__decor-dots,
    .hero__decor-cross {
        display: none;
    }

    .hero__image-wrapper {
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .hero__stat-badge {
        padding: 10px 14px;
    }

    .hero__stat-badge-num {
        font-size: 18px;
    }

    .hero__stat-badge-label {
        font-size: 10px;
    }
}

/* Responsive — Small Mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .hero__visual {
        max-width: 100%;
    }

    .hero__image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .hero__stat-badge {
        padding: 8px 12px;
    }

    .hero__stat-badge-num {
        font-size: 16px;
    }

    .hero__stat-badge-label {
        font-size: 9px;
    }
}


/* === ./components/advantages.css === */
/* ==========================================
   ADVANTAGES
   ========================================== */
.advantages {
    padding: var(--section-gap) 0;
    background: var(--color-white);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantages__cta {
    margin-top: 32px;
}

.advantage-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.advantage-card::before {
    content: attr(data-num);
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.02em;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-card--large {
    grid-row: span 2;
    padding: 44px 36px;
    background: linear-gradient(135deg, var(--color-bg) 0%, rgba(191, 195, 184, 0.25) 100%);
}

.advantage-card--large .advantage-card__title {
    font-size: 22px;
}

.advantage-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-text);
    padding-right: 30px;
}

.advantage-card__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* Desktop: no chevron, no collapsible */
.advantage-card::after {
    display: none;
}

/* --- Collapsible advantage cards on tablet/mobile --- */
@media (max-width: 1024px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-card--large {
        grid-row: span 1;
    }

    .advantage-card {
        cursor: pointer;
        user-select: none;
        padding-bottom: 48px;
    }

    .advantage-card:hover {
        transform: none;
        box-shadow: none;
    }

    .advantage-card:active {
        transform: scale(0.99);
    }

    .advantage-card__title {
        margin-bottom: 0;
        padding-right: 30px;
    }

    .advantage-card__text {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .advantage-card--open .advantage-card__text {
        opacity: 1;
        margin-top: 16px;
    }

    /* Bottom expand strip — blends into the card */
    .advantage-card::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 44px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        background: linear-gradient(to top,
            rgba(117, 146, 131, 0.07) 0%,
            transparent 100%);
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),
            linear-gradient(to top, rgba(117,146,131,0.07) 0%, transparent 100%);
        background-repeat: no-repeat, no-repeat;
        background-position: center 60%, center center;
        background-size: 20px 20px, 100% 100%;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.7;
    }

    .advantage-card:active::after {
        background-color: rgba(117, 146, 131, 0.06);
        opacity: 1;
    }

    .advantage-card--open::after {
        height: 32px;
        opacity: 0.35;
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'/%3E%3C/svg%3E"),
            linear-gradient(to top, rgba(117,146,131,0.04) 0%, transparent 100%);
        background-repeat: no-repeat, no-repeat;
        background-position: center 55%, center center;
        background-size: 18px 18px, 100% 100%;
    }

    /* Demo pulse animation for auto-reveal */
    @keyframes advantagePulse {
        0% { box-shadow: 0 0 0 0 rgba(117,146,131,0.25); }
        50% { box-shadow: 0 0 0 8px rgba(117,146,131,0); }
        100% { box-shadow: 0 0 0 0 rgba(117,146,131,0); }
    }

    .advantage-card--demo-pulse {
        animation: advantagePulse 0.6s ease;
    }
}

@media (max-width: 767px) {
    .advantages__grid {
        grid-template-columns: 1fr;
    }
}


/* === ./components/diseases.css === */
/* ==========================================
   DISEASES
   ========================================== */
.diseases {
    padding: var(--section-gap) 0;
}

.diseases__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.disease-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.disease-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.disease-card__image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--color-accent);
}

.disease-card__image--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 44%),
        linear-gradient(145deg, rgba(117, 146, 131, .16), rgba(213, 162, 122, .18));
    border-color: rgba(117, 146, 131, .34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.disease-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.disease-card__image--icon img {
    box-sizing: border-box;
    padding: 20px;
    object-fit: contain;
}

.disease-card__image .inline-image-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.disease-card__image .inline-image-wrap img {
    display: block;
}

.disease-card__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    color: var(--color-text);
    line-height: 1.3;
}

.disease-card__list {
    text-align: left;
    margin-bottom: 18px;
}

.disease-card__list li {
    font-size: 14px;
    color: var(--color-text-light);
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.5;
}

.disease-card__list li:last-child {
    border-bottom: none;
}

.disease-card__link {
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    color: var(--color-primary);
    transition: color var(--transition);
}

.disease-card__link:hover {
    color: var(--color-text);
}

@media (max-width: 1024px) {
    .diseases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .diseases__grid {
        grid-template-columns: 1fr;
    }
}


/* === ./components/symptoms.css === */
/* ==========================================
   SYMPTOMS
   ========================================== */
.symptoms {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* --- Section header --- */
.symptoms__header {
    text-align: center;
    margin-bottom: 48px;
}

.symptoms__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(117, 146, 131, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 24px;
    margin-bottom: 20px;
}

.symptoms__badge svg {
    flex-shrink: 0;
}

.symptoms__header .section-title {
    margin-bottom: 16px;
}

.symptoms__subtitle {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

/* --- Grid --- */
.symptoms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Symptom card --- */
.symptom-item {
    position: relative;
    padding: 24px 60px 24px 24px;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.symptom-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Icon — top-right corner */
.symptom-item__icon {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(117, 146, 131, 0.08);
    color: var(--color-primary);
    flex-shrink: 0;
    transition: background var(--transition);
}

.symptom-item:hover .symptom-item__icon {
    background: rgba(117, 146, 131, 0.14);
}

.symptom-item__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--color-text);
}

.symptom-item__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .symptoms__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .symptoms__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .symptom-item {
        padding: 20px 52px 20px 20px;
    }

    .symptoms__header {
        margin-bottom: 32px;
    }

    .symptoms__subtitle {
        font-size: 15px;
    }
}


/* === ./components/accordion.css === */
/* ==========================================
   SERVICES (ACCORDION)
   ========================================== */
.services {
    padding: var(--section-gap) 0;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.accordion__item {
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.accordion__header:hover {
    color: var(--color-primary);
}

.accordion__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--color-text);
    transition: transform var(--transition);
}

.accordion__icon::before {
    width: 16px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.accordion__icon::after {
    width: 2px;
    height: 16px;
    transform: translate(-50%, -50%);
}

.accordion__item--active .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__item--active .accordion__body {
    max-height: 600px;
    padding-bottom: 24px;
}

.accordion__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed var(--color-border);
}

.accordion__row:last-child {
    border-bottom: none;
}

.accordion__service {
    font-size: 16px;
    color: var(--color-text-light);
}

.accordion__service--note {
    font-size: 14px;
    color: var(--color-secondary);
    font-style: italic;
}

.accordion__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.accordion__answer {
    padding: 0 0 8px;
}

.accordion__answer p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-light);
}

.accordion__answer a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

@media (max-width: 767px) {
    .accordion__header {
        font-size: 17px;
        padding: 20px 0;
    }
}


/* === ./components/doctors.css === */
/* ==========================================
   DOCTORS
   ========================================== */
.doctors {
    padding: var(--section-gap) 0;
    background: var(--color-white);
}

.doctors__carousel {
    position: relative;
}

.doctors__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 22px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.doctors__viewport::-webkit-scrollbar {
    display: none;
}

.doctors__viewport:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 8px;
    border-radius: var(--radius-lg);
}

.doctors__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, calc((100% - 64px) / 3));
    gap: 32px;
}

.doctor-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    scroll-snap-align: start;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.doctor-card__photo {
    height: 360px;
    overflow: hidden;
}

.doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.doctor-card:hover .doctor-card__photo img {
    transform: scale(1.04);
}

.doctor-card__info {
    padding: 24px 28px 28px;
}

.doctor-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.doctor-card__position {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.doctors__nav {
    position: absolute;
    top: calc(50% - 36px);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
}

.doctors__nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.doctors__nav:disabled {
    opacity: .28;
    cursor: default;
    pointer-events: none;
}

.doctors__nav--prev {
    left: -22px;
}

.doctors__nav--next {
    right: -22px;
}

@media (max-width: 1024px) {
    .doctors__track {
        grid-auto-columns: minmax(280px, calc((100% - 24px) / 2));
        gap: 24px;
    }

    .doctor-card__photo {
        height: 320px;
    }

    .doctors__nav--prev {
        left: -12px;
    }

    .doctors__nav--next {
        right: -12px;
    }
}

@media (max-width: 767px) {
    .doctors__viewport {
        padding-bottom: 18px;
        margin-inline: -20px;
        padding-inline: 20px;
        scroll-padding-inline: 20px;
    }

    .doctors__track {
        grid-auto-columns: minmax(252px, 84vw);
        gap: 18px;
    }

    .doctor-card__photo {
        height: 280px;
    }

    .doctors__nav {
        display: none;
    }
}


/* === ./components/clinics.css === */
/* ==========================================
   CLINICS
   ========================================== */
.clinics {
    padding: var(--section-gap) 0;
}

.clinics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card is an <a> — fully clickable */
a.clinic-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

a.clinic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

a.clinic-card:hover .clinic-card__name {
    color: var(--color-primary);
}

.clinic-card__logo {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    position: relative;
}

/* Subtle inner border so placeholder doesn't merge with page bg */
.clinic-card__logo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.clinic-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform var(--transition-slow);
}

a.clinic-card:hover .clinic-card__logo img {
    transform: scale(1.05);
}

.clinic-card__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    text-align: center;
    transition: color var(--transition);
}

/* Arrow icon indicating clickable */
.clinic-card__name::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23BFC3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: all var(--transition);
    opacity: 0.6;
}

a.clinic-card:hover .clinic-card__name::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    opacity: 1;
    transform: translateX(3px);
}

/* ==========================================
   TRUST — «Почему нам доверяют?»
   ========================================== */
.trust {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    text-align: center;
    padding: 40px 24px 36px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.trust-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.trust-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5f7e6e 100%);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(117, 146, 131, 0.25);
    transition: all var(--transition);
}

.trust-card:hover .trust-card__icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(117, 146, 131, 0.35);
}

.trust-card__icon svg {
    width: 44px;
    height: 44px;
}

.trust-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.trust-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* CTA section under trust */
/* CTA section spacing handled by .cta-section in inner-cta.css */

/* --- Responsive --- */
@media (max-width: 1024px) {
    .clinics__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .clinics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust-card {
        padding: 28px 16px 24px;
    }
    .trust-card__icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .trust-card__icon svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .clinics__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
    }
    .trust__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }
}


/* === ./components/treatment.css === */
/* ==========================================
   TREATMENT METHODS
   ========================================== */
.treatment {
    padding: var(--section-gap) 0;
    background: var(--color-white);
}

.treatment__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.treatment__col {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.treatment-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.treatment-item__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-sm);
    background: rgba(117, 146, 131, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.treatment-item__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.treatment-item__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .treatment__grid {
        grid-template-columns: 1fr;
    }
}


/* === ./components/advanced.css === */
/* ==========================================
   ADVANCED TREATMENT
   ========================================== */
.advanced {
    padding: var(--section-gap) 0;
}

.advanced__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.advanced__col {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.advanced-item {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.advanced-item__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.3;
}

.advanced-item__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.advanced-vision {
    position: relative;
    isolation: isolate;
    padding: clamp(72px, 8vw, 128px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(233, 222, 200, 0.42), transparent 32%),
        linear-gradient(135deg, #405d51 0%, var(--color-primary) 44%, #d8ccb3 100%);
}

.advanced-vision::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(115deg, rgba(26, 26, 26, 0.72) 0%, rgba(64, 93, 81, 0.44) 38%, rgba(242, 238, 227, 0.08) 100%),
        url('../../img/back.png') center / cover no-repeat;
    transform: scale(1.03);
}

.advanced-vision::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(circle at 64% 48%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 64% 48%, #000 0%, transparent 72%);
    opacity: 0.9;
}

.advanced-vision__ambient {
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.72;
    pointer-events: none;
}

.advanced-vision__ambient--one {
    top: 9%;
    right: 10%;
    background: radial-gradient(circle, rgba(233, 222, 200, 0.42), rgba(233, 222, 200, 0));
}

.advanced-vision__ambient--two {
    left: 4%;
    bottom: 6%;
    background: radial-gradient(circle, rgba(117, 146, 131, 0.56), rgba(117, 146, 131, 0));
}

.advanced-vision__panel {
    position: relative;
    min-height: 640px;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: clamp(28px, 4vw, 48px);
    background: linear-gradient(135deg, rgba(242, 238, 227, 0.18), rgba(255, 255, 255, 0.07));
    box-shadow: 0 32px 90px rgba(26, 26, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    overflow: hidden;
}

.advanced-vision__panel::before {
    content: '';
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(233, 222, 200, 0.24);
    border-radius: calc(clamp(28px, 4vw, 48px) - 12px);
    pointer-events: none;
}

.advanced-vision__panel::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: min(58vw, 660px);
    height: min(58vw, 660px);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(233, 222, 200, 0.2) 0 18%, transparent 18% 28%, rgba(255, 255, 255, 0.12) 28% 29%, transparent 29% 42%, rgba(117, 146, 131, 0.2) 42% 43%, transparent 43%);
    opacity: 0.88;
}

.advanced-vision__header {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.advanced-vision__title {
    max-width: 760px;
    color: var(--color-white);
    font-size: clamp(34px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.94;
    text-wrap: balance;
    text-shadow: 0 18px 42px rgba(26, 26, 26, 0.32);
}

.advanced-vision__orbit {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(42px, 7vw, 92px);
}

.advanced-vision__chip {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 96px;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(233, 222, 200, 0.66));
    box-shadow: 0 18px 42px rgba(26, 26, 26, 0.16);
    color: var(--color-text);
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.advanced-vision__chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.62) 44%, transparent 78%);
    opacity: 0.44;
    transform: translateX(-45%);
}

.advanced-vision__chip:hover,
.advanced-vision__chip:focus-visible {
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 24px 52px rgba(26, 26, 26, 0.22);
    transform: translateY(-3px);
}

.advanced-vision__chip:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.76);
    outline-offset: 3px;
}

body.inline-editing .advanced-vision__chip {
    cursor: default;
}

body.inline-editing .advanced-vision__chip:hover {
    transform: none;
}

.advanced-vision__num {
    position: relative;
    z-index: 1;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    font-size: 0;
    color: transparent;
    transition: background var(--transition);
}

.advanced-vision__method {
    position: relative;
    z-index: 1;
    flex: 1 1 min(180px, 100%);
    font-size: clamp(16px, 1.4vw, 21px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.advanced-vision__url {
    position: relative;
    z-index: 1;
    display: none;
    flex: 1 0 100%;
    margin-left: 22px;
    padding-top: 9px;
    border-top: 1px solid rgba(117, 146, 131, 0.24);
    color: rgba(26, 26, 26, 0.68);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-all;
}

.advanced-vision__url::before {
    content: 'Ссылка: ';
    color: rgba(26, 26, 26, 0.46);
}

body.inline-editing .advanced-vision__url {
    display: block;
}

body.inline-editing .advanced-vision__url:empty::after {
    content: attr(data-placeholder);
    color: rgba(26, 26, 26, 0.42);
}

.advanced-stream {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    color: var(--color-text);
    background: var(--color-bg);
}

.advanced-stream::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(242, 238, 227, 0.9) 0%, rgba(242, 238, 227, 0.66) 43%, rgba(242, 238, 227, 0.24) 72%, rgba(117, 146, 131, 0.16) 100%),
        url('../../img/back.png') center / cover no-repeat;
    transform: scale(1.02);
}

.advanced-stream::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.28), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(242, 238, 227, 0.22));
}

.advanced-stream__shade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: min(52vw, 780px);
    background: linear-gradient(90deg, transparent, rgba(233, 222, 200, 0.22) 28%, rgba(117, 146, 131, 0.18));
    pointer-events: none;
}

.advanced-stream__container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: clamp(36px, 8vw, 112px);
    align-items: center;
    padding-top: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(72px, 9vw, 120px);
}

.advanced-stream__content {
    max-width: 720px;
    padding: clamp(22px, 4vw, 42px) 0;
}

.advanced-stream__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: none;
}

.advanced-stream__kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: rgba(117, 146, 131, 0.58);
}

.advanced-stream__title {
    max-width: 820px;
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.065em;
    text-wrap: balance;
    color: var(--color-text);
    text-shadow: 0 18px 48px rgba(255, 255, 255, 0.48);
}

.advanced-stream__text {
    max-width: 560px;
    margin-top: 28px;
    color: rgba(26, 26, 26, 0.72);
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.62;
}

.advanced-stream__button {
    margin-top: 34px;
    min-width: 230px;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(117, 146, 131, 0.22);
}

.advanced-stream__rail {
    position: relative;
    height: 458px;
    padding: 6px;
    overflow: hidden;
    border-radius: 34px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 78%, transparent 100%);
}

.advanced-stream__rail::before,
.advanced-stream__rail::after {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 2;
    height: 82px;
    pointer-events: none;
}

.advanced-stream__rail::before {
    top: 0;
    background: linear-gradient(180deg, rgba(242, 238, 227, 0.86), transparent);
}

.advanced-stream__rail::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(242, 238, 227, 0.9), transparent);
}

.advanced-stream__track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: advancedStreamLoop 32s linear infinite;
    will-change: transform;
}

.advanced-stream__rail:hover .advanced-stream__track {
    animation-play-state: paused;
}

.advanced-stream__set {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.advanced-stream__card {
    display: flex;
    align-items: center;
    min-height: 88px;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-text);
    box-shadow: 0 14px 36px rgba(117, 146, 131, 0.14);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.advanced-stream__dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(117, 146, 131, 0.62);
    box-shadow: 0 0 0 5px rgba(117, 146, 131, 0.1);
}

.advanced-stream__method {
    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

@keyframes advancedStreamLoop {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(-50% - 7px));
    }
}

@media (max-width: 1024px) {
    .advanced__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advanced-vision__panel {
        min-height: auto;
    }

    .advanced-vision__orbit {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .advanced-vision__chip {
        min-height: 108px;
        padding: 16px;
        border-radius: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .advanced-stream__container {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: 34px;
    }

    .advanced-stream__rail {
        height: 444px;
    }

    .advanced-stream__card {
        min-height: 84px;
        padding: 18px 20px;
    }
}

@media (max-width: 767px) {
    .advanced__grid {
        grid-template-columns: 1fr;
    }

    .advanced-vision {
        padding: 56px 0;
    }

    .advanced-vision::before {
        background:
            linear-gradient(145deg, rgba(26, 26, 26, 0.78) 0%, rgba(64, 93, 81, 0.58) 58%, rgba(242, 238, 227, 0.12) 100%),
            url('../../img/back.png') center / cover no-repeat;
    }

    .advanced-vision__ambient {
        width: 220px;
        height: 220px;
    }

    .advanced-vision__panel {
        padding: 28px 18px;
        border-radius: 28px;
    }

    .advanced-vision__panel::before,
    .advanced-vision__panel::after {
        display: none;
    }

    .advanced-vision__orbit {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 32px;
    }

    .advanced-vision__chip {
        min-height: 72px;
        padding: 14px;
        border-radius: 18px;
    }

    .advanced-vision__num {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .advanced-stream {
        min-height: auto;
    }

    .advanced-stream::before {
        background:
            linear-gradient(180deg, rgba(242, 238, 227, 0.92), rgba(242, 238, 227, 0.58) 48%, rgba(242, 238, 227, 0.88) 100%),
            url('../../img/back.png') center / cover no-repeat;
    }

    .advanced-stream__shade {
        width: 100%;
    }

    .advanced-stream__container {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .advanced-stream__title {
        font-size: clamp(34px, 12vw, 48px);
    }

    .advanced-stream__text {
        margin-top: 20px;
        font-size: 16px;
    }

    .advanced-stream__button {
        width: 100%;
        margin-top: 26px;
    }

    .advanced-stream__rail {
        height: 410px;
        border-radius: 26px;
    }

    .advanced-stream__card {
        min-height: 78px;
        padding: 16px 18px;
        border-radius: 22px;
    }

    .advanced-stream__method {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .advanced-stream__track {
        animation: none;
    }
}


/* === ./components/statistics.css === */
/* ==========================================
   STATISTICS
   ========================================== */
.statistics {
    padding: var(--section-gap) 0;
    background: var(--color-primary);
    color: var(--color-white);
}

.statistics__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-item__circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition);
}

.stat-item:hover .stat-item__circle {
    transform: scale(1.1);
}

.stat-item__number {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-item__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.8;
    line-height: 1.4;
    max-width: 160px;
}

@media (max-width: 1024px) {
    .statistics__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .statistics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stat-item__number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .statistics__grid {
        grid-template-columns: 1fr;
    }
}


/* === ./components/map.css === */
/* ==========================================
   MAP
   ========================================== */
.map-section {
    width: 100%;
}

.map-section__map {
    width: 100%;
    height: 500px;
    background: var(--color-secondary);
}

@media (max-width: 767px) {
    .map-section__map {
        height: 350px;
    }
}


/* === ./components/footer.css === */
/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 64px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 200px 1fr 220px;
    gap: 48px;
    padding-bottom: 48px;
}

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

.footer__brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-white);
}

.footer__brand-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.65;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer__col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a {
    font-size: 14px;
    opacity: 0.65;
    transition: opacity var(--transition);
}

.footer__list a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    text-align: right;
}

.footer__search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.footer__search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer__search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer__schedule {
    font-size: 13px;
    opacity: 0.65;
}

.footer__phone {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer__copy {
    font-size: 13px;
    opacity: 0.4;
}

@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__contacts {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .footer__nav {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* === ./components/back-to-top.css === */
/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #637f72;
    transform: translateY(-2px);
}

.back-to-top span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .back-to-top span {
        display: none;
    }
}


/* === ./components/modal.css === */
/* ==========================================
   MODAL
   ========================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.65);
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    box-shadow: 0 32px 100px rgba(26, 26, 26, 0.22), 0 0 0 1px rgba(117,146,131,0.08);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal.active .modal__dialog {
    transform: translateY(0) scale(1);
}

/* Decorative accent line at top of modal */
.modal__dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    animation: modalGradient 3s ease infinite;
}

@keyframes modalGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all var(--transition);
    background: transparent;
}

.modal__close:hover {
    background: rgba(26, 26, 26, 0.06);
    color: var(--color-text);
    transform: rotate(90deg);
}

.modal__header {
    text-align: center;
    margin-bottom: 32px;
}

.modal__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.1), rgba(233, 222, 200, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.modal__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
}

.modal__subtitle {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.modal__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.modal__input {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    font-family: var(--font-family);
    background: var(--color-bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    transition: all var(--transition);
    outline: none;
}

.modal__input::placeholder {
    color: var(--color-secondary);
}

.modal__input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(117, 146, 131, 0.1);
}

/* Validation error state */
.modal__input--error {
    border-color: #D64545;
    background: rgba(214, 69, 69, 0.03);
}

.modal__input--error:focus {
    border-color: #D64545;
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.1);
}

/* Validation success state */
.modal__input--valid {
    border-color: var(--color-primary);
}

.modal__error {
    font-size: 12px;
    color: #D64545;
    line-height: 1.3;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal__error--visible {
    min-height: 16px;
    max-height: 40px;
    opacity: 1;
    margin-top: 2px;
}

.modal__server-error {
    background: rgba(214, 69, 69, 0.06);
    border: 1px solid rgba(214, 69, 69, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: #D64545;
    text-align: center;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.modal__textarea {
    resize: vertical;
    min-height: 80px;
}

.modal__submit {
    margin-top: 6px;
    padding: 16px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.modal__submit-loader {
    display: inline-flex;
    align-items: center;
}

.modal__spinner {
    animation: spin 0.8s linear infinite;
}

.modal__privacy {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.5;
}

.modal__privacy a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Success state */
.modal__success {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.modal__success--visible {
    display: block;
    animation: successFadeIn 0.5s ease forwards;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal__success-check {
    margin-bottom: 24px;
}

.modal__success-svg {
    display: inline-block;
}

.modal__success-circle {
    stroke-dasharray: 190;
    stroke-dashoffset: 190;
    animation: drawCircle 0.6s ease forwards 0.1s;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

.modal__success-tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawTick 0.4s ease forwards 0.6s;
}

@keyframes drawTick {
    to { stroke-dashoffset: 0; }
}

.modal__success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.modal__success-text {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal__success-close {
    min-width: 160px;
}

/* --- Consent Checkbox (152-ФЗ) --- */
.modal__consent {
    margin-top: 4px;
    margin-bottom: 16px;
}

.modal__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.modal__consent-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modal__consent-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(117, 146, 131, 0.35);
    border-radius: 4px;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s ease;
    background: var(--color-white);
}

.modal__consent-checkbox:checked + .modal__consent-check {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.modal__consent-checkbox:checked + .modal__consent-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal__consent-checkbox:focus-visible + .modal__consent-check {
    box-shadow: 0 0 0 3px rgba(117, 146, 131, 0.25);
}

.modal__consent--error .modal__consent-check {
    border-color: var(--color-error, #d32f2f);
}

.modal__consent-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-light);
}

.modal__consent-text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal__consent-text a:hover {
    color: var(--color-accent);
}

.modal__consent-error {
    margin-top: 4px;
    margin-left: 30px;
}

@media (max-width: 480px) {
    .modal__dialog {
        padding: 36px 24px;
    }

    .modal__title {
        font-size: 20px;
    }
}


/* === ./components/breadcrumbs.css === */
/* ==========================================
   BREADCRUMBS — Reusable Component
   ========================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0 0;
    font-size: 14px;
    color: var(--color-text-light);
}

.breadcrumbs__link {
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition);
}

.breadcrumbs__link:hover {
    color: var(--color-text);
}

.breadcrumbs__sep {
    color: var(--color-secondary);
    user-select: none;
}

.breadcrumbs__current {
    font-weight: 600;
    color: var(--color-text);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .breadcrumbs {
        padding: 16px 0 0;
        font-size: 13px;
        gap: 8px;
    }
}


/* === ./components/page-header.css === */
/* ==========================================
   PAGE HEADER — Reusable Inner Page Title
   ========================================== */
.page-header {
    padding-top: calc(var(--header-height) + 20px);
}

.page-header__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.2;
    margin-top: 40px;
    margin-bottom: 16px;
}

.page-header__subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 40px;
}

/* --- Responsive Tablet --- */
@media (max-width: 1024px) {
    .page-header__title {
        margin-top: 32px;
    }
}

/* --- Responsive Mobile --- */
@media (max-width: 767px) {
    .page-header {
        padding-top: calc(var(--header-height) + 12px);
    }

    .page-header__title {
        font-size: 24px;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .page-header__subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }
}


/* === ./components/inner-cta.css === */
/* ==========================================
   INNER CTA — Reusable CTA Banner for Inner Pages
   ========================================== */
.inner-cta {
    margin-top: 64px;
    margin-bottom: var(--section-gap);
    padding: 36px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5a7a6b 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

/* Decorative circle */
.inner-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.inner-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.inner-cta__content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.inner-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.inner-cta__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.inner-cta__text {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.4;
}

.inner-cta__text span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 4px;
}

/* Unified CTA section wrapper — use on all pages */
.cta-section {
    padding: 0 0 var(--section-gap);
}

.cta-section .inner-cta {
    margin-bottom: 0;
}

.inner-cta__action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.inner-cta .btn--accent {
    padding: 14px 36px;
    font-size: 15px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.inner-cta .btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
    .inner-cta {
        padding: 28px 28px;
        gap: 24px;
    }

    .inner-cta__icon {
        width: 46px;
        height: 46px;
    }

    .inner-cta__text {
        font-size: 16px;
    }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
    .inner-cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        margin-top: 40px;
        gap: 20px;
    }

    .inner-cta__content {
        flex-direction: column;
        gap: 12px;
    }

    .inner-cta__icon {
        width: 48px;
        height: 48px;
    }

    .inner-cta__text {
        font-size: 15px;
    }

    .inner-cta .btn--accent {
        padding: 14px 32px;
        width: 100%;
    }
}



/* --- Pages --- */
/* === ./pages/diseases-catalog.css === */
/* ==========================================
   DISEASES CATALOG PAGE
   ========================================== */

/* --- Page Layout --- */
.diseases-catalog {
    padding-bottom: var(--section-gap);
}

/* --- Alphabet Navigation --- */
.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.alpha-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(117, 146, 131, 0.08);
    transition: all var(--transition);
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.alpha-nav__item:hover:not(.alpha-nav__item--disabled):not(.alpha-nav__item--active) {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(117, 146, 131, 0.25);
}

.alpha-nav__item--active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 3px 10px rgba(117, 146, 131, 0.25);
}

.alpha-nav__item--all {
    width: auto;
    padding: 0 16px;
    letter-spacing: 0.02em;
}

.alpha-nav__item--disabled {
    color: var(--color-secondary);
    background: transparent;
    cursor: default;
    opacity: 0.45;
}

/* --- Tags Quick Nav --- */
.diseases-catalog__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.diseases-catalog__tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(117, 146, 131, 0.08);
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.diseases-catalog__tag:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 146, 131, 0.25);
}

.diseases-catalog__tag--active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(117, 146, 131, 0.25);
}

/* --- Filter Hidden --- */
.diseases-catalog__group--hidden {
    display: none;
}

/* --- Diseases List --- */
.diseases-catalog__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Group (Category Section) --- */
.diseases-catalog__group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
}

.diseases-catalog__group:first-child {
    padding-top: 0;
}

.diseases-catalog__group:last-child {
    border-bottom: none;
}

/* --- Circle with Letter --- */
.diseases-catalog__group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 2px;
}

.diseases-catalog__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(117, 146, 131, 0.2);
}

.diseases-catalog__group-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* --- Group Items (Links Grid) --- */
.diseases-catalog__group-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.diseases-catalog__item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    line-height: 1.4;
    position: relative;
}

.diseases-catalog__item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-secondary);
    margin-right: 12px;
    flex-shrink: 0;
    transition: background var(--transition);
}

.diseases-catalog__item:hover {
    background: rgba(117, 146, 131, 0.06);
    color: var(--color-primary);
}

.diseases-catalog__item:hover::before {
    background: var(--color-primary);
}



/* ==========================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================== */
@media (max-width: 1024px) {
    .alpha-nav {
        gap: 5px;
        padding: 14px 16px;
    }

    .alpha-nav__item {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .alpha-nav__item--all {
        padding: 0 14px;
    }

    .diseases-catalog__group-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .diseases-catalog__circle {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .diseases-catalog__group-title {
        font-size: 18px;
    }

    .diseases-catalog__tag {
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* ==========================================
   RESPONSIVE — Mobile (≤767px)
   ========================================== */
@media (max-width: 767px) {
    .alpha-nav {
        gap: 4px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .alpha-nav__item {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 6px;
    }

    .alpha-nav__item--all {
        padding: 0 10px;
        font-size: 11px;
    }

    /* Tags nav */
    .diseases-catalog__tags {
        gap: 6px;
        padding: 16px;
        margin-bottom: 32px;
    }

    .diseases-catalog__tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Groups */
    .diseases-catalog__group {
        gap: 14px;
        padding: 24px 0;
    }

    .diseases-catalog__group-header {
        gap: 12px;
    }

    .diseases-catalog__circle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .diseases-catalog__group-title {
        font-size: 16px;
    }

    .diseases-catalog__group-items {
        grid-template-columns: 1fr;
    }

    .diseases-catalog__item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .diseases-catalog__item::before {
        width: 5px;
        height: 5px;
        margin-right: 10px;
    }
}

/* ==========================================
   RESPONSIVE — Small Mobile (≤480px)
   ========================================== */
@media (max-width: 480px) {
    .alpha-nav__item {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 5px;
    }

    .alpha-nav__item--all {
        padding: 0 8px;
    }

    .diseases-catalog__tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .diseases-catalog__tags {
        gap: 5px;
        padding: 12px;
    }
}


/* === ./pages/articles.css === */
/* ==========================================
   ARTICLES PAGE
   ========================================== */

/* --- Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Article Card --- */
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-secondary) 100%);
}

.article-card__image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    opacity: 0.4;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 24px;
}

.article-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color var(--transition);
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card__title {
    color: var(--color-primary);
}

.article-card__excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.55;
    flex: 1;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition);
}

.article-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.article-card:hover .article-card__link svg {
    transform: translateX(3px);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    transition: all var(--transition);
    cursor: pointer;
}

.pagination__item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(117, 146, 131, 0.06);
}

.pagination__item--active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    pointer-events: none;
}

.pagination__item--disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination__item--prev,
.pagination__item--next {
    gap: 6px;
    font-size: 14px;
}

.pagination__item svg {
    width: 18px;
    height: 18px;
}

.pagination__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    user-select: none;
}

/* ==========================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================== */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .article-card__body {
        padding: 18px 18px 20px;
    }

    .article-card__title {
        font-size: 16px;
    }

    .pagination {
        margin-top: 44px;
    }
}

/* ==========================================
   RESPONSIVE — Mobile (≤767px)
   ========================================== */
@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 440px;
    }

    .article-card__image {
        aspect-ratio: 16 / 9;
    }

    .article-card__body {
        padding: 16px 16px 20px;
    }

    .article-card__title {
        font-size: 16px;
    }

    .article-card__excerpt {
        font-size: 13px;
    }

    .pagination {
        margin-top: 36px;
        gap: 6px;
    }

    .pagination__item {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* ==========================================
   RESPONSIVE — Small Mobile (≤480px)
   ========================================== */
@media (max-width: 480px) {
    .pagination__item--prev span,
    .pagination__item--next span {
        display: none;
    }
}


/* === ./pages/textpage.css === */
/* ==========================================
   TEXT PAGE — Universal Content Page Styles
   ==========================================
   Все стили привязаны к HTML-тегам внутри
   .textpage__content — контент-менеджер может
   использовать стандартные теги WYSIWYG-редактора.
   ========================================== */

/* --- Layout: 2-column (content + sidebar) --- */
.textpage {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: var(--section-gap);
}

.textpage__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* When there's no sidebar, content takes full width */
.textpage__layout:not(:has(.textpage__sidebar)) {
    grid-template-columns: 1fr;
}

.textpage__main {
    min-width: 0;
}

.textpage__sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* ==========================================
   CONTENT: Tag-based typography
   ========================================== */
.textpage__content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

/* --- Headings --- */
.textpage__content h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.textpage__content h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    margin-top: 36px;
    margin-bottom: 16px;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.textpage__content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin-top: 28px;
    margin-bottom: 12px;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* First heading after TOC */
.textpage__content > h2:first-child,
.textpage__content > nav + h2 {
    margin-top: 0;
}

/* --- Paragraphs --- */
.textpage__content p {
    margin-bottom: 18px;
}

.textpage__content p:last-child {
    margin-bottom: 0;
}

/* --- Links --- */
.textpage__content a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(117, 146, 131, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition);
}

.textpage__content a:hover {
    color: #5a7a6b;
    text-decoration-color: var(--color-primary);
}


/* ==========================================
   BULLETED LIST (ul)
   ========================================== */
.textpage__content ul {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.textpage__content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.65;
}

.textpage__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.7;
}

/* Nested ul */
.textpage__content ul ul {
    margin: 8px 0 4px;
}

.textpage__content ul ul li::before {
    width: 6px;
    height: 6px;
    background: transparent;
    border: 1.5px solid var(--color-primary);
}


/* ==========================================
   NUMBERED LIST (ol)
   ========================================== */
.textpage__content ol:not(.textpage__toc-list) {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    counter-reset: ol-counter;
}

.textpage__content ol:not(.textpage__toc-list) li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    line-height: 1.65;
    counter-increment: ol-counter;
}

.textpage__content ol:not(.textpage__toc-list) li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(117, 146, 131, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ==========================================
   ACCENT BLOCK (blockquote)
   ========================================== */
.textpage__content blockquote {
    position: relative;
    margin: 32px 0;
    padding: 24px 28px 24px 32px;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.06), rgba(233, 222, 200, 0.12));
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text);
}

.textpage__content blockquote p {
    margin-bottom: 10px;
}

.textpage__content blockquote p:last-child {
    margin-bottom: 0;
}

.textpage__content blockquote strong {
    color: var(--color-primary);
}


/* ==========================================
   IMAGES (figure / img)
   ========================================== */
.textpage__content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 28px 0;
}

.textpage__content figure {
    margin: 32px 0;
}

.textpage__content figure img {
    margin: 0;
    width: 100%;
}

.textpage__content figcaption {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
    font-style: italic;
}

/* Image floats for inline placement */
.textpage__content figure[style*="float:left"],
.textpage__content figure[style*="float: left"] {
    margin: 8px 28px 16px 0;
    max-width: 45%;
}

.textpage__content figure[style*="float:right"],
.textpage__content figure[style*="float: right"] {
    margin: 8px 0 16px 28px;
    max-width: 45%;
}


/* ==========================================
   TABLE OF CONTENTS (nav > ol/ul)
   ========================================== */
.textpage__toc {
    margin: 0 0 36px;
    padding: 24px 28px;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.textpage__toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.textpage__toc-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.textpage__toc-title svg {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--color-text-light);
    transition: transform var(--transition);
}

.textpage__toc.collapsed .textpage__toc-title svg {
    transform: rotate(180deg);
}

.textpage__toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: toc-counter;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.textpage__toc.collapsed .textpage__toc-list {
    max-height: 0 !important;
}

.textpage__toc-list li {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    counter-increment: toc-counter;
}

.textpage__toc-list li::before {
    display: none !important;
}

.textpage__toc-list a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none !important;
    border-bottom: 1px solid rgba(117, 146, 131, 0.08);
    transition: all var(--transition);
}

.textpage__toc-list a::before {
    content: counter(toc-counter) '.';
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.textpage__toc-list li:last-child a {
    border-bottom: none;
}

.textpage__toc-list a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

/* Nested TOC (h3-level) */
.textpage__toc-list ul {
    margin: 0 !important;
    padding: 0 0 0 24px !important;
    list-style: none !important;
}

.textpage__toc-list ul li::before {
    display: none !important;
}

.textpage__toc-list ul a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
    padding: 6px 0;
}


/* ==========================================
   CTA BLOCK (inline call-to-action)
   ========================================== */
.textpage__cta {
    margin: 40px 0;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5a7a6b 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.textpage__cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.textpage__cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.textpage__cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
}

.textpage__cta-content {
    flex: 1;
}

.textpage__cta-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.textpage__cta-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.textpage__cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    margin-top: 8px;
    transition: opacity var(--transition);
}

.textpage__cta-phone:hover {
    opacity: 0.85;
    color: #ffffff !important;
    text-decoration: none !important;
}

.textpage__cta-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.textpage__cta-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
    font-family: var(--font-family);
}

.textpage__cta-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.textpage__cta-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.textpage__cta-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
}

.textpage__cta-submit:hover {
    background: #ddd0b5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.textpage__cta-privacy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.textpage__cta-privacy a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: underline !important;
}


/* ==========================================
   EXPERT BLOCK
   ========================================== */
.textpage__expert {
    margin: 40px 0;
    padding: 28px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.textpage__expert-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(117, 146, 131, 0.15);
}

.textpage__expert-info {
    flex: 1;
    min-width: 0;
}

.textpage__expert-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.textpage__expert-label::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.textpage__expert-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.textpage__expert-position {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.textpage__expert-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}


/* ==========================================
   AUTHOR BLOCK
   ========================================== */
.textpage__author {
    margin: 48px 0 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5a7a6b 100%);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.textpage__author::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.textpage__author::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.textpage__author-photo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.textpage__author-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.textpage__author-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.textpage__author-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.textpage__author-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.textpage__author-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.textpage__author-date time {
    font-weight: 700;
    color: #ffffff;
    font-size: 14px;
}


/* ==========================================
   DOCTOR/EXPERT COMMENT
   ========================================== */
.textpage__comment {
    margin: 36px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(233, 222, 200, 0.15), rgba(117, 146, 131, 0.06));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(233, 222, 200, 0.4);
    position: relative;
}

.textpage__comment::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 64px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.12;
    font-family: Georgia, serif;
}

.textpage__comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.textpage__comment-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(117, 146, 131, 0.15);
}

.textpage__comment-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.textpage__comment-position {
    font-size: 13px;
    color: var(--color-text-light);
}

.textpage__comment-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.textpage__comment-body p {
    margin-bottom: 10px;
}

.textpage__comment-body p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   FAQ (div-based accordion)
   ========================================== */
.textpage__faq {
    margin: 48px 0 32px;
}

.textpage__faq-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.faq-item:first-of-type {
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-family);
    text-align: left;
    gap: 16px;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--color-primary);
}

.faq-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__answer {
    grid-template-rows: 1fr;
}

.faq-item__answer-inner {
    overflow: hidden;
}

.faq-item__answer-inner p {
    padding: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}


/* ==========================================
   BIBLIOGRAPHY (cite / references)
   ========================================== */
.textpage__references {
    margin: 48px 0 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(233, 222, 200, 0.18), rgba(117, 146, 131, 0.06));
    border-radius: var(--radius);
    border: 1px solid rgba(233, 222, 200, 0.35);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative corner */
.textpage__references::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(117, 146, 131, 0.04);
    pointer-events: none;
}

.textpage__references-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(117, 146, 131, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.textpage__references-title::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.textpage__references ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ref-counter;
}

.textpage__references ol li {
    position: relative;
    padding-left: 32px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    counter-increment: ref-counter;
    border-bottom: 1px solid rgba(117, 146, 131, 0.07);
    transition: background var(--transition);
}

.textpage__references ol li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.textpage__references ol li:first-child {
    padding-top: 0;
}

.textpage__references ol li:hover {
    background: rgba(117, 146, 131, 0.03);
}

.textpage__references ol li::before {
    content: counter(ref-counter) '.';
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 13px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: inline;
}

.textpage__references ol li:first-child::before {
    top: 0;
}

.textpage__references ol li a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(117, 146, 131, 0.3);
    text-underline-offset: 2px;
    word-break: break-all;
}


/* ==========================================
   SIDEBAR WIDGETS
   ========================================== */

/* --- Shared widget styles --- */
.textpage__widget {
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.textpage__widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}

.textpage__widget-title:hover {
    color: var(--color-primary);
}

.textpage__widget-title::after {
    content: '';
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 15l-6-6-6 6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform var(--transition);
}

.textpage__widget.collapsed .textpage__widget-title::after {
    transform: rotate(180deg);
}

.textpage__widget-body {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.textpage__widget.collapsed .textpage__widget-body {
    max-height: 0 !important;
    opacity: 0;
}

.textpage__widget.collapsed .textpage__widget-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
}

/* --- Related articles --- */
.textpage__related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.textpage__related-list li {
    margin-bottom: 0;
}

.textpage__related-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    text-decoration: none;
    transition: all var(--transition);
}

.textpage__related-list li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

.textpage__related-list a:hover {
    padding-left: 6px;
}

.textpage__related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color var(--transition);
}

.textpage__related-list a:hover .textpage__related-title {
    color: var(--color-primary);
}

.textpage__related-meta {
    font-size: 12px;
    color: var(--color-text-light);
}

/* --- Tags in sidebar --- */
.textpage__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.textpage__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(117, 146, 131, 0.08);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all var(--transition);
}

.textpage__tag:hover {
    background: var(--color-primary);
    color: var(--color-white) !important;
}

/* --- Treatment methods widget --- */
.textpage__treatment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.textpage__treatment-list li {
    margin-bottom: 0;
}

.textpage__treatment-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
}

.textpage__treatment-list li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

.textpage__treatment-list a::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(117, 146, 131, 0.08);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14M5 12h14' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all var(--transition);
}

.textpage__treatment-list a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.textpage__treatment-list a:hover::before {
    background-color: rgba(117, 146, 131, 0.15);
}


/* ==========================================
   STRONG, EM, MARK, SMALL
   ========================================== */
.textpage__content strong {
    font-weight: 700;
    color: var(--color-text);
}

.textpage__content em {
    font-style: italic;
}

.textpage__content mark {
    background: rgba(233, 222, 200, 0.5);
    padding: 1px 4px;
    border-radius: 3px;
}

.textpage__content small {
    font-size: 14px;
    color: var(--color-text-light);
}

/* --- Horizontal rule --- */
.textpage__content hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 36px 0;
}

/* --- Tables --- */
.textpage__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    border-radius: var(--radius);
    overflow: hidden;
}

.textpage__content .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.textpage__content .table-wrap table {
    margin: 0;
}

.textpage__content table th,
.textpage__content table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.textpage__content table th {
    background: rgba(117, 146, 131, 0.08);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

.textpage__content table tr:hover td {
    background: rgba(117, 146, 131, 0.03);
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .textpage__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .textpage__sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* On tablet both widgets are always expanded side-by-side */
    .textpage__widget.collapsed .textpage__widget-body {
        max-height: none !important;
        opacity: 1;
    }

    .textpage__widget.collapsed .textpage__widget-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom-color: var(--color-primary);
    }

    .textpage__widget.collapsed .textpage__widget-title::after {
        transform: none;
    }

    .textpage__widget-title {
        cursor: default;
    }

    .textpage__cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .textpage__cta-form {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .textpage__content h2 {
        margin-top: 36px;
        margin-bottom: 16px;
    }

    .textpage__content h3 {
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .textpage__content {
        font-size: 16px;
    }

    .textpage__sidebar {
        grid-template-columns: 1fr;
    }

    .textpage__expert {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 24px 20px;
    }

    .textpage__author {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .textpage__author-date {
        align-items: center;
    }

    .textpage__author-photo {
        width: 72px;
        height: 72px;
    }

    .textpage__toc {
        padding: 20px;
    }

    .textpage__cta {
        padding: 24px 20px;
    }

    .textpage__cta-phone {
        font-size: 20px;
    }

    .textpage__references {
        padding: 20px;
    }

    .textpage__comment {
        padding: 20px;
    }

    .textpage__content blockquote {
        padding: 20px 20px 20px 24px;
        margin: 24px 0;
    }

    .textpage__content figure[style*="float"],
    .textpage__content figure[style*="float"] {
        float: none !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
    }

    .textpage__content table {
        font-size: 14px;
        min-width: 480px;
    }

    .textpage__content table th,
    .textpage__content table td {
        padding: 10px 12px;
    }
}


/* === ./pages/prices.css === */
/* ==========================================
   PRICES PAGE — Price List Styles
   ========================================== */

/* --- Category Tabs --- */
.prices-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    padding-bottom: 8px;
}

.prices-tabs__btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.prices-tabs__btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(117, 146, 131, 0.05);
}

.prices-tabs__btn--active {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.prices-tabs__btn--active:hover {
    color: var(--color-white);
    background: #637f72;
    border-color: #637f72;
}

/* --- Price Section --- */
.prices-section {
    margin-bottom: 48px;
}

.prices-section__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.prices-section__title {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

/* --- Price Table --- */
.prices-table {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.prices-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 20px;
    transition: background var(--transition);
}

.prices-table__row:not(:last-child) {
    border-bottom: 1px solid rgba(117, 146, 131, 0.08);
}

.prices-table__row:not(.prices-table__row--header):hover {
    background: rgba(117, 146, 131, 0.03);
}

.prices-table__row--header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #5a7a6b 100%);
    padding: 14px 24px;
}

.prices-table__row--header .prices-table__cell {
    color: var(--color-white);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prices-table__row--highlight {
    background: rgba(117, 146, 131, 0.05);
}

.prices-table__row--highlight:hover {
    background: rgba(117, 146, 131, 0.08) !important;
}

.prices-table__cell--service {
    flex: 1;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.4;
}

.prices-table__cell--price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
    white-space: nowrap;
    min-width: 120px;
}

.prices-table__cell--free {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 16px;
}

/* --- Section animation --- */
.prices-section--visible {
    animation: pricesFadeIn 0.35s ease;
}

@keyframes pricesFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
    .prices-tabs {
        margin-bottom: 36px;
    }

    .prices-section {
        margin-bottom: 36px;
    }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
    .prices-tabs {
        gap: 6px;
        margin-bottom: 28px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

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

    .prices-tabs__btn {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .prices-section {
        margin-bottom: 28px;
    }

    .prices-section__header {
        margin-bottom: 14px;
    }

    .prices-section__title {
        font-size: 17px;
    }

    /* Mobile table layout — stacked rows */
    .prices-table__row--header {
        display: none;
    }

    .prices-table__row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
        gap: 6px;
    }

    .prices-table__cell--service {
        font-size: 14px;
    }

    .prices-table__cell--price {
        font-size: 15px;
        text-align: left;
        min-width: unset;
        color: var(--color-primary);
    }
}


/* === ./pages/clinic-detail.css === */
/* ==========================================
   CLINIC DETAIL PAGE (cd-*)
   ========================================== */

/* --------------- HERO SECTION --------------- */
.cd-hero {
    padding-bottom: 0;
}

.cd-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 36px;
    padding-bottom: var(--section-gap);
}

/* --------------- GALLERY --------------- */
.cd-gallery__main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    aspect-ratio: 16 / 10;
}

.cd-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.cd-gallery__counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.04em;
}

.cd-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
}

.cd-gallery__main:hover .cd-gallery__nav {
    opacity: 1;
}

.cd-gallery__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.cd-gallery__nav--prev { left: 12px; }
.cd-gallery__nav--next { right: 12px; }

.cd-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.cd-gallery__thumb {
    flex: 1;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all var(--transition);
    background: var(--color-bg);
}

.cd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.cd-gallery__thumb:hover img {
    transform: scale(1.08);
}

.cd-gallery__thumb--active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(117, 146, 131, 0.2);
}

/* --------------- QUICK INFO CARD --------------- */
.cd-info {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-md);
}

.cd-info__head {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.cd-info__name {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cd-info__tagline {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cd-info__rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.cd-info__row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cd-info__row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.08), rgba(117, 146, 131, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.cd-info__row-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    margin-bottom: 3px;
}

.cd-info__row-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.cd-info__row-value--badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), #d8c9a8);
    color: var(--color-text);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.cd-info__metro-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.cd-info__metro {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.cd-info__metro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.cd-info__metro-min {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
}

/* --------------- DIRECTIONS --------------- */
.cd-directions {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

.cd-directions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cd-direction-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
}

.cd-direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.cd-direction-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), #5f7e6e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(117, 146, 131, 0.2);
}

.cd-direction-card__icon svg {
    width: 26px;
    height: 26px;
}

.cd-direction-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.cd-direction-card__desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --------------- HOSPITALIZATION STEPS --------------- */
.cd-steps {
    padding: var(--section-gap) 0;
}

.cd-steps__subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 560px;
    margin: -20px auto 48px;
    line-height: 1.6;
}

.cd-steps__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

/* Connecting line */
.cd-steps__track::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
    opacity: 0.3;
    z-index: 0;
}

.cd-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.cd-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #5a7a6b);
    color: var(--color-white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(117, 146, 131, 0.25);
    position: relative;
}

.cd-step__num::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(117, 146, 131, 0.2);
}

.cd-step__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.cd-step__desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --------------- CONDITIONS (amenity panel) --------------- */
.cd-conditions {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

.cd-conditions__panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 12px 36px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cd-conditions__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.cd-conditions__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cd-amenity {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.cd-amenity:hover {
    background: rgba(117, 146, 131, 0.03);
}

/* Remove bottom border on last two items */
.cd-amenity:nth-last-child(-n+2) {
    border-bottom: none;
}

/* Vertical divider between columns */
.cd-amenity:nth-child(odd) {
    border-right: 1px solid var(--color-border);
    padding-left: 0;
}

.cd-amenity:nth-child(even) {
    padding-right: 0;
}

.cd-amenity__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.1), rgba(117, 146, 131, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.cd-amenity__icon svg {
    width: 22px;
    height: 22px;
}

.cd-amenity__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cd-amenity__desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.55;
}

/* Nutrition banner */
.cd-nutrition {
    margin-top: 36px;
    padding: 32px 36px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.cd-nutrition:hover {
    box-shadow: var(--shadow-md);
}

.cd-nutrition__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #d8c9a8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text);
}

.cd-nutrition__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.cd-nutrition__desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --------------- ABOUT CLINIC --------------- */
.cd-about {
    padding: var(--section-gap) 0;
}

.cd-about__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cd-about__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.cd-about__text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.cd-about__desc {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.75;
}

.cd-about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cd-stat {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    background: var(--color-bg);
}

.cd-stat__value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.cd-stat__label {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color var(--transition);
}

/* --------------- SPECIALISTS --------------- */
.cd-specialists {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

.cd-specialists__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

a.cd-spec-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    transition: all var(--transition);
}

a.cd-spec-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

a.cd-spec-card:hover .cd-spec-card__name {
    color: var(--color-primary);
}

.cd-spec-card__photo {
    height: 320px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.cd-spec-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

a.cd-spec-card:hover .cd-spec-card__photo img {
    transform: scale(1.05);
}

.cd-spec-card__info {
    padding: 24px 28px 28px;
}

.cd-spec-card__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color var(--transition);
}

/* Arrow icon like clinic cards */
.cd-spec-card__name::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23BFC3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: all var(--transition);
    opacity: 0.6;
    margin-left: auto;
}

a.cd-spec-card:hover .cd-spec-card__name::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23759283' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    opacity: 1;
    transform: translateX(3px);
}

.cd-spec-card__position {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* --------------- PRICING --------------- */
.cd-pricing {
    padding: var(--section-gap) 0;
}

.cd-pricing__table {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 40px 28px;
    box-shadow: var(--shadow-md);
}

.cd-pricing__row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.cd-pricing__row:last-child {
    border-bottom: none;
}

.cd-pricing__service {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.cd-pricing__dots {
    flex: 1;
    border-bottom: 2px dotted rgba(117, 146, 131, 0.2);
    min-width: 40px;
    margin-bottom: 4px;
}

.cd-pricing__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Extra expandable */
.cd-pricing__extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-pricing__extra.cd-pricing__extra--open {
    max-height: 500px;
}

.cd-pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    border: none;
}

.cd-pricing__toggle:hover {
    color: #5a7a6b;
}

.cd-pricing__toggle svg {
    transition: transform var(--transition);
}

.cd-pricing__toggle--open svg {
    transform: rotate(180deg);
}

.cd-pricing__note {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 20px auto 0;
    padding: 16px 20px;
    background: rgba(117, 146, 131, 0.06);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cd-pricing__note svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* CTA section spacing */
/* CTA section spacing handled by .cta-section in inner-cta.css */

/* Services section on clinic detail */
.cd-services {
    padding: var(--section-gap) 0;
}

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
    .cd-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cd-info {
        position: static;
    }

    .cd-directions__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cd-steps__track {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .cd-steps__track::before {
        display: none;
    }

    .cd-conditions__list {
        grid-template-columns: 1fr 1fr;
    }

    .cd-conditions__panel {
        padding: 8px 24px;
    }

    .cd-about__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px;
    }

    .cd-about__text .section-title {
        text-align: center;
    }

    .cd-specialists__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
    .cd-hero__inner {
        margin-top: 24px;
        gap: 24px;
    }

    .cd-gallery__nav {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .cd-gallery__thumbs {
        gap: 6px;
    }

    .cd-info {
        padding: 24px 20px 24px;
    }

    .cd-info__name {
        font-size: 22px;
    }

    .cd-info__rows {
        gap: 16px;
    }

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

    .cd-direction-card {
        padding: 24px 20px 20px;
    }

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

    .cd-step__num {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .cd-conditions__list {
        grid-template-columns: 1fr;
    }

    .cd-conditions__panel {
        padding: 4px 20px;
    }

    .cd-amenity {
        padding: 20px 0;
    }

    .cd-amenity:nth-child(odd) {
        border-right: none;
        padding-left: 0;
    }

    .cd-amenity:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--color-border);
    }

    .cd-amenity:last-child {
        border-bottom: none;
    }

    .cd-nutrition {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .cd-about__inner {
        padding: 28px 20px;
        gap: 28px;
    }

    .cd-about__stats {
        gap: 12px;
    }

    .cd-stat {
        padding: 18px 12px;
    }

    .cd-stat__value {
        font-size: 26px;
    }

    .cd-specialists__grid {
        grid-template-columns: 1fr;
    }

    .cd-spec-card__photo {
        height: 260px;
    }

    .cd-pricing__table {
        padding: 24px 20px 20px;
    }

    .cd-pricing__service {
        font-size: 14px;
    }

    .cd-pricing__price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cd-amenity__icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}


/* === ./pages/doctors-catalog.css === */
/* ==========================================
   DOCTORS CATALOG PAGE
   ========================================== */

.doctors-catalog {
    padding-bottom: var(--section-gap);
}

/* --- Grid 4 columns --- */
.doctors-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* --- Doctor Card (catalog version) --- */
.dcat-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dcat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.dcat-card__photo {
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(117,146,131,0.08) 0%, rgba(233,222,200,0.15) 100%);
}

.dcat-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.dcat-card:hover .dcat-card__photo img {
    transform: scale(1.04);
}

.dcat-card__body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dcat-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.dcat-card__degree {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.dcat-card__meta {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}

.dcat-card__meta strong {
    color: var(--color-text);
    font-weight: 600;
}

.dcat-card__specialties {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.dcat-card__prices {
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dcat-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.dcat-card__price-label {
    color: var(--color-text-light);
}

.dcat-card__price-value {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.pagination__item:hover:not(.pagination__item--active):not(.pagination__item--dots) {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 146, 131, 0.25);
}

.pagination__item--active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(117, 146, 131, 0.25);
    cursor: default;
}

.pagination__item--dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

.pagination__item--arrow {
    font-size: 0;
}

.pagination__item--arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
    .doctors-catalog__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .dcat-card__photo {
        height: 220px;
    }
}

/* ==========================================
   RESPONSIVE — Small Tablet
   ========================================== */
@media (max-width: 860px) {
    .doctors-catalog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
    .doctors-catalog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 32px;
    }

    .dcat-card__photo {
        height: 260px;
    }

    .dcat-card__body {
        padding: 14px 14px 18px;
    }

    .dcat-card__name {
        font-size: 14px;
    }

    .dcat-card__degree {
        font-size: 12px;
    }

    .dcat-card__meta,
    .dcat-card__price-row {
        font-size: 12px;
    }

    .dcat-card__specialties {
        font-size: 11px;
    }

    .pagination__item {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ==========================================
   RESPONSIVE — Small Mobile
   ========================================== */
@media (max-width: 480px) {
    .doctors-catalog__grid {
        grid-template-columns: 1fr;
    }

    .dcat-card__photo {
        height: 320px;
    }
}


/* === ./pages/doctor-detail.css === */
/* ==========================================
   DOCTOR DETAIL PAGE (dd-*)
   ========================================== */

/* --------------- HERO SECTION --------------- */
.dd-hero {
    padding-bottom: 0;
}

.dd-hero__inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 36px;
    padding-bottom: var(--section-gap);
}

/* --------------- PHOTO CARD --------------- */
.dd-photo-card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    /* Scale card to always fit viewport */
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dd-photo-card__img {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.dd-photo-card__bottom {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.dd-photo-card__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.dd-photo-card__stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.08), rgba(117, 146, 131, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.dd-photo-card__stat-icon svg {
    width: 18px;
    height: 18px;
}

.dd-photo-card__stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    font-weight: 600;
}

.dd-photo-card__stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.dd-photo-card__cta {
    margin-top: 4px;
}

/* --------------- RIGHT: INFO --------------- */
.dd-info {
    min-width: 0;
}

.dd-info__name {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.dd-info__degree {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--color-primary), #5a7a6b);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.dd-info__degree svg {
    width: 16px;
    height: 16px;
}

/* --------------- ABOUT --------------- */
.dd-about {
    margin-bottom: 40px;
}

.dd-about__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 680px;
}

.dd-about__text p + p {
    margin-top: 12px;
}

/* --------------- SECTION TITLES --------------- */
.dd-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile-only header inside photo card */
.dd-photo-card__mobile-header {
    display: none;
}

/* --------------- SPECIALTIES --------------- */
.dd-specialties {
    margin-bottom: 48px;
}

.dd-specialties__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dd-specialties__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
}

.dd-specialties__item:hover {
    border-color: var(--color-primary);
    background: rgba(117, 146, 131, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.dd-specialties__item svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* --------------- EDUCATION TIMELINE --------------- */
.dd-education {
    margin-bottom: 48px;
}

.dd-timeline {
    position: relative;
    padding-left: 36px;
}

.dd-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent), transparent);
    border-radius: 1px;
}

.dd-timeline__item {
    position: relative;
    padding-bottom: 28px;
}

.dd-timeline__item:last-child {
    padding-bottom: 0;
}

.dd-timeline__dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    z-index: 1;
    transition: all var(--transition);
}

.dd-timeline__item:hover .dd-timeline__dot {
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(117, 146, 131, 0.15);
}

.dd-timeline__year {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.dd-timeline__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 2px;
}

.dd-timeline__place {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* --------------- QUALIFICATION --------------- */
.dd-qualification {
    margin-bottom: 48px;
}

.dd-qual-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dd-qual-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.dd-qual-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.dd-qual-item__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-accent), #d8c9a8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.dd-qual-item__icon svg {
    width: 20px;
    height: 20px;
}

.dd-qual-item__year {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.dd-qual-item__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.45;
}

/* --------------- PUBLICATIONS --------------- */
.dd-publications {
    margin-bottom: 48px;
}

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

.dd-pub-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: var(--color-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-primary);
    transition: all var(--transition);
}

.dd-pub-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.dd-pub-item__num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #5a7a6b);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-pub-item__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.55;
}

.dd-pub-item__journal {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: 4px;
    font-style: italic;
}

/* CTA section spacing handled by .cta-section in inner-cta.css */

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
    .dd-hero__inner {
        grid-template-columns: 320px 1fr;
        gap: 36px;
    }

    .dd-photo-card {
        position: static;
    }

    .dd-qual-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
    .dd-hero__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
    }

    .dd-photo-card {
        max-width: 360px;
        margin: 0 auto;
    }

    .dd-info__name:not(.dd-info__name--mobile),
    .dd-info__degree:not(.dd-info__degree--mobile) {
        display: none;
    }

    .dd-photo-card__mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 16px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--color-border);
    }

    .dd-info__name--mobile {
        font-size: 24px;
        text-align: center;
        margin-bottom: 8px;
    }

    .dd-info__degree--mobile {
        display: inline-flex;
    }

    .dd-about__text {
        font-size: 14px;
    }

    .dd-section-title {
        font-size: 17px;
    }

    .dd-specialties__list {
        gap: 8px;
    }

    .dd-specialties__item {
        padding: 8px 14px;
        font-size: 13px;
    }

    .dd-timeline {
        padding-left: 30px;
    }

    .dd-timeline__dot {
        left: -30px;
        width: 14px;
        height: 14px;
    }

    .dd-timeline::before {
        left: 6px;
    }

    .dd-qual-list {
        grid-template-columns: 1fr;
    }

    .dd-qual-item {
        padding: 14px 16px;
    }

    .dd-pub-item {
        padding: 14px 16px;
    }

    .dd-pub-item__num {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }
}


/* === ./pages/contacts.css === */
/* ==========================================
   CONTACTS PAGE
   ========================================== */

.contacts-page {
    padding-bottom: 0;
}

/* --- Contact Cards Grid --- */
.contacts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card__note {
    margin-top: auto;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.contact-card:hover .contact-card__icon {
    background: var(--color-primary);
}

.contact-card__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-primary);
    transition: stroke var(--transition);
}

.contact-card:hover .contact-card__icon svg {
    stroke: var(--color-white);
}

.contact-card__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.contact-card__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.4;
}

a.contact-card__value:hover {
    color: var(--color-primary);
}

.contact-card__value--phone {
    font-size: 22px;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.contact-card__note {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
    padding-top: 4px;
}

/* --- CTA inside page --- */
.contacts-cta {
    margin-bottom: 64px;
}

/* --- Map flush to footer --- */
.map-section--flush {
    margin-bottom: 0;
}

.map-section--flush + .footer {
    margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .contacts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
        margin-bottom: 48px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .contact-card__value--phone {
        font-size: 20px;
    }

    .contacts-cta {
        margin-bottom: 48px;
    }
}


/* === ./pages/faq.css === */
/* ==========================================
   FAQ PAGE — styles
   ========================================== */

/* --- Page-specific --- */
.faq-page {
    padding-bottom: 0;
}

/* --- FAQ Grid: two-column on desktop --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 0;
}

/* --- Category Card --- */
.faq-category {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.faq-category__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(117, 146, 131, 0.1);
}

.faq-category__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(117, 146, 131, 0.1), rgba(233, 222, 200, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.faq-category__icon svg {
    width: 22px;
    height: 22px;
}

.faq-category__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.faq-category__desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 400;
    line-height: 1.4;
}

/* --- FAQ List inside category --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* --- FAQ Item --- */
.faq-item {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(117, 146, 131, 0.06);
}

.faq-item--open {
    background: rgba(117, 146, 131, 0.06);
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
    transition: color 0.2s;
}

.faq-item__question:hover {
    color: var(--color-primary);
}

.faq-item--open .faq-item__question {
    color: var(--color-primary);
}

.faq-item__icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--color-text);
    transition: transform var(--transition);
}

.faq-item__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item--open .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item--open .faq-item__icon::before,
.faq-item--open .faq-item__icon::after {
    background: var(--color-primary);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__answer p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text-light);
}

.faq-item__answer a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item__answer a:hover {
    color: var(--color-accent);
}

/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
    .faq-grid {
        gap: 24px;
    }

    .faq-category {
        padding: 28px;
    }
}

/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-category {
        padding: 24px 20px;
    }

    .faq-category__header {
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .faq-category__icon {
        width: 42px;
        height: 42px;
    }

    .faq-category__icon svg {
        width: 20px;
        height: 20px;
    }

    .faq-category__title {
        font-size: 1.1rem;
    }

    .faq-item__question {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .faq-item__answer p {
        padding: 0 16px 14px;
        font-size: 0.85rem;
    }
}
