/* ========== RESET & TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Fallback с подогнанными метриками — чтобы при FOUT (пока Google Fonts не загрузились)
   локальные системные шрифты занимали столько же места по ширине/высоте,
   что и Oswald (заголовки) / Barlow (текст). Без этого на холодной загрузке всё прыгает. */
@font-face {
  font-family: 'Oswald Fallback';
  font-style: normal;
  font-weight: 400 700;
  src: local('Arial Narrow'), local('Impact'), local('Arial');
  size-adjust: 88%;
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback';
  font-style: normal;
  font-weight: 300 700;
  src: local('Arial'), local('Helvetica'), local('sans-serif');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: oklch(98.4% 0.005 80);
  --bg-2: oklch(96% 0.008 80);
  --paper: oklch(99.5% 0.003 80);
  --ink: oklch(18% 0.01 80);
  --ink-2: oklch(38% 0.01 80);
  --ink-3: oklch(60% 0.008 80);
  --line: oklch(88% 0.006 80);
  --line-2: oklch(82% 0.008 80);
  --accent: #d24a43;                /* brand red — Гараж 54 logo */
  --accent-ink: #732925;
  --ok: oklch(58% 0.12 150);
  --err: oklch(56% 0.18 25);

  /* По образцу garage54.shi-no.ru: Oswald — заголовки, Barlow — основной текст */
  --serif: 'Oswald', 'Oswald Fallback', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', 'Barlow Fallback', system-ui, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========== UTILS ========== */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; }
.italic { font-style: italic; }
.divider { height: 1px; background: var(--line); width: 100%; }
.ruler {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-2); text-transform: uppercase;
}
.ruler::before, .ruler::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ruler::before { flex: 0 0 24px; }

/* ========== TOPBAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0;
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.topbar-nav { display: flex; gap: 28px; font-size: 13px; color: var(--ink-2); }
.topbar-nav a:hover { color: var(--ink); }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 13px; transition: all .2s;
}
.topbar-cta:hover { background: var(--ink); color: var(--bg); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
}

/* ========== HERO ========== */
.hero {
  padding: 56px 0 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: stretch;
}
.hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* текст сверху */
  padding: 0;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2);
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.hero-headline .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero-sub {
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
  max-width: 480px; margin: 24px 0 0;
}
.hero-actions {
  display: flex; gap: 16px; align-items: center; margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px; letter-spacing: 0.01em;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); border-color: var(--accent-ink); }

/* Акцентная (красная) кнопка — для главного CTA */
.btn-accent {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-accent:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--accent-ink) 70%, transparent);
}
.btn-accent .btn-arrow { background: #fff; color: var(--accent); }

/* Крупная кнопка (модификатор) */
.btn-lg {
  padding: 22px 38px;
  font-size: 16px;
  letter-spacing: 0.02em;
  gap: 16px;
}
.btn-lg .btn-arrow { width: 30px; height: 30px; font-size: 14px; }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  display: grid; place-items: center;
  font-size: 12px;
}
.btn-primary .btn-arrow { background: var(--bg); color: var(--ink); }
.btn-ghost .btn-arrow { background: var(--ink); color: var(--bg); }

/* === Hero stage: светлая "аукционная карточка" вместо тёмной студии. */
.hero-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(420px, 35vw, 520px);
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: -2%;
  top: -2%;
  bottom: -1%;
  z-index: 0;
  border-radius: 48% 52% 44% 56% / 42% 46% 54% 58%;
  background:
          radial-gradient(ellipse 48% 42% at 78% 24%,
          color-mix(in oklab, var(--accent) 22%, var(--bg) 10%) 0%,
          transparent 68%),
          radial-gradient(ellipse 54% 50% at 20% 46%,
          color-mix(in oklab, white 88%, var(--bg) 12%) 0%,
          transparent 70%),
          radial-gradient(ellipse 86% 42% at 56% 83%,
          color-mix(in oklab, var(--ink) 15%, transparent) 0%,
          transparent 70%),
          linear-gradient(118deg,
          color-mix(in oklab, var(--bg-2) 70%, white) 0%,
          color-mix(in oklab, var(--paper) 62%, var(--accent) 7%) 54%,
          transparent 100%);
  filter: blur(8px);
  opacity: .98;
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 3%;
  top: 9%;
  height: 76%;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(115deg,
  transparent 0%,
  color-mix(in oklab, var(--accent) 14%, transparent) 34%,
  color-mix(in oklab, var(--paper) 90%, transparent) 60%,
  transparent 100%);
  transform: rotate(-3deg);
  opacity: .95;
  pointer-events: none;
}
.hero-stage-img {
  position: absolute;
  left: 52%;
  bottom: 10px;
  width: min(100%, 920px);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  display: block;
  z-index: 3;
  filter: drop-shadow(0 22px 26px color-mix(in oklab, var(--ink) 24%, transparent));
}
.hero-stage-floor {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 78%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(
          ellipse at center,
          color-mix(in oklab, var(--ink) 28%, transparent) 0%,
          color-mix(in oklab, var(--ink) 14%, transparent) 42%,
          transparent 72%
  );
  filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}
.hero-figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 800px) {
  .hero-stage {
    min-height: 360px;
    margin-top: 24px;
  }
  .hero-stage-img {
    left: 53%;
    width: min(114%, 740px);
  }
}

