/* Твоя Новая История — Twinby × МКС */

:root {
  --cream: #FDFAF5;
  --navy: #152E4F;
  --yellow: #FFBB1D;
  --teal: #6BD8DB;
  --pink: #FD89EA;
  --grey: #A29D91;
  --navy-soft: rgba(21, 46, 79, 0.72);
  --head: 'Jost', 'Trebuchet MS', sans-serif;
  --body: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body { overflow-x: clip; }

a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(21, 46, 79, 0.1); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible, .tag:focus-visible { outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--head);
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  padding: 12px 20px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: 84px; }

/* ---------- Типографика ---------- */

.section-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-align: center;
  text-wrap: balance;
  margin-bottom: 18px;
}

.section-lead {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--navy-soft);
}

.bracket-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-align: center;
  margin-bottom: 22px;
}

.bracket-kicker .br {
  font-size: 1.9em;
  font-weight: 500;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-0.06em);
}

/* letter-spacing оставляет хвостовой пробел после последней буквы (0.22em текста);
   margin считается в em скобки (1.9x), поэтому -0.22/1.9 */
.bracket-kicker .br:last-child { margin-left: -0.115em; }

.bracket-kicker-dark .br { color: var(--pink); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 32px;
  border: 2px solid var(--navy);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }

.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--pink); border-color: var(--pink); }

.btn-small { padding: 10px 22px; font-size: 13px; }

/* ---------- Хедер ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 46, 79, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--grey);
  flex-shrink: 0;
}

/* Без flex-shrink: 0 картинки сплющивает по ширине при нехватке места
   (высота фиксирована) и лого наезжает на кнопку */
.header-twinby { height: 21px; width: auto; flex-shrink: 0; }
.header-mks { height: 30px; width: auto; flex-shrink: 0; }
.header-x { font-family: var(--head); font-size: 14px; color: var(--grey); flex-shrink: 0; }
.header-inner > .btn { flex-shrink: 0; white-space: nowrap; }

.header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  font-family: var(--head);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: var(--navy);
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--yellow); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-logo {
  max-width: 760px;
  margin: 0 auto 34px;
}

/* Леттеринг несимметричен (росчерк «История-» улетает вправо):
   оптическая компенсация, чтобы лого не казалось сдвинутым вправо */
.hero-logo img { transform: translateX(-0.9%); }

.hero-sub {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: clamp(17px, 2.2vw, 20px);
}

.hero-sub strong { white-space: nowrap; }

.hero-dates {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(14px, 1.7vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy-soft);
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-char {
  position: absolute;
  bottom: 24px;
  height: clamp(200px, 24vw, 320px);
  width: auto;
  z-index: 1;
  animation: char-float 5.5s ease-in-out infinite;
}

.hero-char-left { left: max(-30px, 2vw); }
.hero-char-right { right: max(-30px, 2vw); animation-delay: 2.2s; animation-duration: 6.5s; }

@keyframes char-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

/* Каскадный вход hero при загрузке.
   Лого (LCP-элемент) НЕ анимируем по opacity — иначе LCP съезжает
   на конец анимации; ему только лёгкий scale без прозрачности */
.hero-inner > :not(.hero-logo) {
  animation: rise-in 0.6s cubic-bezier(0.22, 0.8, 0.36, 1) backwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.45s; }

.hero-logo { animation: logo-in 0.7s cubic-bezier(0.22, 0.8, 0.36, 1); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { transform: scale(0.98); }
  to { transform: scale(1); }
}

/* ---------- О конкурсе ---------- */

.about { padding: clamp(56px, 7vw, 96px) 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  border: 3px solid var(--navy);
  border-radius: 26px;
  padding: 30px 28px;
  background: var(--cream);
}

.about-card-yellow { border-color: var(--yellow); }
.about-card-teal { border-color: var(--teal); }
.about-card-pink { border-color: var(--pink); }

.about-card h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.about-card p { color: var(--navy-soft); font-size: 16px; }

/* ---------- Как участвовать ---------- */

.how {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(64px, 8vw, 110px) 0;
}

.how .section-title { text-align: left; }

.how-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.how-head .bracket-kicker { justify-content: flex-start; text-align: left; margin-bottom: 14px; }

.how-spy { text-align: center; flex-shrink: 0; }
.how-spy img { height: clamp(150px, 16vw, 210px); width: auto; margin: 0 auto 10px; }

.how-spy figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.how-spy figcaption .br { font-size: 1.6em; line-height: 1; letter-spacing: 0; transform: translateY(-0.06em); }
.how-spy figcaption .br:last-child { margin-left: -0.1em; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.step {
  border: 2px solid var(--cream);
  border-radius: 26px;
  padding: 30px 28px;
}

.step-yellow { border-color: var(--yellow); }
.step-yellow .step-num { color: var(--yellow); background-image: radial-gradient(rgba(255, 187, 29, 0.5) 1px, transparent 1.5px); }
.step-teal { border-color: var(--teal); }
.step-teal .step-num { color: var(--teal); background-image: radial-gradient(rgba(107, 216, 219, 0.5) 1px, transparent 1.5px); }
.step-pink { border-color: var(--pink); }
.step-pink .step-num { color: var(--pink); background-image: radial-gradient(rgba(253, 137, 234, 0.5) 1px, transparent 1.5px); }
.step-cream { border-color: rgba(253, 250, 245, 0.6); }
.step-cream .step-num { color: var(--cream); background-image: radial-gradient(rgba(253, 250, 245, 0.4) 1px, transparent 1.5px); }

.step-num {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  padding: 8px 6px;
  margin-bottom: 16px;
  background-size: 7px 7px;
  background-position: 0 0;
}

.step h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.step p { color: rgba(253, 250, 245, 0.78); font-size: 16px; }

.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 16px;
  color: rgba(253, 250, 245, 0.85);
}

.age-badge span {
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  border-radius: 12px;
  padding: 6px 12px;
}

/* ---------- Гайд с видео ---------- */

.guide { padding: clamp(56px, 7vw, 96px) 0; }

.guide-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.video-player {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 3px solid var(--navy);
  border-radius: 26px;
  overflow: hidden;
  background: var(--navy);
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(21, 46, 79, 0.15) 0%, rgba(21, 46, 79, 0.55) 100%);
  border: 0;
  cursor: pointer;
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  transition: opacity 0.25s ease, background 0.25s ease;
}

