/* Лендинг «Имплант под ключ — 15 000 ₽». Только раскладка; компоненты и токены — в brand/. */
html{background:var(--surface-night)}
body.landing{background:var(--surface-light)}

/* ---------- экран 1 ---------- */
.hero .badge{font-size:12px;padding:5px 10px;color:#fff;border-width:1px}
/* бейдж-ротатор: текст затухает при смене, цифры таймера табличные, чтобы не дрожали */
.hero__badge{white-space:nowrap}
.hero__badge-text{display:inline-block;font-variant-numeric:tabular-nums;transition:opacity .25s ease}
.hero__badge-text.is-fading{opacity:0}
.hero__badge-text.is-typing::after{content:"|";margin-left:1px;font-weight:400;animation:badge-caret 1s steps(2) infinite}
@keyframes badge-caret{to{opacity:0}}
.hero{background:var(--surface-night);color:#fff;overflow:hidden;border-radius:0 0 28px 28px}
.hero__top{display:flex;align-items:center;justify-content:space-between;height:32px;padding-top:14px}
.hero__logo{height:22px;width:auto}
.hero__tel{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:15px;font-weight:500}
.hero__tel .icon{color:var(--brand-orange)}
.hero__tel:hover{text-decoration:none}
.hero__grid{position:relative;margin-top:19px;min-height:274px}
.hero__text{position:relative;z-index:2;width:60%;padding-bottom:14px}
/* Фигура врача стоит низом на карточке формы; нижние ~35 % растворяются в фон маской,
   чтобы не было жёсткого обреза. */
.hero__doctor{position:absolute;right:-52px;bottom:0;width:200px;height:auto;z-index:1;-webkit-mask-image:linear-gradient(to bottom,#000 62%,transparent 100%);mask-image:linear-gradient(to bottom,#000 62%,transparent 100%)}
.hero__h1{font-size:36px;line-height:1.1;margin-top:12px;font-weight:600;letter-spacing:0}
.hero__sub{margin-top:10px;font-size:14px;line-height:1.4;letter-spacing:-.01em;color:var(--ink-on-dark-strong)}
.hero__form{position:relative;z-index:2;margin-top:0;display:grid;gap:10px}
.hero__consent{margin-top:0;justify-content:center}
.hero__consent + .form-note{margin-top:-2px;text-align:center}
#form-error{text-align:center}
.hero__lines{margin-top:16px;padding-bottom:52px}

/* плашка доверия наезжает на нижнее скругление hero */
.trust{position:relative;z-index:2;margin-top:-30px}

@media (min-width:640px){
  .hero__top{padding-top:24px}
  .hero__logo{height:29px}
  .hero__grid{min-height:390px;margin-top:34px}
  .hero__text{width:62%;padding-bottom:20px}
  .hero__doctor{width:280px;right:-40px}
  .hero__h1{font-size:44px}
  .hero__sub{font-size:17px}
  .hero__form{margin-top:0}
  .hero__lines{padding-bottom:64px}
}
@media (max-width:374px){
  .hero__grid{min-height:246px}
  .hero__text{width:62%}
  .hero__doctor{width:180px;right:-57px}
  .hero__h1{font-size:31px}
}

/* ---------- экран 2 ---------- */
.included{padding-top:28px}
.included__title{font-size:26px;line-height:1.2}
.included__grid{display:grid;gap:12px;margin-top:16px}
.included__list{font-size:16px;padding:4px 0}
.included__free{display:flex;gap:10px;align-items:flex-start;font-size:16px;line-height:1.4}
.included__free .icon{color:var(--brand-orange);flex:0 0 24px}
.included__free-body{min-width:0}
.included__free-body > p > b{font-weight:600}   /* <b> без правила даёт 800 — у шрифта нет 700 */
.included__free-price{margin-top:10px}
.included__note{margin-top:16px;font-size:16px;line-height:1.5;color:var(--ink)}
.included__tiles{margin-top:20px}
.included__cta{margin-top:20px}
@media (min-width:640px){
  .included__title{font-size:32px}
  .included__grid{grid-template-columns:1fr 1fr;align-items:start}
}

/* ---------- подвал ---------- */
.footer{background:var(--surface-night);border-radius:28px 28px 0 0;padding:36px 0 calc(96px + env(safe-area-inset-bottom))}
.footer__logo{height:22px;width:auto}
.footer__addresses{margin-top:20px}
.footer__phone{margin-top:24px}
.footer__hours{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:14px;color:var(--ink-on-dark-strong)}
.footer__hours .icon{color:var(--brand-orange)}
.footer__legal{margin-top:20px;display:grid;gap:6px}

/* ---------- «Спасибо» ---------- */
body.thanks{background:var(--surface-light)}
.thanks__main{padding:24px 0 48px}
.thanks__logo{height:20px;width:auto}
.thanks__icon{width:56px;height:56px;color:var(--success);margin-top:32px}
.thanks__h1{font-size:30px;line-height:1.15;margin-top:12px}
.thanks__p{margin-top:12px;font-size:17px;line-height:1.45}
.thanks__buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.thanks__buttons .btn{padding-inline:10px;font-size:15px}
.thanks__visit{margin-top:20px;font-size:16px;line-height:1.5}
.thanks__addresses{margin-top:24px;font-size:13px;line-height:1.5;color:var(--ink-muted)}
.thanks__phone{margin-top:6px;font-size:15px}
@media (min-width:640px){.thanks__h1{font-size:40px}.thanks__buttons .btn{font-size:17px}}

/* ---------- десктоп: рамка телефона ---------- */
/* На экранах от 640 px инлайн-скрипт в <head> ставит класс shell: содержимое скрыто, по центру — iframe
   с этой же страницей шириной 390 px. Внутри iframe всё считается мобильной версией. */
html.shell{background:#0b0e15}
html.shell body{display:flex;align-items:center;justify-content:center;min-height:100vh;margin:0;padding:24px;background:#0b0e15}
html.shell body > :not(.shell-frame){display:none}
html.shell .shell-frame{display:block;width:390px;height:min(844px,calc(100vh - 48px));border:0;border-radius:30px;background:var(--surface-night);box-shadow:0 0 0 10px #1b202c,0 0 0 11px #2a3040,0 40px 90px rgba(0,0,0,.6)}
/* внутри рамки прокрутка есть, но полоса скрыта — как на телефоне */
html.framed{scrollbar-width:none}
html.framed::-webkit-scrollbar{display:none;width:0;height:0}
