/* Чек-лист новосёла — главная. Вёрстка по макету Figma (1600 / 768 / 410).
   Метрики взяты из design/figma-main-spec.md. Mobile-first. */

:root, :root[data-theme="light"] {
  --brand: #ffac30;
  --ink: #0c0a09;
  --ink-2: #3a3b3d;
  --dark: #44403c;
  --footer-bg: #322e29;
  --surface: #f3f4f6;
  --line: #cbd5e1;
  --line-2: #d1d5db;
  --white: #fff;
  --soft: rgba(0, 0, 0, .06);
  --shadow: rgba(0, 0, 0, .18);
  --tint: #fffbf4;
  --hairline: #ece6e8;
  /* Текст поверх фотографий и тёмных плашек. Один и тот же в обеих
     темах: под ним всегда тёмное, и тема этого не меняет. */
  --on-dark: #f7f0e4;
}

/* ── ночная тема ───────────────────────────────────────────────────────────
   Переопределяем только токены: палитра компактная, и переписывать сами правила
   не нужно. Ночью `--white` — это не белый, а цвет подложки карточки: имя
   осталось от дневной темы, менять его по всему файлу значит сто правок ради
   буквы. Латунь ночью приглушена: дневная #ffac30 на тёмном режет глаз.
   Выбор темы общий с сайтом и пультом — ключ askor:theme. */
:root[data-theme="dark"] {
  --brand: #d9a441;
  --ink: #f2ece0;
  --ink-2: #b3aa99;
  --dark: #cfc6b6;
  --footer-bg: #100e0a;
  --surface: #14110c;
  --line: rgba(242, 236, 224, .18);
  --line-2: rgba(242, 236, 224, .12);
  --white: #1d1912;
  --soft: rgba(242, 236, 224, .08);
  --shadow: rgba(0, 0, 0, .5);
  --tint: #241f16;
  --hairline: rgba(242, 236, 224, .16);
  --on-dark: #f7f0e4;
}

/* Скрипт не отработал — берём тему у системы. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #d9a441;
    --ink: #f2ece0;
    --ink-2: #b3aa99;
    --dark: #cfc6b6;
    --footer-bg: #100e0a;
    --surface: #14110c;
    --line: rgba(242, 236, 224, .18);
    --line-2: rgba(242, 236, 224, .12);
    --white: #1d1912;
    --soft: rgba(242, 236, 224, .08);
    --shadow: rgba(0, 0, 0, .5);
    --tint: #241f16;
    --hairline: rgba(242, 236, 224, .16);
    --on-dark: #f7f0e4;
  }
}

/* На время переключения гасим переходы: цвет, приезжающий из переменной, иначе
   застревает на старом значении. Грабля с сайта, ловилась на бою. */
.no-anim, .no-anim * { transition: none !important; }

