/* ==========================================================================
   b2b-potapov-event.ru — стили лендинга
   Дизайн перенесён из прототипа (claud_src) без изменения визуала.
   ========================================================================== */

:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --fg: #F2F0EC;
  --fg-soft: #CFCBC4;
  --fg-dim: #BDB9B2;
  --fg-mute: #9E9A93;
  --fg-light: #D6D2CB;
  --line: rgba(242, 240, 236, .18);
  --line-strong: #F2F0EC;
  --line-soft: rgba(242, 240, 236, .12);
  --accent: #E5322D;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --font: 'Golos Text', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
/* Картинки, которым нужно выйти за пределы контейнера (герой, ТВ-блок, фон медиакита). */
.hero-photo, .tv-img, .kit-img { max-width: none; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: #FFFFFF; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

::selection { background: var(--fg); color: var(--bg); }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.page { background: var(--bg); min-height: 100vh; overflow: clip; }

/* --------------------------------------------------------------- утилиты */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter) 0;
  scroll-margin-top: 76px;
}

.section--spaced { padding-top: clamp(80px, 10vw, 150px); }
.section--tight { padding-top: clamp(40px, 5vw, 72px); }

.label {
  font: 500 12px/1.6 var(--mono);
  letter-spacing: .1em;
  color: var(--fg-mute);
  white-space: nowrap;
}

.label--wrap { white-space: normal; }

.label--light { color: var(--fg-light); letter-spacing: .08em; }

.h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 68px);
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 520px;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 17px 26px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}

.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #FFFFFF; color: var(--bg); opacity: 1; }

.btn-ghost { font-weight: 600; font-size: 16px; padding: 17px 10px; white-space: nowrap; }

.text-link {
  align-self: flex-start;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.text-link--light { color: var(--fg); }

/* --------------------------------------------------------------- шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 240, 236, .08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { flex: none; display: flex; align-items: stretch; height: 24px; }

/* Штрихкод: ширина выводится из пропорций полос, высота задаётся из шаблона. */
.brand-mark {
  display: flex;
  align-items: stretch;
  flex: none;
  aspect-ratio: 104 / 24;
  overflow: hidden;
}

.nav {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 28px;
  font-size: 14px;
  white-space: nowrap;
}

.nav > a { color: var(--fg-dim); }
.nav > a:hover { color: var(--fg); opacity: .8; }

.nav-cta {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}

.live-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid rgba(242, 240, 236, .22);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: border-color .2s;
}

.live-btn:hover { border-color: var(--fg); color: #FFFFFF; }

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: livepulse 1.6s infinite;
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 50, 45, .6); }
  70% { box-shadow: 0 0 0 8px rgba(229, 50, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); }
}

.nav .nav-live, .nav .nav-cta { display: none; }

.burger {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(242, 240, 236, .22);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transform: translateX(-50%);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }

/* ---------------------------------------------------------------- герой */

.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  align-items: stretch;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.eyebrow {
  font: 500 12px/1.6 var(--mono);
  letter-spacing: .1em;
  color: var(--fg-mute);
}

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(56px, 8.4vw, 120px);
  line-height: .92;
  letter-spacing: -.045em;
}

.hero-lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 480px;
  text-wrap: pretty;
}

.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.stats {
  margin-top: clamp(16px, 4vw, 48px);
  display: flex;
  gap: 20px 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(242, 240, 236, .25);
  padding-left: 16px;
  min-width: 0;
}

.stat-value { font-weight: 700; font-size: 22px; overflow-wrap: break-word; }

.stat-label { font-size: 13px; color: var(--fg-mute); }

.stat-with-logo { display: flex; gap: 14px; align-items: center; }

.stat-logo { height: 44px; width: auto; object-fit: contain; flex: none; }

.hero-media {
  position: relative;
  min-height: clamp(480px, 62vw, 820px);
}

/* Позиционирование задаётся инлайном из шаблона (left:-18%, width:118%),
   поэтому в классах нет inset — иначе right/bottom создают перекрытие. */
