:root {
    --refresh-blue: #4772d0;
    --refresh-pink: #f111b0;
    --refresh-ink: #11131a;
    --refresh-muted: #626a78;
    --refresh-line: #e7e9ef;
    --refresh-soft: #f7f8fb;
    --refresh-pink-soft: #ffeffa;
    --refresh-radius: 8px;
    --refresh-max: 1180px;
    color-scheme: light;
}

/* Tilda header/footer port */
.tilda-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
}

.tilda-header__shell {
    max-width: none;
    min-height: 144px;
    padding: 24px 40px 18px;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.18);
}

.tilda-header__top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: start;
}

.tilda-logo {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
}

.tilda-logo img {
    width: 112px;
    height: auto;
    display: block;
}

.tilda-logo span {
    max-width: 158px;
    color: rgba(23, 23, 23, 0.5);
    font-size: 13px;
    line-height: 1.25;
}

.tilda-contact-row {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding-top: 8px;
    color: #171717;
    font-size: 12px;
    line-height: 1.3;
}

.tilda-contact-row span,
.tilda-contact-row a,
.tilda-footer__contacts span,
.tilda-footer__contacts a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.tilda-contact-row img,
.tilda-footer__contacts img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tilda-header__cta {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #4772d0;
    border: 2px solid #fff;
    border-radius: 12px;
    background: #ecf1fa;
    font-size: 16px;
}

.tilda-header__cta img {
    width: 20px;
    height: 20px;
}

.tilda-nav {
    max-width: 1400px;
    margin: 32px auto 0;
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 94px);
    color: #000;
    font-size: 20px;
    line-height: 1.55;
}

.tilda-nav a,
.tilda-nav__programs {
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.tilda-nav__programs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tilda-nav__programs img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.program-menu-open .tilda-nav__programs img {
    transform: rotate(180deg);
}

.program-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 12px);
    z-index: -1;
    padding: 24px 20px 32px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 60px rgba(16, 24, 64, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.program-menu-open .program-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.program-mega__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.program-mega__card {
    display: grid;
    gap: 12px;
    color: #171717;
    font-size: 18px;
    line-height: 1.35;
}

.program-mega__image {
    aspect-ratio: 207 / 165;
    overflow: hidden;
    border-radius: 14px;
    background: #ecf1fa;
}

.program-mega__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-mega__card:hover img {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 24, 64, 0.16);
}

.program-mega__card:hover {
    color: #2f4bd8;
}

.program-mega__all {
    min-height: 72px;
    align-self: center;
    justify-self: end;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    border-radius: 12px;
    background: #4772d0;
    font-size: 18px;
}

.program-mega__all img {
    width: 24px;
    height: 24px;
}

.tilda-footer {
    padding: 32px 40px 48px;
    color: #171717;
    background: #fff;
    border-top: 1px solid #e7e9ef;
}

.tilda-footer__top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
    gap: 48px;
}

.tilda-footer__logo img {
    width: 306px;
    max-width: 100%;
    height: auto;
    display: block;
}

.tilda-footer__contacts {
    margin-top: 32px;
    display: grid;
    gap: 12px;
    color: rgba(23, 23, 23, 0.7);
    font-size: 16px;
}

.tilda-footer h2 {
    margin: 0 0 22px;
    color: #171717;
    font-size: 18px;
    font-weight: 400;
}

.tilda-footer .footer-links {
    display: grid;
    gap: 10px;
}

.tilda-footer .footer-links a {
    color: rgba(23, 23, 23, 0.7);
    font-size: 16px;
}

.tilda-footer .footer-links a:hover {
    color: #4772d0;
}

