/* главная pro.xolodok.pro: одна лента «холодный воздух». сверху мастер вешает кондиционер, из кадра туман
   стекает вниз через всю страницу, блоки висят в нём на матовом стекле, рядом парит стеклянная снежинка.
   в телефоне идёт ролик рабочего дня (phone.js). общие токены, кнопки, шапка и подвал в pro.css */

body.landing {
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--mist-0) 0, var(--mist) 1100px, var(--mist) calc(100% - 700px), var(--mist-0) 100%);
}
/* туман и снежинки выходят за края кадра, но вбок страница не листается */
.landing main { overflow-x: clip; }
/* шапка над фото прозрачная, стеклом становится при прокрутке (pro.js) */
.header--clear:not(.is-glass) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header--clear:not(.is-glass) .brand__sub { color: var(--ink-700); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink-900); font-weight: 500; font-size: 14px; line-height: 18px; white-space: nowrap;
}
.h2 { font-weight: 600; font-size: clamp(36px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }

/* туман: мягкая полоса, края растворяются со всех сторон, чтобы нигде не было видно края картинки.
   медленно дрейфует, как воздух из кондиционера */
.fog {
  position: absolute; z-index: -1; pointer-events: none;
  background: url(/img/fog-a.jpg) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 62%, transparent), linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 62%, transparent), linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-composite: intersect;
}
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* первый экран: фото на весь экран, текст на стене справа от мастера */
.hero {
  position: relative; z-index: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  min-height: clamp(760px, 100svh, 1040px);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 48px) max(var(--pad), calc((100vw - 1440px) / 2)) 124px;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 98%);
}
.hero__photo.ph.is-loading { background-color: var(--mist); }
.hero__img {
  position: absolute; inset: 0;
  background: url(/img/hero.jpg) 50% 14% / cover no-repeat;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1s var(--ease-out), transform 2.4s var(--ease-out);
}
.hero__photo.is-ready .hero__img { opacity: 1; transform: none; }
/* справа лёгкая дымка: стена светлеет, и текст на ней читается на любой ширине */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(229, 234, 238, 0) 40%, rgba(229, 234, 238, .42) 64%, rgba(229, 234, 238, .62) 100%);
}
.fog--hero { left: -12%; right: -12%; bottom: -190px; height: 440px; animation: drift 46s ease-in-out infinite alternate; }

