/* ============================================================
   Улыбка - секции нового сайта. Опирается на токены css/ui.css
   ============================================================ */

/* ---------- Верхняя строка ---------- */
.topline {
    background: var(--deep);
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
}

.topline__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
    min-height: 44px;
}

.topline__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .86);
}

.topline__item:hover { color: #fff; }
.topline__item .ico { width: 17px; height: 17px; opacity: .8; }
.topline__vk { margin-left: auto; }

/* ---------- Шапка ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav__in {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 82px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-size: 22px; font-weight: 800; color: var(--deep); letter-spacing: -.02em; }
.brand__txt i { font-style: normal; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.brand--light .brand__txt b { color: #fff; }
.brand--light .brand__txt i { color: rgba(255,255,255,.6); }

.nav__menu { display: flex; gap: 26px; margin-left: auto; }
.nav__menu a { color: var(--ink); font-weight: 600; font-size: 16px; }
.nav__menu a:hover { color: var(--coral); }

.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-size: 19px; font-weight: 800; color: var(--deep); white-space: nowrap; }
.btn--sm { padding: 12px 22px; font-size: 15px; }

.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav__burger span { display: block; height: 2px; background: var(--deep); border-radius: 2px; margin: 4px 0; transition: var(--tr); }

/* ---------- Первый экран ---------- */
.hero {
    position: relative;
    padding: 72px 0 84px;
    background:
        radial-gradient(900px 420px at 88% 8%, rgba(36, 179, 164, .14), transparent 60%),
        linear-gradient(180deg, #F7FBFC 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero__in {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
}

.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; max-width: 560px; }

.hero__pluses { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.hero__pluses li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.hero__pluses .ico { width: 22px; height: 22px; color: var(--mint); stroke-width: 2.4; margin-top: 1px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__note { font-size: 15px; color: var(--ink-3); margin: 0; }
.hero__phone { font-size: 19px; font-weight: 800; color: var(--deep); }

.hero__media { position: relative; }

.hero__media img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.hero__stamp {
    position: absolute;
    left: -18px;
    bottom: 28px;
    background: #fff;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: var(--shadow);
    max-width: 280px;
}

.hero__stamp b { display: block; font-size: 17px; color: var(--ink); }
.hero__stamp i { font-style: normal; font-size: 13px; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 3px; }

/* ---------- Полоса доверия ---------- */
.trust { padding: 0 0 72px; }
.trust__item { text-align: center; padding: 22px 16px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__item b { display: block; font-size: 42px; font-weight: 800; color: var(--deep); letter-spacing: -.03em; line-height: 1; }
.trust__item span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- Услуги ---------- */
.service { display: flex; flex-direction: column; }
.service h3 { margin-bottom: 8px; }
.service p { flex: 1; }

.service__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.service__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.services__note { margin-top: 28px; text-align: center; }

/* ---------- Калькулятор ---------- */
.calc__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.calc__facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.calc__facts li { padding-left: 20px; position: relative; font-size: 16px; color: var(--ink-2); }
.calc__facts li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
}
.calc__facts b { color: var(--ink); }

.calc__box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.calc__progress { height: 5px; border-radius: 5px; background: var(--bg-soft); overflow: hidden; margin-bottom: 26px; }
.calc__progress i { display: block; height: 100%; background: var(--mint); transition: width var(--tr); }

.calc__step, .calc__result { display: none; }
.calc__step.is-active, .calc__result.is-active { display: block; }

.calc__opts { display: grid; gap: 10px; margin-top: 18px; }

.calc__opt {
    text-align: left;
    padding: 16px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: var(--tr);
}

.calc__opt:hover { border-color: var(--mint); background: var(--mint-soft); }

.calc__back {
    margin-top: 18px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--ink-3);
    cursor: pointer;
    padding: 0;
}

.calc__back:hover { color: var(--deep); }

.calc__sum {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: var(--deep);
    letter-spacing: -.03em;
    margin: 14px 0 6px;
}

.calc__form { margin: 22px 0 14px; }

/* ---------- Врачи ---------- */
.doctor { text-align: left; }
.doctor__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.doctor__name { font-size: 19px; margin-bottom: 4px; }
.doctor__role { font-size: 14px; color: var(--mint); font-weight: 700; margin-bottom: 10px; }

.diplomas {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    align-items: center;
    margin-top: 56px;
    padding: 40px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.diplomas__img img { border-radius: 16px; box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; }
.diplomas__text .btn { margin-top: 10px; }

/* ---------- Первый приём: стеклянные карточки ---------- */
.steps {
    background:
        linear-gradient(165deg, #0B3F4D 0%, #0E4E5E 46%, #10606F 100%);
    color: #fff;
    padding: clamp(60px, 7vw, 96px) 0;
}

.steps__in { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: start; }
.steps .lead { color: rgba(255, 255, 255, .78); }
.steps h2 { margin-bottom: 18px; }

.steps__total {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    margin: 28px 0 24px;
}

.steps__total-num b {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.steps__total > div:last-child { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.steps__total b { color: #fff; font-size: 16px; }
.steps__total .small { color: rgba(255, 255, 255, .68); line-height: 1.45; }
.steps__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* лента шагов */
.steps__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    position: relative;
}

.steps__track::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 34px;
    bottom: 34px;
    width: 2px;
    background: linear-gradient(180deg, rgba(47, 211, 182, .55), rgba(255, 255, 255, .08));
    border-radius: 2px;
}

.stepcard {
    position: relative;
    padding: 22px 26px 22px 78px;
    overflow: hidden;
}

.stepcard__num {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .07);
    font-variant-numeric: tabular-nums;
    z-index: 1;
}

.stepcard__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stepcard__ico {
    position: absolute;
    left: -56px;
    top: -4px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(47, 211, 182, .34), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .22);
    color: #EAFFFA;
    box-shadow: 0 0 0 5px rgba(11, 63, 77, .55);
}

.stepcard__ico .ico { width: 22px; height: 22px; }

.stepcard__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(47, 211, 182, .16);
    border: 1px solid rgba(47, 211, 182, .28);
    color: #9FF0E1;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.stepcard__time .ico { width: 14px; height: 14px; }

.stepcard h3 { position: relative; z-index: 1; margin-bottom: 8px; font-size: 20px; color: #fff; }
.stepcard p { position: relative; z-index: 1; margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .76); }

@media (max-width: 1080px) {
    .steps__in { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 560px) {
    .steps__track::before { display: none; }
    .stepcard { padding: 20px 20px 20px 20px; }
    .stepcard__ico { position: static; margin-right: 2px; }
    .stepcard__head { margin-bottom: 12px; }
    .stepcard__num { font-size: 44px; right: 14px; }
    .steps__cta .btn { width: 100%; }
    .steps__total { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Цены ---------- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 28px 28px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table__sum { text-align: right; font-weight: 800; color: var(--deep); white-space: nowrap; }

.price-card__foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.price-notes { margin-top: 28px; }
.price-notes h4 { margin-bottom: 8px; }

/* ---------- Отзывы ---------- */
.source { display: flex; flex-direction: column; gap: 8px; }
.source b { font-size: 19px; color: var(--ink); }
.source__go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 15px; color: var(--deep-300); }

.patients__title { margin: 52px 0 22px; text-align: center; }

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

.patients__item { margin: 0; }

.patients__item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--tr);
}

.patients__item img:hover { transform: translateY(-4px); }
.patients + .tiny { text-align: center; margin-top: 14px; }

/* ---------- Вопросы ---------- */
.faq { max-width: 860px; margin: 0 auto; }

.faq__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-weight: 700;
    font-size: 17px;
    position: relative;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 26px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--deep-300);
    border-bottom: 2px solid var(--deep-300);
    transform: rotate(45deg);
    transition: transform var(--tr);
}

.faq__item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq__body { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }
.faq__body p { margin: 0; }

/* ---------- Контакты ---------- */
.contacts-new__in { display: grid; grid-template-columns: 1fr .9fr; gap: 56px; align-items: start; }
.contacts-new__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.contacts-new__list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts-new__list .ico { color: var(--mint); width: 26px; height: 26px; margin-top: 2px; }
.contacts-new__list b { display: block; font-size: 17px; margin-bottom: 2px; }
.contacts-new__list span { display: block; }
.contacts-new__form { box-shadow: var(--shadow); }
.contacts-new__form h3 { margin-bottom: 6px; }
.contacts-new__form .lead-form { margin-top: 18px; }
.contacts-new__map { margin-top: 56px; }
.contacts-new__map iframe { display: block; border: 0; filter: grayscale(.2); }

/* ---------- Подвал ---------- */
.foot { background: var(--deep-700); color: rgba(255, 255, 255, .72); padding: 60px 0 30px; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__col h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.foot__col a { color: rgba(255, 255, 255, .72); font-size: 15px; }
.foot__col a:hover { color: #fff; }
.foot__col--brand .brand { margin-bottom: 8px; }
.foot__phone { font-size: 20px !important; font-weight: 800; color: #fff !important; }
.foot__vk { text-decoration: underline; }
.foot__col .btn { margin-top: 8px; }

.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot__legal .tiny { color: rgba(255, 255, 255, .5); }

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar { display: none; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 40, 49, .6); backdrop-filter: blur(3px); }

.modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 34px;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover { background: var(--line); }
.modal__box h3 { margin-bottom: 6px; }
.modal__box .lead-form { margin-top: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .hero__in, .calc__in, .contacts-new__in, .diplomas { grid-template-columns: 1fr; gap: 40px; }
    .hero__media { max-width: 460px; }
    .hero__stamp { left: auto; right: 14px; }
    .patients { grid-template-columns: repeat(3, 1fr); }
    .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav__menu {
        position: fixed;
        inset: 82px 0 auto;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 8px 20px 20px;
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--tr), opacity var(--tr), visibility var(--tr);
    }
    .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav__menu a { padding: 15px 0; border-bottom: 1px solid var(--line); }
    .nav__burger { display: block; order: 3; }
    .nav__right { margin-left: auto; }
    .nav__right .btn { display: none; }
    .trust__item { border-right: 0; border-bottom: 1px solid var(--line); }
    .trust__item:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
    .topline__in { justify-content: center; font-size: 13px; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
    .topline__vk, .topline__item[href^="mailto"] { display: none; }
    .nav__in { min-height: 68px; gap: 12px; }
    .nav__menu { inset: 68px 0 auto; }
    .nav__phone { font-size: 16px; }
    .brand img { width: 44px; }
    .brand__txt b { font-size: 19px; }

    .hero { padding: 40px 0 56px; }
    .hero__cta .btn { width: 100%; }
    .hero__stamp { position: static; margin-top: -32px; margin-left: 16px; max-width: none; }
    .trust { padding-bottom: 44px; }
    .trust__item b { font-size: 34px; }

    .calc__box { padding: 22px; }
    .diplomas { padding: 24px; }
    .price-card { padding: 8px 18px 22px; }
    .price-table td { font-size: 15px; padding: 14px 2px; }
    .price-card__foot .btn { width: 100%; }
    .patients { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .foot__in { grid-template-columns: 1fr; gap: 28px; }

    body.u-page { padding-bottom: 72px; }

    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(14, 78, 94, .1);
    }

    .mobile-bar__call,
    .mobile-bar__book {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 50px;
        border-radius: var(--radius-pill);
        font: inherit;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        border: 2px solid var(--deep);
    }

    .mobile-bar__call { color: var(--deep); background: #fff; }
    .mobile-bar__call .ico { width: 20px; height: 20px; }
    .mobile-bar__book { color: #fff; background: var(--coral); border-color: var(--coral); }

    .modal__box { padding: 26px 20px; }
}

/* ============================================================
   Колесо «5 вопросов», параллакс-полоса, инфографика
   ============================================================ */

/* ---------- Иконки в меню ---------- */
.nav__menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav__menu a .ico {
    width: 18px;
    height: 18px;
    color: var(--deep-300);
    transition: color var(--tr), transform var(--tr);
}

.nav__menu a:hover .ico { color: var(--coral); transform: translateY(-1px); }

/* ---------- Колесо ---------- */
.wheel { display: grid; gap: 40px; align-items: center; justify-items: center; }

.wheel__machine {
    --R: 138px;
    position: relative;
    width: calc(var(--R) * 2 + 76px);
    height: calc(var(--R) * 2 + 76px);
    display: grid;
    place-items: center;
}

.wheel__machine::before {
    content: "";
    position: absolute;
    inset: 38px;
    border-radius: 50%;
    border: 1.5px dashed #A9CFD2;
}

.wheel__machine::after {
    content: "";
    position: absolute;
    inset: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 179, 164, .14), transparent 70%);
}

.wheel__pointer {
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% 0;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-top: 13px solid var(--coral);
    z-index: 3;
    filter: drop-shadow(0 2px 5px rgba(239, 91, 72, .5));
}

.wheel__ring {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    rotate: var(--rot, 0deg);
    transition: rotate .8s cubic-bezier(.3, 1, .35, 1);
}

.wheel__ring li {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: translate(calc(var(--x) * var(--R)), calc(var(--y) * var(--R)));
}

.wheel__ring li:nth-child(1) { --x: 0.0;     --y: -1.0; }
.wheel__ring li:nth-child(2) { --x: 0.9511;  --y: -0.309; }
.wheel__ring li:nth-child(3) { --x: 0.5878;  --y: 0.809; }
.wheel__ring li:nth-child(4) { --x: -0.5878; --y: 0.809; }
.wheel__ring li:nth-child(5) { --x: -0.9511; --y: -0.309; }

.wheel__stop {
    position: absolute;
    left: -32px;
    top: -32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--deep);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    rotate: calc(var(--rot, 0deg) * -1);
    transition: rotate .8s cubic-bezier(.3, 1, .35, 1), background .3s, color .3s, scale .3s, box-shadow .3s, border-color .3s;
}

.wheel__stop .ico { width: 27px; height: 27px; }
.wheel__stop:hover { border-color: var(--mint); scale: 1.08; }

.wheel__stop.is-active {
    background: linear-gradient(135deg, var(--mint), var(--deep-300));
    color: #fff;
    border-color: transparent;
    scale: 1.18;
    box-shadow: 0 0 0 8px rgba(36, 179, 164, .14), 0 14px 30px -10px rgba(14, 78, 94, .55);
}

.wheel__face {
    position: relative;
    z-index: 2;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.wheel__face em { font-style: normal; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.wheel__face strong { font-size: 48px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--deep); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.wheel__face span { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

.wheel__steer { display: flex; gap: 8px; margin-top: 10px; }

.wheel__steer button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.wheel__steer button:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.wheel__steer .ico { width: 16px; height: 16px; }

.wheel__panels { width: 100%; max-width: 580px; display: grid; gap: 22px; }

.wheel__panel {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3.5vw, 36px);
    box-shadow: var(--shadow);
    animation: panelIn .5s cubic-bezier(.2, .7, .2, 1);
    min-height: 210px;
}

.wheel__n {
    position: absolute;
    right: 24px;
    top: 10px;
    font-size: 70px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--mint-soft);
    font-variant-numeric: tabular-nums;
}

.wheel__panel h3 { position: relative; margin-bottom: 12px; }
.wheel__panel p { position: relative; color: var(--ink-2); margin: 0; }
.wheel__panels .btn { justify-self: start; }

@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 960px) { .wheel { grid-template-columns: auto 1fr; gap: 68px; justify-items: start; } }
@media (max-width: 420px) {
    .wheel__machine { --R: 112px; }
    .wheel__stop { width: 54px; height: 54px; left: -27px; top: -27px; }
    .wheel__stop .ico { width: 23px; height: 23px; }
    .wheel__face { width: 126px; height: 126px; }
    .wheel__face strong { font-size: 40px; }
}

/* ---------- Полоса с фоном, который стоит при прокрутке ---------- */
.band {
    position: relative;
    overflow: hidden;
    color: #D8ECEC;
    isolation: isolate;
}

.band__bg {
    position: absolute;
    inset: -20% 0;
    z-index: -2;
    background-color: #0B4956;
    background-image: url(../images/ui/dental-tile.svg);
    background-size: 300px 300px;
    background-repeat: repeat;
    background-position: center;
    will-change: transform;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(6, 40, 46, .82), rgba(11, 73, 86, .5) 55%, rgba(36, 179, 164, .34));
}

.band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 50%, rgba(6, 40, 46, .5), transparent 78%);
}

