/* Общие стили публичного сайта. Страница — в пакете ниши (docs/niches/<код>/site/index.html).
   Шрифт Golos Text (OFL, лежит рядом), внешних запросов нет. */
@font-face {
  font-family: "Golos Text";
  src: url("/site/golos.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --concrete: #e9edf0;   /* фон: светлый бетон */
  --paper: #ffffff;      /* бланк акта */
  --ink: #14213a;        /* текст */
  --muted: #4f5d70;
  --line: #cfd7de;
  --brand: #1f4e79;      /* синий из логотипа */
  --brand-ink: #ffffff;
  --ok: #1f6f50;         /* «норма» — как в кабинете */
  --bad: #b8402b;
  --wip: #a86a12;
  --focus: #e0a526;
  --band: #f6f8f9;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --concrete: #11171d;
    --paper: #1a222b;
    --ink: #e7edf2;
    --muted: #a3b1bf;
    --line: #2c3742;
    --brand: #4f8fc9;
    --brand-ink: #0b1622;
    --ok: #5cc095;
    --bad: #f08b77;
    --wip: #e6b25a;
    --band: #161d24;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 17px/1.6 "Golos Text", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 54px); max-width: 13em; text-wrap: balance; }
h2 { font-size: clamp(27px, 3.4vw, 38px); max-width: 22ch; margin-bottom: 28px; }
h3 { font-size: 21px; margin: 0 0 14px; }
p { margin: 0 0 14px; }

/* Шапка */
.top { padding: 20px 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand__eye { width: 34px; height: 22px; color: var(--brand); }
.top__nav { display: flex; gap: 24px; font-size: 15px; }
.top__nav a { color: var(--muted); text-decoration: none; }
.top__nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top__nav { display: none; } }

/* Первый экран */
.hero { padding: 36px 0 88px; overflow-x: clip; }
.hero__in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__kicker { color: var(--ok); font-weight: 600; font-size: 16px; margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.hero__dates { font-size: 15px; color: var(--muted); margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta__note { margin: 0; font-size: 15px; color: var(--muted); max-width: 20em; }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 64px; }
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 8px;
  transition: background .15s;
}
.btn:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.btn--light { background: var(--paper); color: var(--brand); }
.btn--light:hover { background: color-mix(in srgb, var(--paper) 90%, var(--brand)); }

/* Акт — главный образ страницы */
.act {
  position: relative;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px 26px 18px;
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(20, 33, 58, .45);
  max-width: 470px;
  justify-self: end;
  font-size: 15px;
}
@media (max-width: 900px) { .act { justify-self: start; transform: rotate(-0.8deg); } }
.act__head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.act__title { font-weight: 700; font-size: 19px; margin: 0 0 2px; }
.act__meta, .act__date { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.act__date { text-align: right; }
.act__score { margin: 14px 0 6px; font-size: 15px; }
.act__score b { font-size: 26px; color: var(--ok); margin-right: 4px; }
.act__rows { width: 100%; border-collapse: collapse; }
.act__rows td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
.act__rows td + td { text-align: right; padding-left: 12px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.ok { color: var(--ok); }
.wip { color: var(--wip); }
.act__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18) 55% 57%, transparent 57%),
    linear-gradient(115deg, #8d9aa6 0 30%, #b9c3cb 30% 62%, #d8dee3 62%);
}
.ph--b { background: linear-gradient(90deg, #c7ced4 0 18%, #6f7d89 18% 22%, #c7ced4 22% 60%, #e8d9a8 60% 64%, #c7ced4 64%); }
.ph--c { background: radial-gradient(circle at 70% 30%, #fff6c9 0 9%, transparent 10%), linear-gradient(160deg, #9aa7b2, #cfd6dc); }
.ph i { position: absolute; left: 4px; bottom: 3px; font-style: normal; font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.act__foot { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.stamp {
  position: absolute;
  right: 14px;
  bottom: 58px;
  border: 3px solid var(--ok);
  color: var(--ok);
  border-radius: 10px;
  padding: 6px 12px 5px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-9deg);
  opacity: .9;
  mix-blend-mode: multiply;
  animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) .7s both;
}
.stamp small { display: block; font-size: 11px; letter-spacing: .02em; font-weight: 700; }
@media (prefers-color-scheme: dark) { .stamp { mix-blend-mode: normal; } }
@media (max-width: 600px) { .stamp { font-size: 17px; right: 10px; } }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  to { opacity: .9; transform: rotate(-9deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }

/* Разделы */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section-lead { color: var(--muted); max-width: 40em; margin-top: -12px; margin-bottom: 28px; }

.pain { background: var(--paper); }
.pain__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.pain__list li { padding: 18px 0 18px 28px; border-top: 1px solid var(--line); position: relative; font-size: 18px; }
.pain__list li::before { content: ""; position: absolute; left: 0; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); }
@media (max-width: 760px) { .pain__list { grid-template-columns: 1fr; } }

.how__in { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
@media (max-width: 900px) { .how__in { grid-template-columns: 1fr; gap: 40px; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 64px; max-width: 36em; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--brand); color: var(--brand);
  display: grid; place-items: center;
  font-weight: 700; font-size: 20px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps b { display: block; margin-bottom: 2px; }
.video { margin: 0; }
.video video { width: 100%; max-width: 340px; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 8px solid var(--ink); background: var(--ink); display: block; }
.video figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.lists { background: var(--band); }
.registry { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.registry th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 500; padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.registry td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.registry td:first-child { font-weight: 600; }
.registry td:last-child { white-space: nowrap; color: var(--muted); }
@media (max-width: 600px) {
  .registry thead { display: none; }
  .registry tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .registry td { border: 0; padding: 0; }
  .registry td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 15px; }
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facts b { display: block; margin-bottom: 4px; }
.facts li { color: var(--muted); }
.facts li b { color: var(--ink); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 18px; } }

.pilot { background: var(--paper); }
.pilot__in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
@media (max-width: 900px) { .pilot__in { grid-template-columns: 1fr; gap: 48px; } }
.terms { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; }
.terms dt, .terms dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.terms dt { color: var(--muted); }
.terms dd { font-weight: 500; }
.terms__note { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 34em; }
@media (max-width: 600px) {
  .terms { grid-template-columns: 1fr; }
  .terms dd { border-top: 0; padding-top: 0; }
}
.timeline { list-style: none; margin: 0 0 40px; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
.timeline li:nth-child(2)::before { background: var(--brand); }
.timeline time { display: block; font-weight: 600; }
.who { margin: 0; padding-left: 20px; }
.who li { margin-bottom: 6px; }

.faq details { border-top: 1px solid var(--line); max-width: 46em; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

.final { background: var(--brand); color: var(--brand-ink); }
.final h2 { max-width: 24ch; }
.final p { max-width: 34em; opacity: .9; }
.final a:not(.btn) { color: inherit; }
.final .btn { margin-top: 10px; }
.final__soon { margin-top: 18px; font-size: 15px; }

.foot { padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot__in { display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot p { margin: 0; }
.foot__ver { font-size: 13px; }
[hidden] { display: none !important; }