.hero-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.hero-fade {
  position: absolute;
  inset: 0 auto 0 -18%;
  width: 40%;
  background: linear-gradient(90deg, var(--bg), rgba(10, 10, 10, 0));
  pointer-events: none;
}

/* --------------------------------------------------------------- подход */

.label-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.label-line { flex: 1; height: 1px; background: var(--line); }

.approach-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px 48px;
}

.card {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-n { font: 500 12px var(--mono); color: var(--fg-mute); }

.card-title {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
  text-wrap: pretty;
}

/* -------------------------------------------------------------- форматы */

.formats-list { border-top: 1px solid var(--line); }

.format-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px 40px;
  padding: 30px clamp(0px, 1.5vw, 20px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .25s, color .25s;
}

.format-row:hover { background: var(--fg); color: var(--bg); }
.format-row:hover .format-text { opacity: .78; }

.format-head { display: flex; gap: 18px; align-items: baseline; }

.format-n { font: 500 12px var(--mono); opacity: .55; }

.format-title {
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.format-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: .78;
  text-wrap: pretty;
}

/* ------------------------------------------------------------- галерея */

.gallery {
  position: relative;
  margin-top: clamp(80px, 10vw, 150px);
  height: clamp(440px, 60vw, 820px);
  overflow: hidden;
  background: var(--bg);
  touch-action: pan-y;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity .8s ease, transform 6s ease;
}

.gallery-slide.on { opacity: 1; transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .85), rgba(10, 10, 10, 0) 55%),
    linear-gradient(transparent 60%, rgba(10, 10, 10, .7));
  pointer-events: none;
}

.gallery-inner {
  position: relative;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery-caption {
  margin: 0;
  max-width: 560px;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.gallery-controls { display: flex; align-items: center; gap: 16px; }

.gallery-counter {
  font: 500 13px var(--mono);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gallery-dots { display: flex; gap: 6px; }

.gallery-dot {
  all: unset;
  cursor: pointer;
  height: 18px;
  display: flex;
  align-items: center;
}

.gallery-dot::before {
  content: '';
  display: block;
  height: 2px;
  width: 18px;
  background-color: rgba(242, 240, 236, .4);
  transition: width .3s, background-color .3s;
}

.gallery-dot[aria-selected='true']::before { width: 40px; background-color: var(--fg); }

.gallery-btn {
  all: unset;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(242, 240, 236, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(10, 10, 10, .35);
  transition: background .2s, color .2s;
}

.gallery-btn:hover { background: var(--fg); color: var(--bg); }

/* ------------------------------------------------------- постоянный проект */

.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.project-text { display: flex; flex-direction: column; gap: 24px; }

.dates { display: flex; gap: 20px 40px; flex-wrap: wrap; }

.date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(242, 240, 236, .25);
  padding-left: 16px;
}

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

.date-label { font-size: 13px; color: var(--fg-mute); }

.project-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.note { font-size: 13px; color: var(--fg-mute); }

/* ------------------------------------------------------- карточка факт-чека */

.factcheck {
  display: block;
  border: 1px solid rgba(242, 240, 236, .16);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform .3s, border-color .3s;
}

.factcheck:hover { transform: translateY(-4px); border-color: rgba(242, 240, 236, .4); }

.factcheck-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(242, 240, 236, .1);
}

.factcheck-dots { display: flex; gap: 6px; }

.factcheck-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(242, 240, 236, .2);
}

.factcheck-domain {
  flex: 1;
  min-width: 0;
  height: 22px;
  border-radius: 5px;
  background: rgba(242, 240, 236, .07);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font: 500 12px var(--mono);
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
}

.factcheck-badge {
  font: 500 11px var(--mono);
  color: var(--fg-mute);
  white-space: nowrap;
}

/* -------------------------------------------------------------------- ТВ */

.tv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

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

.tv-photo {
  position: relative;
  width: 100%;
  height: clamp(420px, 56vw, 720px);
  overflow: hidden;
  background: var(--bg);
}

.tv-photo-square { aspect-ratio: 1 / 1; height: auto; }

.tv-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.tv-text { display: flex; flex-direction: column; gap: 28px; }

.tv-rows { border-top: 1px solid var(--line); margin-top: 8px; }

.tv-row {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.tv-k {
  font: 500 13px var(--mono);
  color: var(--fg-mute);
  padding-top: 4px;
}

.tv-body { display: flex; flex-direction: column; gap: 4px; }

.tv-t { font-weight: 600; font-size: 19px; line-height: 1.3; }

.tv-d { font-size: 14px; color: var(--fg-mute); }

.awards {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}

.award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg);
  transition: padding .2s, color .2s;
}

