/* стили сайта для инженеров pro.holodok.tech: общие для всех страниц pro (токены, шапка, острова, кнопки,
   заглушки, подвал, текстовые страницы) и главная.
   токены те же, что у holodok.tech в styles.css, размеры по таблицам из 01_исследование/09_pro_найм_инженеров.md.
   по умолчанию компьютер, телефон на @media (max-width: 600px), как у основного сайта */

:root {
  --ink-900: #21201F;
  --ink-600: #6F6D69;   /* вторичный текст и сноски: 5,16 к 1 на белом */
  --ink-400: #9E9B98;   /* только иконки и неактивное, текстом нельзя */
  --line: #ECEAE6;
  --fill: #F5F4F2;
  --fill-hover: #EDEBE7;
  --white: #FFFFFF;
  --skeleton: #F2F1EF;
  --skeleton-glow: #FEFEFE;
  --ice-500: #5FD0EE;
  --ice-600: #45C4E6;
  --ice-100: #E3F6FC;
  --ice-700: #0A7EA4;   /* ссылки и галочки, текстом только на белом */
  --heat: #FF7A00;
  --handle: #DCD9D4;

  --r-24: 24px;
  --r-16: 16px;
  --r-12: 12px;
  --r-pill: 999px;

  --shadow-island: 0 8px 20px rgba(0, 0, 0, .12);
  --shadow-card: 0 8px 20px rgba(117, 115, 111, .2);
  --shadow-runner: 0 1px 3px rgba(0, 0, 0, .12);

  --font: Onest, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* размеры страницы найма */
  --gutter: 16px;
  --col: 1120px;
  --text-max: 560px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fill);
  color: var(--ink-900);
  font: 400 16px/22px var(--font);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
svg { display: block; flex: none; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ice-700); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.nowrap { white-space: nowrap; }

/* толщина иконок: в спрайте обводка 1.75 в сетке 24, для 20 px нужно 2.1, для 16 px 2.6, для 28 px 1.5 */
.i20 { width: 20px; height: 20px; --icon-stroke: 2.1; }
.i16 { width: 16px; height: 16px; --icon-stroke: 2.6; }
.i24 { width: 24px; height: 24px; }
.i28 { width: 28px; height: 28px; --icon-stroke: 1.5; }

/* заглушка загрузки как у Яндекс Go: серая плашка, по ней бежит блик */
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel, .ph.is-loading, .job.is-loading {
  background: linear-gradient(90deg, var(--skeleton) 40%, var(--skeleton-glow) 50%, var(--skeleton) 60%) var(--skeleton);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skel, .ph.is-loading, .job.is-loading, .btn[aria-busy="true"] { animation: none; }
}

/* фото: пока грузится, переливается; не нашлось, остаётся ровная серая плашка.
   картинка шире рамки на 8, чтобы при наведении уехать вправо и не открыть край */
.ph { position: relative; overflow: hidden; background-color: var(--skeleton); }
.ph img {
  position: absolute; top: 0; left: -8px;
  width: calc(100% + 8px); height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s, transform .3s linear;
}
.ph.is-ready img { opacity: 1; }

/* кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px;
  border-radius: var(--r-16);
  background: var(--ice-500); color: var(--ink-900);
  font-weight: 500; font-size: 17px; line-height: 22px; white-space: nowrap;
  transition: background-color .15s, filter .15s;
}
.btn:active { filter: brightness(.96); }
.btn--s { height: 40px; padding: 0 16px; border-radius: var(--r-12); font-size: 15px; line-height: 20px; }
.btn--soft { background: var(--fill); }
.btn--wide { width: 100%; }
.btn[disabled] { cursor: default; }
/* кнопка ждёт (обратный отсчёт до нового звонка): серая, чтобы было видно, что пока не нажимается */
.btn[disabled]:not([aria-busy="true"]) { background: var(--fill); color: var(--ink-600); }
/* пока ждём сервер, кнопка становится заглушкой с бликом и не нажимается */
.btn[aria-busy="true"] {
  color: var(--ink-600);
  background: linear-gradient(90deg, var(--skeleton) 40%, var(--skeleton-glow) 50%, var(--skeleton) 60%) var(--skeleton);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.link {
  color: var(--ice-700); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(10, 126, 164, .35);
}

/* шапка: на компьютере белый липкий остров 16 от краёв, высота 72, как у holodok.tech */
/* полосу 16 над липкой шапкой закрываем фоном страницы, иначе в ней видно, как проезжает содержимое */
@media (min-width: 601px) {
  body::before { content: ""; position: fixed; z-index: 29; top: 0; left: 0; right: 0; height: 16px; background: var(--fill); }
}
.header {
  position: sticky; top: 16px; z-index: 30;
  display: flex; align-items: center;
  height: var(--header-h); margin: 16px 16px 0;
  padding: 0 12px 0 20px;
  background: var(--white);
  border-radius: var(--r-24);
  box-shadow: var(--shadow-island);
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 8px; }
.brand__mark { width: 28px; height: 28px; color: var(--ice-700); }
.brand__word { font-weight: 700; font-size: 25px; line-height: 28px; letter-spacing: -0.02em; white-space: nowrap; }
.brand__sub { margin: 4px 0 0 2px; color: var(--ink-600); font-size: 13px; line-height: 16px; white-space: nowrap; }

.city-btn {
  display: flex; align-items: center; gap: 6px;
  height: 40px; margin-left: 20px; padding: 0 10px 0 8px;
  border-radius: var(--r-12);
  font-size: 15px; line-height: 20px; white-space: nowrap;
  transition: background-color .15s;
}
.city-btn__pin { color: var(--ice-700); }
.city-btn__chev { color: var(--ink-400); transition: transform .2s var(--ease); }
.city-btn[aria-expanded="true"] .city-btn__chev { transform: rotate(180deg); }

/* меню по центру острова */
.nav { position: absolute; left: 50%; top: 0; bottom: 0; display: flex; align-items: center; gap: 28px; transform: translateX(-50%); }
.nav__link { display: flex; align-items: center; height: 40px; font-size: 15px; line-height: 20px; white-space: nowrap; border-radius: 8px; transition: color .15s; }

.header__end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.login {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: var(--r-12);
  font-size: 15px; line-height: 20px; white-space: nowrap;
  transition: background-color .15s;
}
.header__end .btn--s { margin-left: 4px; }

/* список городов: на компьютере выпадает под кнопкой, на телефоне выезжает снизу */
.citymenu {
  position: fixed; z-index: 50;
  min-width: 288px; padding: 8px;
  border-radius: var(--r-24); background: var(--white); box-shadow: var(--shadow-card);
}
.citymenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.citymenu__title { display: none; }
.citymenu__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; height: 38px; padding: 0 8px 0 12px;
  border-radius: var(--r-12);
  font-size: 15px; line-height: 20px; text-align: left; white-space: nowrap;
  transition: background-color .15s;
}
.citymenu__check { color: var(--ice-700); visibility: hidden; }
.citymenu__opt[aria-checked="true"] .citymenu__check { visibility: visible; }
.citymenu__opt[aria-checked="true"] { font-weight: 500; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(33, 32, 31, .32); }