.band__in {
    padding-block: clamp(64px, 8vw, 108px);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 18px;
}

.band__in h2 { color: #fff; max-width: 18em; margin: 0; }
.band__txt { max-width: 38em; font-size: 18px; color: rgba(255, 255, 255, .82); margin: 0; }
.band__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; margin-top: 8px; }
.band__stat b { display: block; font-size: 38px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.band__stat span { font-size: 14px; color: rgba(255, 255, 255, .66); }
.band .btn { margin-top: 10px; }

@supports (background-attachment: fixed) {
    @media (hover: hover) and (min-width: 900px) {
        .band__bg { inset: 0; background-attachment: fixed; will-change: auto; }
    }
}

/* ---------- Цифры, которые набираются ---------- */
.trust__item b { font-variant-numeric: tabular-nums; }

/* ---------- Инфографика: путь лечения ---------- */
.road { position: relative; margin-top: 44px; }

.road__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 33px;
    height: 3px;
    background: linear-gradient(90deg, var(--line) 0%, var(--line) 100%);
    border-radius: 3px;
}

.road__line i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mint), var(--deep-300));
    transition: width 1.4s cubic-bezier(.3, 1, .35, 1);
}

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

.road__item { text-align: center; }

.road__dot {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--deep);
    transition: border-color .4s, color .4s, transform .4s, box-shadow .4s;
}