:root {
  /* толщина скобки шага: на мобильном 2px, от 768 — 3px (из SVG макета) */
  --step-line: 2px;

  /* поля контейнера по брейкпоинтам макета */
  --gutter: 19px;
  --section-pad-y: 42px;
  --section-gap: 18px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 26px;
    --section-pad-y: 56px;
    --section-gap: 40px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 120px;
    --section-pad-y: 100px;
    --section-gap: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Gilroy, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.4;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(1360px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Первый экран ───────────────────────────────────────────── */

.hero {
  position: relative;
  color: var(--on-dark);
  background-image: linear-gradient(180deg,
      rgba(0, 0, 0, .7) 0%, rgba(50, 50, 50, .2) 45%, rgba(0, 0, 0, .7) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Шапка */

/* На мобильном содержимое шапки не влезало: 382px при 352 доступных —
   кнопка «Получить разбор» вылезала за экран, страница становилась шире
   окна, и справа появлялась белая полоса, а всё остальное выглядело
   сдвинутым влево. Зазор ужат до 8 (в макете строка шапки собрана
   space-evenly, а не фиксированными промежутками). */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-block: 8px;
}

.burger {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
}

.burger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.logo__mark {
  width: 21px;
  height: 23px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* на мобильном логотип в макете отмасштабирован примерно вдвое */
.logo__top {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.logo__bottom {
  font-size: 10px;
  font-weight: 600;
}

.header__spacer {
  flex: 1 1 auto;
}

.header__link {
  font-size: 14px;
  white-space: nowrap;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 8px;
  border: 1px solid currentColor;
  border-block: 0;
}

.header__tools img {
  width: 16px;
  height: 16px;
}

.header__cta {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

/* На узких экранах «Инструкция» и кнопка ужимаются первыми, а логотип
   и бургер остаются целыми — иначе шапка снова начнёт распирать страницу. */
.header__link,
.header__cta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Меню разделов: на мобильном — выпадающая панель */

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 12px var(--gutter) 16px;
  background: rgba(12, 10, 9, .96);
}

.nav[data-open="true"] {
  display: block;
}

.nav__title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--line-2);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav__link {
  font-size: 16px;
}

.nav__link[aria-current="page"] {
  color: var(--brand);
}

/* Содержимое первого экрана */

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-block: 40px;
  text-align: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__year {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
}

.hero__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__lead {
  font-size: 10px;
  font-weight: 500;
}

/* Карточка «Этот чек-лист поможет» */

.hero__aside {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.promo {
  width: 198px;
  padding: 8px 12px;
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, .25);
}

.promo__title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.promo__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.promo__item::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero__arrow {
  display: none;
  width: 93px;
  flex: none;
}

/* Лента иконок помещений */

.rooms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.rooms__item {
  flex: none;
}

.rooms__item img {
  width: 32px;
  height: 32px;
}

.rooms__sep {
  flex: 1 1 auto;
  max-width: 28px;
  height: 1px;
  background: var(--brand);
}

.hero__note {
  font-size: 12px;
  font-weight: 500;
  color: var(--line-2);
}

.hero__note span {
  color: var(--brand);
}

/* ── Планшет ────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .site-header {
    min-height: 72px;
    gap: 16px;
    padding-block: 0;
  }

  .logo__mark {
    width: 30px;
    height: 32px;
  }

  .logo__top,
  .logo__bottom {
    font-size: 14px;
  }

  .header__link {
    font-size: 16px;
  }

  .header__cta {
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid var(--brand);
  }

  /* контент прижат к низу экрана, карточка вынесена вправо поверх фото */
  .hero__inner {
    position: relative;
    justify-content: flex-end;
    min-height: 400px;
    gap: 24px;
    padding-block: 27px 40px;
  }

  .hero__kicker {
    gap: 24px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  .hero__year {
    font-size: 24px;
    letter-spacing: 5px;
  }

  .hero__title {
    font-size: 40px;
    letter-spacing: .06em;
  }

  .hero__lead {
    max-width: 390px;
    font-size: 16px;
    font-weight: 400;
  }

  .hero__aside {
    position: absolute;
    top: 105px;
    right: 0;
  }

  .promo {
    width: 150px;
    padding: 13px 9px;
    border-radius: 24px;
    text-align: center;
  }

  .promo__item {
    text-align: left;
  }

  .rooms {
    gap: 36px;
    width: auto;
  }

  .rooms__sep {
    display: none;
  }

  .hero__note {
    font-size: 14px;
  }
}

/* ── Десктоп ────────────────────────────────────────────────── */

@media (min-width: 1280px) {
  .burger {
    display: none;
  }

  .site-header {
    gap: 32px;
  }

  .logo__mark {
    width: 37px;
    height: 39px;
  }

  .logo {
    gap: 8px;
  }

  .logo__top,
  .logo__bottom {
    font-size: 17px;
  }

  .header__spacer {
    display: none;
  }

  /* меню разделов раскрыто в строку */
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    padding: 0;
    background: none;
  }

  .nav__title {
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav__list {
    flex-direction: row;
    gap: 16px;
  }

  .header__link {
    padding-right: 16px;
    border-right: 1px solid var(--white);
  }

  .header__tools {
    gap: 16px;
    padding-inline: 24px;
  }

  .header__tools img {
    width: 32px;
    height: 32px;
  }

  .header__cta {
    padding: 8px 16px;
  }

  .hero__inner {
    min-height: 700px;
    gap: 24px;
    padding-block: 177px 64px;
  }

  .hero__head {
    margin-bottom: 96px;
  }

  .hero__kicker {
    gap: 24px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  .hero__year {
    font-size: 42px;
    letter-spacing: 5px;
  }

  .hero__title {
    font-size: 60px;
    letter-spacing: .1em;
  }

  .hero__lead {
    max-width: 799px;
    font-size: 18px;
  }

  .hero__aside {
    top: 277px;
    right: 0;
  }

  .promo {
    width: 239px;
    height: 275px;
    padding: 24px 16px;
    border-radius: 50px;
    text-align: left;
  }

  .promo__title {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .promo__list {
    gap: 8px;
  }

  .promo__item {
    font-size: 16px;
  }

  .rooms {
    gap: 59px;
  }

  .rooms__item img {
    width: 40px;
    height: 40px;
  }

  .hero__note {
    font-size: 14px;
  }
}

/* ── Общие элементы секций ──────────────────────────────────── */

.section {
  padding-block: var(--section-pad-y);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.btn--ghost {
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn--solid {
  color: var(--on-dark);
  background: var(--brand);
}

/* ── «Как пользоваться чек-листом» ──────────────────────────── */

.howto {
  padding-block: var(--section-pad-y);
  background: var(--white);
}

.howto .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Между шагами на мобильном 40, а не 16 как в макете: у нас текст в
   карточке переносится на строку больше, карточка выше, и хвост со
   стрелкой упирался в кружок следующего шага. Решение Александра —
   развести блоки по высоте, чтобы стрелка входила свободно. */
.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
}

/* Размер знака внутри кружка — из CSS-дампа компонента `step`:
   кружок 52 → знак 32, кружок 80 → знак 44. Раньше стояло 24 на всех
   ширинах, из-за чего иконка тонула в кружке. */
.step__icon img {
  width: 32px;
  height: 32px;
}

.step__num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

/* Скобка вокруг текста — точные пути «Vector 43» из SVG-экспорта макета.
   Их ДВА, потому что изгиб зависит от раскладки:

   мобильный (410): штрих вверху слева → вниз по левому краю → вправо по
     низу → ещё вниз на 13 → влево к середине карточки → вниз, и там
     стрелка ВНИЗ, к следующему шагу (шаги стоят столбиком);
   от 768: штрих вверху слева → вниз → вправо по низу → ВВЕРХ по правой
     стороне до 61% высоты → вправо, и там стрелка ВПРАВО (шаги в ряд).

   Толщина обводки тоже разная: 2px на мобильном, 3px от 768.
   В обеих ломаных только горизонтали и вертикали, поэтому
   preserveAspectRatio="none" их не искажает, а non-scaling-stroke держит
   толщину. Наконечник — отдельная CSS-деталь: иначе растяжение SVG
   перекосило бы его диагонали.

   Скобка начинается не под кружком, а на уровне его середины и уходит
   за него — поэтому блок текста наезжает на шапку отрицательным
   margin-top, а сам текст отодвигается вниз падингом. */
.step__text {
  position: relative;
  width: 100%;
  margin-top: -14px;
  padding: 22px 24px 14px 15px;
  /* 14px до 1280, 16px на десктопе — по дампу компонента */
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* Кружок с номером поверх линии. На мобильном он не по центру карточки,
   а левее: в макете Icon-фрейм на left 127 при ширине 372 — кружок
   начинается с 135-го пикселя (36,3% ширины). */
.step__head {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-left: 36.3%;
}

.step__bracket {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.step__bracket path {
  fill: none;
  stroke: var(--line);
  stroke-width: var(--step-line);
  vector-effect: non-scaling-stroke;
}

.step__bracket--wide {
  display: none;
}

/* Наконечник: на мобильном смотрит вниз, у середины карточки */
.step__text::after {
  content: "";
  position: absolute;
  left: 50.5%;
  top: 151.4%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -100%) rotate(45deg);
  border-right: var(--step-line) solid var(--line);
  border-bottom: var(--step-line) solid var(--line);
}

/* Пятый шаг — апогей: его скобка оранжевая всегда, а не по наведению.
   На мобильном путь у него такой же, как у остальных, вместе со стрелкой
   вниз — в макете так; отличается только цветом. */
.step:last-child .step__bracket path {
  stroke: var(--brand);
}

/* Бегущая волна по кружкам: раз в 10 секунд от первого к пятому каждый
   ненадолго подрастает. Зовёт взгляд пройти цепочку до конца — до пятого,
   оранжевого. Задержка ступеньками задаётся ниже, по номеру шага. */
.step__icon {
  animation: step-wave 10s ease-in-out infinite;
}

.step:nth-child(2) .step__icon { animation-delay: .14s; }
.step:nth-child(3) .step__icon { animation-delay: .28s; }
.step:nth-child(4) .step__icon { animation-delay: .42s; }
.step:nth-child(5) .step__icon { animation-delay: .56s; }

@keyframes step-wave {
  0%,
  9%,
  100% {
    transform: scale(1);
  }

  3.5% {
    transform: scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step__icon {
    animation: none;
  }
}

.step:not(:last-child) {
  padding-bottom: 16px;
}

.howto__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.howto__note {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 32px;
  }

  .howto .container {
    gap: 40px;
  }

  /* по три шага в ряд; ряды равной высоты, чтобы скобки совпадали */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
  }

  .step {
    align-items: flex-start;
  }

  .step__head {
    align-self: center;
  }

  .step {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* кружок стоит над началом скобки, а не по центру блока.
     34px — из дампа: Icon-фрейм в макете на left: 34 и на 768, и на 1600 */
  .step__head {
    align-self: flex-start;
    margin-left: 34px;
  }

  .step__text {
    flex: 1 1 auto;
    margin-top: -12px;
    padding: 18px 24px 16px 12px;
  }

  .step:not(:last-child) {
    padding-bottom: 0;
  }

  /* от 768 шаги стоят в ряд: работает «широкая» скобка со стрелкой вправо */
  :root {
    --step-line: 3px;
  }

  .step__bracket--wide {
    display: block;
  }

  .step__bracket--narrow {
    display: none;
  }

  .step__text::after {
    left: 99.4%;
    top: 61.2%;
    width: 9px;
    height: 9px;
    transform: translate(-100%, -50%) rotate(45deg);
    border-top: var(--step-line) solid var(--line);
    border-right: var(--step-line) solid var(--line);
    border-bottom: 0;
  }

  /* последнему в ряду стрелка не нужна — ей некуда указывать */
  .step:nth-child(3n) .step__text::after,
  .step:last-child .step__text::after {
    content: none;
  }

  .howto__footer {
    gap: 24px;
  }

  .howto__note {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .section-title {
    font-size: 42px;
  }

  .howto .container {
    gap: 80px;
  }

  /* все пять шагов в ряд */
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  /* в один ряд по пятеро — правило «третий без стрелки» здесь не нужно */
  .step:nth-child(3n) .step__text::after {
    content: "";
  }

  .step:last-child .step__text::after {
    content: none;
  }

  .step__icon {
    width: 80px;
    height: 80px;
  }

  .step__icon img {
    width: 44px;
    height: 44px;
  }

  .step__text {
    font-size: 16px;
  }

  .step__num {
    font-size: 56px;
  }

  .step__head {
    gap: 16px;
  }

  /* десктоп: шапка 90 высотой, верх скобки на 39,5 → наезд 50px;
     текст начинается на 100 → падинг сверху 60. Справа 49 — текст в макете
     174 широкий при блоке 245, чтобы не залезать под загиб скобки. */
  .step__text {
    margin-top: -50px;
    padding: 60px 49px 16px 19px;
  }

  .howto__note {
    max-width: 900px;
    font-size: 20px;
  }
}

/* ── «Важно перед началом»: схема по макету ─────────────────── */

.important {
  position: relative;
  container-type: inline-size;
  padding-bottom: 24px;
  color: var(--on-dark);
  background:
    linear-gradient(rgba(68, 64, 60, .82), rgba(68, 64, 60, .82)),
    url("../img/important-bg.jpg") center / cover no-repeat;
}

/* Холст схемы: пропорции и координаты — из макета. Всё внутри позиционируется
   в единицах макета (--sw × --sh), кегли заданы в cqw, поэтому блок
   масштабируется целиком и линии всегда попадают в подписи. */
.scheme {
  position: relative;
  aspect-ratio: var(--sw) / var(--sh);
}

.scheme > *:not(svg) {
  position: absolute;
  left: calc(var(--x) / var(--sw) * 100%);
  top: calc(var(--y) / var(--sh) * 100%);
  width: calc(var(--w) / var(--sw) * 100%);
}

.scheme__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--brand);
  stroke-width: 1.2;
}

.scheme__lines .d,
.scheme__lines .m .c {
  fill: var(--brand);
  stroke: none;
}

.scheme__lines .m .h1 {
  stroke: var(--brand);
  opacity: .55;
}

.scheme__lines .m .h2 {
  stroke: var(--brand);
  opacity: .3;
}

.scheme__lines--1600,
.scheme__lines--768 {
  display: none;
}

.scheme__head {
  text-align: center;
}

.scheme__kicker {
  font-size: calc(var(--fs) * 100cqw / var(--sw));
  font-weight: 600;
  color: var(--line-2);
}

.scheme__title {
  margin-top: .3em;
  font-size: calc(var(--fs2) * 100cqw / var(--sw));
  font-weight: 700;
  text-transform: uppercase;
}

.fact__title {
  font-size: calc(var(--fs) * 100cqw / var(--sw));
  font-weight: 600;
  white-space: nowrap;
}

.fact__text {
  margin-top: .4em;
  font-size: calc(var(--fs2) * 100cqw / var(--sw));
  line-height: 1.45;
}

.scheme__note {
  padding: .5em 1em;
  text-align: center;
  color: var(--ink);
  background: var(--brand);
}

.scheme__note-title {
  font-size: calc(var(--fs) * 100cqw / var(--sw));
  font-weight: 700;
}

.scheme__note p:last-child {
  font-size: calc(var(--fs2) * 100cqw / var(--sw));
}

/* Выбор помещения: на мобильном — отдельным блоком под схемой, как в макете */
.room-pick {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px var(--gutter) 0;
}

.room-pick__title {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--brand);
}

.room-pick__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 2px 16px;
  font-size: 13px;
  color: var(--ink);
  background: var(--brand);
}

.room-btn img {
  flex: none;
  width: 24px;
  height: 24px;
}

.room-btn b {
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .scheme__lines--410 {
    display: none;
  }

  .important {
    padding-bottom: 0;
  }

  .scheme__lines--768 {
    display: block;
  }

  .room-pick {
    position: absolute;
    left: calc(var(--x) / var(--sw) * 100%);
    top: calc(var(--y) / var(--sh) * 100%);
    width: calc(var(--w) / var(--sw) * 100%);
    padding: 0;
    gap: calc(14 * 100cqw / var(--sw));
  }

  .room-pick__title {
    font-size: calc(20 * 100cqw / var(--sw));
    text-align: left;
    text-transform: uppercase;
  }

  .room-pick__list {
    gap: calc(10 * 100cqw / var(--sw));
  }

  .room-btn {
    min-height: 0;
    padding: calc(6 * 100cqw / var(--sw)) calc(10 * 100cqw / var(--sw));
    font-size: calc(11 * 100cqw / var(--sw));
    color: var(--brand);
    background: rgba(255, 172, 48, .2);
    border: 1px solid var(--brand);
  }

  .room-btn img {
    width: calc(20 * 100cqw / var(--sw));
    height: calc(20 * 100cqw / var(--sw));
  }
}

@media (min-width: 1280px) {
  .scheme__lines--768 {
    display: none;
  }

  .scheme__lines--1600 {
    display: block;
  }

  .room-btn {
    font-size: calc(15 * 100cqw / var(--sw));
    padding: calc(9 * 100cqw / var(--sw)) calc(14 * 100cqw / var(--sw));
  }

  .room-btn img {
    width: calc(24 * 100cqw / var(--sw));
    height: calc(24 * 100cqw / var(--sw));
  }
}

/* координаты, снятые с рендеров макета */

  .important { --sw: 410; --sh: 464; }
  .scheme__head { --x: 19; --y: 60; --w: 372; --fs: 11; --fs2: 22; }
  .scheme__note { --x: 19; --y: 386; --w: 372; --fs: 14; --fs2: 9; }
  .fact--storage { --x: 29; --y: 84; --w: 120; }
  .fact--sockets { --x: 83; --y: 179; --w: 120; }
  .fact--settle { --x: 208; --y: 179; --w: 130; }
  .fact--furniture { --x: 102; --y: 291; --w: 120; }
  .fact--redo { --x: 210; --y: 291; --w: 130; }
  .fact { --fs: 12; --fs2: 9; }

@media (min-width: 768px) {
  .important { --sw: 768; --sh: 679; }
    .scheme__head { --x: 26; --y: 56; --w: 716; --fs: 16; --fs2: 32; }
    .scheme__note { --x: 472; --y: 552; --w: 263; --fs: 16; --fs2: 11; }
    .room-pick { --x: 26; --y: 154; --w: 221; }
    .fact--storage { --x: 288; --y: 202; --w: 130; }
    .fact--sockets { --x: 342; --y: 318; --w: 130; }
    .fact--settle { --x: 497; --y: 202; --w: 130; }
    .fact--furniture { --x: 337; --y: 488; --w: 130; }
    .fact--redo { --x: 498; --y: 464; --w: 180; }
    .fact { --fs: 16; --fs2: 12; }
}

@media (min-width: 1280px) {
  .important { --sw: 1600; --sh: 900; }
    .scheme__head { --x: 416; --y: 132; --w: 768; --fs: 20; --fs2: 42; }
    .scheme__note { --x: 1126; --y: 700; --w: 370; --fs: 20; --fs2: 12; }
    .room-pick { --x: 125; --y: 280; --w: 333; }
    .fact--storage { --x: 906; --y: 355; --w: 200; }
    .fact--sockets { --x: 519; --y: 286; --w: 200; }
    .fact--settle { --x: 1236; --y: 286; --w: 240; }
    .fact--furniture { --x: 604; --y: 593; --w: 200; }
    .fact--redo { --x: 1237; --y: 593; --w: 240; }
    .fact { --fs: 24; --fs2: 16; }
}

/* ── FAQ ────────────────────────────────────────────────────── */

.faq {
  padding-block: var(--section-pad-y);
  background:
    linear-gradient(rgba(243, 244, 246, .93), rgba(243, 244, 246, .93)),
    url("../img/faq-bg.jpg") center / cover no-repeat;
}

.faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 800px;
}

.accordion {
  background: var(--white);
}

.accordion__q {
  padding: 6px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.accordion__q::-webkit-details-marker {
  display: none;
}

/* стрелка-указатель раскрытия */
.accordion__q::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-25%);
  transition: transform .2s ease;
}

.accordion[open] .accordion__q::after {
  transform: rotate(-135deg) translateY(-25%);
}

.accordion__a {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ── CTA с формой ───────────────────────────────────────────── */

.cta {
  position: relative;
  padding-block: var(--section-pad-y);
  color: var(--on-dark);
  background:
    linear-gradient(90deg, #444 0%, rgba(68, 68, 68, .86) 45%, rgba(68, 68, 68, .55) 100%),
    url("../img/cta-bg.jpg") center right / cover no-repeat;
}

.cta .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 677px;
}

.cta__lead {
  font-size: 16px;
}

.cta__accent {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  min-height: 48px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--on-dark);
  background: none;
  border: 1px solid var(--line);
}

.field::placeholder {
  color: var(--line);
}

.cta__form .btn {
  min-height: 46px;
}

@media (min-width: 768px) {
  .faq .container,
  .cta .container {
    gap: 40px;
  }

  .accordion__q {
    font-size: 18px;
  }

  .accordion__a {
    font-size: 16px;
  }

  .cta__lead {
    font-size: 20px;
  }

  .cta__accent {
    font-size: 20px;
  }

  .cta__text {
    max-width: 560px;
  }
}

@media (min-width: 1280px) {
  .faq .container,
  .cta .container {
    gap: 64px;
  }

  .accordion__q {
    font-size: 20px;
  }

  .cta__lead {
    font-size: 22px;
  }

  .cta__form {
    flex-direction: row;
    gap: 24px;
  }

  .cta__form .field {
    flex: 1 1 auto;
  }

  .cta__form .btn {
    flex: none;
    width: 370px;
  }
}

/* ── Прогресс и регистрация ─────────────────────────────────── */

.progress {
  padding-block: var(--section-pad-y);
  background: var(--white);
}

.progress .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.progress__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.progress__intro {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-2);
}

.progress__total {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.progress__total b {
  font-size: 32px;
  letter-spacing: .02em;
  color: var(--brand);
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 20px;
  background: var(--brand);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.stat__value {
  font-size: 13px;
  font-weight: 600;
}

.stat__bar {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 32px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .55);
}

.stat__bar i {
  width: 100%;
  border-radius: 2px;
  background: var(--line);
}

.stat__name {
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.stat__state {
  font-size: 9px;
  color: var(--ink-2);
}

/* Галочка подключения помещения к общей оценке — добавлена к макету
   по решению Александра: в макете её нет, но без неё человек
   не может убрать из счёта помещение, которого у него нет. */
.stat__use {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.stat__use input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--ink-2);
  cursor: pointer;
}

/* На узком экране колонка всего ~39px — подпись наезжала на соседа.
   Оставляем один квадратик, смысл объясняет строка под плашкой. */
.stat__use span {
  display: none;
}

.stat.is-off .stat__value,
.stat.is-off .stat__bar,
.stat.is-off .stat__name,
.stat.is-off .stat__state {
  opacity: .5;
}

.progress__hint {
  max-width: 720px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-2);
}

.reg {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.reg__title {
  font-size: 16px;
  font-weight: 600;
}

.reg__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.reg__list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--brand);
}

.reg__fields,
.reg__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field--light {
  color: var(--ink);
  border-radius: 3px;
}

.field--light::placeholder {
  color: var(--ink-2);
}

.btn--ghost-dark {
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 3px;
}

.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

/* ── Карточки: планировки и работы соседей ──────────────────── */

.plans {
  padding-block: var(--section-pad-y);
  background: var(--brand);
}

.neighbours {
  padding-block: var(--section-pad-y);
  color: var(--on-dark);
  background: var(--ink-2);
}

.plans .container,
.neighbours .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title--left {
  text-align: left;
}

.neighbours .section-title {
  color: var(--on-dark);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(0, 0, 0, .08);
}

.card__title {
  font-size: 20px;
  font-weight: 700;
}

.card__title--sm {
  font-size: 15px;
  font-weight: 600;
}

.card__link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Счётчик ────────────────────────────────────────────────── */

.counter {
  padding-block: 16px;
  background: var(--brand);
}

.counter .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.counter__num {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--on-dark);
}