.video-play:hover { background: linear-gradient(180deg, rgba(21, 46, 79, 0.1) 0%, rgba(21, 46, 79, 0.45) 100%); }
.video-play:hover .video-play-icon { transform: scale(1.06); background: var(--pink); }

.video-play-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--yellow);
  transition: transform 0.25s ease, background 0.25s ease;
  position: relative;
}

/* Треугольник play, оптически сдвинут вправо от центра круга */
.video-play-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--navy);
}

.video-player.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.rules {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* порядок чтения сверху вниз: 01-05 в левой колонке, 06-09 в правой */
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 20px 28px;
  counter-reset: rule;
}

.rule {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rule-num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  color: var(--yellow);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.rule:nth-child(3n+2) .rule-num { color: var(--teal); }
.rule:nth-child(3n) .rule-num { color: var(--pink); }

.rule p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
}

/* ---------- Номинации ---------- */

.nominations { padding: clamp(56px, 7vw, 96px) 0; }

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.tag {
  font-family: var(--head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tag:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.tag:active { transform: scale(0.96); }

.tag.is-copied {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy);
}

.nomination-special {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  border: 3px solid var(--pink);
  border-radius: 26px;
  padding: 30px 34px;
}

.nomination-special h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 8px;
}

.nomination-special p { color: var(--navy-soft); font-size: 16px; max-width: 520px; }

.tag-special { border-color: var(--pink); flex-shrink: 0; }
.tag-special:hover { background: var(--pink); color: var(--navy); }

/* ---------- Призовой фонд ---------- */

.prizes { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }

.prize-total {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(44px, 8.5vw, 96px);
  line-height: 1.05;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.prize-total .rub {
  display: block;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--yellow);
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.prize-card {
  border-radius: 26px;
  padding: 32px 30px;
  border: 3px solid var(--navy);
}

.prize-main {
  grid-column: span 3;
  background: var(--yellow);
  border-color: var(--yellow);
  text-align: center;
  padding: 44px 30px;
}

.prize-main .prize-sum { font-size: clamp(38px, 6vw, 64px); }

.prize-teal { border-color: var(--teal); }
.prize-pink { border-color: var(--pink); }
.prize-navy { background: var(--navy); color: var(--cream); }

.prize-label {
  font-family: var(--head);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.75;
}

.prize-sum {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.prize-note {
  text-align: center;
  font-size: 17px;
  color: var(--navy-soft);
}

/* ---------- Победители ---------- */

.winners { padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); }

.winner-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 44px;
}

.winner a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  border: 3px solid var(--teal);
  border-radius: 26px;
  padding: 26px 28px;
  text-decoration: none;
  color: var(--navy);
  background: var(--cream);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.winner:nth-child(2n) a { border-color: var(--pink); }