/* (Старые стили рамки оставляем для совместимости — не используются) */
.hero-photo {
  position: relative;
  aspect-ratio: 5/4;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-2);
}
.hero-photo > img:not(.hero-photo-cutout-img):not(.hero-photo-cutout-reflect) {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* === ВАРИАНТ: вырезанное фото на светлой студийной подложке (под цвет ленда) === */
.hero-photo-cutout {
  background: linear-gradient(180deg,
  oklch(97% 0.005 80) 0%,
  oklch(94% 0.006 80) 60%,
  oklch(90% 0.008 80) 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero-photo-bg {
  position: absolute; inset: 0;
  background:
          radial-gradient(ellipse 75% 35% at 50% 15%,
          color-mix(in oklab, var(--accent) 10%, transparent) 0%,
          transparent 65%),
          radial-gradient(ellipse 55% 25% at 50% 100%,
          color-mix(in oklab, var(--ink) 8%, transparent) 0%,
          transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-photo-cutout-img {
  position: absolute;
  bottom: 6%; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: auto;
  max-height: 92%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 3;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.2));
}
/* Отражение убираем — на cutout с человеком оно ломает композицию */
.hero-photo-cutout-reflect { display: none; }

/* Овальная тень — прижата к низу под машиной */
.hero-photo-shadow {
  position: absolute;
  bottom: 5%; left: 50%;
  width: 80%; height: 18px;
  background: radial-gradient(ellipse,
  rgba(0,0,0,0.45) 0%,
  rgba(0,0,0,0.18) 40%,
  transparent 70%);
  filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 800px) {
  .hero-photo-cutout-img { height: 80%; bottom: 7%; }
  .hero-photo-cutout-reflect { top: calc(7% + 80%); height: 18%; }
}
.hero-photo-tag {
  position: absolute; top: 16px; left: 16px;
  z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-photo-cap {
  position: absolute; bottom: 16px; right: 16px;
  z-index: 4;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: 0 1px 6px rgba(255,255,255,.6);
  text-align: right;
}

/* hero metrics row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
}
.hero-metric { padding-right: 24px; }
.hero-metric + .hero-metric { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-metric-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.hero-metric-value {
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1;
}
.hero-metric-value sup { font-size: 0.5em; vertical-align: super; color: var(--ink-2); margin-left: 4px; }

/* ========== COUNTDOWN STRIP ========== */
.countdown-strip {
  margin-top: 80px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
}
.countdown-strip .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: oklch(75% 0.01 80);
  margin-bottom: 6px;
}
.countdown-strip .title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.countdown-clock {
  display: flex; gap: 4px;
  font-family: var(--serif); font-weight: 600;
}
.countdown-cell {
  width: 64px; padding: 10px 0;
  text-align: center;
  background: oklch(24% 0.01 80);
  border-radius: 2px;
}
.countdown-cell .num {
  font-size: 28px; line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.countdown-cell .unit {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(70% 0.01 80);
  margin-top: 6px;
}
.countdown-strip .draw-info {
  text-align: right;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: oklch(75% 0.01 80);
}
.countdown-strip .draw-info strong { color: var(--bg); display: block; font-weight: 500; margin-top: 4px; }

/* ========== SECTION HEADER ========== */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 12px 0 0;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head .index {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.section-head p {
  font-size: 17px; color: var(--ink-2); line-height: 1.55;
  max-width: 520px; margin: 0;
}

/* ========== PROJECT VIDEO ========== */
.project-video {
  padding-top: 96px;
  padding-bottom: 96px;
  scroll-margin-top: 84px;
}
.project-video-head { margin-bottom: 40px; }
.project-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: stretch;
}
.project-video-frame {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 4px;
  background:
          linear-gradient(135deg, color-mix(in oklab, var(--ink) 18%, transparent), transparent 58%),
          var(--ink);
  box-shadow: 0 22px 60px color-mix(in oklab, var(--ink) 18%, transparent);
}
.project-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.project-video-native {
  display: none;
}
.project-video-native-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}
.project-video-native-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 172px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #00a1e7;
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.project-video-frame.is-native-video iframe {
  display: none;
}
.project-video-frame.is-native-video .project-video-native {
  position: absolute;
  inset: 0;
  display: block;
}
.project-video-frame.is-playing .project-video-native-button {
  display: none;
}
.project-video-copy {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.project-video-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.project-video-copy h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 26px 0 14px;
}
.project-video-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.project-video-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.project-video-facts span {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--paper) 72%, transparent);
}

/* ========== SPEC SECTION ========== */
.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.spec-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 4px;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.spec-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-list { display: flex; flex-direction: column; min-width: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row:first-child { border-top: 1px solid var(--ink); }
.spec-row dt {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.spec-row dd {
  margin: 0;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0;
  text-align: right;
}
.spec-row dd .unit-sm {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-left: 6px;
}

/* ========== STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.step {
  padding: 40px 32px 48px;
  position: relative;
}
.step + .step { border-left: 1px solid var(--line); }
.step-num {
  font-family: var(--serif); font-weight: 500;
  font-size: 48px; line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}
.step-num em { font-style: normal; color: var(--accent); }
.step h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: 0;
  text-transform: uppercase;
  margin: 28px 0 10px;
}
.step p {
  margin: 0;
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
}
.step-meta {
  margin-top: 28px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 16px;
}
.step-meta span { display: flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gphoto {
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 3px;
  position: relative;
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gphoto:hover img { transform: scale(1.03); }
.gphoto-cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.g1 { grid-column: span 7; aspect-ratio: 16/10; }
.g2 { grid-column: span 5; aspect-ratio: 4/5; }
.g3 { grid-column: span 4; aspect-ratio: 3/4; }
.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.g5 { grid-column: span 4; aspect-ratio: 3/4; }

/* 8-shot gallery — compact mosaic, fits one viewport */
.gallery-8 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(0, 220px));
  gap: 10px;
}
.gallery-8 .gphoto { min-height: 0; min-width: 0; }
.gallery-8 .gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Row 1 */
.g-a { grid-column: 1 / span 5; grid-row: 1; }   /* 01 pier — wide feature */
.g-b { grid-column: 6 / span 3; grid-row: 1; }   /* 02 3/4 */
.g-c { grid-column: 9 / span 2; grid-row: 1; }   /* 03 front */
.g-d { grid-column: 11 / span 2; grid-row: 1; }  /* 04 grille */
/* Row 2 */
.g-e { grid-column: 1 / span 2; grid-row: 2; }   /* 05 front-low */
.g-f { grid-column: 3 / span 3; grid-row: 2; }   /* 06 side */
.g-g { grid-column: 6 / span 4; grid-row: 2; }   /* 07 diffuser */
.g-h { grid-column: 10 / span 3; grid-row: 2; }  /* 08 interior */

/* ========== FORM ========== */
.form-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.form-side {
  position: sticky; top: 96px;
}
.form-side h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 16px 0 24px;
}
.form-side h2 em { font-style: normal; color: var(--accent); }
.form-side p { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0 0 32px; max-width: 440px; }
.form-side-stats {
  display: flex; gap: 40px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.form-side-stat .v {
  font-family: var(--serif); font-size: 36px; font-weight: 600;
  letter-spacing: 0;
}
.form-side-stat .l {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
.form-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.form-card-head .step-of {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.form-card-head h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.field { margin-bottom: 20px; }
.field-primary {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px 20px;
  margin-bottom: 8px;
}
.field-primary .field-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.field-primary .req {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  padding: 3px 8px; border-radius: 3px;
}
.field-input-lg {
  padding: 16px 18px;
  font-size: 18px;
  background: var(--paper);
  border-color: var(--line);
}
.field-input-lg:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.optional-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 18px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.optional-divider::before, .optional-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.field-label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px;
}
.field-input, .field-select {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: 16px;
  transition: border-color .2s, background .2s;
  outline: none;
}
.field-input:focus, .field-select:focus {
  border-color: var(--ink);
  background: var(--paper);
}
.field-input.invalid { border-color: var(--err); }
.field-error {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--err); margin-top: 6px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-help {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 6px;
}

.checks { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.check input { display: none; }
.check-box {
  flex: 0 0 18px; width: 18px; height: 18px;
  border: 1px solid var(--line-2); border-radius: 3px;
  display: grid; place-items: center;
  margin-top: 2px;
  transition: all .15s;
}
.check input:checked + .check-box {
  background: var(--ink); border-color: var(--ink);
}
.check input:checked + .check-box::after {
  content: ""; width: 9px; height: 5px;
  border-left: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(-45deg) translateY(-1px);
}
.check.has-error {
  color: var(--danger);
}
.check.has-error .check-box {
  border-color: var(--danger);
}

.submit-row {
  display: flex; flex-direction: column;
  align-items: stretch; gap: 14px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.submit-row .small {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.6;
  text-align: center;
}
.btn-submit {
  background: var(--ink); color: var(--bg);
  padding: 18px 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 14px; transition: all .2s;
  width: 100%;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-ink); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* success */
.form-success {
  text-align: center;
  padding: 32px 0;
}
.form-success .ticket {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.form-success .ticket-num {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.2em; color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  padding: 8px 18px; border-radius: 999px;
  display: inline-block;
}
.form-success p { color: var(--ink-2); margin: 24px auto 32px; max-width: 380px; }
.form-success .seal {
  width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  margin: 0 auto;
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  letter-spacing: 0;
}

/* ========== FAQ ========== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.faq-q .toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0; margin-left: 16px;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-q .toggle {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--ink-2); font-size: 16px; line-height: 1.6;
  max-width: 640px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--ink); color: var(--bg);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(28% 0.01 80);
}
.footer h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: oklch(70% 0.01 80);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: oklch(85% 0.01 80); }
.footer ul a:hover { color: var(--bg); }
.footer-mega {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 48px 0 24px;
}
.footer-mega em { font-style: normal; color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(60% 0.01 80);
}

/* ========== MARQUEE ========== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif); font-style: normal; font-weight: 500;
  font-size: 26px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; color: var(--ink); }
.marquee-track .star { color: var(--accent-ink); }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  width: min(680px, calc(100vw - 48px));
  padding: 14px 16px 14px 18px;
  transform: translateX(-50%);
  background: color-mix(in oklab, var(--ink) 96%, #000);
  color: var(--bg);
  border: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  box-shadow: 0 18px 52px color-mix(in oklab, #000 28%, transparent);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  max-width: 540px;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 500;
}
.cookie-banner__text a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.cookie-banner__btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid color-mix(in oklab, var(--bg) 50%, transparent);
  background: transparent;
  color: var(--bg);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero-grid, .spec-grid, .form-grid, .faq-grid, .section-head, .project-video-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-metric + .hero-metric { border-left: none; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px solid var(--line); }
  .project-video { padding-top: 72px; padding-bottom: 72px; }
  .project-video-copy { padding: 28px 0 4px; }
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(520px, calc(100vw - 24px));
    padding: 16px;
  }
  .cookie-banner__btn {
    width: 100%;
    min-height: 46px;
    font-size: 19px;
  }
  .countdown-strip { grid-template-columns: 1fr; gap: 20px; }
  .countdown-strip .draw-info { text-align: left; }
  .gallery-8 {
    grid-template-rows: repeat(2, minmax(0, 160px));
    gap: 8px;
  }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: span 6; aspect-ratio: 4/3; grid-row: auto; }
}

@media (max-width: 640px) {
  .gallery-8 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 110px);
  }
  .g-a { grid-column: 1 / span 6; grid-row: 1; }
  .g-b { grid-column: 1 / span 3; grid-row: 2; }
  .g-c { grid-column: 4 / span 3; grid-row: 2; }
  .g-d { grid-column: 1 / span 3; grid-row: 3; }
  .g-e { grid-column: 4 / span 3; grid-row: 3; }
  .g-f { grid-column: 1 / span 2; grid-row: 4; }
  .g-g { grid-column: 3 / span 2; grid-row: 4; }
  .g-h { grid-column: 5 / span 2; grid-row: 4; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .topbar-nav { display: none; }
  .form-side { position: static; }
  .form-card { padding: 28px 20px; }
  .project-video { padding-top: 56px; padding-bottom: 56px; }
  .project-video-frame { border-radius: 3px; }
  .project-video-copy h3 { font-size: 28px; }
  .cookie-banner {
    bottom: 12px;
  }
  .cookie-banner__text {
    font-size: 13px;
    line-height: 1.45;
  }
}


/* ====================== AUTH HEADER BUTTONS ====================== */
.auth-cta-pair { display: flex; gap: 10px; align-items: center; }
.btn-auth {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  transition: all .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-auth-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-auth-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-auth-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-auth-solid:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}

/* ====================== AUTH PAGE ====================== */
.auth-page {
  min-height: 100vh;
  background:
          radial-gradient(ellipse 800px 400px at 70% -10%, color-mix(in oklab, var(--accent) 14%, transparent), transparent),
          var(--bg);
  display: flex; flex-direction: column;
}
.auth-main {
  flex: 1;
  display: grid; place-items: center;
  padding: 64px 24px;
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px 44px 36px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.18);
}
.auth-back {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  background: none; border: none; padding: 0; cursor: pointer;
  margin-bottom: 20px;
}
.auth-back:hover { color: var(--ink); }
.auth-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0;
  font-size: 28px; line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink);
}
.auth-sub {
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
  margin: 0 0 28px;
  max-width: 360px;
}

.oauth-btn {
  width: 100%;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.oauth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.4);
}
.oauth-btn:disabled { opacity: .5; cursor: not-allowed; }
.oauth-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-error {
  background: color-mix(in oklab, var(--err) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--err) 30%, transparent);
  color: var(--err);
  padding: 12px 14px; border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}