.counter__text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.btn--dark {
  color: var(--on-dark);
  background: var(--ink);
}

/* ── Подвал ─────────────────────────────────────────────────── */

.footer {
  padding-block: 12px 24px;
  color: var(--on-dark);
  background: var(--footer-bg);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer .logo__top {
  color: var(--brand);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  width: 100%;
}

.footer__nav-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--line-2);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 13px;
}

.footer__rights {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .progress .container {
    gap: 24px;
  }

  .progress__intro {
    font-size: 16px;
  }

  .progress__total {
    font-size: 20px;
  }

  .progress__total b {
    font-size: 48px;
  }

  .stat__value {
    font-size: 16px;
  }

  .stat__name {
    font-size: 12px;
  }

  .stat__state {
    font-size: 10px;
  }

  .stat__use {
    font-size: 10px;
  }

  .stat__use span {
    display: inline;
  }

  .progress__hint {
    font-size: 13px;
  }

  .reg {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }

  .reg__intro {
    flex: 0 0 260px;
  }

  .reg__fields {
    flex: 1 1 450px;
    max-width: 450px;
  }

  .reg__row {
    flex-direction: row;
  }

  .reg__row .field,
  .reg__row .btn {
    flex: 1 1 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .plans .container,
  .neighbours .container {
    gap: 40px;
  }

  .counter .container {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .footer__nav {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .footer__rights {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .progress .container {
    gap: 40px;
  }

  .progress__total b {
    font-size: 96px;
  }

  .stats {
    max-width: 880px;
  }

  .stat__bar {
    height: 48px;
  }

  .reg {
    max-width: 880px;
  }

  .plans .container,
  .neighbours .container {
    gap: 64px;
  }

  .card__title {
    font-size: 28px;
  }

  .card__title--sm {
    font-size: 20px;
  }

  .card__link {
    font-size: 16px;
  }

  .counter {
    padding-block: 40px;
  }

  .counter__num {
    font-size: 80px;
  }

  .footer {
    padding-block: 40px;
  }

  .footer .container {
    gap: 24px;
  }
}

/* Карточки на мобильном — лента с горизонтальной прокруткой (как Row в макете) */
@media (max-width: 767px) {
  .cards {
    display: flex;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .card {
    flex: 0 0 270px;
    scroll-snap-align: start;
  }

  .counter .container {
    gap: 4px;
  }

  .counter__num {
    font-size: 44px;
  }

  .counter__text {
    font-size: 13px;
  }
}

/* ── Плавающее меню помещений ───────────────────────────────── */

.dock {
  position: fixed;
  right: 12px;
  top: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
}

.dock__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px var(--shadow);
  transition: color .15s ease, background-color .15s ease;
}

.dock__toggle:hover {
  color: var(--on-dark);
  background: var(--brand);
  border-color: var(--brand);
}

.dock__icon svg {
  width: 22px;
  height: 22px;
}

/* Панель разделов. Раньше это был столбик безымянных кружков — человек угадывал
   иконку по картинке. Теперь строки с подписями, как в гиде экспресс-дизайна:
   сверху кабинет, ниже помещения, потом тема и прямой чат. */
.dock__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 232px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 50px var(--shadow);
  transition: opacity .18s ease, transform .18s ease;
}

.dock__row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.dock__row svg,
.dock__row img,
.dock__lamp {
  flex: none;
  width: 21px;
  height: 21px;
}

.dock__row svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock__lamp {
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.dock__row small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.dock__row:hover {
  background: rgba(255, 172, 48, .14);
}

/* Страница, на которой человек стоит, помечена — иначе в списке из восьми строк
   непонятно, где ты находишься. */
.dock__row[aria-current] {
  color: var(--brand);
  background: rgba(255, 172, 48, .16);
}

.dock__sep {
  height: 1px;
  margin: 7px 10px;
  background: var(--line);
}

.dock__chat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--brand);
  color: #211607;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.dock__chat svg {
  flex: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock__chat small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(33, 22, 7, .86);
}

.dock[data-open="false"] .dock__list {
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  position: absolute;
  bottom: 56px;
}

.dock__link img {
  width: 24px;
  height: 24px;
}

.dock__link:hover img {
  transform: scale(1.12);
}

@media (min-width: 1280px) {
  .dock {
    right: 24px;
  }

  .dock__toggle {
    width: 56px;
    height: 56px;
  }
}

@media print {
  .dock {
    display: none;
  }
}

/* Наведение на шаг: скобка подсвечивается фирменным цветом */
@media (hover: hover) and (min-width: 768px) {
  .step:hover .step__text::after {
    border-color: var(--brand);
  }

  .step:hover .step__bracket path {
    stroke: var(--brand);
  }

  .step .step__text::after {
    transition: border-color .15s ease;
  }

  .step .step__bracket path {
    transition: stroke .15s ease;
  }
}

/* ── Страница помещения ─────────────────────────────────────── */

.page-head {
  position: relative;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-head .site-header {
  color: var(--ink);
}

.page-head .header__link,
.page-head .nav__link,
.page-head .nav__title {
  color: inherit;
}

.page-head .nav {
  background: var(--white);
  box-shadow: 0 8px 24px var(--shadow);
}

.page-head .logo__top {
  color: var(--ink);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.crumbs b {
  font-weight: 700;
  color: var(--ink);
}

.room-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 24px 20px;
}

.room-head__title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.room-head__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.room-head__lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Фото помещения с карточкой типичных ошибок */
.room-hero {
  position: relative;
  margin-bottom: 32px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: url("../img/room-kitchen.jpg") center / cover no-repeat, var(--surface);
}

.room-hero__card {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: 168px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
  color: var(--on-dark);
  background: rgba(40, 37, 34, .55);
  backdrop-filter: blur(6px);
}

.room-hero__card-title {
  font-size: 13px;
  font-weight: 600;
}

.room-hero__errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.35;
}

.room-hero__errors li {
  display: flex;
  gap: 6px;
}

.room-hero__errors li::before {
  content: "✕";
  flex: none;
  color: var(--brand);
}

.room-hero__errors--good {
  margin-top: 14px;
}

.room-hero__errors--good li::before {
  content: "✓";
  color: inherit;
}

/* Вариант карточки без списка: у спальни на месте четырёх «типичных ошибок»
   один сплошной абзац (остальные пункты в макете скрыты). */
.room-hero__text {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.35;
}

.room-hero__check {
  margin-top: 14px;
  font-size: 11px;
}

.room-hero__value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

/* Группа вопросов */
.qgroup {
  display: flex;
  width: calc(100% - var(--gutter) * 2);
  max-width: 1360px;
  margin: 0 auto 16px;
  border: 1px solid #ece6e8;
  background: var(--white);
}

.qgroup__side {
  flex: none;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  background: var(--tint);
}

.qgroup__num {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.qgroup__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.qgroup__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
}

.qgroup__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.qgroup__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.qgroup__photo {
  height: 150px;
  border-radius: 6px;
  background: var(--surface) center / cover no-repeat;
}

.qgroup__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Пункт чек-листа */
.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.check input:checked + span {
  color: var(--ink-2);
}

.room-cta {
  padding-block: var(--section-pad-y);
  background: var(--surface);
}

.room-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.room-cta__text {
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .room-head {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    padding-block: 40px 28px;
  }

  .room-head__title {
    font-size: 40px;
  }

  .room-head__lead {
    max-width: 480px;
    font-size: 16px;
  }

  .room-hero {
    aspect-ratio: 21 / 9;
    margin-bottom: 48px;
  }

  .room-hero__card {
    right: 24px;
    top: 24px;
    bottom: 24px;
    width: 200px;
    padding: 20px 16px;
  }

  .room-hero__errors,
  .room-hero__text {
    font-size: 11px;
  }

  .qgroup {
    margin-bottom: 24px;
  }

  .qgroup + .qgroup {
    margin-top: 0;
  }

  .qgroup__side {
    width: 76px;
    padding-block: 24px;
  }

  .qgroup__num {
    font-size: 24px;
  }

  .qgroup__label {
    font-size: 18px;
  }

  .qgroup__body {
    padding: 28px 32px;
  }

  .qgroup__title {
    font-size: 22px;
  }

  .qgroup__content {
    flex-direction: row;
    gap: 32px;
    margin-top: 28px;
  }

  .qgroup__photo {
    flex: 1 1 50%;
    height: auto;
    min-height: 260px;
  }

  .qgroup__list {
    flex: 1 1 50%;
    justify-content: center;
  }
}

@media (min-width: 1280px) {
  .room-head__title {
    font-size: 56px;
  }

  .qgroup__side {
    width: 107px;
  }

  .qgroup__label {
    font-size: 28px;
  }

  .qgroup__num {
    font-size: 32px;
  }

  .qgroup__title {
    font-size: 32px;
  }

  .qgroup__body {
    padding: 40px 45px;
  }

  .check {
    font-size: 16px;
  }
}

/* ── «Осознание риска»: варианты работы ─────────────────────── */

.risk {
  padding-block: var(--section-pad-y);
  background: var(--surface);
}

.risk .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.risk__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.risk__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk__lead {
  font-size: 14px;
}

.risk__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk__photo {
  min-height: 220px;
  background: var(--line-2) center / cover no-repeat;
}

.risk__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.plan__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plan__num {
  font-size: 18px;
}

.plan__tag {
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 24px;
  background: var(--brand);
}

.plan__title {
  font-size: 22px;
  font-weight: 700;
}

.plan__hint {
  font-size: 14px;
  color: var(--ink-2);
}

.plan__price {
  padding-block: 12px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  border-block: 1px solid var(--line);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.plan__list li {
  display: flex;
  gap: 12px;
}

.plan__list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--brand);
  clip-path: polygon(14% 47%, 0 61%, 39% 100%, 100% 20%, 85% 8%, 38% 71%);
}

.plan__action {
  margin-top: auto;
  min-height: 46px;
}

.plan--accent {
  color: var(--ink);
  background: var(--brand);
  border-color: var(--brand);
}

.plan__note {
  font-size: 15px;
  text-align: center;
}

.plan__action--white {
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--brand);
}

