/* ЖК «Береговой» (вымышленный): тёплый песочный, глубокий сине-зелёный, медь. */
:root {
  --sand: #efe6d8;
  --sand-2: #e3d6c0;
  --paper: #fbf7f0;
  --ink: #12403f;
  --ink-2: #2d5d5b;
  --copper: #b8743c;
  --copper-2: #9a5d2c;
  --free: #3f8f6e;
  --free-bg: #dcefe5;
  --reserved: #b8743c;
  --reserved-bg: #f6e2cc;
  --sold: #8a8f93;
  --sold-bg: #e6e4e1;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --color-bg: var(--sand);
  --color-text: var(--ink);
  --color-muted: #5f6f6c;
  --color-accent: var(--ink);
  --color-border: #d3c4ab;
  --cell: 66px;
  --floor-col: 44px;
}

body { background: var(--sand); }
.serif, h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
html.has-card { overflow: hidden; }
section[id] { scroll-margin-top: 72px; }
/* Атрибут hidden сильнее display у блоков (.catalog__empty — flex и др.). */
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--sand-2); }
.btn[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* Шапка */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
}
.top__logo { font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.top__demo { font-size: 13px; color: var(--copper-2); }

/* Каталог */
.catalog { max-width: 1240px; margin: 0 auto; padding: 32px 16px 48px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.catalog__head h2 { font-size: clamp(30px, 6vw, 48px); }
.catalog__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--color-muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot--free { background: var(--free); }
.dot--reserved { background: var(--reserved); }
.dot--sold { background: var(--sold); }

.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  padding: 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--color-border);
}
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filters legend, .filters__select { font-size: 13px; color: var(--color-muted); padding: 0; margin-bottom: 4px; }
.filters__range input { width: 76px; }
.filters input:not([type=checkbox]), .filters select {
  min-height: var(--tap); padding: 0 10px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff;
}
.filters__select { display: flex; flex-direction: column; gap: 4px; }
.filters__reset { margin-left: auto; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px;
  border: 1px solid var(--color-border); border-radius: 999px; background: #fff; font-size: 15px;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.chip--free span { border-color: var(--free); }

.catalog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.catalog__found { font-family: var(--serif); font-size: 22px; }
.views { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sand-2); }
.views button {
  min-height: var(--tap); padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink);
}
.views button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.catalog__empty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px; margin-bottom: 12px;
  border: 1px dashed var(--copper); border-radius: var(--radius); background: var(--paper);
}