.req-dot { color: var(--accent); margin-left: 2px; }

.btn-submit-accent {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 16px 24px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: all .18s;
  margin-top: 8px;
}
.btn-submit-accent:hover:not(:disabled) {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}
.btn-submit-accent:disabled { opacity: .5; cursor: not-allowed; }

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13px; color: var(--ink-3);
}
.auth-foot a {
  color: var(--accent-ink);
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.auth-foot a:hover { color: var(--accent); }

/* ====================== CABINET ====================== */
.cabinet-page {
  min-height: 100vh;
  background: var(--bg);
}
.cabinet-main {
  padding: 56px 24px 80px;
}
.topbar-user {
  display: flex; align-items: center; gap: 16px;
}
.topbar-username {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Hero */
.cab-hero {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.cab-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em;
  font-size: 38px; line-height: 1.05;
  text-transform: uppercase;
  margin: 12px 0 14px;
  color: var(--ink);
}
.cab-title em { font-style: normal; color: var(--accent); }
.cab-subtitle {
  font-size: 17px; line-height: 1.5; color: var(--ink-2);
  max-width: 560px; margin: 0;
}
.cab-subtitle strong { color: var(--ink); font-weight: 600; }

.cab-score {
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 6px;
  padding: 20px 28px;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}
.cab-score::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%);
}
.cab-score-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 60px; line-height: 1;
  position: relative; z-index: 1;
  color: var(--accent);
}
.cab-score-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); text-align: center;
  margin-top: 4px;
  position: relative; z-index: 1;
  line-height: 1.3;
}