.tilda-footer__social {
    max-width: 1400px;
    margin: 34px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tilda-footer__social a {
    padding: 9px 12px;
    color: #171717;
    border: 1px solid #dfe4ef;
    border-radius: 8px;
    background: #fff;
}

.tilda-footer__legal {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e7e9ef;
}

.tilda-footer p,
.tilda-footer address {
    color: rgba(23, 23, 23, 0.7);
}

.tilda-footer__legal p {
    max-width: 1110px;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 1240px) {
    .program-mega__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1160px) {
    .tilda-header__shell {
        min-height: 88px;
        padding: 16px 20px;
    }

    .tilda-header__top {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }

    .tilda-logo {
        grid-template-columns: 95px 1fr;
        gap: 12px;
    }

    .tilda-logo img {
        width: 95px;
    }

    .tilda-contact-row,
    .tilda-nav {
        display: none;
    }

    .nav-open .tilda-nav {
        position: fixed;
        inset: 88px 16px auto;
        z-index: 100;
        padding: 18px;
        display: grid;
        gap: 14px;
        border: 1px solid var(--refresh-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 22px 60px rgba(17, 19, 26, 0.12);
        font-size: 18px;
    }

    .program-mega {
        position: fixed;
        top: 164px;
        max-height: calc(100vh - 180px);
        overflow: auto;
        z-index: 99;
    }

    .program-mega__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-mega__all {
        justify-self: stretch;
    }

    .tilda-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tilda-header__shell {
        min-height: 64px;
        padding: 10px 16px;
    }

    .tilda-header__top {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .tilda-logo {
        grid-template-columns: 88px 1fr;
    }

    .tilda-logo img {
        width: 88px;
    }

    .tilda-logo span,
    .tilda-header__cta {
        display: none;
    }

    .nav-open .tilda-nav {
        inset: 64px 12px auto;
    }

    .program-mega {
        top: 134px;
        padding: 16px;
    }

    .program-mega__grid,
    .tilda-footer__top {
        grid-template-columns: 1fr;
    }

    .program-mega__card {
        grid-template-columns: 96px 1fr;
        align-items: center;
    }

    .program-mega__image {
        aspect-ratio: 1.25 / 1;
    }

    .tilda-footer {
        padding: 32px 20px 40px;
    }

    .tilda-footer__logo img {
        width: 180px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--refresh-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    background: #fff;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 1000;
    padding: 8px 12px;
    background: #fff;
}

.skip-link:focus {
    left: 8px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--refresh-line);
    backdrop-filter: blur(16px);
}

.site-header__bar {
    max-width: var(--refresh-max);
    min-height: 78px;
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: grid;
    gap: 2px;
}

.brand__mark,
.footer-logo {
    color: var(--refresh-blue);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand__tagline {
    max-width: 230px;
    color: var(--refresh-muted);
    font-size: 12px;
}

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

.site-nav__list {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 500;
}

.site-nav__list a {
    white-space: nowrap;
}

.site-nav__list a:hover,
.footer-links a:hover,
.header-phone:hover {
    color: var(--refresh-blue);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-phone {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--refresh-radius);
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    color: #fff;
    background: var(--refresh-pink);
}

.btn--primary:hover {
    background: var(--refresh-blue);
}

.btn--ghost {
    border-color: var(--refresh-line);
    background: #fff;
}

.btn--light {
    color: var(--refresh-blue);
    background: #fff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--refresh-line);
    border-radius: var(--refresh-radius);
    background: #fff;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--refresh-ink);
}

.site-main {
    min-height: 60vh;
}

.hero {
    max-width: var(--refresh-max);
    min-height: 640px;
    margin: 0 auto;
    padding: 96px 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: end;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--refresh-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.96;
}

.hero__content > p:not(.eyebrow) {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--refresh-muted);
    font-size: 20px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__panel {
    padding: 24px;
    border: 1px solid var(--refresh-line);
    border-radius: var(--refresh-radius);
    background: var(--refresh-soft);
    display: grid;
    gap: 8px;
}

.hero__panel span {
    color: var(--refresh-muted);
}

.section {
    max-width: var(--refresh-max);
    margin: 0 auto;
    padding: 72px 24px;
}

.section--muted {
    max-width: none;
    padding-left: max(24px, calc((100vw - var(--refresh-max)) / 2 + 24px));
    padding-right: max(24px, calc((100vw - var(--refresh-max)) / 2 + 24px));
    background: var(--refresh-soft);
}

.section__header {
    max-width: 720px;
    margin-bottom: 28px;
}

.section__header h2,
.booking-cta h2,
.entry h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
}

.service-grid,
.doctor-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card,
.doctor-card,
.product-card {
    min-height: 230px;
    padding: 22px;
    border: 1px solid var(--refresh-line);
    border-radius: var(--refresh-radius);
    background: #fff;
}

.service-card span {
    color: var(--refresh-pink);
    font-weight: 700;
}

.service-card h3,
.doctor-card h3,
.product-card h3 {
    margin: 18px 0 10px;
    font-size: 22px;
}

.service-card p,
.doctor-card p,
.product-card p,
.booking-cta p,
.site-footer p,
.site-footer address {
    color: var(--refresh-muted);
}

.doctor-card__photo,
.product-card__photo {
    aspect-ratio: 4 / 3;
    margin: -22px -22px 18px;
    overflow: hidden;
    background: var(--refresh-pink-soft);
}

.doctor-card__photo img,
.product-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-cta {
    max-width: var(--refresh-max);
    margin: 28px auto 72px;
    padding: 36px;
    border-radius: var(--refresh-radius);
    background: var(--refresh-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.booking-cta .eyebrow,
.booking-cta p {
    color: rgba(255, 255, 255, 0.82);
}

.home-hero {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(18, 28, 64, 0.95), rgba(18, 28, 64, 0.78) 48%, rgba(126, 11, 57, 0.68)),
        var(--hero-image) center / cover no-repeat,
        #14204a;
}

.home-hero__inner {
    max-width: var(--refresh-max);
    min-height: 560px;
    margin: 0 auto;
    padding: 56px 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 48px;
    align-items: center;
}

.home-hero .eyebrow,
.process-section .eyebrow {
    color: #9db8ff;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.04;
}

.home-hero__content > p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-hero__visual {
    position: relative;
    min-height: 340px;
}

.cell {
    position: absolute;
    display: block;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.7), transparent 12%),
        radial-gradient(circle at 68% 70%, rgba(241, 17, 176, 0.5), transparent 20%),
        rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.1), 0 24px 80px rgba(7, 12, 36, 0.34);
    backdrop-filter: blur(6px);
}

.cell--one {
    width: 220px;
    height: 220px;
    top: 24px;
    right: 68px;
}

.cell--two {
    width: 150px;
    height: 150px;
    left: 30px;
    top: 164px;
}

.cell--three {
    width: 104px;
    height: 104px;
    right: 10px;
    bottom: 58px;
}

.cell--four {
    width: 74px;
    height: 74px;
    left: 218px;
    bottom: 12px;
}

.direction-strip {
    max-width: var(--refresh-max);
    margin: -34px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    position: relative;
    z-index: 3;
}

.direction-strip a {
    min-height: 78px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #202636;
    background: #fff;
    border: 1px solid var(--refresh-line);
    font-weight: 650;
}

.metric-band {
    max-width: var(--refresh-max);
    margin: 0 auto;
    padding: 64px 24px 56px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.metric-band div {
    display: grid;
    gap: 8px;
}

.metric-band strong {
    color: #263f91;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.95;
}

.metric-band span {
    color: var(--refresh-muted);
    font-size: 17px;
}

.statement-band {
    padding: 56px 24px;
    color: #fff;
    background: #f1115f;
}

.statement-band > div {
    max-width: var(--refresh-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.statement-band p {
    max-width: 820px;
    margin: 0;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.04;
    font-weight: 720;
}

.section__header--wide {
    max-width: 900px;
}

.section__header > p:not(.eyebrow) {
    margin: 16px 0 0;
    color: var(--refresh-muted);
    font-size: 18px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.task-card {
    min-height: 360px;
    display: grid;
    grid-template-rows: 180px 1fr;
    overflow: hidden;
    border: 1px solid var(--refresh-line);
    border-radius: var(--refresh-radius);
    background: #fff;
}

.task-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--refresh-soft);
}

.task-card div {
    padding: 20px;
}

.task-card h3,
.process-step h3,
.star-card h3,
.program-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.12;
}

.task-card p,
.process-step p,
.star-card p,
.program-card p,
.program-focus__content p,
.result-cta p {
    color: var(--refresh-muted);
}

.strategy-section {
    padding: 88px 24px;
    color: #fff;
    background: #17224e;
}

.strategy-section > div {
    max-width: var(--refresh-max);
    margin: 0 auto;
}

.strategy-section h2 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.02;
}

.strategy-section p {
    max-width: 720px;
    margin: 22px 0 0 auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 20px;
}

.process-section {
    padding: 80px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 14%, rgba(241, 17, 176, 0.2), transparent 30%),
        #111b43;
}