.road__item.is-on .road__dot {
    border-color: var(--mint);
    color: var(--mint);
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(36, 179, 164, .1);
}

.road__dot .ico { width: 28px; height: 28px; }
.road__item h4 { margin-bottom: 6px; }
.road__item p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

@media (max-width: 860px) {
    .road__items { grid-template-columns: 1fr 1fr; }
    .road__line { display: none; }
}

@media (max-width: 520px) {
    .road__items { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Иконки в списках и подвале ---------- */
.hero__pluses li .ico { color: var(--mint); stroke-width: 1.9; }

.step__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--mint);
    margin: -6px 0 14px;
}

.step__ico .ico { width: 22px; height: 22px; }
.step { display: flex; flex-direction: column; }
.step__num { align-self: flex-start; }

.foot__col a { display: inline-flex; align-items: center; gap: 8px; }
.foot__col a .ico { width: 17px; height: 17px; color: var(--mint); flex: none; }
.foot__phone { gap: 0 !important; }
.foot__vk .ico { fill: currentColor; stroke: none; }
.topline__vk .ico { fill: currentColor; stroke: none; width: 17px; height: 17px; }

.source .ico-box { margin-bottom: 14px; }
.source__go .ico { width: 17px; height: 17px; transition: transform var(--tr); }
.source:hover .source__go .ico { transform: translateX(3px); }

