:root {
    --color-bg: #ffffff;
    --color-bg-gray: #f1f7fa;
    --color-text: #0e2833;
    --color-text-muted: #5b7480;
    --color-primary: #00a89c;
    --color-primary-dark: #008479;
    --color-accent: #0a3a48;
    --color-accent-2: #ffb547;
    --color-border: #d9e6ec;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 14px rgba(10, 58, 72, .06);
    --shadow-md: 0 12px 30px rgba(10, 58, 72, .1);
    --container: 1180px;
    --font-base: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    font-size: var(--font-base);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.text-accent { color: var(--color-primary); }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ----- Header ----- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img {
    display: block;
    height: 44px;
    width: auto;
}
.logo--light img {
    filter: brightness(0) invert(1);
}

.nav {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}
.nav a {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color .15s;
}
.nav a:hover { color: var(--color-primary); }

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.header__phone {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-accent);
}
.header__cta { padding: 10px 18px; font-size: 14px; }

.burger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* ----- Hero ----- */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #e2f5f3 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.badge {
    display: inline-block;
    background: rgba(0, 168, 156, .12);
    color: var(--color-primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero__lead {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
}
.hero__points {
    display: grid;
    gap: 10px;
    margin: 22px 0 30px;
}
.hero__points li {
    padding-left: 28px;
    position: relative;
    color: var(--color-text-muted);
}
.hero__points li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    width: 20px; height: 20px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}
.trust-item strong {
    display: block;
    font-size: 1.6rem;
    color: var(--color-accent);
    font-weight: 800;
}
.trust-item span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero__note {
    margin-top: 28px;
    padding: 14px 18px;
    background: #fff5e6;
    border-left: 3px solid var(--color-accent-2);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-accent);
    line-height: 1.5;
}

.hero__media { position: relative; }
.hero__photo {
    aspect-ratio: 4/5;
    max-height: 560px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__sticker {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-accent-2);
    color: var(--color-accent);
    padding: 18px 22px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    transform: rotate(-4deg);
}
.hero__sticker strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}
.hero__sticker span { font-size: 13px; font-weight: 600; }

/* ----- Image placeholders ----- */
.img-placeholder {
    background: repeating-linear-gradient(
        45deg,
        #d6ecea,
        #d6ecea 12px,
        #c2e0dd 12px,
        #c2e0dd 24px
    );
    border: 2px dashed #93c5be;
    border-radius: var(--radius-lg);
    color: #2f6a64;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 24px;
    min-height: 220px;
}
.img-placeholder--hero { aspect-ratio: 4/5; max-height: 560px; }
.img-placeholder--tall { aspect-ratio: 4/5; }
.img-placeholder--doctor { aspect-ratio: 1/1; min-height: 0; margin-bottom: 18px; }
.img-placeholder--avatar {
    width: 56px; height: 56px; min-height: 0;
    border-radius: 50%;
    font-size: 11px;
    padding: 4px;
    flex-shrink: 0;
}