/* мастер стоит в левой половине кадра (до 47% ширины), текст начинается правее, на стене */
.hero__text { position: relative; width: min(680px, 40vw); }
.hero__title {
  margin-top: 22px;
  font-weight: 600; font-size: clamp(42px, 3.8vw, 72px); line-height: .98; letter-spacing: -0.045em;
}
.hero__title span { display: block; color: var(--ink-600); }
.hero__money {
  margin-top: 26px;
  font-weight: 600; font-size: clamp(22px, 1.75vw, 30px); line-height: 1.3; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__money mark { padding: 0 .22em; border-radius: .3em; background: var(--ice-500); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__cta { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.hero__time { color: var(--ink-700); font-size: 15px; line-height: 20px; }

/* текст первого экрана поднимается по очереди один раз при загрузке */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s var(--ease-out) both; }
.hero__text > .rise:nth-child(2) { animation-delay: .07s; }
.hero__text > .rise:nth-child(3) { animation-delay: .14s; }
.hero__text > .rise:nth-child(4) { animation-delay: .21s; }
.hero__text > .rise:nth-child(5) { animation-delay: .28s; }
.hero__text > .rise:nth-child(6) { animation-delay: .35s; }

/* заголовок секции с подписью справа; сцена, за которой парит снежинка */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; }
.sec-sub { max-width: 30ch; color: var(--ink-600); font-size: 18px; line-height: 26px; }
.how__stage { position: relative; z-index: 0; margin-top: 48px; }
.flake {
  position: absolute; z-index: -1;
  width: var(--fs); aspect-ratio: 1;
  background: url(/img/flake.jpg) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  animation: hover-flake 14s ease-in-out infinite alternate;
}
@keyframes hover-flake { from { transform: translateY(-12px) rotate(-5deg); } to { transform: translateY(14px) rotate(5deg); } }
/* большая за карточками инженеров: выглядывает сверху и снизу, а сквозь стекло видна размытой */
.flake--how { --fs: min(780px, 96vw); left: 50%; top: 50%; margin: calc(var(--fs) / -2) 0 0 calc(var(--fs) / -2); }
/* поменьше за калькулятором */
.flake--money { --fs: min(460px, 72vw); right: max(-60px, calc((100vw - var(--wrap)) / 2 - 120px)); top: -20px; animation-delay: -7s; animation-duration: 17s; }
.fog--money { left: -12%; right: 30%; top: 26%; height: 520px; background-image: url(/img/fog-a.jpg); animation: drift 60s ease-in-out infinite alternate; }

/* уже с нами: инженеры карточками из того же стекла. в покое кружок с портретом на белом,
   при наведении (на телефоне по нажатию) из кружка раскрывается снимок с улицы на всю карточку,
   а снизу по очереди поднимаются подробности. уходит быстрее, чем приходит */
.crew { position: relative; padding: 120px var(--pad) 64px; }
.crew__tap { display: none; }
html:not(.can-hover) .crew__hover { display: none; }
html:not(.can-hover) .crew__tap { display: inline; }
.crew__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.eng {
  --glass: rgba(255, 255, 255, .38);
  --at: 80px 80px;                          /* центр кружка: из него раскрывается снимок */
  --r: 52px;                                /* радиус кружка */
  --R: 540px;                               /* радиус, которым снимок накрывает всю карточку */
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1; padding: 28px; border-radius: var(--r-28);
  cursor: pointer; outline: none;
}
.eng:focus-visible { box-shadow: 0 0 0 3px var(--ice-700); }
.eng__photo {
  position: absolute; inset: 0; z-index: 0;
  clip-path: circle(var(--r) at var(--at));
  transition: clip-path .45s cubic-bezier(.7, 0, .84, 0);
}
.eng__photo.ph.is-loading { background-color: var(--mist); }
.eng__photo i {
  position: absolute; inset: 0;
  background: center 6% / cover no-repeat;
  opacity: 0; transform: scale(1.12);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
.eng__photo.is-ready i { opacity: 1; }
/* снизу темнее, чтобы белый текст читался на любом снимке */
.eng__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 27, 32, .82) 0, rgba(20, 27, 32, .42) 38%, rgba(20, 27, 32, 0) 64%);
}
.eng__face {
  position: absolute; z-index: 1; left: 28px; top: 28px;
  width: 104px; height: 104px; overflow: hidden; border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 10px 22px -6px rgba(20, 35, 50, .28);
  transition: opacity .25s, transform .45s var(--ease-out);
}
.eng__face i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .4s var(--ease-out); }
.eng__face.is-ready i { opacity: 1; }
.eng__base { position: relative; z-index: 1; transition: opacity .2s, transform .3s var(--ease-out); }
.eng__name { font-weight: 600; font-size: 24px; line-height: 28px; letter-spacing: -0.025em; }
.eng__meta { margin-top: 6px; color: var(--ink-600); font-size: 17px; line-height: 24px; }
.eng__more { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; color: var(--white); pointer-events: none; }
.eng__more > * { opacity: 0; transform: translateY(12px); transition: opacity .15s, transform .2s; }
.eng__big { font-weight: 600; font-size: 28px; line-height: 32px; letter-spacing: -0.03em; }
.eng__city { margin-top: 4px; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 22px; }
.eng__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.eng__facts li {
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 500; font-size: 14px; line-height: 18px; white-space: nowrap;
}
.eng__quote { margin-top: 12px; color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 22px; }

/* раскрытие: наведение мышью, нажатие на телефоне (pro.js ставит .is-open) или фокус с клавиатуры */
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__photo {
  clip-path: circle(var(--R) at var(--at));
  transition: clip-path .9s cubic-bezier(.25, 1, .5, 1);
}
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__photo i { transform: none; transition: opacity .4s var(--ease-out), transform 1.4s var(--ease-out); }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__face { opacity: 0; transform: scale(.82); }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__base { opacity: 0; transform: translateY(-8px); }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__more > * { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__more > :nth-child(1) { transition-delay: .24s; }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__more > :nth-child(2) { transition-delay: .3s; }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__more > :nth-child(3) { transition-delay: .36s; }
:is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__more > :nth-child(4) { transition-delay: .42s; }

/* телефон парит в тумане, внутри ролик рабочего дня */
.show { position: relative; z-index: 0; display: grid; place-items: center; padding: 64px var(--pad) 80px; }
.fog--show { left: -12%; right: -12%; top: 50%; height: 600px; margin-top: -300px; background-image: url(/img/fog-b.jpg); animation: drift 54s ease-in-out infinite alternate-reverse; }
.phone {
  width: 340px; aspect-ratio: 340 / 700;
  padding: 10px; border-radius: 52px;
  background: var(--ink-900);
  box-shadow: 0 44px 80px -32px rgba(20, 35, 50, .5), 0 18px 36px -20px rgba(20, 35, 50, .32), inset 0 0 0 1.5px #3A4650;
  rotate: -3deg;
  animation: bob 9s ease-in-out infinite alternate;
}
@keyframes bob { from { translate: 0 -10px; } to { translate: 0 10px; } }
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 42px;
  background: #EDF1F3; isolation: isolate;
  font-family: var(--font); color: var(--ink-900);
}