.service__more .ico { width: 17px; height: 17px; transition: transform var(--tr); }
.service__more:hover .ico { transform: translateX(3px); }

.mobile-bar__call .ico,
.mobile-bar__book .ico { width: 19px; height: 19px; }

.road__item .badge { margin-bottom: 10px; }
.road + .services__note { margin-top: 34px; text-align: center; }

/* ---------- Шапка: не даём меню наезжать на логотип ---------- */
.nav__in { gap: 18px; }
.brand { flex: none; }
.brand__txt i { white-space: nowrap; font-size: 11.5px; }

.nav__menu { gap: 18px; margin-left: auto; }
.nav__menu a { font-size: 15.5px; white-space: nowrap; }
.nav__menu a .ico { width: 17px; height: 17px; }

@media (min-width: 901px) and (max-width: 1340px) {
    .nav__menu a .ico { display: none; }
    .nav__menu { gap: 20px; }
}

@media (min-width: 901px) and (max-width: 1140px) {
    .nav__phone { font-size: 17px; }
    .nav__menu a { font-size: 15px; }
    .nav__menu { gap: 15px; }
}

/* ---------- Как добраться (вместо рекламного виджета карт) ---------- */
.route {
    margin-top: 56px;
    padding: clamp(28px, 3.6vw, 44px);
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.route__head { max-width: 640px; margin-bottom: 28px; }
.route__head h3 { margin-bottom: 8px; }
.route__head p { margin: 0; }

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

.route__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px;
}