/* Progress */
.cab-progress { margin-bottom: 56px; }
.cab-progress-track {
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--line); overflow: hidden;
  margin-bottom: 10px;
}
.cab-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  border-radius: 999px;
  transition: width .6s cubic-bezier(.2,.7,.2,1);
}
.cab-progress-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Sections */
.cab-section { margin-bottom: 56px; }

/* 2-колоночный низ кабинета: история номеров (слева) + профиль (справа) */
.cab-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}
.cab-bottom-grid .cab-section { margin-bottom: 0; }
.cab-bottom-grid .ticket-card {
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  padding: 14px 16px;
}
.cab-bottom-grid .ticket-rank { font-size: 26px; }
.cab-bottom-grid .ticket-source-name { font-size: 14px; }
.cab-bottom-grid .ticket-source-meta { font-size: 10px; }
.cab-bottom-grid .ticket-num-pill { font-size: 12px; padding: 6px 12px; }
.cab-bottom-grid .profile-row { grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; }
.cab-bottom-grid .profile-row dd { font-size: 14px; }

@media (max-width: 1000px) {
  .cab-bottom-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cab-bottom-grid .ticket-card { grid-template-columns: 60px 1fr auto; padding: 16px 20px; }
  .cab-bottom-grid .profile-row { grid-template-columns: 220px 1fr; }
}
.cab-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  gap: 24px; flex-wrap: wrap;
}
.cab-h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: 0;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0; color: var(--ink);
}
/* Акцентный подзаголовок-призыв в шапке секции */
.cab-section-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}
.cab-section-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
.cab-section-cta-arrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  animation: cab-arrow-nudge 1.6s ease-in-out infinite;
}
@keyframes cab-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}

