/* =========================================================
   Слушание бизнес-идей · Satbayev University
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f5f3;
  --muted: #a4a4ab;

  --orange: #ff6a13;
  --orange-2: #ff8b3d;
  --orange-soft: rgba(255, 106, 19, 0.14);
  --orange-glow: rgba(255, 106, 19, 0.45);

  --paper: #f4f2ee;
  --paper-2: #ffffff;
  --ink: #121214;
  --ink-muted: #5d5d66;
  --ink-line: #e2dfd9;
  --danger: #e5484d;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Print", cursive;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.accent { color: var(--orange); }

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--lg { padding: 18px 30px; font-size: 15px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--orange-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-line);
}
.btn--ghost-dark:hover { border-color: var(--orange); color: var(--orange); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 11, 0.88); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand__logo { height: 44px; width: auto; }
.brand__divider { width: 1px; height: 34px; background: var(--line-strong); }
.brand__unit {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(255, 106, 19, 0.22), transparent 60%),
    radial-gradient(600px 420px at 8% 100%, rgba(255, 106, 19, 0.10), transparent 70%),
    linear-gradient(180deg, #0d0d0f 0%, var(--bg) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}

.hero__words {
  position: absolute;
  top: 40px;
  right: -20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(255, 106, 19, 0); }
}

.hero__title {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero__lead {
  margin-top: 28px;
  max-width: 600px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  color: #e3e3e6;
}
.hero__title span { white-space: nowrap; }

.hero__lead .script {
  position: relative;
  display: inline-block;
  font-size: 1.85em;
  line-height: 1.1;
  margin-top: 2px;
}
.swoosh {
  position: absolute;
  left: -4px;
  right: -12px;
  bottom: -8px;
  width: calc(100% + 16px);
  height: 14px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(21, 21, 23, 0.7);
  backdrop-filter: blur(6px);
}
.chip__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 20px;
}
.chip__text { display: flex; flex-direction: column; line-height: 1.25; }
.chip__text b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
}
.chip__text small { margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* --- Визуал: лестница к двери --- */
.hero__visual {
  position: relative;
  padding-top: 24px;
}

