/* ==========================================================
   Стёклышко — стили сайта
   ========================================================== */

/* ---------- Шрифты (локально, без Google) ---------- */
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-700-cyr.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: block;
  unicode-range: U+0400-045F;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-700-lat.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: block;
  unicode-range: U+0020-0040, U+00AB, U+00BB, U+2013-2014;
}

/* ---------- Переменные ---------- */
:root {
  --font: "Rubik", "Segoe UI", Roboto, Arial, sans-serif;
  --frost: #E7ECF0;
  --white: #FFFFFF;
  --ink: #1D2228;
  --ink-2: #4E5763;
  --ink-3: #3A424C;
  --line: #D3DBE2;
  --line-2: #C9D3DC;
  --soft: #F1F4F7;
  --soft-2: #F4F7F9;
  --night: #172449;
  --night-2: #101A36;
  --night-text: #AEBBD3;
  --amber: #FFB21C;
  --amber-hover: #F0A000;
  --amber-deep: #B86A00;
  --err: #B42318;
  --shadow-card: 0 1px 2px rgba(23, 36, 73, .06), 0 28px 56px -36px rgba(23, 36, 73, .55);
  --spring: cubic-bezier(.3, 1.5, .45, 1);
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Наклейка и анимации не должны расширять страницу вбок: на телефоне от этого
   страница уменьшается, а нижняя панель уезжает за экран */
main { overflow-x: clip; }
@supports not (overflow: clip) { main { overflow-x: hidden; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sec--dark :focus-visible, .ftr :focus-visible { outline-color: var(--amber); }
[id] { scroll-margin-top: 84px; }
#zayavka { scroll-margin-top: 120px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
a, button, summary, label { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; color: #fff; }

h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  text-wrap: balance;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 14px;
  font-size: 17px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-hover); color: var(--ink); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); font-size: 16px; font-weight: 500; }
.btn--ghost:hover { background: var(--soft); border-color: #AEBAC6; color: var(--ink); }
.btn--ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; font-size: 16px; font-weight: 500; }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--wide { flex: 1 1 200px; }
.btn[disabled] { opacity: .7; cursor: progress; }

.linkbtn {
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover { text-decoration-thickness: 2px; }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: rgba(231, 236, 240, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo__word { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.logo__handle { transform-box: fill-box; transform-origin: 50% 15%; transition: transform .6s var(--spring); }
.logo__mark { flex: 0 0 auto; }
.logo:hover .logo__handle, .logo:focus-visible .logo__handle, .logo:active .logo__handle { transform: rotate(180deg); }
.nav { display: flex; gap: 28px; }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.hdr__call { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hdr__phone { font-size: 17px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.hdr__note { font-size: 13px; color: var(--ink-2); }
.hdr__menu {
  display: none; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.hdr__menu:hover { border-color: var(--ink); }
.hdr__menu:active { transform: scale(.97); }
.hdr__menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(32px, 5vw, 80px) 0 clamp(72px, 8vw, 120px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "title win" "form win";
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 32px;
  align-items: start;
}
.hero__title { grid-area: title; }
.hero__win { grid-area: win; align-self: center; }
.hero__form { grid-area: form; position: relative; }
.lead {
  margin-top: 24px; max-width: 50ch;
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55;
  color: var(--ink-2); text-wrap: pretty;
}

/* ---------- Окно в шапке ---------- */
.win { container-type: inline-size; width: 100%; max-width: 540px; margin-left: auto; }
.win__box { position: relative; aspect-ratio: 560 / 720; }
.win__niche {
  position: absolute; left: 1.5%; right: 1.5%; top: 0; bottom: 5%;
  border-radius: 1.6cqi;
  background: linear-gradient(180deg, #CFD8E1 0%, #DCE3EA 16%, #E2E8EE 100%);
  box-shadow: inset 0 0 0 1px #C6D0D9;
}
.win__frame {
  position: absolute; left: 5%; right: 5%; top: 3.6%; bottom: 7.2%;
  border-radius: 1.8cqi;
  background: linear-gradient(160deg, #FFFFFF 0%, #EEF2F5 100%);
  box-shadow: 0 0 0 1px #C9D2DB, 0 1.2cqi 2.6cqi -.8cqi rgba(23, 36, 73, .35);
  perspective: 220cqi;
}
.win__opening {
  position: absolute; inset: 3cqi; border-radius: .8cqi;
  background: #0E1936; box-shadow: inset 0 1.4cqi 2cqi rgba(0, 0, 0, .5);
}
.win__sash {
  position: absolute; inset: 2.4cqi; border-radius: 1.4cqi;
  background: linear-gradient(160deg, #FFFFFF 0%, #F2F5F8 100%);
  box-shadow: 0 0 0 .32cqi #2A3038, 0 .6cqi 1.4cqi rgba(23, 36, 73, .22);
  transform-origin: 50% 100%;
  transition: transform 1.2s cubic-bezier(.25, .9, .3, 1.15);
}
.win__glass {
  position: absolute; inset: 4.6cqi; border-radius: .5cqi; overflow: hidden;
  background: #172449; box-shadow: 0 0 0 .45cqi #2A3038;
}
.win__scene, .win__fog { position: absolute; inset: 0; width: 100%; height: 100%; }
.win__fog { touch-action: pan-y; transition: opacity 1.1s ease; }
.win__spacer {
  position: absolute; inset: 0; pointer-events: none;
  border: 1.3cqi solid #A7B2BE; border-radius: .5cqi;
  box-shadow: inset 0 0 0 .25cqi #7C8895;
}
.win__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .08) 44%, rgba(255, 255, 255, 0) 52%);
}
.win__handle {
  position: absolute; z-index: 2; right: .75cqi; top: 50%;
  width: 3.1cqi; height: 8.6cqi; margin-top: -4.3cqi;
  border-radius: 1.55cqi;
  background: linear-gradient(90deg, #FFFFFF, #E6EBF0);
  box-shadow: 0 0 0 1px #C7D0D9, 0 .4cqi .9cqi rgba(23, 36, 73, .3);
}
.win__lever {
  position: absolute; left: 50%; top: 50%;
  width: 2.3cqi; height: 12.5cqi; margin-left: -1.15cqi; margin-top: -1.15cqi;
  border-radius: 1.15cqi;
  background: linear-gradient(90deg, #FFFFFF, #E1E7ED);
  box-shadow: 0 0 0 1px #C3CDD6, 0 .7cqi 1.3cqi rgba(23, 36, 73, .35);
  transform-origin: 50% 1.15cqi;
  transition: transform .9s var(--spring);
}
.win__sill {
  position: absolute; left: 0; right: 0; bottom: 3%; height: 4.6%;
  border-radius: .8cqi;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F5F8 55%, #DCE3E9 100%);
  box-shadow: 0 0 0 1px #C9D2DB, 0 1.4cqi 2cqi -1cqi rgba(23, 36, 73, .4);
}
.win__hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 1.2cqi;
  font-size: max(13px, 2.5cqi); line-height: 1.4; color: var(--ink-2);
  transition: opacity .5s, visibility .5s;
}
.win.is-wiped .win__hint, .win[data-step="4"] .win__hint { opacity: 0; visibility: hidden; }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
/* Шаги формы: ручка поворачивается, туман уходит, створка откидывается */
.win[data-step="2"] .win__lever { transform: rotate(60deg); }
.win[data-step="3"] .win__lever { transform: rotate(120deg); }
.win[data-step="4"] .win__lever { transform: rotate(180deg); }
.win[data-step="2"] .win__fog { opacity: .66; }
.win[data-step="3"] .win__fog { opacity: .36; }
.win[data-step="4"] .win__fog { opacity: 0; pointer-events: none; }
.win[data-step="4"] .win__sash { transform: rotateX(-8deg); }

/* ---------- Наклейка со скидкой ---------- */
.sticker {
  position: absolute; z-index: 3; top: -46px; right: -22px;
  width: 118px; height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 5px solid #fff; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  text-align: center;
  box-shadow: 0 14px 26px -12px rgba(23, 36, 73, .6), 0 0 0 1px rgba(23, 36, 73, .08);
  transform: rotate(9deg);
  transition: transform .35s var(--spring);
  animation: slap .75s .9s cubic-bezier(.2, 1.4, .4, 1) backwards;
}
.sticker:hover { transform: rotate(2deg) scale(1.06); }
.sticker b { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.sticker span { margin-top: 4px; max-width: 76px; font-size: 13px; line-height: 1.15; font-weight: 600; }
@keyframes slap {
  0% { opacity: 0; transform: scale(1.8) rotate(-16deg); }
  55% { opacity: 1; transform: scale(.93) rotate(12deg); }
  100% { opacity: 1; transform: rotate(9deg); }
}

/* ---------- Форма ---------- */
.form {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line); border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-card);
}
.form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 86px; }
.form__title { font-size: 15px; font-weight: 600; }
.form__count { font-size: 15px; color: var(--ink-2); }
.form__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.form__bar i { height: 5px; border-radius: 3px; background: #DCE3E9; transition: background-color .4s; }
.form__bar i.is-on { background: var(--ink); }

.step { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.step[hidden] { display: none; }
.step.is-in { animation: stepIn .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step__title {
  float: left; width: 100%; padding: 0;
  font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
}
.step__title + * { clear: both; }
.step__hint { padding-top: 6px; font-size: 15px; color: var(--ink-2); }
.step__body { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.step__row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-start; }
.step--done:focus { outline: none; }

.group { min-width: 0; margin: 0; padding: 0; border: 0; }
.group__label { display: block; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(152px, 100%), 1fr)); margin-top: 16px; }
.chip { position: relative; display: flex; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip__box {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--soft-2); color: var(--ink);
  font-size: 15px; font-weight: 500; line-height: 1.25;
  cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.chip__box svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.chip:hover .chip__box { border-color: var(--ink); }
.chip input:checked + .chip__box { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + .chip__box svg { stroke: var(--amber); }
.chip input:focus-visible + .chip__box { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input:active + .chip__box { transform: scale(.98); }
.chip--sm .chip__box { min-height: 44px; padding: 8px 16px; border-radius: 12px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft-2); }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.stepper__btn:hover { background: var(--soft); }
.stepper__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.stepper__val {
  width: 52px; height: 44px; border: 0; background: transparent;
  text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__val::-webkit-outer-spin-button, .stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.photo {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1.5px dashed #B3C0CC; border-radius: 14px;
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.photo:hover { border-color: var(--ink); background: var(--soft-2); }
.photo:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo__thumb {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--soft) center / cover no-repeat;
}
.photo__thumb svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo.has-photo .photo__thumb svg { display: none; }
.photo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.photo__title { font-size: 15px; font-weight: 500; }
.photo__note { font-size: 13px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }

.estimate {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 14px 16px; border-radius: 14px; background: var(--soft-2);
}
.estimate__label { font-size: 15px; color: var(--ink-2); }
.estimate__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.estimate__sum s { font-size: 16px; color: var(--ink-2); }
.estimate__sum s:empty { display: none; }
.estimate__sum b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.estimate__note { flex-basis: 100%; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.input {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1.5px solid #CDD6DE; border-radius: 12px;
  background: #fff; font-size: 17px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #6B7480; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 178, 28, .45); }
.input[aria-invalid="true"] { border-color: var(--err); }

.consent { display: flex; flex-direction: column; gap: 8px; }
.consent__row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-3); cursor: pointer; }
.consent__row input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.consent__note { margin-left: 30px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

.form__err { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--err); }
.form__err a { color: inherit; font-weight: 600; white-space: nowrap; }
.form__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form__foot { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done__icon { margin-bottom: 14px; }
.done__text { padding-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.summary {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px;
  margin: 18px 0 0; padding: 16px 18px; border-radius: 14px;
  background: var(--soft-2); font-size: 15px; line-height: 1.4;
}
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; overflow-wrap: anywhere; }

.assure { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Секции ---------- */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--white { background: #fff; }
.sec--dark { background: var(--night); color: #fff; }
.sec__head { max-width: 680px; }
.sec__head > p, .sec__head > div > p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sec__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.sec__head--row > div { max-width: 640px; }
.sec__note { margin-top: 4px; font-size: 16px; color: var(--ink-2); }

/* ---------- Диагностика ---------- */
.diag { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; align-items: flex-start; }
.diag__list { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.sym {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.sym::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #AEBAC6; background: #fff; box-shadow: inset 0 0 0 3px #fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.sym:hover { border-color: var(--ink); }
.sym[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sym[aria-pressed="true"]::before { border-color: var(--amber); background: var(--amber); box-shadow: inset 0 0 0 3px var(--ink); }
.diag__fig { flex: 2 1 380px; min-width: 0; margin: 0; }
.scheme { width: 100%; height: auto; overflow: visible; }
.scheme .ov { display: none; }
.scheme .ov.on { display: inline; }
.scheme__sash { transform-origin: 77px 107px; transition: transform .8s var(--spring); }
.scheme[data-scheme="sag"] .scheme__sash { transform: rotate(1.4deg); }
.ants { animation: ants 1s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -24; } }
.flow { stroke-dasharray: 7 6; animation: flow .8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .15s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ov-fade { animation: fadeIn .7s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.glow { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .3; } 50% { opacity: .8; } }
.wiggle { transform-box: view-box; transform-origin: 425.5px 243.5px; animation: wiggle 2.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 55%, 100% { transform: rotate(0); } 12% { transform: rotate(18deg); } 26% { transform: rotate(-6deg); } 40% { transform: rotate(10deg); } }

.diag__card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 22px; background: var(--soft); }
.diag__card.is-swap > * { animation: fadeIn .35s ease both; }
.diag__k { font-size: 14px; color: var(--ink-2); }
.diag__part { margin-top: 4px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.diag__card h3 { font-size: 15px; font-weight: 600; }
.diag__card h3 + p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.diag__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.diag__facts dt { font-size: 14px; color: var(--ink-2); }
.diag__facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.diag__card .btn { min-height: 52px; padding: 10px 20px; font-size: 16px; line-height: 1.3; text-wrap: balance; }
.nowrap { white-space: nowrap; }

/* ---------- Цены ---------- */
.prices { columns: 2 440px; column-gap: 72px; margin-top: 48px; }
.pgroup { break-inside: avoid; margin: 0 0 44px; }
.pgroup__sum { display: block; list-style: none; cursor: default; }
.pgroup__sum::-webkit-details-marker { display: none; }
.pgroup__sum:focus-visible { outline-offset: 4px; border-radius: 6px; }
.pgroup__count, .pgroup__from, .pgroup__chev { display: none; }
.pgroup h3 { margin-bottom: 6px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.pgroup ul { margin: 0; padding: 0; list-style: none; }
.pgroup li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.pgroup li > span { display: flex; flex-direction: column; min-width: 0; }
.pgroup li > span:last-child { flex: 0 0 auto; align-items: flex-end; text-align: right; }
.pgroup b { font-size: 16px; font-weight: 400; line-height: 1.4; }
.pgroup li > span:last-child b { font-size: 17px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pgroup small { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pgroup li > span:last-child small { font-size: 13px; white-space: nowrap; }

/* ---------- Тепловизор ---------- */
.thermo { display: flex; flex-wrap: wrap; align-items: center; gap: 48px clamp(40px, 6vw, 96px); }
.thermo__text { flex: 1 1 320px; max-width: 460px; }
.thermo__text > p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--night-text); text-wrap: pretty; }
.thermo__legend { margin-top: 32px; }
.thermo__legend i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #120B3D 0%, #3A1C8C 18%, #8E2BA6 38%, #D8466A 58%, #F7932A 78%, #FFE27A 100%); }
.thermo__legend > span { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--night-text); }
.thermo__text > .thermo__tip { margin-top: 24px; font-size: 15px; }
.thermo__fig { flex: 1.5 1 460px; min-width: 0; margin: 0; }
.thermo__fig figcaption { margin-top: 12px; font-size: 14px; color: var(--night-text); }
.compare {
  --pos: 52%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 20px; background: #120B3D;
  touch-action: pan-y; cursor: ew-resize; user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare__line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare__grip {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.compare__grip svg { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare__range:focus-visible ~ .compare__line .compare__grip { outline: 3px solid var(--amber); outline-offset: 3px; }
.nudge-l { animation: nudgeL 1.8s ease-in-out infinite; }
.nudge-r { animation: nudgeR 1.8s ease-in-out infinite; }
@keyframes nudgeL { 50% { transform: translateX(-3px); } }
@keyframes nudgeR { 50% { transform: translateX(3px); } }
.compare__tag { position: absolute; z-index: 2; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(9, 12, 28, .72); color: #fff; font-size: 14px; font-weight: 500; pointer-events: none; }
.compare__tag--l { left: 16px; }
.compare__tag--r { right: 16px; }

/* ---------- Как работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 40px 28px; margin: 56px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 36px; }
.steps li::before, .steps li::after { content: ""; position: absolute; top: 7px; left: 0; right: -28px; height: 2px; }
.steps li::before { background: var(--line); }
.steps li::after { background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
.steps li:last-child::before, .steps li:last-child::after { right: 0; }
.steps.is-seen li::after { transform: scaleX(1); }
.steps.is-seen li:nth-child(2)::after { transition-delay: .35s; }
.steps.is-seen li:nth-child(3)::after { transition-delay: .7s; }
.steps.is-seen li:nth-child(4)::after { transition-delay: 1.05s; }
.steps__time::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff;
}
.steps li:last-child .steps__time::before { background: var(--amber); }
.steps__time { font-size: clamp(34px, 3.2vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 16px; font-size: 20px; font-weight: 600; }
.steps h3 + p { max-width: 34ch; margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Вопросы ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); align-items: flex-start; }
.faq__head { flex: 1 1 280px; max-width: 420px; }
.faq__head p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.faq__head a { font-weight: 600; white-space: nowrap; color: var(--ink); }
.faq__list { flex: 2 1 480px; min-width: 0; border-bottom: 1px solid var(--line); }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: 18px; font-weight: 500; line-height: 1.35;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:focus-visible { outline-offset: 4px; border-radius: 6px; }
.faq__icon { position: relative; flex: 0 0 auto; width: 32px; height: 32px; }
.faq__icon::before {
  content: ""; position: absolute; left: 12px; top: 2px; width: 9px; height: 19px;
  border: 1.8px solid var(--ink); border-radius: 4.5px; background: #fff;
}
.faq__icon i {
  position: absolute; z-index: 1; left: 14.5px; top: 8px; width: 4px; height: 21px; border-radius: 2px;
  background: var(--ink); transform-origin: 2px 3px; transition: transform .45s var(--spring);
}
.faq__list details[open] .faq__icon i { transform: rotate(90deg); }
.faq__list details p { max-width: 62ch; margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.faq__list details[open] p { animation: stepIn .35s ease both; }

/* ---------- Контакты ---------- */
.contacts { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0 0; }
.contacts__in { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); align-items: flex-end; }
.contacts__main { flex: 1.4 1 420px; }
.contacts__main > p { max-width: 46ch; margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--night-text); }
.contacts__phone {
  display: inline-block; margin-top: 28px;
  font-size: clamp(32px, 3.6vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.contacts__phone:hover { color: var(--amber); }
.contacts__main > .contacts__sub { margin-top: 8px; font-size: 16px; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contacts__facts { flex: 1 1 280px; display: grid; gap: 20px; margin: 0; }
.contacts__facts dt { font-size: 14px; color: var(--night-text); }
.contacts__facts dd { margin: 4px 0 0; font-size: 17px; line-height: 1.45; }
.skyline { width: 100%; height: clamp(120px, 14vw, 200px); margin-top: 64px; }
.skyline .lit { animation: lit 11s ease-in-out infinite; }
@keyframes lit { 0%, 40% { opacity: 1; } 46%, 84% { opacity: .12; } 90%, 100% { opacity: 1; } }

/* ---------- Подвал ---------- */
.ftr { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--night-2); color: var(--night-text); }
.ftr__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr .linkbtn { color: var(--night-text); }
.ftr .linkbtn:hover { color: #fff; }

/* ---------- Окна с документами ---------- */
.dlg {
  width: min(760px, calc(100% - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: 22px;
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(9, 12, 28, .6);
  overflow: hidden;
}
.dlg[open] { display: flex; flex-direction: column; animation: dlgIn .3s cubic-bezier(.2, .8, .2, 1); }
.dlg::backdrop { background: rgba(16, 26, 54, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px 28px; border-bottom: 1px solid var(--line); }
.dlg__head h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.015em; }
.dlg__close { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); cursor: pointer; }
.dlg__close:hover { background: var(--line); }
.dlg__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dlg__body { padding: 8px 28px 28px; overflow: auto; overscroll-behavior: contain; }
.doc h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-left: 20px; }
.doc .doc__meta { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- Нижняя панель на телефоне ---------- */
.dock { display: none; }
.dock__btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 16px; border-radius: 14px;
  font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: transform .15s, background-color .2s;
}
.dock__btn:active { transform: scale(.97); }
.dock__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock__btn--call { flex: 0 1 auto; background: var(--frost); color: var(--ink); }
.dock__btn--lead { flex: 1 1 auto; background: var(--amber); color: var(--ink); }
.dock__btn--call:hover, .dock__btn--lead:hover { color: var(--ink); }
.dock__tag {
  position: absolute; top: -12px; right: -6px;
  padding: 5px 8px; border-radius: 999px;
  background: var(--ink); color: var(--amber);
  font-size: 13px; font-weight: 700; line-height: 1;
  transform: rotate(8deg);
  box-shadow: 0 6px 12px -6px rgba(23, 36, 73, .7);
}

/* ---------- Меню на телефоне ---------- */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--frost); color: var(--ink);
}
.menu[open] { display: flex; flex-direction: column; animation: menuIn .3s cubic-bezier(.2, .8, .2, 1); }
.menu::backdrop { background: var(--frost); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.menu__top {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.menu .hdr__menu { display: inline-flex; }
.menu__body {
  flex: 1 1 auto; overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: 8px max(var(--pad), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px; border-bottom: 1px solid var(--line);
  font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; color: var(--ink);
}
.menu__nav a::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 4px;
  border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2);
  transform: rotate(45deg);
}
.menu__nav a:active { color: var(--ink-2); }
.menu__contact { margin-top: auto; padding-top: 32px; }
.menu__phone { font-size: 28px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; color: var(--ink); }
.menu__note { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.menu__btns { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hdr__in { gap: 16px; }
  .hdr__call { margin-left: auto; }
  .hdr__menu { display: inline-flex; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "win" "form"; }
  .hero__win { justify-self: center; width: min(100%, 340px); }
  .win { margin: 0 auto; }
}
@media (max-width: 720px) {
  /* Шапка и первый экран */
  .hdr__call { display: none; }
  .hdr__in { min-height: 64px; }
  .hero { padding: 20px 0 56px; }
  .hero__grid { row-gap: 28px; }
  .lead { margin-top: 16px; }
  .hero__win { width: min(100%, 300px); }
  .sticker { top: -36px; right: -6px; width: 94px; height: 94px; border-width: 4px; }
  .sticker b { font-size: 27px; }
  .sticker span { max-width: 64px; font-size: 11px; }
  .form__head { padding-right: 70px; }
  .chips--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step__title { font-size: 22px; }
  .assure { gap: 8px 20px; }

  /* Секции короче */
  .sec { padding: 56px 0; }
  .contacts { padding-top: 56px; }
  .sec__head--row .btn { display: none; }

  /* Диагностика: признаки плиткой, схема и ответ сразу под ними */
  .diag { margin-top: 28px; gap: 16px; }
  .diag__list { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sym { min-height: 64px; padding: 10px 14px; font-size: 15px; line-height: 1.25; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
  .sym::before { display: none; }
  .sym:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sym:active { transform: scale(.97); }
  .diag__fig { flex-basis: 100%; }
  .diag__card { flex-basis: 100%; padding: 22px; }

  /* Цены: группы раскрываются по нажатию */
  .prices { display: grid; gap: 10px; columns: auto; margin-top: 28px; }
  .pgroup { margin: 0; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
  .pgroup__sum {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 18px;
    grid-template-areas: "t f c" "n f c";
    align-items: center; gap: 2px 12px;
    min-height: 72px; padding: 14px 16px 14px 18px; cursor: pointer;
  }
  .pgroup__sum h3 { grid-area: t; margin: 0; font-size: 17px; }
  .pgroup__count { grid-area: n; display: block; font-size: 14px; color: var(--ink-2); }
  .pgroup__from { grid-area: f; display: block; font-size: 16px; font-weight: 600; white-space: nowrap; }
  .pgroup__chev {
    grid-area: c; display: block; justify-self: center; width: 9px; height: 9px; margin-top: -4px;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(45deg); transition: transform .35s var(--spring), margin .35s;
  }
  .pgroup[open] .pgroup__chev { transform: rotate(-135deg); margin-top: 4px; }
  .pgroup[open] .pgroup__sum { border-bottom: 1px solid var(--line); }
  .pgroup ul { padding: 0 18px 4px; }
  .pgroup li:first-child { border-top: 0; }
  .pgroup[open] ul { animation: fadeIn .3s ease both; }
  .sec__note { margin-top: 16px; font-size: 15px; }

  /* Тепловизор */
  .thermo { gap: 28px; }

  /* Как проходит ремонт: вертикальная линия времени */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .steps li { padding: 0 0 28px 40px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before, .steps li::after { top: 23px; bottom: -7px; left: 7px; right: auto; width: 2px; height: auto; }
  .steps li::after { transform: scaleY(0); transform-origin: 50% 0; }
  .steps.is-seen li::after { transform: scaleY(1); }
  .steps li:last-child::before, .steps li:last-child::after { display: none; }
  .steps__time { font-size: 30px; }
  .steps__time::before { top: 7px; }
  .steps h3 { margin-top: 8px; font-size: 19px; }

  /* Вопросы */
  .faq { gap: 24px; }
  .faq__list summary { padding: 18px 0; font-size: 17px; }

  /* Контакты */
  .contacts__phone { margin-top: 22px; }
  .contacts__btns { margin-top: 24px; }
  .contacts__btns .btn { flex: 1 1 100%; }

  /* Подвал: ссылки на документы удобно нажимать пальцем */
  .ftr__links { gap: 0 24px; }
  .ftr__links .linkbtn { display: inline-block; padding: 11px 0; }
  .skyline { margin-top: 40px; }

  /* Документы выезжают снизу, как на телефоне привычно */
  .dlg { width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dlg[open] { animation: sheetUp .38s cubic-bezier(.2, .8, .2, 1); }
  .dlg__head { padding: 18px 16px 14px 20px; }
  .dlg__body { padding: 6px 20px calc(22px + env(safe-area-inset-bottom)); }

  /* Нижняя панель с кнопками */
  .dock {
    position: fixed; z-index: 40;
    left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex; gap: 8px; padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 0 0 1px rgba(23, 36, 73, .08), 0 18px 40px -16px rgba(23, 36, 73, .55);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility .45s;
  }
  .dock.is-away { transform: translateY(calc(100% + 30px)); opacity: 0; visibility: hidden; }
}
@keyframes sheetUp { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@media (max-width: 350px) {
  .dock__btn--call { padding: 0 15px; }
  .dock__btn--call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) {
  /* Узкие телефоны: наклейка меньше, плитки поплотнее */
  .sticker { top: -32px; right: -8px; width: 84px; height: 84px; }
  .sticker b { font-size: 24px; }
  .sticker span { max-width: 58px; font-size: 10px; }
  .form__head { padding-right: 56px; column-gap: 10px; }
  .form__title, .form__count { font-size: 14px; }
  .chip__box { gap: 8px; padding: 10px 9px; font-size: 14px; }
  .chip__box svg { width: 20px; height: 20px; }
  .chip--sm .chip__box { padding: 8px 12px; }
}
@media (max-width: 400px) {
  /* «в Калининграде» должно помещаться в строку даже на самых узких экранах */
  h1 { font-size: clamp(32px, 11vw, 40px); }
  h2 { font-size: clamp(26px, 8.4vw, 30px); }
  /* «Назад» и главная кнопка формы всегда в одну строку */
  .form__nav { flex-wrap: nowrap; gap: 10px; }
  .form__nav .btn { padding: 0 16px; }
  .form__nav .btn--wide { flex: 1 1 auto; }
  /* Итог заявки: подпись над значением, чтобы значениям хватало ширины */
  .summary { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .summary dt { font-size: 13px; }
  .summary dt:not(:first-child) { margin-top: 10px; }
}
@media (max-width: 340px) {
  .chips--grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hdr__in { min-height: 64px; gap: 12px; }
  .hdr__note { display: none; }
  .logo__word { font-size: 20px; }
  .hdr__phone { font-size: 16px; }
  .sec__head > p, .sec__head > div > p, .lead { font-size: 17px; }
  .pgroup li { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