.winner a:hover {
  transform: translateY(-3px);
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.winner-name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.winner-story {
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy-soft);
  transition: color 0.18s ease;
}

.winner a:hover .winner-story { color: rgba(253, 250, 245, 0.8); }

.winner-link {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
  transition: color 0.18s ease;
}

.winner-link::after { content: ' →'; }
.winner a:hover .winner-link { color: var(--yellow); }

.podcast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.podcast-text {
  max-width: 520px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--navy-soft);
}

/* ---------- Паттерн-полоса ---------- */

.pattern-band {
  height: clamp(130px, 16vw, 210px);
  background: url('../assets/pattern-multi.png') center / cover;
}

/* ---------- Финал ---------- */

.final {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: clamp(72px, 9vw, 130px) 0;
  overflow: hidden;
}

.final-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.final-logo {
  max-width: 480px;
  margin: 0 auto 36px;
  transform: translateX(-0.9%);
}

.final-text {
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(253, 250, 245, 0.82);
}

.final-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

.final-char {
  position: absolute;
  bottom: -20px;
  left: max(-20px, 3vw);
  height: clamp(180px, 20vw, 280px);
  width: auto;
  opacity: 0.9;
  z-index: 1;
}

/* ---------- Футер ---------- */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(253, 250, 245, 0.14);
  padding: 36px 0 calc(44px + env(safe-area-inset-bottom, 0px));
  color: rgba(253, 250, 245, 0.65);
  /* Закрашивает iOS-отскок под документом цветом футера
     (тень не влияет на layout и скролл) */
  box-shadow: 0 60vh 0 60vh var(--navy);
}

.footer-inner { text-align: center; }

.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-twinby { height: 22px; width: auto; opacity: 0.9; }
.footer-mks { height: 44px; width: auto; transform: translateY(-2px); }
.footer-x { font-family: var(--head); font-size: 15px; color: rgba(253, 250, 245, 0.5); }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(253, 250, 245, 0.28);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(253, 250, 245, 0.82);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover {
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.footer-social svg { flex-shrink: 0; }

.footer-meta { font-size: 14px; margin-bottom: 8px; }

.footer-meta a { color: var(--teal); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

.footer-age {
  display: inline-block;
  margin-left: 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 12px;
  border: 1.5px solid rgba(253, 250, 245, 0.5);
  border-radius: 8px;
  padding: 2px 8px;
  vertical-align: 1px;
}

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  background: var(--navy);
  color: var(--cream);
  font-family: var(--head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 12px 26px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
}

.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
  .hero-char, .hero-inner > *, .hero-logo { animation: none; }
  .btn, .tag, .hero-char { transition: none; }
}

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

@media (max-width: 1100px) {
  .hero-char { display: none; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .about-grid { grid-template-columns: 1fr; }
  .prize-grid { grid-template-columns: 1fr 1fr; }
  .prize-main { grid-column: span 2; }
  .how-spy { display: none; }
  .how .section-title, .how-head .bracket-kicker { text-align: center; }
  .how-head { justify-content: center; }
}

@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; justify-items: center; }
  .video-player { width: 100%; max-width: 320px; }
  .rules { max-width: 480px; }
}

@media (max-width: 760px) {
  /* Новое лого МКС шире прежнего — ужимаем шапку, чтобы бренд и кнопка не сходились */
  .site-header .container { padding: 0 16px; }
  .header-inner { gap: 10px; }
  .header-brand { gap: 7px; }
  .header-twinby { height: 18px; }
  .header-mks { height: 26px; }
  .header-x { font-size: 12px; }
  .header-inner > .btn-small { padding: 9px 16px; font-size: 12px; letter-spacing: 0.05em; }
}

@media (max-width: 400px) {
  .header-brand { gap: 6px; }
  .header-twinby { height: 17px; }
  .header-mks { height: 25px; }
}

@media (max-width: 350px) {
  .header-twinby { height: 15px; }
  .header-mks { height: 21px; }
  .header-inner > .btn-small { padding: 8px 13px; font-size: 11px; }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; gap: 16px; }
  .winner-list { grid-template-columns: 1fr; }
  .nomination-special { flex-direction: column; text-align: center; align-items: center; }
  .prize-grid { grid-template-columns: 1fr; }
  .prize-main { grid-column: span 1; }
  .final-char { display: none; }
  .final-logo { max-width: 320px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-logo { margin-bottom: 26px; }
  .tags { gap: 10px; }
  .tag { font-size: 14px; padding: 9px 16px; }
}