/* ----- Sections ----- */
.section { padding: 90px 0; }
.section--gray { background: var(--color-bg-gray); }
.section--accent { background: var(--color-accent); color: #fff; }
.section--accent .section__lead { color: rgba(255, 255, 255, .8); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.section--accent .section__eyebrow { color: var(--color-accent-2); }
.section__lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}
.section__head--light h2 { color: #fff; }

/* ----- Cards ----- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 16px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media {
    aspect-ratio: 4/3;
    border-radius: 12px;
    margin-bottom: 22px;
    min-height: 0;
    overflow: hidden;
    position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .04em;
    margin: -38px 0 14px 12px;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 168, 156, .35);
}
.card h3 { padding: 0 12px; }
.card p { color: var(--color-text-muted); margin: 0; padding: 0 12px; }

.cards__note {
    text-align: center;
    margin: 36px auto 0;
    max-width: 720px;
    color: var(--color-text-muted);
    font-size: 15px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* ----- Diagnostics ----- */
.diag {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.diag__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.diag__list li {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
}
.diag__list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.diag__num {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-primary);
    width: 44px;
}
.diag__list h3 { font-size: 1rem; margin: 0 0 6px; }
.diag__list p { font-size: 14px; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

.diag__result {
    background: linear-gradient(135deg, #00a89c 0%, #0a3a48 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 18px 40px rgba(0, 168, 156, .25);
    position: sticky;
    top: 100px;
}
.diag__result-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent-2);
    margin-bottom: 12px;
}
.diag__result h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}
.diag__result ul {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}
.diag__result ul li {
    padding-left: 28px;
    position: relative;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    line-height: 1.45;
}
.diag__result ul li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 1px;
    width: 20px; height: 20px;
    background: var(--color-accent-2);
    color: var(--color-accent);
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.diag__result-note {
    text-align: center;
    margin: 14px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

/* Quiz hint */
.quiz__hint {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin: -16px 0 22px;
}

/* ----- Compare table ----- */
.compare {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}
.compare-table th {
    background: #f1f7fa;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
}
.compare-table td:first-child { color: var(--color-text-muted); font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table__featured {
    background: rgba(0, 168, 156, .08) !important;
    color: var(--color-primary-dark) !important;
    font-weight: 700;
}
.compare-table thead .compare-table__featured {
    background: var(--color-primary) !important;
    color: #fff !important;
    font-size: 16px;
}

/* ----- Quiz ----- */
.quiz {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(8px);
}
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__step h3 { font-size: 1.4rem; margin-bottom: 24px; color: #fff; }
.quiz__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.quiz__options label {
    cursor: pointer;
    display: block;
}
.quiz__options input { display: none; }
.quiz__options span {
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    transition: all .15s;
    font-weight: 500;
}
.quiz__options label:hover span {
    background: rgba(255, 255, 255, .14);
    border-color: var(--color-accent-2);
}
.quiz__options input:checked + span {
    background: var(--color-accent-2);
    color: var(--color-accent);
    border-color: var(--color-accent-2);
    font-weight: 600;
}
.quiz__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.quiz__contact input {
    height: 54px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.quiz__contact input::placeholder { color: rgba(255, 255, 255, .55); }
.quiz__note {
    margin-top: 14px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}
.quiz__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.quiz__progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    overflow: hidden;
}
.quiz__progress-bar {
    display: block;
    height: 100%;
    background: var(--color-accent-2);
    transition: width .3s;
}

/* ----- Steps ----- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}
.step__num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    opacity: .85;
}
.step p { color: var(--color-text-muted); margin: 0; }

/* ----- Grid 2 col ----- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.check-list { display: grid; gap: 14px; }
.check-list li {
    padding-left: 32px;
    position: relative;
    color: var(--color-text-muted);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 1px;
    width: 22px; height: 22px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.check-list strong { color: var(--color-text); }

/* ----- Doctors ----- */
.doctors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.doctor {
    background: #f1f3f5;
    border-radius: 22px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.doctor__media {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 14px;
    overflow: hidden;
    background: #d6d8db;
    margin-bottom: 18px;
}
.doctor__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.doctor__exp {
    position: absolute;
    bottom: 24px;
    right: 0;
    background: #ffc043;
    color: #1a1a1a;
    border-radius: 14px 0 0 14px;
    padding: 14px 18px;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
}
.doctor__exp span { display: block; font-size: 12px; font-weight: 500; }
.doctor__exp strong { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; }

.doctor__role {
    color: #6b7280;
    font-size: 14px;
    margin: 4px 0 14px;
    line-height: 1.4;
    min-height: 38px;
}
.doctor h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    flex: 1;
}

.doctor__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn--yellow {
    background: #ffc043;
    color: #1a1a1a;
    padding: 12px 22px;
    font-weight: 600;
}
.btn--yellow:hover { background: #ffb020; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ----- Prices ----- */
.prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.price-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 16px 40px rgba(0, 168, 156, .2);
}
.price-card__label {
    position: absolute;
    top: -12px; right: 24px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: .06em;
}
.price-card__price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 4px 0 18px;
}
.price-card ul { display: grid; gap: 10px; margin-bottom: 24px; }
.price-card li {
    color: var(--color-text-muted);
    padding-left: 22px;
    position: relative;
    font-size: 15px;
}
.price-card li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 4px; top: -2px;
    font-size: 18px;
}
.price-card .btn { margin-top: auto; }

/* ----- Advantages: image cards (blur on idle, sharp on hover) ----- */
.adv-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.adv-card {
    background: #f1f3f5;
    border-radius: 22px;
    padding: 16px 16px 28px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.adv-card__media {
    aspect-ratio: 16/10;
    border-radius: 14px;
    margin-bottom: 22px;
    min-height: 0;
    overflow: hidden;
    filter: blur(8px);
    transition: filter .35s ease;
}
.adv-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.adv-card h3,
.adv-card p {
    filter: blur(5px);
    transition: filter .35s ease, color .25s ease;
}
.adv-card h3 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    padding: 0 12px;
    color: var(--color-text);
}
.adv-card p {
    margin: 0;
    padding: 0 12px;
    color: var(--color-text-muted);
    line-height: 1.55;
}
.adv-card:hover,
.adv-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.adv-card:hover .adv-card__media,
.adv-card:focus-within .adv-card__media {
    filter: blur(0);
}
.adv-card:hover h3,
.adv-card:hover p,
.adv-card:focus-within h3,
.adv-card:focus-within p {
    filter: blur(0);
}
/* On touch devices: cycle through cards */
@media (hover: none) {
    .adv-card .adv-card__media,
    .adv-card h3,
    .adv-card p { filter: none; }
}

/* ----- Contraindications ----- */
.contra {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}
.contra__title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 36px;
    font-weight: 800;
}
.contra__list {
    display: grid;
    gap: 22px;
    counter-reset: contra;
}
.contra__list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-left: 0;
}
.contra__list li::before { content: none; }