.room-cta__title {
  font-size: 20px;
  font-weight: 700;
}

.room-cta__text p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .risk .container {
    gap: 40px;
  }

  .risk__title {
    font-size: 28px;
  }

  .risk__lead {
    font-size: 18px;
  }

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

  .risk__photo {
    min-height: 0;
  }

  .plan {
    padding: 32px;
  }

  .plan__title {
    font-size: 28px;
  }

  .plan__price {
    font-size: 32px;
  }

  .room-cta .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 32px;
  }

  .room-cta__title {
    font-size: 28px;
  }

  .room-cta .btn {
    flex: none;
    min-width: 323px;
  }
}

@media (min-width: 1280px) {
  .risk__title {
    font-size: 32px;
  }

  .risk .container {
    gap: 64px;
  }

  .plan__list {
    gap: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Личный кабинет · экран «Моя квартира» (LK01)
   Метрики сняты с рендеров макета 1600×982 и 410×560 попиксельно.
   ───────────────────────────────────────────────────────────── */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lk {
  padding-block: 1px 41px;
}

.lk__grid {
  position: relative;
  display: grid;
  gap: 14px;
}

/* Колонка контента должна уметь сжиматься уже своего содержимого: у элемента
   сетки min-width по умолчанию auto, и первая же широкая штука внутри (полоса
   этапов, длинное имя файла) распирает колонку, а с ней всю страницу вбок.
   Поймано 19.08 на полосе этапов: страница уезжала на 129 px. */
.lk__content {
  min-width: 0;
}

/* Кнопка-«ползунки»: на мобильном заменяет колонку меню кабинета */
/* В макете значок 20px, но на живом телефоне он теряется — увеличен до 30px.
   Розовая обводка мягко мерцает: меню просит, чтобы его открыли. */
.lk__menu-toggle {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  /* значок вырос на 10px — отрицательный отступ держит вертикаль ниже как в макете */
  margin-block: -5px;
  color: var(--ink);
}

.lk__menu-toggle svg {
  width: 100%;
  height: 100%;
}

/* Обводки не видно, пока account.js не позовёт: он вешает .is-calling
   и задаёт числом подходов --calls. Расписание — там же. */
.lk__menu-toggle::before {
  content: '';
  position: absolute;
  inset: -7px -11px;
  border: 2px solid #ff5fa8;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.lk__menu-toggle.is-calling::before {
  animation: menu-call 1.2s ease-in-out var(--calls, 1);
}

@keyframes menu-call {
  0%,
  100% {
    opacity: 0;
    box-shadow: 0 0 0 rgba(255, 95, 168, 0), inset 0 0 0 rgba(255, 95, 168, 0);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(255, 95, 168, .8), inset 0 0 10px rgba(255, 95, 168, .45);
  }
}

/* меню открыли — звать больше незачем */
.lk__menu-toggle[aria-expanded='true']::before {
  opacity: 0;
  animation: none;
}

/* кому мигание противопоказано — ровное тихое свечение вместо расписания */
@media (prefers-reduced-motion: reduce) {
  .lk__menu-toggle::before {
    opacity: .55;
  }

  .lk__menu-toggle.is-calling::before {
    animation: none;
  }
}

.lk-menu {
  position: absolute;
  top: 40px;
  left: var(--gutter);
  z-index: 5;
  display: none;
  width: 321px;
  max-width: 100%;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(12, 10, 9, .18);
}

.lk-menu[data-open='true'] {
  display: block;
}

.lk-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lk-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 0 4px;
  font-size: 16px;
  color: var(--ink);
}

/* разделитель между пунктами — 1px #CBD5E1 с отбивкой 16 сверху и снизу */
.lk-menu li:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 16px;
  background: var(--line);
}