/* Шахматка: внутри блока прокрутка вбок, номера этажей закреплены слева. */
.chess { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.chess__title { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.chess__scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--color-border); }
.chess__grid { display: grid; gap: 4px; padding: 8px 8px 8px 0; min-width: calc(var(--floor-col) + 6 * var(--cell) + 6 * 4px + 8px); }
.chess__row { display: grid; grid-template-columns: var(--floor-col) repeat(var(--n, 6), minmax(var(--cell), 1fr)); gap: 4px; }
.chess__floor {
  position: sticky; left: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: var(--paper); font-size: 13px; color: var(--color-muted); box-shadow: 4px 0 4px -2px rgba(18, 64, 63, 0.12);
}
.cell {
  min-height: 44px; min-width: 44px; padding: 2px 4px; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.cell--free { background: var(--free-bg); color: #1d5a41; box-shadow: inset 0 0 0 1px var(--free); }
.cell--reserved { background: var(--reserved-bg); color: #7a4a20; box-shadow: inset 0 0 0 1px var(--reserved); }
.cell--sold { background: var(--sold-bg); color: #5b5f62; }
.cell:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--ink); }
.cell.is-dim { opacity: 0.22; }

/* Список */
.list__scroll { overflow-x: auto; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--color-border); }
.list__table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.list__table th { text-align: left; padding: 0; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.list__table th button {
  min-height: var(--tap); width: 100%; padding: 0 10px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 600; color: var(--ink);
}
.list__table th[aria-sort="ascending"] button::after { content: ' ↑'; color: var(--copper); }
.list__table th[aria-sort="descending"] button::after { content: ' ↓'; color: var(--copper); }
.list__table td { padding: 0 10px; border-bottom: 1px solid #eee3d2; white-space: nowrap; }
.list__open { min-height: var(--tap); min-width: var(--tap); padding: 0 8px; border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; }
.row--sold td { color: var(--sold); }
.status--free { color: var(--free); }
.status--reserved { color: var(--copper-2); }
.status--sold { color: var(--sold); }

/* Фасад и поэтажный план */
.facade__tabs { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.facade__tabs button { min-height: var(--tap); padding: 0 16px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); }
.facade__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.facade__hint { font-size: 14px; color: var(--color-muted); margin-bottom: 12px; }
.facade__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 900px) { .facade__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.facade__svg svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.floor-plan__svg svg { width: 100%; height: auto; max-height: 80vh; }
.facade__svg { background: var(--paper); border-radius: var(--radius); padding: 8px; border: 1px solid var(--color-border); }
.facade__svg .floor.is-dim { opacity: 0.35; }
.floor-plan { background: var(--paper); border-radius: var(--radius); padding: 12px; border: 1px solid var(--color-border); }
.floor-plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.floor-plan__back { min-height: var(--tap); padding: 0 12px; border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; }
.floor-plan__title { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.unit--free .u { fill: var(--free-bg); }
.unit--reserved .u { fill: var(--reserved-bg); }
.unit--sold .u { fill: var(--sold-bg); }
.unit.is-dim { opacity: 0.3; }
.unit.is-none { opacity: 0.25; pointer-events: none; }

/* Карточка: справа на широком экране, на весь экран снизу — на телефоне. */
.card {
  width: min(960px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(18, 64, 63, 0.35); overflow: hidden;
}
.card::backdrop { background: rgba(18, 64, 63, 0.45); }
.card__sheet { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); transition: transform .2s; }
.card__grip { display: none; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 20px; }
.card__title { font-size: clamp(22px, 4vw, 30px); }
.card__close { flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: var(--sand-2); color: var(--ink); font-size: 18px; cursor: pointer; }
.card__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 24px; display: grid; gap: 20px; }
@media (min-width: 800px) { .card__body { grid-template-columns: 1.1fr 1fr; } }
.card__plan { margin: 0; }
.card__plan-svg { min-height: 200px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card__plan-svg svg { width: 100%; height: auto; }
.card__plan figcaption { font-size: 13px; color: var(--color-muted); margin-top: 6px; }
.card__status { font-weight: 600; }
.card__price { font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.card__ppm { color: var(--color-muted); font-size: 14px; }
.card__loan { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: 14px; }
.card__loan:empty { display: none; }
.card__params { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 16px 0; font-size: 15px; }
.card__params dt { color: var(--color-muted); }
.card__params dd { margin: 0; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card__actions [hidden] { display: none; }
.card__note { min-height: 1.5em; font-size: 14px; color: var(--copper-2); margin-top: 6px; }
.card__sub { font-size: 15px; margin: 12px 0 8px; }
.card__neighbours { display: flex; flex-wrap: wrap; gap: 6px; }
.card__neighbours .cell { min-width: 72px; }

@media (max-width: 640px) {
  .card {
    width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; inset: 0;
    border-radius: 0;
  }
  .card__sheet { max-height: 100dvh; height: 100%; }
  .card__grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--color-border); margin: 8px auto 0; }
  .card__head { padding: 8px 12px 8px 16px; touch-action: none; }
  .card__body { padding: 0 16px 24px; }
  .filters { padding: 12px; }
  .filters__reset { margin-left: 0; }
  .views { width: 100%; }
  .views button { flex: 1; padding: 0 8px; }
}

/* Шапка поверх первого экрана */
.top { position: sticky; top: 0; z-index: 10; background: rgba(239, 230, 216, 0.92); backdrop-filter: blur(8px); }
.top__nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.top__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.top__nav a:hover { color: var(--copper-2); }
@media (max-width: 640px) { .top__nav { display: none; } .top__demo { font-size: 12px; } }

.btn--copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn--copper:hover { background: var(--copper-2); border-color: var(--copper-2); }
.btn--light { background: rgba(251, 247, 240, 0.12); border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: rgba(251, 247, 240, 0.25); }
.btn--wide { width: 100%; }

/* Первый экран: рассвет над рекой — SVG-слои, параллакс в motion.mjs. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px); display: flex; align-items: flex-start;
  background: #0f3b3b; color: var(--paper);
}
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__layer {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 84% 100%; will-change: transform;
}
.hero::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 70%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 46, 46, 0.78), rgba(11, 46, 46, 0.35) 60%, transparent);
}
@media (min-width: 900px) { .hero::after { inset: 0 auto 0 0; width: 62%; height: auto; background: linear-gradient(90deg, rgba(11, 46, 46, 0.72), rgba(11, 46, 46, 0.3) 70%, transparent); } }
.hero__text { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(32px, 7vh, 88px) 16px 48px; text-shadow: 0 1px 12px rgba(11, 46, 46, 0.45); }
.hero__kicker { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #f1c79a; margin-bottom: 16px; }
.hero__title { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; max-width: 12ch; }
@media (min-width: 900px) { .hero__text > * { max-width: 600px; } .hero__title { max-width: 600px; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; animation: line-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.14s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.28s; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { max-width: 34em; margin-top: 20px; font-size: clamp(16px, 2vw, 19px); color: #f3e8d8; animation: fade-in 1s 0.5s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; animation: fade-in 1s 0.65s both; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: #f3e8d8; animation: fade-in 1s 0.8s both; }
.hero__facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--paper); }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Разделы */
.block { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 9vw, 112px) 16px; }
.block--dark { max-width: none; background: var(--ink); color: var(--paper); }
.block--dark > * { max-width: 1208px; margin-left: auto; margin-right: auto; }
.block__head { display: grid; gap: 10px; max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); }
.block--dark .block__head { margin-left: auto; margin-right: auto; max-width: 1208px; }
.block__head h2 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; }
.block__head p:not(.block__num) { font-size: 18px; color: var(--color-muted); max-width: 40em; }
.block--dark .block__head p:not(.block__num) { color: #c9d8d3; }
.block__num { font-size: 14px; letter-spacing: 0.12em; color: var(--copper); }

/* Появление: только когда motion.mjs запустился (html.motion); без JS всё видно сразу. */
html.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion .rv.in { opacity: 1; transform: none; }

.location__map { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .location__map { grid-template-columns: 1.3fr 1fr; } }
.location__scheme { width: 100%; height: auto; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--color-border); }
.location__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.location__list li { display: flex; align-items: center; gap: 14px; }
.location__list img { flex: none; width: 40px; height: 40px; }
.location__list b { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-right: 4px; }

.cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards li { padding: 24px; border-radius: var(--radius); background: rgba(251, 247, 240, 0.06); border: 1px solid rgba(251, 247, 240, 0.18); }
.cards h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 10px; color: #f1c79a; }
.block--dark .cards { margin-left: auto; margin-right: auto; }
.cards--light li { background: var(--paper); border-color: var(--color-border); }
.cards--light h3 { color: var(--ink); }

.yard__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.yard__list li { padding: 20px; border-top: 2px solid var(--copper); }
.yard__list b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1; color: var(--ink); margin-bottom: 8px; }