.process-section__inner {
    max-width: var(--refresh-max);
    margin: 0 auto;
}

.process-section .section__header h2 {
    color: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.16);
}

.process-step {
    min-height: 230px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.055);
}

.process-step span {
    display: block;
    margin-bottom: 52px;
    color: #ff79cf;
    font-size: 14px;
    font-weight: 800;
}

.process-step p {
    color: rgba(255, 255, 255, 0.74);
}

.program-focus {
    max-width: var(--refresh-max);
    margin: 0 auto;
    padding: 84px 24px;
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.program-focus__media {
    overflow: hidden;
    border-radius: var(--refresh-radius);
    background: #fff3fb;
}

.program-focus__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.program-focus h2,
.result-cta h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
}

.benefit-list {
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.benefit-list li {
    padding: 10px 14px;
    border-radius: 999px;
    color: #263f91;
    background: #eef3ff;
    font-weight: 700;
}

.stars-section {
    border-top: 1px solid var(--refresh-line);
}

.stars-grid,
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.star-card,
.program-card {
    min-height: 240px;
    padding: 24px;
    border: 1px solid var(--refresh-line);
    border-radius: var(--refresh-radius);
    background: #fff;
}

.star-card span {
    display: inline-block;
    margin-bottom: 54px;
    color: var(--refresh-pink);
    font-size: 30px;
    font-weight: 800;
}

.result-cta {
    max-width: var(--refresh-max);
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
    gap: 36px;
    align-items: center;
}

.result-cta figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--refresh-radius);
    background: #17224e;
}