.route__item .ico-box { width: 46px; height: 46px; margin-bottom: 14px; }
.route__item .ico-box .ico { width: 22px; height: 22px; }
.route__item h4 { margin-bottom: 6px; }
.route__item p { margin: 0; }

.route__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

@media (max-width: 860px) {
    .route__grid { grid-template-columns: 1fr; }
    .route__btns .btn { width: 100%; }
}

/* ---------- Шапка на телефоне: всё должно поместиться в 360 px ---------- */
@media (max-width: 720px) {
    .nav__in { gap: 10px; }
    .brand__txt i { display: none; }
    .brand__txt b { font-size: 20px; }
    .brand img { width: 40px; }
    .nav__burger { flex: none; width: 40px; height: 40px; padding: 9px; }
    .nav__right { gap: 10px; }
    .nav__phone { font-size: 15.5px; }
}

@media (max-width: 400px) {
    .nav__phone { font-size: 14px; letter-spacing: -.01em; }
    .brand__txt b { font-size: 18px; }
}

/* страховка от случайного горизонтального сдвига */
body.u-page { overflow-x: clip; }

/* ---------- Отзывы пациентов ---------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 14px;
}

.reviews .review:nth-child(4),
.reviews .review:nth-child(5) { grid-column: span 1; }

.review {
    position: relative;
    margin: 0;
    padding: 28px 26px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--tr), box-shadow var(--tr);
}

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

.review__quote {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--mint-soft);
    color: var(--deep-300);
}

.review__quote .ico { width: 24px; height: 24px; fill: currentColor; stroke: none; }

.review blockquote {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-2);
    flex: 1;
}

.review figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption b { font-size: 16px; color: var(--ink); }
.review figcaption span { font-size: 13.5px; color: var(--mint); font-weight: 700; }

.reviews__note { text-align: center; margin-bottom: 34px; }

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

/* ---------- Гарантии и лицензия ---------- */
.guarantee__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.guarantee__terms { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 18px; }