/* карта: камера с наклоном, как в навигаторе. мир 900 на 1100, его двигает и крутит phone.js */
.pm-cam { position: absolute; inset: 0; perspective: 820px; perspective-origin: 50% 68%; overflow: hidden; }
.pm-tilt { position: absolute; inset: 0; transform-origin: 50% 68%; }
/* карта отдельным слоем видеокарты: камера двигает готовую картинку, а не рисует город заново в каждом кадре */
.pm-world { position: absolute; left: 0; top: 0; width: 900px; height: 1100px; transform-origin: 0 0; will-change: transform; }
.pm-world svg { display: block; width: 900px; height: 1100px; overflow: visible; }
/* живая точка: вокруг машины инженера дышит голубой круг */
.pm-halo { transform-box: fill-box; transform-origin: center; animation: pm-halo 1.6s ease-in-out infinite alternate; }
@keyframes pm-halo { from { transform: scale(.8); } to { transform: scale(1.05); } }

/* строка состояния телефона */
.pm-bar {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 6px 26px 0 30px;
  font-weight: 600; font-size: 14px; line-height: 18px; font-variant-numeric: tabular-nums;
}
.pm-island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 14px; background: var(--ink-900); }
.pm-sys { display: flex; align-items: center; gap: 6px; }
.pm-sig { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.pm-sig i { width: 3px; border-radius: 1px; background: var(--ink-900); }
.pm-sig i:nth-child(1) { height: 4px; } .pm-sig i:nth-child(2) { height: 6px; } .pm-sig i:nth-child(3) { height: 8px; } .pm-sig i:nth-child(4) { height: 11px; }
.pm-bat { position: relative; width: 24px; height: 12px; border: 1.5px solid rgba(20, 27, 32, .45); border-radius: 4px; }
.pm-bat::before { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 1.5px; background: var(--ink-900); }
.pm-bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(20, 27, 32, .45); }