.award:hover { color: #FFFFFF; padding-left: 6px; }

.award-plain:hover { padding-left: 0; }

.award-text { display: flex; flex-direction: column; gap: 3px; }

.award-name { font-size: 15px; font-weight: 500; line-height: 1.35; }

.award-meta { font-size: 13px; color: var(--fg-mute); }

.award-link {
  font: 500 12px var(--mono);
  color: var(--fg-mute);
  white-space: nowrap;
}

.project-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title { font-weight: 600; font-size: 19px; line-height: 1.3; }

.project-lead { font-size: 14px; color: var(--fg-mute); line-height: 1.5; }

.accordion { margin-top: 8px; align-self: flex-start; }

.accordion > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.accordion > summary::-webkit-details-marker { display: none; }

.accordion-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(242, 240, 236, .3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s;
}

.accordion[open] .accordion-icon { transform: rotate(45deg); }

.accordion-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  text-wrap: pretty;
}

.frame-btn {
  all: unset;
  cursor: pointer;
  margin-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(242, 240, 236, .22);
  border-radius: 4px;
  transition: border-color .2s;
}

.frame-btn:hover { border-color: var(--fg); color: #FFFFFF; }

.frame-btn img { height: 28px; width: auto; flex: none; }

.frame-btn span { font-size: 14px; font-weight: 600; }

/* -------------------------------------------------------------- клиенты */

.clients-shot {
  position: relative;
  width: 100%;
  height: clamp(320px, 52vw, 720px);
  overflow: hidden;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.clients-img { position: absolute; inset: 0; }

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(242, 240, 236, .14);
  border-bottom: 1px solid rgba(242, 240, 236, .14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-set { display: flex; align-items: center; flex: none; }

.marquee-item {
  height: 140px;
  padding: 0 clamp(36px, 5vw, 72px);
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-item img { opacity: .85; width: auto; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------- фильтр качества */

.quality {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.quality-text { display: flex; flex-direction: column; gap: 24px; }

.accordion-box {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.accordion-box > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.accordion-box > summary::-webkit-details-marker { display: none; }

.accordion-title {
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.3;
}

.accordion-box .accordion-text { padding: 0 56px 24px 0; }

/* -------------------------------------------------------------- медиакит */

.kit {
  position: relative;
  overflow: hidden;
  margin-top: clamp(80px, 10vw, 150px);
  background: var(--bg);
  scroll-margin-top: 76px;
}

.kit-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.kit-inner {
  position: relative;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px 64px;
  align-items: center;
}

.kit-text { display: flex; flex-direction: column; gap: 18px; }

.kit-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }

.kit-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242, 240, 236, .35);
  font-size: 16px;
}

.kit-item-title { font-weight: 500; }

.kit-item-num { font: 500 12px var(--mono); color: var(--fg-light); }

.kit-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- заявка */

.contact { position: relative; overflow: hidden; }

.contact-glow {
  position: absolute;
  top: 50%;
  left: 72%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 240, 236, .09) 0, rgba(242, 240, 236, .05) 45%, rgba(242, 240, 236, 0) 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 88px);
}

.contact-text { display: flex; flex-direction: column; gap: 22px; }

.h2-contact {
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: -.045em;
  line-height: .95;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  margin-top: 12px;
}

.socials { display: flex; gap: 14px; margin-top: 10px; }

.socials a {
  width: 44px;
  height: 44px;
  display: block;
  transition: transform .2s;
}

.socials a:hover { transform: translateY(-2px); opacity: 1; }

.socials img { width: 100%; height: 100%; display: block; }

/* ----------------------------------------------------------------- форма */

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 22px 24px;
  align-content: start;
}

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

.field-full { grid-column: 1 / -1; }

.field-label { font-size: 13px; color: var(--fg-mute); }

.form input[type='text'],
.form input[type='date'],
.form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 240, 236, .3);
  color: var(--fg);
  padding: 10px 0;
  font: inherit;
  font-size: 16px;
  outline: none;
  color-scheme: dark;
  border-radius: 0;
  width: 100%;
}