/* острова страницы */
.island {
  margin: 16px 16px 0;
  padding: 56px;
  background: var(--white);
  border-radius: var(--r-24);
  scroll-margin-top: 104px;
}
.col { max-width: var(--col); margin: 0 auto; }
.h2 { font-weight: 600; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.lead { max-width: var(--text-max); margin-top: 12px; color: var(--ink-600); font-size: 17px; line-height: 24px; }
.note { color: var(--ink-600); font-size: 14px; line-height: 18px; }

/* первый экран: карточка 560 слева, фото справа, обе высотой 640 (на 1440 это y 104..744) */
.hero {
  display: grid; grid-template-columns: 560px 1fr; gap: 16px;
  margin: 16px 16px 0;
}
.hero__card {
  display: flex; flex-direction: column;
  padding: 48px 48px 44px;
  background: var(--white);
  border-radius: var(--r-24);
}
.hero__eyebrow { color: var(--ink-600); font-weight: 500; font-size: 15px; line-height: 20px; }
.hero__eyebrow-m { display: none; }
.hero__city { display: inline; color: var(--ink-900); font-weight: 500; }
.hero__city .i16 { display: inline-block; vertical-align: -3px; margin-left: 2px; color: var(--ink-400); }
.hero__title {
  margin-top: 12px;
  font-weight: 600; font-size: 44px; line-height: 48px; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__sub { margin-top: 16px; color: var(--ink-600); font-size: 20px; line-height: 28px; }
.hero__money { margin-top: 20px; font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; text-wrap: balance; }
.hero__example { margin-top: 6px; font-weight: 500; font-size: 17px; line-height: 22px; }
.hero__note { margin-top: 6px; }
.hero__btn { margin-top: 40px; width: 100%; }
.hero__under { margin-top: 12px; color: var(--ink-600); font-size: 13px; line-height: 16px; text-wrap: balance; }

.hero__media { position: relative; min-height: 0; }
.hero__photo { position: absolute; inset: 0; border-radius: var(--r-24); }
/* фото первого экрана стоит на сером фоне страницы, где плашка #F2F1EF почти не видна.
   поэтому и пока грузится, и когда не нашлось, плашка темнее, блик тот же. на телефоне фон белый, там обычная */
.hero__photo:not(.is-loading):not(.is-ready) { background-color: var(--fill-hover); }
@media (min-width: 601px) {
  .hero__photo.is-loading { background: linear-gradient(90deg, var(--fill-hover) 40%, var(--skeleton-glow) 50%, var(--fill-hover) 60%) var(--fill-hover); background-size: 300% 100%; }
}
/* точка кадра: на компьютере f1, на телефоне f2 со своей. стоит здесь, чтобы кадр не сдвигался после загрузки */
.hero__photo img { object-position: 60% 50%; }
/* карточка заявки кодом поверх фото, без суммы: рядом с лицом денег не ставим */
.job {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 14px;
  width: 352px; height: 96px; padding: 0 20px;
  background: var(--white);
  border-radius: var(--r-24);
  box-shadow: var(--shadow-card);
}
.job > * { transition: opacity .3s; }
.job.is-loading { box-shadow: none; }
/* на телефоне короткая плашка на переливающемся фото видна случайной полоской, поэтому её показываем вместе с фото */
@media (max-width: 600px) { .job.is-loading { visibility: hidden; } }
.job.is-loading > * { opacity: 0; }
.job__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ice-100); color: var(--ice-700); }
.job__title { display: block; font-weight: 500; font-size: 20px; line-height: 24px; white-space: nowrap; }
.job__sub { display: block; margin-top: 2px; color: var(--ink-600); font-size: 15px; line-height: 20px; white-space: nowrap; }
.job__text { padding-left: 14px; }
.job__dot { display: inline-block; width: 8px; height: 8px; margin: 0 6px 0 -14px; border-radius: 50%; background: var(--ice-500); vertical-align: 1px; }

/* первый вопрос анкеты плитками прямо на странице */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 72px; padding: 0 20px;
  border-radius: var(--r-16);
  background: var(--fill);
  font-size: 17px; line-height: 22px;
  transition: background-color .15s, box-shadow .15s;
}
.tile__chev { color: var(--ink-600); transition: transform .2s var(--ease); }
.tile.is-picked { background: var(--ice-100); box-shadow: inset 0 0 0 2px var(--ice-500); }

/* как это устроено: 4 карточки по 268 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.step { display: flex; flex-direction: column; background: var(--fill); border-radius: var(--r-16); overflow: hidden; }
.step__ph { aspect-ratio: 268 / 180; border-radius: var(--r-16); }
.step__body { padding: 24px; }
.step__head { display: flex; align-items: center; gap: 12px; }
.step__num {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ice-100); color: var(--ink-900);
  font-weight: 600; font-size: 15px; line-height: 20px;
}
.step__title { font-weight: 500; font-size: 17px; line-height: 22px; text-wrap: balance; }
.step__text { margin-top: 12px; color: var(--ink-600); font-size: 15px; line-height: 20px; }
/* у четвёртого шага вместо фото статусы строками на льду, как путь «Без опыта» в «Кому подходит».
   метка слева идёт от пустой к галочке: начислено, к выплате, выплачено */