/* подсказка навигатора сверху */
.pm-nav {
  position: absolute; z-index: 3; top: 50px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 22px;
  background: var(--ink-900); color: var(--white);
  box-shadow: 0 10px 24px rgba(20, 35, 50, .25);
  opacity: 0; transform: translateY(-14px);
  transition: opacity .26s cubic-bezier(.7, 0, .84, 0), transform .26s cubic-bezier(.7, 0, .84, 0);
}
.pm-nav.is-on { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.pm-nav__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: #2A3640; }
.pm-nav__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pm-nav__text { display: flex; flex-direction: column; min-width: 0; }
.pm-nav__dist { font-weight: 600; font-size: 21px; line-height: 25px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.pm-nav__street { color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* в наклоне дальняя часть карты уходит в дымку, как в навигаторе. насколько густо, решает phone.js */
.pm-haze {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(#EDF1F3 12%, rgba(237, 241, 243, 0));
  opacity: 0; pointer-events: none;
}
/* нижняя карточка одна, как в приложении: выезжает снизу и меняет высоту под следующий шаг,
   а содержимое сменяется внутри неё. высоту задаёт phone.js через --h */
.pm-sheet {
  --h: 0px;
  position: absolute; z-index: 3; left: 10px; right: 10px; top: 60px; bottom: 10px;
  filter: drop-shadow(0 10px 22px rgba(20, 35, 50, .16));
  pointer-events: none;
  transform: translateY(calc(var(--h) + 24px));
  transition: transform .3s cubic-bezier(.7, 0, .84, 0);
}
.pm-sheet.is-on { transform: none; transition: transform .55s var(--ease-out); }
.pm-sheet::before {
  content: ""; position: absolute; inset: 0; background: var(--white);
  clip-path: inset(calc(100% - var(--h)) 0 0 0 round 30px);
  transition: clip-path .45s var(--ease-out);
}
/* старое содержимое гаснет быстро, новое проявляется чуть позже, пока карточка меняет высоту */
.pm-card {
  position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px;
  padding: 16px 16px 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .12s cubic-bezier(.7, 0, .84, 0), transform .12s cubic-bezier(.7, 0, .84, 0);
}
.pm-card.is-on { opacity: 1; transform: none; transition: opacity .32s .15s var(--ease-out), transform .45s .15s var(--ease-out); }
.pm-label { display: flex; align-items: center; gap: 8px; color: var(--ice-700); font-weight: 600; font-size: 13px; line-height: 16px; }
.pm-label--ok::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ice-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' fill='none' stroke='%23141B20' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.pm-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ice-500); }
.pm-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--ice-500); opacity: .35; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
.pm-title { margin-top: 8px; font-weight: 600; font-size: 20px; line-height: 25px; letter-spacing: -0.015em; white-space: nowrap; }
.pm-meta { margin-top: 4px; color: var(--ink-600); font-size: 13px; line-height: 18px; }
.pm-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  height: 46px; margin-top: 14px; border-radius: 16px;
  background: var(--ice-500); color: var(--ink-900); font-weight: 500; font-size: 16px; line-height: 20px;
  transition: transform .14s var(--ease-out), filter .14s;
}
.pm-btn > span { position: relative; }
.pm-btn.is-pressed { transform: scale(.965); filter: brightness(.93); }
.pm-eta { display: flex; align-items: baseline; gap: 10px; }
.pm-eta__min { font-weight: 600; font-size: 26px; line-height: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pm-eta__km { color: var(--ink-600); font-size: 15px; line-height: 20px; font-variant-numeric: tabular-nums; }
.pm-clock { margin-left: auto; color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes pm-pop { from { transform: scale(.6); } to { transform: none; } }
/* что сделано по заявке: галочки ставятся по ходу работы */
.pm-checks { display: grid; gap: 8px; margin-top: 12px; list-style: none; }
.pm-checks li { display: flex; align-items: center; gap: 10px; color: var(--ink-600); font-size: 14px; line-height: 18px; transition: color .3s; }
.pm-checks i {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #C9D3DA;
  background: transparent center / 14px no-repeat;
  transition: background-color .3s var(--ease-out), box-shadow .3s;
}
.pm-checks li.is-done { color: var(--ink-900); }
.pm-checks li.is-done i {
  box-shadow: none; animation: pm-pop .35s var(--ease-out);
  background-color: var(--ice-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' fill='none' stroke='%23141B20' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* фотоотчёт: пустые окошки с камерой, по нажатию вспышка и снимок */
.pm-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pm-shot {
  position: relative; display: grid; place-items: center;
  height: 78px; overflow: hidden; border-radius: 14px;
  background: #F1F4F6; box-shadow: inset 0 0 0 1.5px #D5DDE3;
  transition: transform .14s var(--ease-out);
}
.pm-shot svg { width: 26px; height: 26px; fill: none; stroke: #8796A0; stroke-width: 1.6; stroke-linejoin: round; transition: opacity .2s; }
.pm-shot::before {
  content: ""; position: absolute; inset: 0;
  background: url(/img/shot-do.jpg) center / cover no-repeat;
  opacity: 0; transform: scale(1.12);
  transition: opacity .35s var(--ease-out), transform .7s var(--ease-out);
}
.pm-shot--after::before { background-image: url(/img/shot-posle.jpg); }
.pm-shot::after { content: ""; position: absolute; inset: 0; background: var(--white); opacity: 0; pointer-events: none; }
.pm-shot.is-pressed { transform: scale(.96); }
.pm-shot.is-filled::before { opacity: 1; transform: none; }
.pm-shot.is-filled::after { animation: flash .45s ease-out; }
.pm-shot.is-filled svg { opacity: 0; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: .9; } 100% { opacity: 0; } }
.pm-shot i {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  color: var(--ink-900); font-style: normal; font-weight: 600; font-size: 11px; line-height: 14px;
}
/* «Отправить» бледная, пока оба фото не приложены */
.pm-btn--wait { opacity: .45; transition: opacity .3s, transform .14s var(--ease-out), filter .14s; }
.pm-btn--wait.is-ready { opacity: 1; }
.pm-stars { display: flex; gap: 6px; margin-top: 10px; }
.pm-stars svg { width: 34px; height: 34px; fill: #DCE3E8; transition: fill .2s; }
.pm-stars svg.is-on { fill: #FFB21E; animation: pm-star .4s var(--ease-out); }
@keyframes pm-star { from { transform: scale(1.4); } to { transform: none; } }
.pm-sum { margin-top: 6px; font-weight: 600; font-size: 38px; line-height: 42px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* палец нажимает кнопку */
.pm-tap {
  position: absolute; z-index: 4; left: 0; top: 0;
  width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(20, 27, 32, .22); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7);
  opacity: 0; pointer-events: none;
}
.pm-tap.is-on { animation: tap .5s var(--ease-out); }
@keyframes tap { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.25); } }
/* между кругами экран мягко уходит в цвет карты и проявляется снова */
.pm-veil { position: absolute; z-index: 5; inset: 0; background: #EDF1F3; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease-out); }
.pm-veil.is-on { opacity: 1; transition: opacity .45s cubic-bezier(.7, 0, .84, 0); }

/* деньги: крупно итог в неделю, под ним формула, справа ползунки на стекле */
.money { position: relative; z-index: 0; padding: 72px var(--pad) 96px; }
.money__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px 96px; align-items: center; }
.money__big {
  margin-top: 26px;
  font-weight: 600; font-size: clamp(60px, 7vw, 120px); line-height: .92; letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.money__per { margin-top: 14px; color: var(--ink-600); font-size: 20px; line-height: 28px; }
.money__formula { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 30px; }
.money__pill {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 18px; line-height: 22px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.money__x { color: var(--ink-600); font-size: 24px; line-height: 1; }
.money__hint { margin-top: 14px; max-width: 46ch; color: var(--ink-600); font-size: 16px; line-height: 24px; }
.calc { display: grid; gap: 26px; padding: 32px; border-radius: var(--r-28); }
.calc__title { font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.015em; }
.calc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc__label { font-weight: 500; font-size: 15px; line-height: 20px; }
.calc__val { font-weight: 600; font-size: 24px; line-height: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__range {
  --p: 50%;
  display: block; width: 100%; height: 28px; margin: 10px 0 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.calc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink-900) var(--p), rgba(20, 27, 32, .14) var(--p)); }
.calc__range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(20, 27, 32, .14); }
.calc__range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink-900); }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -11px; border: 0; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 10px rgba(20, 35, 50, .28);
}
.calc__range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(20, 35, 50, .28); }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ice-700); }
.calc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ice-700); }
.calc__ends { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ink-600); font-size: 13px; line-height: 16px; }
.money__note { grid-column: 1 / -1; max-width: 760px; color: var(--ink-600); font-size: 14px; line-height: 20px; }

