/* Гусарские гоблины. Цвета — с формы гусара: доломан (красный), шнуры (золото), белые рейтузы; зелёный — только победа.
   Шрифты: Unbounded — заголовки и счёт, Onest — текст. */

@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("fonts/Unbounded-Medium.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/Unbounded-Bold.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-display: swap; src: url("fonts/Unbounded-Black.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/Onest-Regular.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("fonts/Onest-Medium.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("fonts/Onest-Bold.woff2") format("woff2"); }

:root {
  --red: #8f1d24;
  --red-deep: #5f1218;
  --red-ink: #8f1d24;
  --gold: #d6a738;
  --gold-text: #f0c85a;  /* золото текстом на красном: светлее, чтобы не уходило в коричневый */
  --gold-soft: #f6e7bf;
  --gold-ink: #7d5a10;
  --green: #3f7f2a;
  --ink: #23191b;
  --ink-2: #6a5c5e;
  --paper: #ffffff;
  --mist: #f7f3f2;
  --line: #e9e0de;
  --on-red: #ffffff;
  --on-red-2: #f0d6d8;
  --f-head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --text: 720px;
  --gutter: 16px;
  --r: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red-ink: #f08e94;
    --gold-ink: #e6bf5f;
    --gold-soft: #3a2e14;
    --ink: #f4ecea;
    --ink-2: #bcaeab;
    --paper: #191113;
    --mist: #221719;
    --line: #3a2a2d;
    color-scheme: dark;
  }
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-body);
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--text) + 2 * var(--gutter)); }

/* ---------- кнопки и ссылки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: var(--r);
  font: 700 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: #2a1a05; }
.btn--gold:hover { background: #e4b746; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--line { border-color: currentColor; background: transparent; color: inherit; }
.btn--line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--wide { width: 100%; }
.link { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; }

/* ---------- шапка ---------- */

.top { background: var(--red); color: var(--on-red); border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; align-items: center; gap: 8px 16px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-text); }
.brand span { font: 700 .78rem/1.1 var(--f-head); letter-spacing: .01em; }
.brand img { width: 44px; height: 44px; }
.top__cta { grid-area: cta; min-height: 40px; padding: 0 14px; font-size: .88rem; }
.nav { grid-area: nav; display: flex; gap: 22px; }
.nav a { color: var(--on-red); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
@media (min-width: 820px) {
  .top__in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; padding: 12px var(--gutter); }
  .nav { justify-content: flex-end; gap: 28px; margin-right: 12px; }
}

/* ---------- главная: первый экран ---------- */

.hero { background: var(--red); color: var(--on-red); overflow: hidden; }
/* на телефоне эмблема стоит рядом с названием (на ней то же название — второй раз крупно не нужно) */
.hero__in {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 36px;
  display: grid; grid-template-columns: 108px 1fr; column-gap: 14px; align-items: center;
}
.hero__text { display: contents; }
.hero__emblem { grid-row: 1; width: 108px; margin-left: -6px; filter: drop-shadow(0 8px 18px rgba(40, 0, 6, .35)); }
.hero__title { grid-column: 2; grid-row: 1; color: var(--gold-text); font-size: clamp(1.5rem, 7.4vw, 3.2rem); line-height: 1.04; margin: 0; }
.hero__lead, .hero__actions, .hero__sub, .braids { grid-column: 1 / -1; }
.hero__lead { color: var(--on-red-2); font-size: 1.08rem; max-width: 34em; margin: 14px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.hero__actions .btn--line { color: #fff; border-color: color-mix(in srgb, #fff 55%, transparent); }
.hero__sub { font: 500 .92rem/1.2 var(--f-body); color: var(--on-red-2); margin: 0 0 10px; letter-spacing: .01em; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 5fr 7fr; gap: 48px; padding: 36px var(--gutter) 64px; }
  .hero__text { display: block; }
  .hero__emblem { grid-row: auto; width: 100%; max-width: 360px; margin: 0 auto; }
  .hero__title { margin-bottom: .1em; }
}

/* шнуры доломана: каждая ближайшая игра — золотой шнур с пуговицами на концах */
.braids { list-style: none; margin: 0; padding: 0; }
.braid { position: relative; display: grid; gap: 2px; padding: 16px 14px 14px; }
.braid::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px;
  background:
    radial-gradient(circle at 5px 50%, var(--gold) 4.2px, transparent 5px),
    radial-gradient(circle at calc(100% - 5px) 50%, var(--gold) 4.2px, transparent 5px),
    linear-gradient(var(--gold), var(--gold)) center / calc(100% - 10px) 2px no-repeat;
  animation: braid .8s cubic-bezier(.2, .7, .2, 1) both;
}
.braid:nth-child(2)::before { animation-delay: .12s; }
.braid:nth-child(3)::before { animation-delay: .24s; }
.braid:last-child { padding-bottom: 18px; }
.braid:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 10px;
  background: inherit;
  background:
    radial-gradient(circle at 5px 50%, var(--gold) 4.2px, transparent 5px),
    radial-gradient(circle at calc(100% - 5px) 50%, var(--gold) 4.2px, transparent 5px),
    linear-gradient(var(--gold), var(--gold)) center / calc(100% - 10px) 2px no-repeat;
  animation: braid .8s .36s cubic-bezier(.2, .7, .2, 1) both;
}
.braid__date { color: var(--on-red-2); font-size: .95rem; }
.braid__date b { font-family: var(--f-head); font-weight: 700; color: var(--gold-text); margin-right: .3em; }
.braid__vs { font-size: 1.05rem; }
.braid__vs b { font-weight: 700; }
.braid__against { color: var(--on-red-2); }
@media (min-width: 560px) {
  .braid { grid-template-columns: 13.5em 1fr; align-items: baseline; gap: 12px; }
}
@keyframes braid { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .braid::before, .braid::after { animation: none; } }