.form textarea { resize: vertical; }

.form input::placeholder,
.form textarea::placeholder { color: #6F6B65; }

.form input:focus,
.form textarea:focus { border-bottom-color: var(--fg); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip { position: relative; cursor: pointer; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip span {
  display: inline-block;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(242, 240, 236, .3);
  color: var(--fg);
  transition: background .2s, color .2s, border-color .2s;
}

.chip input:checked + span { background: var(--fg); color: var(--bg); }

.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

.chip:hover span { border-color: var(--fg); }

.form-submit { grid-column: 1 / -1; justify-self: start; }

.form-note { margin: 0; font-size: 13px; color: var(--fg-mute); }

.form-note.is-error { color: var(--accent); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done {
  border: 1px solid rgba(242, 240, 236, .2);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.form-done-title {
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.form-error {
  border: 1px solid rgba(229, 50, 45, .5);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  color: #F08580;
}

/* --------------------------------------------------------------- подвал */

.site-footer { border-top: 1px solid rgba(242, 240, 236, .1); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-mute);
}

/* --------------------------------------------------------------- модалки */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 5, 5, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}

.modal[hidden] { display: none; }

.modal-backdrop { position: absolute; inset: 0; }

.modal-box {
  position: relative;
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-box-wide { width: min(1200px, 100%); }

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

.modal-close {
  cursor: pointer;
  font-size: 14px;
  color: var(--fg-dim);
  padding: 8px 12px;
  border: 1px solid rgba(242, 240, 236, .22);
  border-radius: 999px;
  background: none;
  white-space: nowrap;
}

.modal-close:hover { color: var(--fg); border-color: var(--fg); }

.modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 78vh;
  background: var(--bg-card);
}

.modal-frame img,
.modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

/* ------------------------------------------------------------- адаптив */

@media (max-width: 1080px) {
  .hero-media { min-height: clamp(420px, 60vw, 640px); }
}

@media (max-width: 860px) {
  .header-inner { gap: 16px; }

  .header-live, .header-cta { display: none; }

  .burger { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(10, 10, 10, .97);
    border-bottom: 1px solid rgba(242, 240, 236, .1);
    display: none;
    white-space: normal;
  }

  .nav.is-open { display: flex; }

  .nav > a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav .nav-live, .nav .nav-cta { display: inline-flex; }
  .nav .nav-cta { display: inline-block; padding: 16px 0 4px; font-size: 17px; }

  .hero { grid-template-columns: 1fr; }

  .hero-media { min-height: 60vw; order: -1; }

  .hero-fade { display: none; }

  .stats { gap: 16px 28px; }

  .stat { flex: 1 1 140px; }

  .tv-row { grid-template-columns: 1fr; gap: 8px; }

  .tv-k { padding-top: 0; }

  .gallery-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .gallery-controls { width: 100%; justify-content: space-between; }
}

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }

  .field, .field-full { grid-column: 1 / -1; }

  .btn { width: 100%; text-align: center; }

  .hero-cta { flex-direction: column; align-items: stretch; }

  .gallery-btn { width: 42px; height: 42px; }

  .marquee-item { height: 96px; padding: 0 28px; }

  .label-line { display: none; }

  .label-row { gap: 12px; }

  .stat { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .gallery-slide.on { transform: none; }
}

@media print {
  .site-header, .site-footer, .form, .hero-media { display: none; }
}