.lk-menu__link.is-active {
  color: var(--brand);
}

.lk-menu__link.is-locked {
  color: #9ca3af;
  cursor: not-allowed;
}

.lk-menu__icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--ink-2);
}

.lk-menu li:first-child .lk-menu__icon {
  color: var(--ink);
}

.lk-menu__link.is-active,
.lk-menu__link.is-active .lk-menu__icon {
  color: var(--brand);
}

/* ── заголовок «Квартира проверена на N%» ─────────────────── */

.lk__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-block: 4px 19px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.lk__total {
  font-size: 17px;
  font-weight: 700;
}

/* Подпись под общим процентом: по скольким помещениям считали. */
.lk__used {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.lk-room.is-off {
  opacity: .5;
}

/* ── плашка помещений ─────────────────────────────────────── */

.lk-rooms {
  display: flex;
  gap: 4px;
  padding: 8px 8px 9px;
  background: var(--tint);
  border-radius: 8px;
}

.lk-room {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.lk-room__value {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lk-room.is-done .lk-room__value {
  color: var(--brand);
}

.lk-room__bar {
  display: block;
  height: 3px;
  margin-top: 4px;
  background: var(--line);
  border-radius: 999px;
}

.lk-room.is-progress .lk-room__bar {
  background: #ffe7c3;
}

.lk-room.is-done .lk-room__bar {
  background: var(--brand);
}

.lk-room__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 4px auto 0;
  color: var(--on-dark);
  background: var(--brand);
  border-radius: 50%;
}

.lk-room__icon svg {
  width: 60%;
  height: 60%;
}

.lk-room__name {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.lk-room__state {
  margin-top: 13px;
  font-size: 7px;
  line-height: 1;
  color: var(--ink-2);
}

/* ── ряд «Перейти к разделу» ──────────────────────────────── */

.lk-jump {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.lk-jump__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.lk-jump__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lk-jump__item {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink-2);
  border: 1px solid var(--ink-2);
  border-radius: 50%;
}

.lk-jump__item svg {
  width: 20px;
  height: 20px;
}

.lk-jump__sep {
  flex: none;
  width: 22px;
  height: 1px;
  background: #ffeacb;
}

@media (min-width: 768px) {
  .lk {
    padding-block: 40px 90px;
  }

  .lk__title {
    gap: 24px;
    margin-block: 28px 18px;
    font-size: 18px;
  }

  .lk__total {
    font-size: 24px;
  }

  .lk-rooms {
    gap: 6px;
    padding: 16px 16px 14px;
    border-radius: 12px;
  }

  .lk-room__value {
    font-size: 20px;
  }

  .lk-room__bar {
    height: 5px;
    margin-top: 8px;
  }

  .lk-room__icon {
    width: 44px;
    height: 44px;
    margin-top: 6px;
  }

  .lk-room__name {
    margin-top: 10px;
    font-size: 10px;
  }

  .lk-room__state {
    margin-top: 13px;
    font-size: 9px;
  }

  .lk-jump {
    margin-top: 36px;
  }

  .lk-jump__title {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .lk {
    padding-block: 54px 87px;
  }

  .lk__grid {
    grid-template-columns: 321px 1fr;
    gap: 80px;
  }

  .lk__menu-toggle {
    display: none;
  }

  .lk-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 24px 24px;
    box-shadow: none;
  }

  .lk__title {
    gap: 43px;
    /* меню кабинета начинается выше заголовка — отступ выравнивает их по макету */
    margin-block: 23px 31px;
    font-size: 22px;
  }

  .lk__total {
    font-size: 30px;
  }

  .lk-rooms {
    gap: 8px;
    padding: 24px 24px 20px;
    border-radius: 16px;
  }

  .lk-room__value {
    font-size: 28px;
  }

  .lk-room__bar {
    height: 8px;
    margin-top: 11px;
  }

  .lk-room__icon {
    width: 54px;
    height: 54px;
    margin-top: 8px;
  }

  .lk-room__name {
    margin-top: 12px;
    font-size: 12px;
  }

  .lk-room__state {
    margin-top: 16px;
    font-size: 12px;
  }

  .lk-jump {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 42px;
    margin-top: 49px;
  }

  .lk-jump__title {
    font-size: 22px;
  }

  .lk-jump__list {
    justify-content: flex-end;
    gap: 15px;
  }

  .lk-jump__item {
    width: 40px;
    height: 40px;
  }

  .lk-jump__item svg {
    width: 24px;
    height: 24px;
  }

  .lk-jump__sep {
    width: 29px;
  }
}

/* подпись под формой регистрации: результат обращения к сервису кабинета */
.reg__note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--on-dark);
  opacity: .85;
}

/* Шаги входа в кабинет: сверка номера, ожидание, пин-код. Порядок и вид
   повторяем за основным сайтом — кабинет у человека один на оба сайта,
   и вход в него не должен выглядеть двумя разными дверями. */
.reg__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg__step[hidden] {
  display: none;
}

.reg__step-title {
  margin: 0;
  font-size: 20px;
  color: var(--on-dark);
}

.reg__step-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark);
  opacity: .8;
}