.progress__track {
  display: flex; gap: 12px; margin: 0; padding: 4px 4px 16px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
}
.progress__track li {
  flex: 0 0 200px; scroll-snap-align: start; display: grid; gap: 6px; padding: 18px 16px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--color-border); position: relative;
}
.progress__track li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-border); background: var(--paper); }
.progress__track .is-done::before { background: var(--free); border-color: var(--free); }
.progress__track .is-now { border-color: var(--copper); box-shadow: 0 0 0 2px var(--copper); }
.progress__track .is-now::before { background: var(--copper); border-color: var(--copper); }
.progress__track b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.progress__track span { font-size: 15px; color: var(--color-muted); }

/* Избранное и сравнение */
.saved__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 960px) { .saved__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.saved__grid h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.saved__empty { color: var(--color-muted); }
.saved__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.saved__item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--color-border); }
.saved__item.is-sold .saved__name { color: var(--sold); text-decoration: line-through; }
.saved__name { flex: 1 1 100%; }
.saved__status { flex: 1 1 100%; font-size: 14px; }
.saved__btn { min-height: var(--tap); min-width: var(--tap); padding: 0 10px; border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; }
.saved__remove { color: var(--copper-2); }
.saved__sold { color: var(--sold); font-weight: 600; }
.compare__scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--color-border); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eee3d2; white-space: nowrap; }
.compare thead th { vertical-align: top; font-weight: 600; }
.compare thead th .saved__btn { display: block; padding: 0; }
.compare tbody th { color: var(--color-muted); font-weight: 400; }
.compare .is-differ td { background: var(--reserved-bg); font-weight: 600; }
.compare__hint { font-size: 13px; color: var(--color-muted); margin-top: 6px; }