.guarantee__term {
    flex: 1 1 180px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.guarantee__term b { display: block; font-size: 32px; font-weight: 800; color: var(--deep); line-height: 1; letter-spacing: -.02em; }
.guarantee__term span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

.guarantee__doc { box-shadow: var(--shadow); }
.guarantee__doc h3 { margin-bottom: 18px; }

.doclist { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.doclist dt { font-size: 13.5px; color: var(--ink-3); }
.doclist dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }

@media (max-width: 960px) { .guarantee__in { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 560px) { .doclist { grid-template-columns: 1fr; gap: 2px 0; } .doclist dd { margin-bottom: 10px; } }

/* ---------- Клиника изнутри ---------- */
.clinic__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }

.clinic__shot { margin: 0; }

.clinic__shot img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--tr), box-shadow var(--tr);
}

.clinic__shot img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.clinic__kit h4 { margin-bottom: 6px; }
.clinic__kit .ico-box { width: 46px; height: 46px; margin-bottom: 14px; }
.clinic__kit .ico-box .ico { width: 22px; height: 22px; }

@media (max-width: 860px) { .clinic__shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .clinic__shots { grid-template-columns: 1fr; } }

/* ---------- Галерея обучения ---------- */
.learn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.learn__item { margin: 0; }

.learn__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    filter: saturate(.92);
    transition: transform var(--tr), filter var(--tr);
}

.learn__item img:hover { transform: translateY(-3px); filter: none; }
.learn__note { text-align: center; margin-top: 12px; }

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

/* ============================================================
   Мелкая геометрическая сетка: первый экран и подвал
   Рисуется градиентами, без картинок. Затухает к краям маской.
   ============================================================ */

.hero { isolation: isolate; }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(14, 78, 94, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 78, 94, .07) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.85) 38%, #000 72%, rgba(0,0,0,.5) 100%);
    mask-image: linear-gradient(115deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.85) 38%, #000 72%, rgba(0,0,0,.5) 100%);
}