.reg__num {
  margin: 0;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--on-dark);
}

/* Крутилка ожидания. При «уменьшить движение» не убираем совсем — иначе экран
   выглядит зависшим, — а замедляем до спокойного оборота. */
.reg__ring {
  width: 34px;
  height: 34px;
  margin: 4px auto 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: var(--white);
  animation: reg-spin 1s linear infinite;
}

@keyframes reg-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .reg__ring { animation-duration: 3s; }
}

/* Напоминание в кабинете: почта не подтверждена, прогресс держится на одном
   устройстве. Висит, пока человек не подтвердит, — это его страховка, не реклама. */
.lk-remind {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.lk-remind__text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.lk-remind__field {
  flex: 1 1 220px;
  min-width: 0;
}

.lk-remind__done {
  border-color: rgba(120, 170, 120, .6);
}

/* Ссылка в переписку выглядит той же полосой, но ведёт наружу кабинета. */
.lk-mine {
  margin: 24px 0 0;
  text-decoration: none;
  color: inherit;
}

.lk-mine:hover {
  border-color: var(--brand);
}

/* ─────────────────────────────────────────────────────────────
   Личный кабинет · экран «Незакрытые риски» (LK02)
   Метрики из CSS-дампа макета: Column padding 32, List gap 16,
   строка — иконка 24 и текст 16/14/13px по брейкпоинтам.
   ───────────────────────────────────────────────────────────── */

.crumbs__icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink-2);
}