.step__statuses {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  aspect-ratio: 268 / 180; padding: 0 20px;
  border-radius: var(--r-16); background: var(--ice-100);
}
.step__statuses li {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px;
  border-radius: var(--r-12); background: var(--white);
  font-weight: 500; font-size: 15px; line-height: 20px; white-space: nowrap;
}
.status-mark { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.status-mark--0 { box-shadow: inset 0 0 0 2px var(--handle); }
.status-mark--1 { background: var(--ice-500); }
.step__statuses .i16 { color: var(--ice-700); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-12);
  font-weight: 500; font-size: 15px; line-height: 20px; white-space: nowrap;
}
.chip--done-0 { background: var(--fill); color: var(--ink-900); }
.chip--done-1 { background: var(--ice-100); color: var(--ink-900); }
.chip--done-2 { background: var(--ice-700); color: var(--white); }
.fact { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 17px; line-height: 24px; }
.fact .i20 { margin-top: 2px; color: var(--ice-700); }

/* деньги */
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 32px; }
.money__card { padding: 32px; border-radius: var(--r-16); background: var(--fill); }
.money__label { color: var(--ink-600); font-size: 15px; line-height: 20px; }
.money__sum { margin-top: 8px; font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.money__cap { margin-top: 4px; color: var(--ink-600); font-size: 16px; line-height: 22px; }
.money__card .note { margin-top: 4px; }
.money__side { padding: 8px 0; }
.money__for { font-weight: 500; font-size: 17px; line-height: 24px; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.checks li { display: flex; gap: 10px; font-size: 17px; line-height: 24px; }
.checks .i20 { margin-top: 2px; color: var(--ice-700); }
.money__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.money__chips .chip { height: 40px; padding: 0 14px; }
.money__chips .chip--done-0 { background: var(--fill); }
.money__arrow { color: var(--ink-400); }
.money__when { margin-top: 12px; font-size: 17px; line-height: 24px; }

/* калькулятор по числам человека, без прайса */
.calc { margin-top: 20px; padding: 32px; border-radius: var(--r-16); background: var(--fill); }
.calc__title { font-weight: 500; font-size: 20px; line-height: 24px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr minmax(300px, .9fr); gap: 32px; align-items: end; margin-top: 24px; }
.calc__label { display: block; color: var(--ink-600); font-weight: 500; font-size: 15px; line-height: 20px; }
.calc__box {
  position: relative; display: flex; align-items: center; gap: 4px;
  height: 56px; margin-top: 8px; padding: 0 16px;
  border-radius: var(--r-16); background: var(--white);
  cursor: text;
}
.calc__input {
  width: 100%; height: 100%; padding: 0; border: 0; background: none; outline: none;
  font-weight: 500; font-size: 17px; line-height: 22px;
}
/* у чека знак рубля стоит сразу за числом: поле шириной в число, остальное место коробки тоже ставит курсор */
.calc__box:has(.calc__unit) .calc__input { flex: none; min-width: 1ch; }
/* фокус поля рамкой --ice-700, как у остальных элементов: --ice-500 на белом слишком бледный для фокуса */
.calc__box:has(.calc__input:focus-visible) { box-shadow: inset 0 0 0 2px var(--ice-700); }
.calc__unit { flex: none; color: var(--ink-600); font-size: 17px; line-height: 22px; }
.calc__range {
  --p: 0%;
  display: block; width: 100%; height: 28px; margin: 12px 0 0;
  background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.calc__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ice-500) var(--p), var(--handle) var(--p)); }