.cab-section-sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.btn-edit {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
.btn-edit:hover { border-color: var(--ink); color: var(--ink); }

/* Ticket grid */
.ticket-grid { display: flex; flex-direction: column; gap: 10px; }
.ticket-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  transition: all .3s;
}
.ticket-base {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 8%, var(--paper)), var(--paper));
  border-color: color-mix(in oklab, var(--accent) 25%, var(--line));
}
.ticket-card.just-linked {
  animation: linkedPop .8s ease-out;
}
@keyframes linkedPop {
  0% { transform: scale(.96); box-shadow: 0 0 0 0 var(--accent); }
  50% { transform: scale(1.01); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 30%, transparent); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
.ticket-rank {
  font-family: var(--serif); font-weight: 600;
  font-size: 32px; line-height: 1;
  color: var(--ink-3);
  letter-spacing: 0;
}
.ticket-source {
  display: flex; align-items: center; gap: 14px;
}
.ticket-source-name {
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.ticket-source-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}
.ticket-num-pill {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em;
  background: var(--ink); color: var(--bg);
  padding: 8px 16px; border-radius: 999px;
  white-space: nowrap;
}

/* CTA-строка в "Твои номера" — мягкий призыв к привязке оставшихся соцсетей */
.ticket-cta-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border: 1px dashed color-mix(in oklab, var(--accent) 50%, var(--line-2));
  border-radius: 6px;
  background: color-mix(in oklab, var(--accent) 4%, var(--paper));
  color: var(--ink);
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.ticket-cta-row:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--paper));
  transform: translateY(-1px);
}
.ticket-cta-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 300;
  justify-self: center;
}
.ticket-cta-body { min-width: 0; }
.ticket-cta-name {
  font-size: 15px; font-weight: 500;
  color: var(--ink);
}
.ticket-cta-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.ticket-cta-arrow {
  font-family: var(--mono); font-size: 18px;
  color: var(--accent);
  transition: transform .2s ease;
}
.ticket-cta-row:hover .ticket-cta-arrow {
  transform: translateX(3px);
}

/* Social grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.social-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
.social-card:not(.soon):not(.linked):hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.25);
}
.social-card.linked {
  background: linear-gradient(135deg, color-mix(in oklab, var(--ok) 8%, var(--paper)), var(--paper));
  border-color: color-mix(in oklab, var(--ok) 35%, var(--line));
}
.social-card.soon {
  opacity: 0.55;
}
.social-card-row {
  display: flex; gap: 14px; align-items: center;
}
.social-card-info { flex: 1; min-width: 0; }
.social-card-name {
  font-size: 16px; font-weight: 500; color: var(--ink);
  margin-bottom: 4px;
}
.social-card-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.social-card-meta .ok { color: var(--ok); }
.bonus-pill {
  color: var(--accent);
  font-weight: 700;
}
.social-chip {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.25);
}

.btn-pill {
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.connect-btn {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.connect-btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
}
.linked-btn {
  background: color-mix(in oklab, var(--ok) 14%, transparent);
  color: var(--ok);
  border-color: color-mix(in oklab, var(--ok) 35%, transparent);
  cursor: default;
}
.soon-btn {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  cursor: not-allowed;
}
.linking-btn {
  background: var(--ink-2); color: var(--bg);
  border-color: var(--ink-2);
  cursor: wait;
}

/* VK guide modal */
body.modal-open {
  overflow: hidden;
}
.vk-guide-modal[hidden] {
  display: none;
}
.vk-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.vk-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, .58);
  backdrop-filter: blur(6px);
}
.vk-guide-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px -30px rgba(0,0,0,.45);
  padding: 28px;
  color: var(--ink);
}
.vk-guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.vk-guide-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.vk-guide-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 42px;
}
.vk-guide-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0077FF;
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}
.vk-guide-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}
.vk-guide-lead {
  margin: 18px 0 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.vk-guide-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.vk-guide-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in oklab, var(--bg) 72%, var(--paper));
}
.vk-guide-steps span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in oklab, #0077FF 12%, var(--paper));
  color: #0077FF;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}
.vk-guide-steps p {
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
}
.vk-guide-mock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 10px auto 0;
  padding: 0 18px;
  border-radius: 7px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.vk-guide-mock-blue {
  width: min(100%, 220px);
  background: #447bba;
  color: #fff;
}
.vk-guide-mock-wide {
  width: min(100%, 360px);
  background: #447bba;
  color: #fff;
}
.vk-guide-mock-link {
  width: min(100%, 360px);
  background: #f0f2f5;
  color: #2f6fb8;
}
.vk-guide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.vk-guide-primary,
.vk-guide-secondary {
  width: 100%;
  min-height: 46px;
}
.vk-guide-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.vk-guide-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.spinner {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Profile */
.profile-grid {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 24px;
}
.profile-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.profile-row:last-child { border-bottom: none; }
.profile-row dt {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
}
.profile-row dd {
  margin: 0; font-size: 16px; color: var(--ink);
}
.profile-row dd.mono {
  font-family: var(--mono); letter-spacing: 0.12em;
}
.profile-row dd .muted { color: var(--ink-3); font-size: 14px; }

.profile-edit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.cab-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.cab-foot a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .auth-card { padding: 28px 22px; }
  .auth-title { font-size: 30px; }
  .cab-hero { grid-template-columns: 1fr; gap: 24px; }
  .cab-score { flex-direction: row; gap: 16px; align-self: start; padding: 16px 20px; }
  .cab-score-num { font-size: 48px; }
  .cab-title { font-size: 38px; }
  .ticket-card { grid-template-columns: 40px 1fr; }
  .ticket-card .ticket-num-pill { grid-column: 2; justify-self: start; }
  .ticket-rank { font-size: 26px; }
  .profile-row { grid-template-columns: 1fr; gap: 6px; }
  .topbar-username { display: none; }
  .topbar-nav { display: none; }
  .cab-section-head { gap: 12px; }
  .cab-h2 { font-size: 22px; }
}