/* ---------- составы: GOLD и RED ---------- */

.squad {
  display: inline-block; padding: 2px 6px 1px; border-radius: 3px; vertical-align: .1em;
  font: 700 .66rem/1.3 var(--f-head); letter-spacing: .05em;
  background: var(--line); color: var(--ink);
}
.squad--gold { background: var(--gold); color: #2a1a05; }
.squad--red { background: var(--red); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }

/* ---------- блоки и колонки ---------- */

.cols { display: grid; gap: 8px 56px; padding-top: 36px; padding-bottom: 12px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.block { margin-bottom: 36px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.block__head h2 { margin: 0; }
.band { background: var(--mist); padding: 36px 0 28px; }
.empty { color: var(--ink-2); }
.note { color: var(--ink-2); font-size: .95rem; }
.back { margin: 8px 0 48px; }

/* ---------- результаты ---------- */

.results, .games, .feed { list-style: none; margin: 0; padding: 0; }
.res a {
  display: grid; grid-template-columns: 30px 5.4rem 1fr; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.res:first-child a { border-top: 1px solid var(--line); }
.res a:hover .res__who b { text-decoration: underline; text-underline-offset: 3px; }
.res__mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px;
  font: 700 .8rem/1 var(--f-head); color: #fff; background: var(--ink-2);
}
.res--w .res__mark { background: var(--green); }
.res--l .res__mark { background: var(--red); }
.res__score { font: 700 1.15rem/1 var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res__who { display: grid; min-width: 0; }
.res__who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res__who small { color: var(--ink-2); }

/* ---------- расписание ---------- */

.game { display: grid; grid-template-columns: 3.4rem 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.game:first-child { border-top: 1px solid var(--line); }
.game__date { display: grid; justify-items: center; align-content: center; height: 3.4rem; border: 2px solid var(--gold); border-radius: var(--r); line-height: 1; }
.game__date b { font: 900 1.25rem/1 var(--f-head); }
.game__date span { font-size: .78rem; color: var(--ink-2); margin-top: 3px; }
.game__vs { margin: 0 0 2px; font-size: 1.05rem; }
.game__meta { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- новости ---------- */

.item a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.feed .item:first-child a { border-top: 1px solid var(--line); }
.item a:hover .item__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.item__meta { display: flex; gap: 12px; margin: 0 0 6px; font-size: .88rem; color: var(--ink-2); }
.kind { font-weight: 700; text-decoration: none; }
.kind--tryout { color: var(--red-ink); }
.kind--result { color: var(--green); }
@media (prefers-color-scheme: dark) { .kind--result { color: #8fcf6f; } }
.kind--news { color: var(--gold-ink); }
.item__title { font-weight: 700; font-size: 1.08rem; margin: 0 0 6px; }
.item__text, .item__event { margin: 0; color: var(--ink-2); }
.item__event { color: var(--ink); font-weight: 500; }
.item__count { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }
.feed--short .item__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 48px; color: var(--ink-2); font-size: .93rem; }

/* ---------- просмотр ---------- */

.band--tryout { background: var(--gold); color: #2a1a05; padding: 28px 0; }
.tryout { display: grid; gap: 16px; align-items: center; }
.tryout h2 { font-size: 1rem; font-family: var(--f-body); font-weight: 700; margin: 0 0 4px; }
.tryout__when { font: 700 clamp(1.25rem, 4.6vw, 1.7rem)/1.2 var(--f-head); margin: 0 0 4px; }
.tryout__place { margin: 0; }
.tryout__go { display: flex; align-items: center; gap: 18px; }
.band--tryout .link { color: #2a1a05; }
@media (min-width: 720px) { .tryout { grid-template-columns: 1fr auto; } }
.tryout--post { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 24px; }
.tryout__past { margin: 0; color: var(--ink-2); }

/* ---------- составы на главной ---------- */

.squads { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .squads { grid-template-columns: 1fr 1fr; } }
.squadcard a {
  display: grid; gap: 4px; padding: 16px 18px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.squadcard a:hover { border-color: var(--gold); }
.squadcard .squad { justify-self: start; font-size: .8rem; padding: 3px 8px 2px; }
.squadcard__rec b { font: 900 1.4rem/1.2 var(--f-head); margin-right: .25em; }
.squadcard__pos { color: var(--ink-2); font-size: .95rem; }
.since { color: var(--ink-2); margin: 16px 0 0; }
.about { margin-top: 20px; max-width: 68ch; }
.join-cta { padding-top: 44px; padding-bottom: 56px; }
.join-cta p { max-width: 36em; color: var(--ink-2); }

/* ---------- шапки страниц ---------- */

.pagehead { background: var(--red); color: var(--on-red); padding: 28px 0 0; margin-bottom: 28px; }
.pagehead h1 { color: var(--gold-text); margin-bottom: .3em; }
.pagehead__lead { color: var(--on-red-2); max-width: 40em; margin-bottom: 20px; }
.pagehead .squad--red { box-shadow: inset 0 0 0 1px var(--gold); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.tabs__tab {
  padding: 10px 14px 11px; color: var(--on-red-2); text-decoration: none; font-weight: 500; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tabs__tab:hover { color: #fff; }
.tabs__tab[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); font-weight: 700; }
.pagehead:not(:has(.tabs)) { padding-bottom: 8px; }

.player-head { display: flex; align-items: center; gap: 18px; padding-bottom: 12px; }
.player-head__num {
  font: 900 clamp(3rem, 14vw, 5rem)/.9 var(--f-head); color: var(--gold-text);
  -webkit-text-stroke: 0; min-width: 1.2ch; text-align: center;
}

/* ---------- состав и таблицы ---------- */

.summary { margin-bottom: 28px; }
.summary h2 { margin-bottom: .2em; }
.summary__tour { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 16px 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts--player { grid-template-columns: repeat(6, 1fr); } }
.facts > div { background: var(--paper); padding: 14px 16px; }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font: 900 1.6rem/1.15 var(--f-head); font-variant-numeric: tabular-nums; }
.facts dd small { font: 500 .9rem var(--f-body); color: var(--ink-2); }
.leaders { color: var(--ink-2); }
.leaders a { color: var(--ink); font-weight: 700; }

.roster { display: grid; }
.roster__row {
  display: grid; grid-template-columns: 2rem 1fr repeat(3, 2.6rem); align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.roster__row--head { font-size: .8rem; color: var(--ink-2); padding-top: 0; }
.roster__row--head .c-num { font-size: 0; }
a.roster__row:hover .c-name b { text-decoration: underline; text-underline-offset: 3px; }
.c-num { font: 900 1.25rem/1 var(--f-head); color: var(--gold-ink); text-align: center; }
.c-name { display: grid; min-width: 0; }
.c-name b { font-weight: 700; }
.c-name small { color: var(--ink-2); }
.c-g, .c-s { text-align: right; font-variant-numeric: tabular-nums; }
.roster .c-g { display: none; }
.c-name small { font-size: .82rem; line-height: 1.3; }
.c-dim { color: var(--ink-2); }
@media (min-width: 720px) {
  .roster__row { grid-template-columns: 3.4rem 1fr 3rem repeat(3, 4.5rem); gap: 12px; }
  .roster .c-g { display: block; }
  .roster__row--head .c-num { font-size: .8rem; }
}
.standings summary { cursor: pointer; color: var(--red-ink); font-weight: 500; margin: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.standings[open] summary { margin-bottom: 4px; }

.scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 500; font-size: .82rem; color: var(--ink-2); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table tr.is-us td { background: var(--gold-soft); font-weight: 700; }
.table tr.is-us td:first-child { box-shadow: inset 4px 0 0 var(--gold); padding-left: 10px; }
.table a { font-weight: 500; text-decoration: none; }
.table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-pos, .t-num { width: 2.5rem; color: var(--ink-2); }
.table--box td, .table--box th { white-space: nowrap; }
.score { font-family: var(--f-head); font-weight: 700; }
.score--w { color: var(--green); }
.score--l { color: var(--red-ink); }
@media (prefers-color-scheme: dark) { .score--w { color: #8fcf6f; } }
.mvp { font: 700 .62rem/1 var(--f-head); background: var(--gold); color: #2a1a05; padding: 2px 4px; border-radius: 3px; vertical-align: .15em; }
@media (max-width: 560px) { .t-hide { display: none; } }

/* ---------- протокол матча ---------- */

.scoreboard { padding-bottom: 22px; }
.scoreboard__tour { color: var(--on-red-2); font-size: .93rem; margin-bottom: 14px; }
.scoreboard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0; color: #fff; }
.scoreboard__team { font: 700 clamp(.9rem, 3.4vw, 1.3rem)/1.2 var(--f-head); }
.scoreboard__team:last-child { text-align: right; }
.scoreboard__score { font: 900 clamp(2.2rem, 10vw, 4rem)/1 var(--f-head); color: var(--gold-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scoreboard__score i { font-style: normal; opacity: .7; padding: 0 .08em; }
.scoreboard__q { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; color: var(--on-red-2); font-variant-numeric: tabular-nums; }

/* ---------- пост и комментарии ---------- */

.post { padding-top: 32px; }
.post__head h1 { font-size: clamp(1.5rem, 5.4vw, 2.3rem); margin-bottom: .35em; }
.post__views { color: var(--ink-2); font-size: .9rem; }
.prose { max-width: 68ch; }
.post__body { white-space: pre-line; font-size: 1.08rem; margin-bottom: 1.5em; overflow-wrap: anywhere; }
.prose a { color: var(--red-ink); text-underline-offset: 3px; }
.prose blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--gold); color: var(--ink-2); }
.prose pre, .prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--mist); border-radius: 3px; }
.prose code { padding: 1px 4px; }
.prose pre { padding: 12px; overflow-x: auto; white-space: pre; }
.spoiler { background: var(--ink); color: transparent; border-radius: 3px; cursor: pointer; transition: color .2s; }
.spoiler:hover, .spoiler:focus { color: var(--paper); }
.legal h2 { margin-top: 1.4em; font-size: 1.1rem; }
.legal { padding-top: 32px; padding-bottom: 48px; }

.gallery { display: grid; gap: 6px; margin: 0 0 24px; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; border-radius: 4px; }
.gallery--2 img, .gallery--3 img { aspect-ratio: 4 / 3; object-fit: cover; }

.comments { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); }
.comments h2 span { color: var(--ink-2); font-weight: 500; }
.comments__list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:target { background: var(--gold-soft); margin: 0 -12px; padding: 14px 12px; }
.comment__who { margin: 0 0 4px; font-size: .93rem; }
.comment__who time { color: var(--ink-2); margin-left: 6px; }
.comment__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.badge { font-size: .75rem; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); padding: 1px 6px; border-radius: 3px; }
.comments__form { display: grid; gap: 8px; margin-bottom: 8px; }
.comments__form button { justify-self: start; }
.comments__login .btn { margin-right: 8px; margin-bottom: 8px; }

/* ---------- формы ---------- */

.form { display: grid; gap: 18px; padding-bottom: 56px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice), .field > legend { font-weight: 700; font-size: .98rem; padding: 0; margin-bottom: 2px; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .88rem; margin-left: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="text"], input:not([type]), input[type="url"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--r); padding: 11px 12px;
}
textarea { resize: vertical; min-height: 5em; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
[aria-invalid="true"] { border-color: var(--red-ink) !important; }
.field__hint { margin: 0; color: var(--ink-2); font-size: .88rem; }
.field__error { margin: 0; color: var(--red-ink); font-size: .9rem; font-weight: 500; }
.form__error { background: color-mix(in srgb, var(--red) 10%, var(--paper)); border-left: 4px solid var(--red); padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0; font-weight: 500; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 400; }
.choice + .choice { margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--red-ink); background: color-mix(in srgb, var(--gold) 12%, var(--paper)); }
.choice input { accent-color: var(--red); margin: 4px 0 0; width: 18px; height: 18px; flex: none; }
.choice span { display: grid; }
.choice small { color: var(--ink-2); }
.choice--line { padding: 10px 14px; }
.choice--consent { border: 0; padding: 4px 0; }
.choice--consent:has(input:checked) { background: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { padding-top: 48px; padding-bottom: 64px; }
.done h1 { color: var(--red-ink); }
.done__more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.login { padding-top: 40px; padding-bottom: 64px; }
.steps { padding-left: 1.3em; margin: 0 0 20px; }
.steps li { margin-bottom: 6px; }
.login__wait { color: var(--ink-2); }

/* ---------- подвал ---------- */

.foot { background: var(--red-deep); color: var(--on-red-2); margin-top: 24px; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 28px; display: grid; gap: 20px; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand p { margin: 0; }
.foot__brand b { color: var(--gold-text); font-family: var(--f-head); font-weight: 700; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a { color: #fff; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__user { font-size: .93rem; }
.foot__user .link { color: #fff; }
.foot__note { margin: 0; font-size: .85rem; opacity: .85; }
@media (min-width: 900px) { .foot__in { grid-template-columns: auto 1fr; align-items: center; } .foot__nav { justify-content: flex-end; } .foot__user, .foot__note { grid-column: 1 / -1; } }