.calc__range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ice-500) var(--p), var(--handle) var(--p)); }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -10px;
  border-radius: 12px; background: var(--white); box-shadow: var(--shadow-runner), 0 0 0 1px rgba(0, 0, 0, .06);
}
.calc__range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-runner), 0 0 0 1px rgba(0, 0, 0, .06); }
.calc__range:focus-visible { outline-offset: 4px; }
.calc__scale { display: flex; justify-content: space-between; color: var(--ink-600); font-size: 13px; line-height: 16px; }
.calc__result { padding-bottom: 20px; }
.calc__sum { display: block; font-weight: 600; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; white-space: nowrap; }
.calc__per { display: block; margin-top: 4px; color: var(--ink-600); font-size: 17px; line-height: 24px; }
.calc .note { max-width: 760px; margin-top: 20px; }

/* кому подходит */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.who__card { display: flex; flex-direction: column; background: var(--fill); border-radius: var(--r-16); overflow: hidden; transition: background-color .15s; }
.who__ph { aspect-ratio: 360 / 240; border-radius: var(--r-16); }
.who__path {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  aspect-ratio: 360 / 240; padding: 0 24px;
  border-radius: var(--r-16); background: var(--ice-100);
}
.who__path li {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 10px 14px;
  border-radius: var(--r-12); background: var(--white);
  font-weight: 500; font-size: 15px; line-height: 20px;
}
.who__path b { min-width: 10px; font-weight: 600; color: var(--ice-700); font-variant-numeric: tabular-nums; text-align: center; }
.who__body { padding: 24px; }
.who__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; font-size: 20px; line-height: 24px; }
.who__chev { color: var(--ink-600); transition: transform .2s var(--ease); }
.who__text { margin-top: 8px; color: var(--ink-600); font-size: 15px; line-height: 20px; }
.need { margin-top: 40px; }
.need .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 16px; }

/* самозанятость: слева заголовок, справа текст не шире 560 */
.split { display: grid; grid-template-columns: 1fr var(--text-max); gap: 20px; }
.split__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--ice-100); color: var(--ice-700); }
.split__text p { font-size: 17px; line-height: 24px; }
.split__text p + p { margin-top: 12px; }
.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 20px; color: var(--ice-700); font-weight: 500; font-size: 17px; line-height: 24px; }
.more .i20 { transition: transform .2s var(--ease); }