@media (max-width: 640px) {
  .vk-guide-modal {
    align-items: end;
    padding: 10px;
  }
  .vk-guide-dialog {
    max-height: calc(100vh - 20px);
    padding: 22px 18px 18px;
  }
  .vk-guide-head {
    gap: 12px;
  }
  .vk-guide-head h2 {
    font-size: 24px;
  }
  .vk-guide-actions {
    grid-template-columns: 1fr;
  }
}


/* ====================== LEGAL PAGES ====================== */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
}
.legal-main {
  padding: 56px 0 80px;
}
.legal-shell {
  max-width: 880px;
  padding: 0 24px;
}
.legal-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em;
  font-size: 32px; line-height: 1.15;
  text-transform: uppercase;
  margin: 12px 0 8px;
  color: var(--ink);
}
.legal-sub {
  font-size: 17px; color: var(--ink-2);
  margin: 0 0 40px;
  font-style: italic;
}
.legal-body {
  font-size: 15px; line-height: 1.75;
  color: var(--ink);
}
.legal-body h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 24px; letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 36px 0 14px;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  margin: 24px 0 10px;
  color: var(--ink);
}
.legal-body p { margin: 0 0 14px; color: var(--ink-2); }
.legal-body p strong { color: var(--ink); font-weight: 600; }
.legal-body ul {
  margin: 0 0 16px; padding-left: 22px;
  color: var(--ink-2);
}
.legal-body ul li { margin-bottom: 6px; }
.legal-body a {
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.legal-body a:hover { color: var(--accent); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-2);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
}
.legal-table td:first-child {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  width: 60px;
}
.legal-table td:last-child {
  text-align: right;
  font-family: var(--mono); font-weight: 600;
  width: 60px;
}
.legal-table tr:hover td { background: var(--bg-2); }

.legal-pubdate {
  margin-top: 32px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

.legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-nav a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border-bottom: 1px solid var(--line-2); /* override .legal-body a */
}
.legal-nav a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.legal-nav a.active {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}

.legal-foot {
  display: flex; justify-content: space-between; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.legal-req { line-height: 1.7; }
.legal-req strong { color: var(--ink); font-size: 14px; }
.legal-req a { color: var(--accent-ink); }
.legal-copy {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.6;
  text-align: right;
}

/* ====================== DOCS ADMIN ====================== */
.docs-admin-page .auth-card {
  max-width: 520px;
}
.docs-admin-shell {
  max-width: 1040px;
}
.docs-admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.docs-admin-success {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--ok) 28%, transparent);
  background: color-mix(in oklab, var(--ok) 10%, transparent);
  color: var(--ok);
  font-size: 14px;
}
.docs-admin-list {
  display: grid;
  gap: 14px;
}
.docs-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-2);
}
.docs-admin-card h2 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}
.docs-admin-card p {
  margin: 0 0 8px;
  color: var(--ink-2);
}
.docs-admin-card span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.docs-admin-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.docs-admin-status.is-edited {
  color: var(--ok);
  border-color: color-mix(in oklab, var(--ok) 35%, transparent);
  background: color-mix(in oklab, var(--ok) 8%, transparent);
}
.docs-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.docs-editor-shell {
  max-width: 1180px;
  padding: 0 24px;
}
.docs-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.docs-editor-main,
.docs-editor-help {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-2);
}
.docs-editor-main {
  padding: 24px;
}
.docs-editor-help {
  padding: 22px;
  position: sticky;
  top: 24px;
}
.docs-editor-help h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.docs-editor-help p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 12px;
}
.docs-toolbar span {
  width: 1px;
  height: 24px;
  background: var(--line-2);
}
.docs-toolbar button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.docs-toolbar button:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.docs-editor {
  min-height: 560px;
  max-height: 70vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--bg);
  outline: none;
}
.docs-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
}
.docs-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .docs-admin-top,
  .docs-admin-card {
    grid-template-columns: 1fr;
  }
  .docs-admin-card {
    display: block;
  }
  .docs-admin-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }
  .docs-editor-grid {
    grid-template-columns: 1fr;
  }
  .docs-editor-help {
    position: static;
  }
}