/* вопросы раскрывашками на стекле */
.faq { position: relative; padding: 48px var(--pad) 24px; }
.faq__in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px 96px; align-items: start; }
.faq__panel { padding: 8px 32px; border-radius: var(--r-28); }
/* вопросов много: на компьютере заголовок слева едет вместе с прокруткой списка */
@media (min-width: 901px) { .faq__in > .h2 { position: sticky; top: calc(var(--header-h) + 40px); } }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px; padding: 20px 0;
  font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.02em;
  list-style: none; cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: 4px; border-radius: 8px; }
.qa__icon { width: 28px; height: 28px; color: var(--ink-900); --icon-stroke: 1.6; transition: transform .35s var(--ease-out); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__a { padding: 0 56px 26px 0; }
.qa__a p { max-width: 62ch; color: var(--ink-600); font-size: 18px; line-height: 28px; }
.qa__a a { color: var(--ice-700); text-decoration: underline; text-underline-offset: 3px; }
/* подписи групп вопросов: деньги, заявки, как начать */
.qa-group {
  padding: 26px 0 4px; border-top: 1px solid var(--line);
  color: var(--ink-600); font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase;
}
.qa-group:first-child { padding-top: 22px; border-top: 0; }
/* где браузер умеет, ответ раскрывается плавно, а не прыжком */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

/* низкий экран ноутбука: текст первого экрана плотнее, чтобы не наезжать на кондиционер сверху */
@media (min-width: 901px) and (max-height: 820px) {
  .hero__title { margin-top: 16px; font-size: clamp(40px, 3.4vw, 52px); }
  .hero__money { margin-top: 18px; font-size: 22px; }
  .hero__cta { margin-top: 24px; }
}

/* узкий компьютер и планшет: фото сверху, текст под ним в тумане */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 0; }
  .hero__photo { position: relative; inset: auto; height: clamp(340px, 82vw, 560px); }
  .hero__photo::after { display: none; }
  .hero__img { background-position: 30% 22%; }
  .fog--hero { top: clamp(220px, 58vw, 420px); bottom: auto; height: 300px; }
  .hero__text { width: auto; margin-top: -36px; padding: 0 var(--pad) 24px; }
  /* инженеры листаются вбок, как истории; следующая карточка выглядывает справа */
  .crew__cards {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
    margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 10px;
    scrollbar-width: none;
  }
  .crew__cards::-webkit-scrollbar { display: none; }
  .eng { flex: 0 0 min(84%, 380px); scroll-snap-align: start; aspect-ratio: auto; min-height: 420px; }
  /* minmax(0, 1fr): длинная сумма не раздвигает колонку шире экрана, а ужимает шрифт (pro.js) */
  .money__in, .faq__in { grid-template-columns: minmax(0, 1fr); }
  .fog--money { right: -12%; top: 10%; }
  /* в один столбец снежинка уходит за калькулятор, чтобы не спорить с большой суммой */
  .flake--money { --fs: min(340px, 60vw); top: auto; bottom: 200px; right: -70px; }
}