/* вопросы как чат */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) 550px; gap: 20px; align-items: start; }
.faq > * { min-width: 0; }
.faq__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* строки нужны только телефону: на компьютере чипы идут одним потоком с переносом */
.faq__row { display: contents; }
.qchip {
  display: flex; align-items: center;
  height: 40px; padding: 0 14px;
  border-radius: var(--r-12); background: var(--fill);
  font-weight: 500; font-size: 15px; line-height: 20px; white-space: nowrap;
  transition: background-color .15s;
}
.qchip[aria-pressed="true"] { background: var(--ice-100); }
.chat {
  display: flex; flex-direction: column; gap: 4px;
  height: 440px; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: var(--r-16);
}
/* сообщения прижаты к низу, как в мессенджере. auto у первого, а не justify-content: так верх длинной переписки листается */
.chat__hello { align-self: center; margin-top: auto; margin-bottom: 8px; color: var(--ink-600); font-size: 13px; line-height: 16px; }
.msg { max-width: 82%; padding: 10px 14px; font-size: 16px; line-height: 22px; }
.msg--q { align-self: flex-end; margin-top: 12px; background: var(--ice-100); border-radius: 16px 4px 16px 16px; }
.msg--a { align-self: flex-start; background: var(--fill); border-radius: 4px 16px 16px 16px; }
/* сноска к денежной цифре в ответе: тем же пузырём, мельче и серым */
.msg--note { color: var(--ink-600); font-size: 14px; line-height: 18px; }
.msg__time { color: var(--ink-600); font-size: 13px; line-height: 16px; }
.msg__time--q { align-self: flex-end; }
.msg__time--a { align-self: flex-start; }
.msg--typing { display: flex; gap: 4px; padding: 15px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* финальный призыв */
.final { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.final__text p { max-width: 520px; margin-top: 12px; color: var(--ink-600); font-size: 17px; line-height: 24px; }
.final__btn { width: 360px; max-width: 100%; margin-top: 32px; }
.final__team { display: inline-block; margin-top: 16px; font-size: 15px; line-height: 20px; }
.final__ph { aspect-ratio: 550 / 366; border-radius: var(--r-24); }

/* подвал */
.footer { margin: 16px; padding: 40px; background: var(--white); border-radius: var(--r-24); }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; max-width: var(--col); margin: 0 auto; }
.footer .brand { min-height: 0; }
.footer__legal { margin-top: 16px; color: var(--ink-600); font-size: 13px; line-height: 16px; }
.footer__legal p + p { margin-top: 4px; }
.footer__links { display: grid; grid-template-columns: auto auto; gap: 0 40px; align-content: start; }
.footer__links a { display: flex; align-items: center; min-height: 32px; color: var(--ink-600); font-size: 15px; line-height: 20px; transition: color .15s; }

/* липкая плашка с кнопкой, только на телефоне */
.stickybar { display: none; }

/* текстовые страницы: согласие, политика, инструкция */
.doc { max-width: 720px; margin: 0 auto; }
.doc__h1 { font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.02em; text-wrap: balance; }
.doc__lead { margin-top: 16px; color: var(--ink-600); font-size: 20px; line-height: 28px; }
.doc h2 { margin-top: 40px; font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; scroll-margin-top: 104px; }
.doc p, .doc li { font-size: 17px; line-height: 24px; }
.doc p { margin-top: 12px; }
.doc ol, .doc ul { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.doc ol { counter-reset: n; }
.doc ol > li { position: relative; padding-left: 40px; counter-increment: n; }
.doc ol > li::before {
  content: counter(n);
  position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ice-100); font-weight: 600; font-size: 14px; line-height: 18px;
}
.doc ul > li { position: relative; padding-left: 20px; }
.doc ul > li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--ice-500); }
.doc .placeholder { color: var(--ink-600); }
.doc__version { margin-top: 32px; color: var(--ink-600); font-size: 15px; line-height: 20px; }
.doc__box { margin-top: 24px; padding: 20px 24px; border-radius: var(--r-16); background: var(--fill); }
.doc__box p:first-child { margin-top: 0; }
.doc__cta { display: inline-flex; margin-top: 32px; }

/* 404: карточка 480 по центру, как карточка анкеты */
.island.nf { max-width: 480px; margin: 16px auto 0; padding: 32px; }
.nf__title { font-weight: 600; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
.nf__text { margin: 8px 0 24px; color: var(--ink-600); font-size: 17px; line-height: 24px; }

/* наведение только мышью, на тачскрине оно залипает */
@media (hover: hover) {
  .nav__link:hover { color: var(--ice-700); }
  .login:hover, .city-btn:hover, .citymenu__opt:hover { background: var(--fill); }
  .btn:not([aria-busy="true"]):hover { background: var(--ice-600); }
  .btn--soft:not([aria-busy="true"]):hover { background: var(--fill-hover); }
  .tile:not(.is-picked):hover { background: var(--fill-hover); }
  .tile:hover .tile__chev, .who__card:hover .who__chev, .more:hover .i20 { transform: translateX(3px); }
  .step:hover .ph img, .who__card:hover .ph img { transform: translateX(8px); }
  .who__card:hover { background: var(--fill-hover); }
  .qchip:not([aria-pressed="true"]):hover { background: var(--fill-hover); }
  .footer__links a:hover { color: var(--ink-900); }
  .link:hover { text-decoration-color: currentColor; }
}

/* на широком экране страница не шире острова 1440: фото первого экрана не растягивается, колонки совпадают */
@media (min-width: 1441px) {
  .header, .hero, .island, .footer { max-width: 1408px; margin-left: auto; margin-right: auto; }
}

/* в ряду из четырёх шагов место под заголовок в две строки, номер и текст у всех на одной высоте */
@media (min-width: 601px) {
  .step__head { align-items: flex-start; }
  .step__num { margin-top: 6px; }
  .step__title { display: flex; align-items: center; min-height: 44px; }
}

/* фото первого экрана узкое (от 960 до 1199): полная карточка заявки закрыла бы человека, поэтому короткая плашка */
@media (min-width: 960px) and (max-width: 1199px) {
  .job { left: 16px; bottom: 16px; width: auto; height: 36px; gap: 8px; padding: 0 12px 0 10px; border-radius: var(--r-12); }
  .job__icon, .job__sub { display: none; }
  .job__title { font-size: 13px; line-height: 16px; }
}

/* меню в шапке убираем, когда ему тесно */
@media (max-width: 1239px) { .nav { display: none; } }
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .calc__grid { grid-template-columns: 1fr 1fr; }
  .calc__result { grid-column: 1 / -1; padding-bottom: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) { .brand__sub { display: none; } }

/* низкое окно компьютера, меньше 800 по высоте: карточка и фото 520, заголовок 40/44, поля 32.
   денежная строка 24/30 встаёт в одну строку, иначе кнопка уходит ниже 560 */
@media (min-width: 960px) and (max-height: 799px) {
  .hero__card { padding: 32px; }
  .hero__title { margin-top: 8px; font-size: 40px; line-height: 44px; }
  .hero__sub { margin-top: 12px; }
  .hero__money { margin-top: 14px; font-size: 24px; line-height: 30px; }
  .hero__example, .hero__note { margin-top: 4px; }
  .hero__btn { margin-top: 20px; }
  .hero__under { margin-top: 8px; }
}

/* планшет: фото над карточкой */
@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; height: 400px; }
  .hero__card { padding: 40px; }
  .money, .final, .who { grid-template-columns: 1fr; }
  .who { gap: 12px; }
  .final__ph { order: -1; }
  .footer__in { grid-template-columns: 1fr; }
}