/* Ипотека */
.mortgage__form { display: grid; gap: 18px; padding: clamp(16px, 3vw, 32px); border-radius: 18px; background: var(--paper); border: 1px solid var(--color-border); }
@media (min-width: 900px) { .mortgage__form { grid-template-columns: 1fr 1fr; column-gap: 40px; } .mortgage__programs, .mortgage__note { grid-column: 1 / -1; } .mortgage__result { grid-column: 2; grid-row: 2 / span 3; align-self: center; } }
.mortgage__programs { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.mortgage__programs legend { font-size: 13px; color: var(--color-muted); margin-bottom: 4px; padding: 0; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--color-muted); }
.field output { color: var(--ink); font-weight: 600; }
.field input:not([type=range]):not([type=checkbox]), .field select {
  min-height: var(--tap); padding: 0 12px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; width: 100%;
}
.field input[type=range] { width: 100%; min-height: var(--tap); accent-color: var(--copper); }
.mortgage__flat { font-size: 13px; color: var(--copper-2); }
.mortgage__result { padding: 20px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.mortgage__pay { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.mortgage__details { margin-top: 8px; font-size: 14px; color: #c9d8d3; }
.mortgage__note { font-size: 13px; color: var(--color-muted); }

/* Запись на просмотр */
.lead { display: grid; gap: 16px; max-width: 560px; padding: clamp(16px, 3vw, 32px); border-radius: 18px; background: var(--paper); border: 1px solid var(--color-border); }
.lead__flat { padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: 15px; }
.lead__clear { min-height: var(--tap); padding: 0 6px; border: 0; background: none; color: var(--copper-2); text-decoration: underline; cursor: pointer; }
.lead__error { min-height: 1em; font-size: 13px; color: #a23a1d; }
.lead__error:empty { display: none; }
.consent { display: grid; gap: 4px; }
.consent__label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.consent__label input { flex: none; width: 24px; height: 24px; margin: 10px; accent-color: var(--ink); }
.consent__label span { padding-top: 6px; line-height: 1.4; }
/* Ссылка в тексте согласия — тоже цель нажатия ≥ 44 px. */
.consent a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead__status:empty { display: none; }
.lead__status--ok { color: var(--free); font-weight: 600; }
.lead__status--error { color: #a23a1d; }
.lead__note { font-size: 13px; color: var(--copper-2); }

/* Вид менеджера */
.manager { margin-bottom: 32px; border-radius: 18px; background: var(--paper); border: 2px dashed var(--copper); }
.manager__steps { display: grid; gap: 6px; margin: 0 0 20px; padding-left: 1.4em; }
.manager__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.manager__upload { position: relative; overflow: hidden; }
.manager__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.manager__upload:focus-within { outline: 3px solid var(--copper); outline-offset: 2px; }
.manager__report { margin-top: 16px; }
.manager__report ul { margin: 8px 0 0; padding-left: 1.2em; max-height: 280px; overflow-y: auto; font-size: 14px; }
.manager__summary { font-weight: 600; }
.manager__note { margin-top: 16px; font-size: 14px; color: var(--copper-2); }

/* Подвал */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 40px max(16px, calc((100% - 1208px) / 2)); background: var(--ink); color: #c9d8d3;
}
.site-foot__logo { font-size: 28px; color: var(--paper); }
.site-foot__manager { color: var(--paper); border-color: var(--paper); }
.site-foot__manager:hover { background: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .cell, .card__sheet { transition: none; }
  .hero__title .line > span, .hero__lead, .hero__cta, .hero__facts { animation: none; }
  html.motion .rv { opacity: 1; transform: none; transition: none; }
}