.tags {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stairs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stairs__door {
  position: relative;
  width: 30%;
  aspect-ratio: 0.52;
  margin-right: 5%;
  border: 6px solid #1b1b1d;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #fffaf3 0%, #ffd6ad 35%, #ff8a3d 78%, #ff6a13 100%);
  box-shadow:
    0 0 40px 8px rgba(255, 170, 100, 0.55),
    0 0 120px 50px rgba(255, 106, 19, 0.32),
    0 0 260px 120px rgba(255, 106, 19, 0.14);
}
.stairs__door-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
  animation: flicker 5s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.stairs__bulb {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 34%;
  height: auto;
  aspect-ratio: 1;
  transform: translateX(-50%);
  fill: none;
  stroke: rgba(120, 45, 0, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stairs__steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.stairs__steps li {
  --w: calc(100% - var(--i) * 11%);
  position: relative;
  width: var(--w);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: linear-gradient(180deg, #1e1e21 0%, #121214 100%);
  border-top: 2px solid var(--orange);
  box-shadow: 0 -6px 18px -6px var(--orange-glow);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  animation: step-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(0.15s + (4 - var(--i)) * 0.1s);
}
.stairs__steps li:first-child {
  background: linear-gradient(180deg, #3a2213 0%, #1a1310 45%, #121214 100%);
}
.stairs__steps li b { color: var(--orange); font-weight: 900; }
@keyframes step-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__caption {
  margin-top: 18px;
  text-align: right;
  font-size: 30px;
  transform: rotate(-3deg);
}

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }

.section__head { max-width: 760px; margin-bottom: 48px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.kicker::before {
  content: "";
  width: 24px; height: 2px;
  background: currentColor;
}

.section__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.underlined {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 92%;
  padding-bottom: 4px;
}

/* --- Условия --- */
.features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  position: relative;
  padding: 26px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 19, 0.5);
  box-shadow: 0 20px 40px -24px var(--orange-glow);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 24px -6px var(--orange-glow);
}
.feature h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.feature p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* --- Шаги --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.step__num {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 106, 19, 0.45);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 22px;
}
.step h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* --- Промо-блок --- */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
  padding: 44px 48px;
  border-radius: 28px;
  background:
    radial-gradient(500px 300px at 0% 100%, rgba(255, 106, 19, 0.22), transparent 70%),
    linear-gradient(135deg, #18120e 0%, #111113 60%);
  border: 1px solid rgba(255, 106, 19, 0.28);
  overflow: hidden;
}
.promo__art { color: var(--orange); opacity: 0.9; }
.promo__art svg { width: 100%; height: auto; filter: drop-shadow(0 0 10px rgba(255, 106, 19, 0.45)); }
.promo__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}
.promo__text b { font-weight: 900; }
.promo__text .accent:last-child {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
}

/* --- Дата и место --- */
.event {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 48px;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.event::before {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 19, 0.18), transparent 70%);
}
.event .kicker { color: var(--ink-muted); }
.event__day {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--orange);
}
.event__time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.event__time .icon { color: var(--orange); }
.event__place {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 40px;
  border-left: 2px solid var(--ink-line);
  font-size: 18px;
  line-height: 1.4;
}
.event__place b { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.event__pin {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-size: 24px;
  flex-shrink: 0;
}
.event__countdown { justify-self: end; position: relative; }
.event__countdown-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-align: center;
}
.countdown {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.countdown div {
  min-width: 76px;
  padding: 12px 8px 10px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.countdown b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown.is-over { display: none; }

/* ---------- Форма ---------- */
.apply {
  position: relative;
  margin-top: 56px;
  padding: 140px 0 110px;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%);
}

.apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.apply__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.apply__lead { margin-top: 18px; font-size: 17px; color: var(--ink-muted); max-width: 420px; }

.checklist { margin-top: 28px; display: grid; gap: 14px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}
.checklist .icon {
  margin-top: 1px;
  padding: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  stroke-width: 3;
}

.apply__reminder {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  line-height: 1.35;
}
.apply__reminder .icon { font-size: 26px; color: var(--orange); }
.apply__reminder b { font-family: var(--font-display); font-weight: 800; }

.form-card {
  position: relative;
  padding: 40px;
  border-radius: 24px;
  background: var(--paper-2);
  box-shadow: 0 30px 80px -40px rgba(20, 10, 0, 0.35), 0 0 0 1px var(--ink-line);
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.form { display: grid; gap: 20px; }
.form[hidden] { display: none; }
.form__row { display: grid; gap: 20px; }
.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--group { border: 0; padding: 0; margin: 0; }
.field__label {
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.field__label i { font-style: normal; color: var(--orange); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius-sm);
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23121214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select:invalid { color: #9a9aa2; }
.field select option { color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: #a5a5ad; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cfcbc4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.field__error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.field.is-invalid .field__error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.pill span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1.5px solid var(--ink-line);
  border-radius: 999px;
  background: #fbfaf8;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}
.pill:hover span { border-color: #cfcbc4; }
.pill input:checked + span {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--orange-soft); }
.field.is-invalid .pill span { border-color: rgba(229, 72, 77, 0.6); }

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

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid #c9c5be;
  border-radius: 6px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.consent input:checked {
  border-color: var(--orange);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.consent input:focus-visible { box-shadow: 0 0 0 4px var(--orange-soft); outline: none; }
.consent.is-invalid input { border-color: var(--danger); }
.consent.is-invalid span { color: var(--danger); }

.form button[type="submit"] { margin-top: 4px; }
.form button[type="submit"]:disabled { opacity: 0.7; cursor: progress; transform: none; }
.form.is-loading .btn__label::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.form.is-loading button[type="submit"] .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { min-height: 0; font-size: 14px; font-weight: 600; text-align: center; }
.form__status.is-error { color: var(--danger); }

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0 8px;
}
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success__icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 36px;
  box-shadow: 0 0 0 10px var(--orange-soft);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.success__icon .icon { stroke-width: 3; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.success h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  text-transform: uppercase;
}
.success p { margin-top: 10px; color: var(--ink-muted); }
.success__when {
  margin-top: 18px !important;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink) !important;
}
.success__when b { font-family: var(--font-display); font-weight: 800; }
.success__script { font-size: 32px; color: var(--orange) !important; margin-top: 16px !important; transform: rotate(-2deg); }
.success .btn { margin-top: 24px; }

/* ---------- Подвал ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand p {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 200px;
  line-height: 1.4;
}
.footer__motto {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.footer__motto .script { color: #fff; font-size: 36px; line-height: 1; transform: rotate(-4deg); }
.footer__motto .script .accent { color: var(--orange); }
.footer__trend { width: 44px; height: 44px; color: var(--orange); stroke-width: 1.6; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer__words { letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; font-size: 12px; }

/* ---------- Мобильная кнопка ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 16px 24px;
  font-size: 14px;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mobile-cta.is-visible { transform: translateY(0); }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1240px) {
  .event { grid-template-columns: auto 1fr; }
  .event__countdown { grid-column: 1 / -1; justify-self: stretch; }
  .countdown div { flex: 1; }
  .event__countdown-label { text-align: left; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header__inner { justify-content: space-between; }

  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; width: 100%; margin: 0 auto; }

  .promo { grid-template-columns: 1fr; padding: 36px 32px; gap: 28px; }
  .promo__art { max-width: 420px; }

  .apply__grid { grid-template-columns: 1fr; gap: 40px; }
  .apply__intro { position: static; }
  .apply { padding-top: 110px; clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .brand { gap: 12px; }
  .brand__logo { height: 34px; }
  .brand__divider { height: 28px; }
  .brand__unit { font-size: 9.5px; }
  .header .btn--sm { display: none; }

  .hero__title { margin-top: 22px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .event-chips { flex-direction: column; }
  .chip { width: 100%; }

  .tags { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 28px; }
  .hero__visual { padding-top: 0; }
  .stairs__steps li { height: 52px; padding: 0 12px; font-size: 11px; gap: 8px; letter-spacing: 0.05em; }
  .stairs__steps li { --w: calc(100% - var(--i) * 9%); }
  .stairs__door { width: 34%; margin-right: 6%; }
  .hero__caption { font-size: 26px; }

  .section { padding: 72px 0; }
  .section--tight { padding: 40px 0; }
  .section__head { margin-bottom: 32px; }

  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 20px;
  }
  .feature__icon { grid-row: span 2; width: 52px; height: 52px; font-size: 22px; }
  .feature h3 { margin-top: 2px; }
  .feature p { margin-top: 4px; }

  .steps { grid-template-columns: 1fr; gap: 12px; }

  .promo { padding: 28px 22px; border-radius: 22px; }

  .event { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 22px; border-radius: 22px; }
  .event__place { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 2px solid var(--ink-line); font-size: 16px; }
  .event__place b { white-space: normal; }
  .countdown { gap: 6px; }
  .countdown div { min-width: 0; padding: 10px 4px 8px; }
  .countdown b { font-size: 24px; }
  .countdown span { font-size: 10px; letter-spacing: 0.02em; }

  .apply { margin-top: 32px; padding: 88px 0 96px; clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); }
  .form-card { padding: 28px 20px; border-radius: 20px; }
  .form-card::before { left: 20px; right: 20px; }
  .form__row--2 { grid-template-columns: 1fr; }

  .footer { padding-bottom: 104px; }
  .footer__brand { flex-wrap: wrap; }
  .footer__motto .script { font-size: 30px; }

  .mobile-cta { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stairs__steps li { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