.result-cta img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.result-cta figcaption {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 180px;
    padding: 18px;
    color: #fff;
    border-radius: var(--refresh-radius);
    background: rgba(17, 27, 67, 0.9);
}

.result-cta figcaption strong,
.result-cta figcaption span {
    display: block;
}

.result-cta figcaption strong {
    font-size: 42px;
    line-height: 1;
}

.programs-section {
    padding-top: 32px;
}

.program-card {
    display: grid;
    align-content: space-between;
    gap: 20px;
}

.program-card a {
    color: var(--refresh-blue);
    font-weight: 750;
}

.site-footer {
    padding: 56px 24px 32px;
    color: #fff;
    background: #11131a;
}

.site-footer__grid,
.site-footer__legal {
    max-width: var(--refresh-max);
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.site-footer__brand p {
    max-width: 380px;
}

.site-footer address {
    font-style: normal;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--refresh-radius);
}

.site-footer__legal {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.content-area {
    max-width: 840px;
    margin: 0 auto;
}

@media (max-width: 1160px) {
    .site-header__bar {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        position: fixed;
        inset: 78px 16px auto;
        display: none;
        padding: 18px;
        border: 1px solid var(--refresh-line);
        border-radius: var(--refresh-radius);
        background: #fff;
        box-shadow: 0 22px 60px rgba(17, 19, 26, 0.12);
    }

    .nav-open .site-nav {
        display: block;
    }

    .site-nav__list {
        display: grid;
        justify-content: stretch;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 64px;
    }

    .home-hero__inner,
    .program-focus,
    .result-cta {
        grid-template-columns: 1fr;
    }

    .home-hero__inner {
        min-height: auto;
        padding-top: 72px;
    }

    .home-hero__visual {
        min-height: 320px;
    }

    .direction-strip,
    .metric-band,
    .task-grid,
    .stars-grid,
    .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .service-grid,
    .doctor-grid,
    .product-grid,
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header__bar {
        padding: 10px 16px;
    }

    .brand__tagline,
    .header-phone,
    .site-header__actions .btn {
        display: none;
    }

    .hero,
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 44px;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .home-hero__inner,
    .program-focus,
    .result-cta,
    .process-section,
    .strategy-section,
    .statement-band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-hero__visual {
        display: none;
    }

    .direction-strip {
        margin-top: 0;
        padding: 0;
        grid-template-columns: 1fr 1fr;
    }

    .direction-strip a {
        min-height: 64px;
        padding: 12px;
        font-size: 14px;
    }

    .metric-band,
    .task-grid,
    .process-grid,
    .stars-grid,
    .program-grid {
        grid-template-columns: 1fr;
    }

    .statement-band > div {
        grid-template-columns: 1fr;
    }

    .task-card {
        min-height: 0;
    }

    .process-step {
        min-height: 0;
    }

    .service-grid,
    .doctor-grid,
    .product-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .booking-cta {
        margin-left: 16px;
        margin-right: 16px;
        padding: 24px;
        display: grid;
    }
}

/* Final Tilda header/footer overrides */
.site-header.tilda-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
}