.contra__num {
    flex-shrink: 0;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f3f5;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
}
.contra__num::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff5b5b;
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 6px rgba(255, 91, 91, .35);
}
.contra__text {
    padding-top: 10px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
}

.contra__cta {
    background: var(--color-primary);
    color: #fff;
    border-radius: 24px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 168, 156, .25);
    position: sticky;
    top: 100px;
}
.contra__cta-text {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 24px;
    color: #fff;
}
.contra__doctor {
    margin: 0 -8px 28px;
    border-radius: 18px;
    overflow: hidden;
}
.contra__doctor img {
    width: 100%;
    height: auto;
    display: block;
}
.img-placeholder--contra {
    aspect-ratio: 1/1.1;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 2px dashed rgba(255, 255, 255, .4);
    color: rgba(255, 255, 255, .9);
    min-height: 0;
}
.btn--white {
    background: #fff;
    color: var(--color-text);
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
}
.btn--white:hover { background: #f1f3f5; transform: translateY(-1px); }

/* ----- Video reviews ----- */
.vreviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}
.vreview {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #1a1a1a;
    box-shadow: var(--shadow-md);
}
.vreview__play {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.vreview__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .25s ease;
}
.vreview__play:hover .vreview__poster {
    transform: scale(1.04);
    filter: brightness(.92);
}
.vreview__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    transition: transform .2s ease, background .2s ease;
}
.vreview__play:hover .vreview__icon {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fff;
}
.vreview__caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    z-index: 2;
    pointer-events: none;
}
.vreview__caption strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}
.vreview__caption span {
    font-size: 13px;
    opacity: .9;
}

/* ----- Reviews ----- */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.review {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.review__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.review__author {
    display: block;
    font-weight: 700;
    font-size: 15px;
}
.review__stars {
    display: block;
    color: var(--color-accent-2);
    font-size: 14px;
    letter-spacing: 2px;
}
.review p {
    font-style: italic;
    margin: 0;
}

/* ----- FAQ ----- */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.faq__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 4px 24px;
    transition: box-shadow .2s;
}
.faq__item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 300;
    transition: transform .2s;
    flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
}

/* ----- Licenses ----- */
.licenses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 0 auto;
}
.license {
    display: block;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    border: none;
    padding: 0;
    cursor: zoom-in;
    font-family: inherit;
}
.license:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.license img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- Popup (consultation) ----- */
.popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(10, 58, 72, .25);
    border: 1px solid var(--color-border);
    z-index: 90;
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.popup.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.popup__close:hover { background: var(--color-bg-gray); color: var(--color-text); }
.popup__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 168, 156, .12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.popup__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--color-text);
}
.popup__text {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}
.popup__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popup__input {
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-gray);
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color .15s, background .15s;
}
.popup__input:focus { border-color: var(--color-primary); background: #fff; }
.popup__input.is-error { border-color: #e53e3e; }
.popup__btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 168, 156, .35);
    transition: background .15s, transform .15s;
}
.popup__btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.popup__btn:disabled { opacity: .6; pointer-events: none; }
.popup__note {
    text-align: center;
    font-size: 11px;
    color: var(--color-text-muted);
}
.popup__success {
    text-align: center;
    padding: 14px 0 4px;
}
.popup__success-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 8px;
}
@media (max-width: 600px) {
    .popup { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px; }
}