/* телефон: полоса 56 во всю ширину, острова листами во всю ширину */
@media (max-width: 600px) {
  .header {
    position: relative; top: 0;
    height: 56px; margin: 0; padding: 0 4px 0 16px;
    border-radius: 0; box-shadow: none;
  }
  .brand { gap: 6px; }
  .brand__mark { width: 20px; height: 20px; }
  .brand__word { font-size: 17px; line-height: 20px; letter-spacing: -0.01em; }
  .city-btn, .nav, .header__end .btn--s { display: none; }
  .login { height: 44px; }

  .citymenu {
    left: 0 !important; right: 0; top: auto !important; bottom: 0;
    min-width: 0; padding: 8px 8px calc(16px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .citymenu__title { display: block; padding: 16px 12px 8px; font-weight: 600; font-size: 20px; line-height: 26px; }
  .citymenu__opt { height: 52px; font-size: 17px; line-height: 22px; }

  .hero { display: flex; flex-direction: column; gap: 0; margin: 0; padding-bottom: 24px; background: var(--white); border-radius: 0 0 24px 24px; }
  .hero__media { flex: none; height: 180px; margin: 0 16px; }
  .hero__photo img { object-position: 50% 40%; }
  .hero__card { padding: 24px 16px 0; border-radius: 0; }
  .hero__eyebrow-d { display: none; }
  .hero__eyebrow-m { display: inline; }
  .hero__city { display: inline-flex; align-items: center; vertical-align: top; min-height: 44px; padding: 12px 0; margin: -12px 0; cursor: pointer; }
  .hero__title { margin-top: 8px; font-size: 32px; line-height: 36px; }
  .hero__sub { margin-top: 12px; font-size: 17px; line-height: 24px; }
  .hero__money { margin-top: 16px; font-size: 22px; line-height: 28px; }
  .hero__example { margin-top: 4px; font-size: 16px; line-height: 22px; }
  .hero__note { margin-top: 4px; }
  .hero__btn { margin-top: 16px; }
  .hero__under { margin-top: 12px; }
  /* на узком фото полная карточка заявки закрыла бы человека, поэтому короткая плашка в углу */
  .job { left: 12px; bottom: 12px; width: auto; height: 36px; gap: 8px; padding: 0 12px 0 10px; border-radius: var(--r-12); }
  .job__icon, .job__sub { display: none; }
  .job__title { font-size: 13px; line-height: 16px; }

  .island { margin: 8px 0 0; padding: 24px 16px; scroll-margin-top: 8px; }
  .h2 { font-size: 24px; line-height: 30px; }
  .lead { margin-top: 8px; }
  .tiles { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .tile { height: 56px; padding: 0 16px; }
  .steps { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .step__ph { aspect-ratio: auto; height: 200px; }
  .step__statuses { aspect-ratio: auto; padding: 16px; }
  .step__body { padding: 20px; }
  .money { margin-top: 20px; gap: 16px; }
  .money__card { padding: 24px 20px; }
  .money__sum { font-size: 40px; line-height: 44px; }
  .money__side { padding: 0; }
  .money__chips { gap: 6px; }
  .money__chips .money__arrow { display: none; }
  .money__chips .chip { padding: 0 12px; }
  .calc { padding: 24px 20px; }
  .calc__grid { grid-template-columns: 1fr; gap: 24px; }
  .calc__sum { font-size: 28px; line-height: 34px; }
  /* ползунок: цель касания 44, бегунок 28, дорожка 4 по центру */
  .calc__range { height: 44px; margin-top: 4px; }
  .calc__range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; border-radius: 14px; }
  .calc__range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 14px; }
  .who { margin-top: 20px; gap: 8px; }
  .who__ph, .who__path { aspect-ratio: auto; height: 200px; }
  .who__body { padding: 20px; }
  .need { margin-top: 32px; }
  .need .checks { grid-template-columns: 1fr; }
  .split__icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .split__text { margin-top: 16px; }
  /* вопросы лентой в две строки, листаются вбок. строки независимые и чипы поуже,
     чтобы третий вопрос в каждой строке выглядывал из-за края: так видно, что лента листается */
  .faq__chips {
    flex-direction: column; flex-wrap: nowrap; align-items: flex-start;
    margin: 20px -16px 0; padding: 0 16px 4px;
    overflow-x: auto; scrollbar-width: none;
  }
  .faq__chips::-webkit-scrollbar { display: none; }
  .faq__row { display: flex; gap: 8px; }
  .faq__row::after { content: ""; flex: none; width: 8px; }
  .qchip { height: 44px; padding: 0 12px; }
  .chat { height: 420px; padding: 16px; }
  .msg { max-width: 88%; }
  .final__ph { aspect-ratio: auto; height: 240px; }
  .final__btn { width: 100%; }
  .final__team, .more { display: inline-flex; align-items: center; min-height: 44px; }
  .final__team { margin-top: 8px; }
  .more { margin-top: 12px; }
  .footer { margin: 8px 0 0; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .footer__links { grid-template-columns: 1fr; }
  .footer__links a { min-height: 44px; }
  .doc__h1 { font-size: 32px; line-height: 36px; }
  .doc__lead { font-size: 17px; line-height: 24px; }
  .doc h2 { margin-top: 32px; font-size: 20px; line-height: 26px; scroll-margin-top: 16px; }
  .doc__cta { display: flex; }
  .island.nf { margin: 8px 0 0; padding: 32px 16px; }
  .nf__title { font-size: 24px; line-height: 30px; }

  .stickybar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .2s var(--ease), visibility 0s linear .2s;
  }
  .stickybar.is-shown { transform: none; visibility: visible; transition: transform .2s var(--ease), visibility 0s; }
  .stickybar .btn { width: 100%; }
}
/* низкий телефон (375×667): фото 124, чтобы кнопка первого экрана помещалась целиком */
@media (max-width: 600px) and (max-height: 699px) {
  .hero__media { height: 124px; }
  .hero__card { padding-top: 20px; }
}
/* совсем низкое окно (iPhone SE в Safari около 375×550): фото уходит под карточку, чтобы кнопка была в первом экране */
@media (max-width: 600px) and (max-height: 619px) {
  .hero__media { order: 1; margin-top: 16px; }
}
@media (max-width: 359px) {
  .hero__title { font-size: 30px; line-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .stickybar, .stickybar.is-shown { transition: none; }
  .msg--typing i { animation: none; }
  .ph img { transition: opacity .3s; }
  .tile__chev, .who__chev, .more .i20, .city-btn__chev { transition: none; }
}