.site-header.tilda-header .tilda-header__shell {
    max-width: none;
    min-height: 144px;
    padding: 24px 40px 18px;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.18);
}

.site-header.tilda-header .tilda-header__top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: start;
}

.site-header.tilda-header .tilda-logo {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
}

.site-header.tilda-header .tilda-logo img {
    width: 112px;
    height: auto;
    display: block;
}

.site-header.tilda-header .tilda-logo span {
    max-width: 158px;
    color: rgba(23, 23, 23, 0.5);
    font-size: 13px;
    line-height: 1.25;
}

.site-header.tilda-header .tilda-contact-row {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding-top: 8px;
    color: #171717;
    font-size: 12px;
    line-height: 1.3;
}

.site-header.tilda-header .tilda-contact-row span,
.site-header.tilda-header .tilda-contact-row a,
.tilda-footer__contacts span,
.tilda-footer__contacts a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.site-header.tilda-header .tilda-contact-row img,
.tilda-footer__contacts img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.site-header.tilda-header .tilda-header__cta {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #4772d0;
    border: 2px solid #fff;
    border-radius: 12px;
    background: #ecf1fa;
    font-size: 16px;
}

.site-header.tilda-header .tilda-header__cta img {
    width: 20px;
    height: 20px;
}

.site-header.tilda-header .tilda-nav {
    position: static;
    max-width: 1400px;
    margin: 32px auto 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 94px);
    color: #000;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 20px;
    line-height: 1.55;
}

.site-header.tilda-header .tilda-nav a,
.site-header.tilda-header .tilda-nav__programs {
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.site-header.tilda-header .tilda-nav__links {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 94px);
    list-style: none;
}

.site-header.tilda-header .tilda-nav__links li {
    margin: 0;
}

.site-header.tilda-header .tilda-nav__programs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header.tilda-header .tilda-nav__programs img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.program-menu-open .tilda-nav__programs img {
    transform: rotate(180deg);
}

.site-header.tilda-header .program-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 12px);
    z-index: -1;
    padding: 24px 20px 32px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 60px rgba(16, 24, 64, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.program-menu-open .site-header.tilda-header .program-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header.tilda-header .program-mega__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.site-header.tilda-header .program-mega__card {
    display: grid;
    gap: 12px;
    color: #171717;
    font-size: 18px;
    line-height: 1.35;
}

.site-header.tilda-header .program-mega__image {
    aspect-ratio: 207 / 165;
    overflow: hidden;
    border-radius: 14px;
    background: #ecf1fa;
}

.site-header.tilda-header .program-mega__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header.tilda-header .program-mega__card:hover img {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 24, 64, 0.16);
}

.site-header.tilda-header .program-mega__card:hover {
    color: #2f4bd8;
}

.site-header.tilda-header .program-mega__all {
    min-height: 72px;
    align-self: center;
    justify-self: end;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    border-radius: 12px;
    background: #4772d0;
    font-size: 18px;
}

.site-header.tilda-header .program-mega__all img {
    width: 24px;
    height: 24px;
}

.site-footer.tilda-footer {
    padding: 32px 40px 48px;
    color: #171717;
    background: #fff;
    border-top: 1px solid #e7e9ef;
}