/* телефон */
@media (max-width: 600px) {
  .hero__photo { height: clamp(330px, 100vw, 420px); }
  .hero__title { margin-top: 16px; font-size: clamp(32px, 8.9vw, 44px); line-height: 1; letter-spacing: -0.04em; }
  .hero__money { margin-top: 20px; font-size: 21px; line-height: 28px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
  .hero__cta .btn { width: 100%; }
  .hero__time { text-align: center; font-size: 14px; }
  .crew { padding-top: 72px; padding-bottom: 40px; }
  .eng { --at: 66px 66px; --r: 44px; padding: 22px; border-radius: var(--r-24); }
  .eng__face { left: 22px; top: 22px; width: 88px; height: 88px; }
  .eng__facts li { padding: 4px 9px; font-size: 13px; }
  .eng__more { left: 22px; right: 22px; bottom: 22px; }
  .eng__name { font-size: 22px; line-height: 26px; }
  .eng__meta { font-size: 16px; }
  .sec-sub { font-size: 16px; line-height: 24px; }
  .how__stage { margin-top: 28px; }
  .show { padding-top: 40px; padding-bottom: 56px; }
  .phone { width: min(310px, 82vw); border-radius: 48px; padding: 9px; rotate: 0deg; }
  .phone__screen { border-radius: 39px; }
  .pm-title { font-size: 19px; line-height: 24px; }
  .pm-nav__dist { font-size: 19px; line-height: 23px; }
  .money { padding-top: 48px; padding-bottom: 64px; }
  .money__big { margin-top: 20px; font-size: clamp(52px, 15vw, 64px); }
  .money__per { font-size: 17px; line-height: 24px; }
  .money__formula { margin-top: 22px; }
  .money__pill { height: 40px; padding: 0 16px; font-size: 16px; }
  .money__hint { font-size: 15px; line-height: 22px; }
  .calc { padding: 24px 20px; gap: 22px; border-radius: var(--r-24); }
  .faq__panel { padding: 4px 20px; border-radius: var(--r-24); }
  .qa summary { min-height: 64px; padding: 16px 0; font-size: 18px; line-height: 24px; }
  .qa__a { padding-right: 0; }
  .qa__a p { font-size: 16px; line-height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  /* без движения: снимок просто проявляется поверх карточки */
  .eng__photo { clip-path: none; opacity: 0; transition: opacity .2s; }
  :is(.can-hover .eng:hover, .eng.is-open, .eng:focus-visible) .eng__photo { clip-path: none; opacity: 1; transition: opacity .2s; }
  .eng__photo i, .eng__more > * { transform: none; }
  .rise, .pm-dot::after, .pm-halo, .fog, .flake, .phone { animation: none; }
  .pm-sheet, .pm-sheet::before, .pm-card { transition: none; }
  .hero__img { transition: none; transform: none; }
  .qa__icon { transition: none; }
  .qa::details-content { transition: none; }
}