/* Полоса этапов: пройденное приглушено, текущее выделено. Горизонтальная
   прокрутка внутри самой полосы — восемь этапов в узкий экран не влезают,
   а ломать их в столбик значит терять ощущение пути. */
.lk-stage {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 0 6px;
  overflow-x: auto;
  list-style: none;
}

.lk-stage__step {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line, rgba(0, 0, 0, .12));
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.lk-stage__step--done {
  border-color: transparent;
  background: rgba(0, 0, 0, .05);
}

.lk-stage__step--now {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-dark);
}

/* Разговор. Свои реплики прижаты вправо, ответы фабрики — влево: так лента
   читается с одного взгляда, без подписей «кто». */
.lk-proj__talk {
  margin-top: 40px;
}

.lk-talk {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.lk-talk__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .04);
}

.lk-talk__row--me {
  align-self: flex-end;
  background: rgba(255, 172, 48, .12);
}

.lk-talk__who {
  font-size: 12px;
  color: var(--ink-2);
}

.lk-talk__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.lk-talk__file {
  display: block;
  max-width: 260px;
  color: var(--brand);
  font-size: 13px;
}

.lk-talk__file img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lk-talk__when {
  font-size: 11px;
  color: var(--ink-2);
}

.lk-talk__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.lk-talk__area {
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.lk-talk__form .lk-proj__note {
  flex: 1 1 100%;
  margin: 0;
}

@media (max-width: 767px) {
  .lk-talk__row {
    max-width: 92%;
  }
}

/* Лампа темы в хлебных крошках кабинета. */
.lk-lamp {
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.lk-lamp:hover {
  border-color: var(--brand);
}

/* Разделы «Мой проект» и «Уведомления». */

.lk-proj {
  padding: 32px;
}

.lk-proj__title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}

.lk-proj__reqs {
  margin-top: 40px;
}

.lk-proj__note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Кнопка выбора файла: настоящий input прячем, ярлык работает за него. */
.lk-proj__pick {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--brand);
  border-radius: 3px;
  color: var(--brand);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.lk-proj__pick:hover {
  background: var(--brand);
  color: var(--on-dark);
}

.lk-proj__pick input {
  display: none;
}

.lk-plans,
.lk-reqs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.lk-plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line, rgba(0, 0, 0, .12));
  border-radius: 8px;
}