.site-footer.tilda-footer .tilda-footer__top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
    gap: 48px;
}

.site-footer.tilda-footer .tilda-footer__logo img {
    width: 306px;
    max-width: 100%;
    height: auto;
    display: block;
}

.site-footer.tilda-footer .tilda-footer__contacts {
    margin-top: 32px;
    display: grid;
    gap: 12px;
    color: rgba(23, 23, 23, 0.7);
    font-size: 16px;
}

.site-footer.tilda-footer h2 {
    margin: 0 0 22px;
    color: #171717;
    font-size: 18px;
    font-weight: 400;
}

.site-footer.tilda-footer .footer-links {
    display: grid;
    gap: 10px;
}

.site-footer.tilda-footer .footer-links a {
    color: rgba(23, 23, 23, 0.7);
    font-size: 16px;
}

.site-footer.tilda-footer .footer-links a:hover {
    color: #4772d0;
}

.site-footer.tilda-footer .tilda-footer__social {
    max-width: 1400px;
    margin: 34px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer.tilda-footer .tilda-footer__social a {
    padding: 9px 12px;
    color: #171717;
    border: 1px solid #dfe4ef;
    border-radius: 8px;
    background: #fff;
}

.site-footer.tilda-footer .tilda-footer__legal {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e7e9ef;
}

.site-footer.tilda-footer p,
.site-footer.tilda-footer address {
    color: rgba(23, 23, 23, 0.7);
}

.site-footer.tilda-footer .tilda-footer__legal p {
    max-width: 1110px;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 1240px) {
    .site-header.tilda-header .program-mega__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1160px) {
    .site-header.tilda-header .tilda-header__shell {
        min-height: 88px;
        padding: 16px 20px;
    }

    .site-header.tilda-header .tilda-header__top {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }

    .site-header.tilda-header .tilda-logo {
        grid-template-columns: 95px 1fr;
        gap: 12px;
    }

    .site-header.tilda-header .tilda-logo img {
        width: 95px;
    }

    .site-header.tilda-header .tilda-contact-row,
    .site-header.tilda-header .tilda-nav {
        display: none;
    }

    .nav-open .site-header.tilda-header .tilda-nav {
        position: fixed;
        inset: 88px 16px auto;
        z-index: 100;
        padding: 18px;
        display: grid;
        gap: 14px;
        border: 1px solid var(--refresh-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 22px 60px rgba(17, 19, 26, 0.12);
        font-size: 18px;
    }

    .nav-open .site-header.tilda-header .tilda-nav__links {
        display: grid;
        gap: 14px;
    }

    .site-header.tilda-header .program-mega {
        position: fixed;
        top: 164px;
        max-height: calc(100vh - 180px);
        overflow: auto;
        z-index: 99;
    }

    .site-header.tilda-header .program-mega__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header.tilda-header .program-mega__all {
        justify-self: stretch;
    }

    .site-footer.tilda-footer .tilda-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header.tilda-header .tilda-header__shell {
        min-height: 64px;
        padding: 10px 16px;
    }

    .site-header.tilda-header .tilda-header__top {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .site-header.tilda-header .tilda-logo {
        grid-template-columns: 88px 1fr;
    }

    .site-header.tilda-header .tilda-logo img {
        width: 88px;
    }

    .site-header.tilda-header .tilda-logo span,
    .site-header.tilda-header .tilda-header__cta {
        display: none;
    }

    .nav-open .site-header.tilda-header .tilda-nav {
        inset: 64px 12px auto;
    }

    .site-header.tilda-header .program-mega {
        top: 134px;
        padding: 16px;
    }

    .site-header.tilda-header .program-mega__grid,
    .site-footer.tilda-footer .tilda-footer__top {
        grid-template-columns: 1fr;
    }

    .site-header.tilda-header .program-mega__card {
        grid-template-columns: 96px 1fr;
        align-items: center;
    }

    .site-header.tilda-header .program-mega__image {
        aspect-ratio: 1.25 / 1;
    }

    .site-footer.tilda-footer {
        padding: 32px 20px 40px;
    }

    .site-footer.tilda-footer .tilda-footer__logo img {
        width: 180px;
    }
}