/* ----- Lightbox ----- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    cursor: zoom-out;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox__img,
.lightbox__video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    cursor: default;
    background: #000;
}
.lightbox__video {
    width: auto;
    height: 100%;
    max-height: 90vh;
}
.lightbox__frame {
    position: relative;
    width: min(90vw, 506px);
    aspect-ratio: 9/16;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    background: #000;
    cursor: default;
}
.lightbox__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.lightbox__close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    transition: transform .2s, background .2s;
    z-index: 201;
}
.lightbox__close:hover {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(90deg);
}

/* ----- CTA / Form ----- */
.section--cta {
    background: linear-gradient(135deg, #00a89c 0%, #0a3a48 100%);
    color: #fff;
}
.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(8px);
}
.cta__text h2 { color: #fff; }
.cta__text p { color: rgba(255, 255, 255, .85); }
.cta__bullets { display: grid; gap: 8px; margin-top: 18px; }
.cta__bullets li {
    padding-left: 26px;
    position: relative;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}
.cta__bullets li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 2px;
    width: 18px; height: 18px;
    background: var(--color-accent-2);
    color: var(--color-accent);
    font-size: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.form { display: grid; gap: 14px; }
.form__field { display: grid; gap: 6px; }
.form__field span {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
}
.form__field input {
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, background .15s;
}
.form__field input::placeholder { color: rgba(255, 255, 255, .55); }
.form__field input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, .18);
}
.form__check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    cursor: pointer;
}
.form__check input { accent-color: var(--color-accent-2); }

/* ----- Footer ----- */
.footer {
    background: #062430;
    color: rgba(255, 255, 255, .8);
    padding-top: 64px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer p { margin: 0 0 8px; font-size: 14px; }
.footer a:hover { color: var(--color-primary); }
.footer__about { color: rgba(255, 255, 255, .6); margin-top: 16px; font-size: 14px; max-width: 360px; }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

/* ===== Accessibility toolbar ===== */
.a11y-toggle {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 168, 156, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}
.a11y-toggle:hover { transform: scale(1.05); }

.a11y-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
    padding: 28px;
    z-index: 101;
    transition: right .3s;
    overflow-y: auto;
}
.a11y-panel.is-open { right: 0; }
.a11y-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.a11y-panel__head strong { font-size: 16px; }
.a11y-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
}
.a11y-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}
.a11y-row > span {
    width: 100%;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.a11y-row button {
    flex: 1;
    min-width: 60px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all .15s;
}
.a11y-row button:hover { border-color: var(--color-primary); }
.a11y-row button.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.a11y-reset {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--color-text-muted);
}
.a11y-reset:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* a11y modes */
body.a11y-font-small { --font-base: 14px; }
body.a11y-font-large { --font-base: 19px; }

body.a11y-bw,
body.a11y-bw * {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}
body.a11y-bw a { color: #0000ff !important; text-decoration: underline !important; }

body.a11y-wb,
body.a11y-wb * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}
body.a11y-wb a { color: #ffff00 !important; text-decoration: underline !important; }

body.a11y-sepia,
body.a11y-sepia * {
    background-color: #f5f5dc !important;
    color: #5c3a16 !important;
    border-color: #5c3a16 !important;
}
body.a11y-sepia a { color: #a52a2a !important; text-decoration: underline !important; }

body.a11y-blue,
body.a11y-blue * {
    background-color: #add8e6 !important;
    color: #00008b !important;
    border-color: #00008b !important;
}
body.a11y-blue a { color: #0000cd !important; text-decoration: underline !important; }

body.a11y-no-img .img-placeholder,
body.a11y-no-img img { visibility: hidden !important; }

/* ----- Adaptive ----- */
@media (max-width: 1024px) {
    .nav { display: none; }
    .header__phone { display: none; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .img-placeholder--hero { aspect-ratio: 16/10; max-height: none; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .doctors { grid-template-columns: repeat(2, 1fr); }
    .prices { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .reviews { grid-template-columns: 1fr; }
    .vreviews { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 36px; }
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .cta { grid-template-columns: 1fr; padding: 32px; }
    .contra { grid-template-columns: 1fr; gap: 36px; }
    .contra__cta { position: static; }
    .adv-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .diag { grid-template-columns: 1fr; gap: 32px; }
    .diag__result { position: static; }
    .diag__list { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .licenses { grid-template-columns: repeat(2, 1fr); }
    .burger { display: flex; }
    .header__cta { display: none; }
}
@media (max-width: 600px) {
    .section { padding: 64px 0; }
    .hero { padding: 40px 0 60px; }
    .hero__trust { grid-template-columns: 1fr; gap: 14px; }
    .cards { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .doctors { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .hero__actions .btn { width: 100%; }
    .quiz { padding: 24px; }
    .quiz__options { grid-template-columns: 1fr; }
    .quiz__contact { grid-template-columns: 1fr; }
    .contra__list { grid-template-columns: 1fr; }
}