/* ====================== FOOTER LEGAL BLOCK (landing) ====================== */
.footer-legal {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.footer-legal-co {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: oklch(70% 0.01 80);
  line-height: 1.6;
}
.footer-legal-co strong {
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .legal-title { font-size: 32px; }
  .legal-body h2 { font-size: 20px; }
  .legal-table { font-size: 12px; }
  .legal-table th, .legal-table td { padding: 8px 8px; }
  .legal-foot { flex-direction: column; }
  .legal-copy { text-align: left; }
}

/* ====================== EMAIL-VERIFY BANNER ====================== */
.cab-banner-warn {
  display: flex; gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: color-mix(in oklab, #f5b800 14%, transparent);
  border: 1px solid color-mix(in oklab, #f5b800 35%, transparent);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px; line-height: 1.5;
}
.cab-banner-warn-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f5b800; color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.cab-banner-warn strong { font-weight: 600; }

.flash-message {
  width: 100%;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 42px -34px rgba(0, 0, 0, .28);
  font-size: 15px;
  line-height: 1.45;
}
.flash-message a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flash-message-success,
.alert-success {
  background:
          linear-gradient(135deg, color-mix(in oklab, var(--ok) 10%, var(--paper)) 0%, var(--paper) 62%),
          var(--paper);
  border-color: color-mix(in oklab, var(--ok) 34%, var(--line));
  color: color-mix(in oklab, var(--ok) 45%, var(--ink));
}
.flash-message-error,
.alert-error,
.alert-danger {
  background:
          linear-gradient(135deg, color-mix(in oklab, var(--err) 9%, var(--paper)) 0%, var(--paper) 62%),
          var(--paper);
  border-color: color-mix(in oklab, var(--err) 34%, var(--line));
  color: color-mix(in oklab, var(--err) 48%, var(--ink));
}
.flash-message-notice,
.alert-info {
  background:
          linear-gradient(135deg, color-mix(in oklab, #2c7be5 9%, var(--paper)) 0%, var(--paper) 62%),
          var(--paper);
  border-color: color-mix(in oklab, #2c7be5 32%, var(--line));
  color: color-mix(in oklab, #2c7be5 45%, var(--ink));
}
.flash-message-warning,
.alert-warning {
  background:
          linear-gradient(135deg, color-mix(in oklab, #f5b800 13%, var(--paper)) 0%, var(--paper) 62%),
          var(--paper);
  border-color: color-mix(in oklab, #f5b800 42%, var(--line));
  color: color-mix(in oklab, #8f6500 45%, var(--ink));
}
.w-100 {
  width: 100%;
}

/* ====================== CABINET MISC ====================== */
.cab-h-link {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.cab-h-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.cab-bottom-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}

/* Ticket-card как ссылка */
.ticket-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.ticket-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.25);
}
.ticket-pending {
  opacity: 0.85;
  cursor: default;
}
.ticket-pending .ticket-source-name { color: var(--ink); font-weight: 600; }

/* Слот 01 как форма «Участвовать» */
.ticket-cta-form {
  background: linear-gradient(135deg,
  color-mix(in oklab, var(--accent) 8%, var(--paper)),
  var(--paper));
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}
.ticket-cta-form .ticket-source-name {
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-participate {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-participate:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px color-mix(in oklab, var(--accent-ink) 70%, transparent);
}

/* Empty state в истории заказов */
.ticket-empty {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-2);
}
.ticket-empty-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px;
  color: var(--ink-3);
}
.ticket-empty strong { color: var(--ink); font-weight: 600; }

/* ====================== OAUTH-КНОПКИ НА /login ====================== */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.btn-oauth:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-oauth.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: auto;
}
.btn-oauth.is-disabled:hover {
  border-color: var(--line);
  transform: none;
}
.btn-oauth-glyph {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}

/* ====================== ORDERS LIST PAGES ====================== */
.orders-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.orders-summary-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  text-align: center;
}
.orders-summary-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 38px; line-height: 1;
  color: var(--ink);
}
.orders-summary-lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

.orders-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.orders-table-head {
  display: grid;
  grid-template-columns: 160px 1fr 140px 32px;
  gap: 16px;
  padding: 14px 24px;
  background: var(--bg-2);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.orders-table-row {
  display: grid;
  grid-template-columns: 160px 1fr 140px 32px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background .12s;
}
.orders-table-row:last-child { border-bottom: none; }
.orders-table-row:hover { background: var(--bg-2); }
.orders-cell-date {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2);
}
.orders-cell-source {
  font-size: 15px; font-weight: 500;
}
.orders-cell-ticket {
  font-family: var(--mono); font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
}
.orders-cell-arrow {
  text-align: right;
  color: var(--ink-3);
  font-weight: 700;
}

.orders-empty {
  background: var(--paper);
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-2);
}
.orders-empty p { margin: 0 0 20px; font-size: 16px; }

/* Archive groups */
.archive-group { margin-bottom: 40px; }
.archive-group-past { opacity: 0.85; }
.archive-group-past .cab-h2 { color: var(--ink-2); }
.archive-group-past .orders-table { background: var(--bg-2); }

.archive-group-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.archive-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.archive-badge-live {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.archive-badge-past {
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line-2);
}

/* ====================== ORDER DETAIL ====================== */
.order-detail-back {
  margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.order-detail-back a { color: var(--ink-2); }
.order-detail-back a:hover { color: var(--ink); }

.order-detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto 32px;
  box-shadow: 0 12px 40px -20px rgba(0,0,0,.2);
}
.order-detail-head {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.order-detail-ticket-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 56px; line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 12px 0 8px;
  text-transform: uppercase;
}
.order-detail-source {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.order-detail-grid { margin: 0; padding: 0; }
.order-detail-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.order-detail-row:last-child { border-bottom: none; }
.order-detail-row dt {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.order-detail-row dd {
  margin: 0; font-size: 15px; color: var(--ink);
}
.order-detail-row dd.mono {
  font-family: var(--mono); letter-spacing: 0.08em;
  font-weight: 600; color: var(--accent-ink);
}
.order-status-paid { color: var(--ok); font-weight: 600; }
.order-detail-download {
  color: var(--accent-ink);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.order-detail-download:hover { color: var(--accent); }
.order-detail-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-2);
  border-radius: 6px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 700px) {
  .orders-summary { grid-template-columns: 1fr; }
  .orders-table-head { display: none; }
  .orders-table-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 14px 16px;
  }
  .orders-cell-date {
    grid-column: 1 / -1;
    font-size: 10px;
  }
  .orders-cell-source { grid-column: 1; }
  .orders-cell-ticket { grid-column: 2; text-align: right; }
  .orders-cell-arrow { display: none; }

  .order-detail-card { padding: 24px 18px; }
  .order-detail-ticket-num { font-size: 42px; }
  .order-detail-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ====================== «ПРОКАЧАЙ ШАНСЫ» (на лендинге, справа в секции form) ====================== */
.chances-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.chances-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle at top right,
  color-mix(in oklab, var(--accent) 18%, transparent) 0%,
  transparent 60%);
  pointer-events: none;
}

.chances-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
  position: relative;
  z-index: 1;
}
.chances-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: chances-pulse 1.6s infinite;
}
@keyframes chances-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.chances-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1;
  margin: 14px 0 12px;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.chances-title em {
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 600;
}
.chances-sub {
  margin: 0 0 22px;
  color: var(--ink-2); font-size: 14px; line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Прогресс-бар */
.chances-progress {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.chances-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.chances-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  border-radius: 999px;
  animation: chances-fill 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes chances-fill {
  0%   { width: 25%; }
  80%  { width: 100%; }
  92%  { width: 100%; }
  100% { width: 25%; }
}
.chances-progress-thumb {
  position: absolute;
  top: 50%; left: 25%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px -2px color-mix(in oklab, var(--accent) 50%, transparent);
  animation: chances-thumb 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes chances-thumb {
  0%   { left: 25%; }
  80%  { left: 100%; }
  92%  { left: 100%; }
  100% { left: 25%; }
}

.chances-progress-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.chances-progress-meta strong {
  color: var(--accent-ink);
  font-weight: 700;
}
.chances-progress-grow {
  color: var(--accent-ink);
  font-weight: 600;
}

/* Список тикетов-шансов */
.chances-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.chances-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all .25s;
}
.chances-item-num {
  font-size: 18px; font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0;
}
.chances-item-name {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.chances-item-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.chances-item-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.chances-item .chances-chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
}

/* Активный (за регу) */
.chances-item-active {
  background: color-mix(in oklab, var(--ok) 7%, var(--paper));
  border-color: color-mix(in oklab, var(--ok) 35%, var(--line));
}
.chances-item-active .chances-item-num {
  color: var(--ok);
}
.chances-item-tag-on {
  background: color-mix(in oklab, var(--ok) 18%, transparent);
  color: var(--ok);
  border-color: color-mix(in oklab, var(--ok) 38%, transparent);
}

/* Анимация: волна подсветки идёт сверху вниз (с задержкой по индексу).
   Применяется ТОЛЬКО к доступным сейчас карточкам (не active и не soon). */
.chances-item:not(.chances-item-active):not(.chances-item-soon) {
  animation: chances-glow 6s ease-in-out infinite;
}
.chances-item:not(.chances-item-active):not(.chances-item-soon):nth-child(2) { animation-delay: 0.6s; }
.chances-item:not(.chances-item-active):not(.chances-item-soon):nth-child(3) { animation-delay: 2.6s; }
.chances-item:not(.chances-item-active):not(.chances-item-soon):nth-child(4) { animation-delay: 4.6s; }

/* «Скоро» — приглушённый стиль, без анимации */
.chances-item-soon {
  opacity: 0.55;
  background: var(--bg-2);
  border-style: dashed;
}
.chances-item-soon .chances-item-num,
.chances-item-soon .chances-item-name {
  color: var(--ink-3);
}
.chances-item-soon .chances-chip {
  filter: saturate(0.5);
}
.chances-item-tag-soon {
  background: transparent !important;
  color: var(--ink-3) !important;
  border: 1px dashed var(--line-2) !important;
  font-size: 9px !important;
  letter-spacing: 0.18em;
}

@keyframes chances-glow {
  0%, 8%, 100% {
    background: transparent;
    border-color: var(--line);
    transform: translateX(0);
  }
  3% {
    background: color-mix(in oklab, var(--accent) 8%, var(--paper));
    border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
    transform: translateX(2px);
  }
}

/* Футер */
.chances-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.chances-foot-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
  position: relative;
}
.chances-foot-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 60%, transparent);
  animation: chances-ring 2s ease-out infinite;
}
@keyframes chances-ring {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.chances-foot strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 900px) {
  .chances-card { padding: 24px 20px; }
  .chances-title { font-size: 22px; }
  .chances-item { grid-template-columns: 32px 1fr auto; padding: 8px 12px; }
  .chances-item-num { font-size: 15px; }
  .chances-foot { padding: 14px; }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .chances-progress-fill,
  .chances-progress-thumb,
  .chances-item,
  .chances-tag-dot,
  .chances-foot-icon::after {
    animation: none !important;
  }
  .chances-progress-fill { width: 100%; }
  .chances-progress-thumb { left: 100%; }
}

/* ====================== CREATOR / TRUST BLOCK ====================== */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.creator-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.creator-card:not(.creator-card-static):hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.25);
}
.creator-card-static { cursor: default; }

.creator-card-platform {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.creator-card-glyph {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

.creator-card-num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.creator-card-num sup {
  font-size: 0.5em; font-weight: 600;
  vertical-align: top;
  margin-left: 2px;
  position: relative;
  top: 0.4em;
}
.creator-card-lbl {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.creator-card-link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--accent-ink);
  display: flex; justify-content: space-between; align-items: center;
}
.creator-card-link span {
  font-weight: 700;
  transition: transform .2s;
}
.creator-card:hover .creator-card-link span { transform: translateX(4px); }

.creator-foot {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.creator-foot-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.creator-foot strong {
  color: var(--ink); font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 1000px) {
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .creator-grid { grid-template-columns: 1fr; gap: 10px; }
  .creator-card { padding: 22px 20px; }
  .creator-card-num { font-size: 42px; }
}