.lk-plan__open {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.lk-plan__thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(0, 0, 0, .05);
}

.lk-plan__thumb--doc {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-2);
}

.lk-plan__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk-plan__meta {
  flex: none;
  font-size: 12px;
  color: var(--ink-2);
}

.lk-plan__kill {
  flex: none;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}

.lk-plan__kill:hover {
  color: var(--brand);
}

.lk-req {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.lk-req__kind {
  flex: 1;
  min-width: 0;
}

.lk-req__when {
  flex: none;
  font-size: 12px;
  color: var(--ink-2);
}

.lk-req__state {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  font-size: 12px;
  color: var(--ink-2);
}

.lk-alerts {
  padding: 32px;
}

.lk-alerts__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding-left: 14px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.45;
}

/* Непрочитанное отмечаем полосой слева, а не цветным фоном: полоса читается
   и в списке из двадцати строк, фон превращает экран в светофор. */
.lk-alert--new {
  border-left-color: var(--brand);
}

.lk-alert--empty {
  padding-left: 0;
  border-left: 0;
  color: var(--ink-2);
}

.lk-alert__kind {
  flex: none;
  width: 110px;
  font-size: 12px;
  color: var(--ink-2);
}

.lk-alert__text {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

a.lk-alert__text:hover {
  color: var(--brand);
}

.lk-alert__when {
  flex: none;
  font-size: 12px;
  color: var(--ink-2);
}

/* Счётчик непрочитанного в меню. */
.lk-menu__dot {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-dark);
  font-size: 11px;
  line-height: 1;
}

.lk-menu__dot[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .lk-proj,
  .lk-alerts {
    padding: 24px 16px;
  }

  .lk-plan {
    flex-wrap: wrap;
  }

  .lk-plan__meta {
    width: 100%;
  }

  .lk-req {
    flex-wrap: wrap;
  }

  .lk-alert__kind {
    width: auto;
  }
}

/* Раздел «Следующий шаг»: один шаг крупно, остальные — очередью ниже.
   Крупный блок держим отдельной карточкой, чтобы глазу было куда сесть. */
.lk-next {
  padding: 32px;
}

.lk-next__now {
  padding: 24px;
  border: 1px solid var(--brand);
  border-radius: 8px;
}

.lk-next__where {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.lk-next__what {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.lk-next__go {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 3px;
  background: var(--brand);
  color: var(--on-dark);
  font-size: 14px;
  text-decoration: none;
}

.lk-next__go:hover {
  opacity: .9;
}

.lk-next__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.lk-next__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
}

.lk-next__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.lk-next__item a {
  color: var(--ink);
  text-decoration: none;
}

.lk-next__item a:hover {
  color: var(--brand);
}

/* Ярлык помещения одной ширины у всех строк — иначе тексты пляшут по левому краю. */
.lk-next__room {
  flex: none;
  width: 88px;
  color: var(--ink-2);
}

@media (max-width: 767px) {
  .lk-next {
    padding: 24px 16px;
  }

  .lk-next__now {
    padding: 20px 16px;
  }

  .lk-next__what {
    font-size: 16px;
  }

  .lk-next__item {
    flex-direction: column;
    gap: 4px;
  }

  .lk-next__room {
    width: auto;
  }
}

.lk-risks {
  padding: 32px;
}

.lk-risks__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 8px;
}

.lk-risk {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lk-risk__icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--ink-2);
}

.lk-risk__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.lk-risk__text:hover {
  color: var(--brand);
}

.lk-risks__empty {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .lk-risk__text,
  .lk-risks__empty {
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .lk-risk__text,
  .lk-risks__empty {
    font-size: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Личный кабинет · экран «Рекомендации» (LK03)
   Отличие от «Рисков»: колонка без боковых полей (в дампе
   padding 32px 0), значок строки — галочка вместо крестика.
   ───────────────────────────────────────────────────────────── */

.lk-tips {
  padding-block: 32px;
}

.lk-tips__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 8px;
}

.lk-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lk-tip__icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--ink-2);
}

.lk-tip__text,
.lk-tips__empty {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.lk-tips__empty {
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .lk-tip__text,
  .lk-tips__empty {
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .lk-tip__text,
  .lk-tips__empty {
    font-size: 16px;
  }
}

/* согласия на рассылку и кнопки входа через сервисы */
.reg__offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.reg__oauth {
  margin-top: 18px;
}

.reg__oauth-title {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--on-dark);
  opacity: .85;
}

.reg__oauth-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