/* точки на пересечениях - даёт «миллиметровку», а не клетку из тетради */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(36, 179, 164, .38) 1.2px, transparent 1.6px);
    background-size: 96px 96px;
    background-position: 12px 12px;
    -webkit-mask-image: radial-gradient(115% 95% at 70% 10%, #000 5%, rgba(0,0,0,.55) 45%, transparent 85%);
    mask-image: radial-gradient(115% 95% at 70% 10%, #000 5%, rgba(0,0,0,.55) 45%, transparent 85%);
}

.hero__in { position: relative; z-index: 1; }

/* ---------- Подвал ---------- */
.foot { position: relative; isolation: isolate; overflow: hidden; }

.foot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(80deg, #000 8%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.25) 78%, transparent 100%);
    mask-image: linear-gradient(80deg, #000 8%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.25) 78%, transparent 100%);
}

.foot::after {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 640px;
    height: 640px;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 179, 164, .16), transparent 68%);
}

.foot__in, .foot__legal { position: relative; z-index: 1; }

/* ---------- Шапка страницы на внутренних ---------- */
.pagehead { position: relative; overflow: hidden; }

.pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(14, 78, 94, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 78, 94, .05) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(105deg, #000 5%, transparent 62%);
    mask-image: linear-gradient(105deg, #000 5%, transparent 62%);
}

.pagehead .wrap { position: relative; z-index: 1; }

/* логотип в подвале: тёмный зуб на тёмном фоне не читается - даём подложку */
.foot .brand img {
    background: #fff;
    border-radius: 12px;
    padding: 4px;
}

/* Левая колонка «первого приёма» следует за прокруткой */
@media (min-width: 1081px) {
    .steps__side { position: sticky; top: 110px; }
}

.steps .btn--ghost {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: var(--blur-s);
    backdrop-filter: var(--blur-s);
}

.steps .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.steps .eyebrow { background: rgba(255, 255, 255, .12); color: #CFF5EE; }

/* ---------- Стекло в остальных блоках ---------- */

/* тёмная полоса «о клинике» */
.band__stat {
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: var(--blur-s);
    backdrop-filter: var(--blur-s);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.band__stats { gap: 14px; }

/* калькулятор и форма контактов - светлое стекло поверх сетки */
.calc__box,
.contacts-new__form {
    background: var(--glass-light-bg);
    border-color: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 24px 54px -30px rgba(14, 78, 94, .45);
}

.calc { position: relative; isolation: isolate; }

.calc::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(620px 420px at 88% 12%, rgba(36, 179, 164, .16), transparent 70%),
        radial-gradient(520px 360px at 4% 92%, rgba(14, 78, 94, .1), transparent 72%),
        linear-gradient(180deg, #fff, #F4FAFB);
}

/* модальное окно записи */
.modal__box {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, .9);
}

/* нижняя панель на телефоне */
@media (max-width: 720px) {
    .mobile-bar {
        background: rgba(255, 255, 255, .78);
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
    }
}

/* шапка: стекло заметнее при прокрутке */
.nav {
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(220, 231, 235, .8);
}

/* блок «болит сейчас» в секции первого приёма */
.steps__urgent {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    margin-top: 22px;
}

.steps__urgent > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.steps__urgent b { color: #fff; font-size: 16px; }
.steps__urgent .small { color: rgba(255, 255, 255, .7); line-height: 1.45; }

.steps__urgent-ico {
    position: relative;
    z-index: 1;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(239, 91, 72, .22);
    border: 1px solid rgba(239, 91, 72, .38);
    color: #FFC9BF;
}

.steps__urgent-tel {
    margin-top: 6px;
    font-size: 19px;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -.01em;
}

.steps__urgent-tel:hover { color: #9FF0E1 !important; }

/* ---------- Запись по телефону (когда формы выключены) ---------- */
.book-cta { margin-top: 18px; }

.book-cta__call {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.01em;
    padding: 16px 20px;
}

.u-page a.book-cta__call, .u-page a.book-cta__call:hover { color: #fff; }
.book-cta__call .ico { width: 22px; height: 22px; }

.book-cta__note { margin-top: 12px; }

.book-cta__list {
    list-style: none;
    margin: 18px 0 14px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.book-cta__list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--ink-2);
}

.book-cta__list .ico {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--deep-300);
}

.book-cta__list a { color: var(--deep); border-bottom: 1px solid var(--deep-300); }
.book-cta__list a:hover { color: var(--coral); border-bottom-color: var(--coral); }

.book-cta > .tiny { margin-top: 4px; }

@media (max-width: 480px) {
    .book-cta__call { font-size: 19px; padding: 14px 16px; }
}
