/* ===== Base ===== */
:root {
  --bg: #07080c;
  --bg-alt: #0b0d15;
  --card: #11141e;
  --line: #1c1f2b;
  --field-line: #2a2e3d;
  --text: #e6e9f0;
  --text-strong: #f1f3f7;
  --text-body: #c3c8d4;
  --text-muted: #a3a9b7;
  --text-dim: #868c9a;
  --text-faint: #575c69;
  --accent: #8db8ec;
  --gold: #c9a24a;
  --error: #f0a58a;

  --f-display: Unbounded, sans-serif;
  --f-body: Manrope, sans-serif;
  --f-ui: 'Golos Text', sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 128px);
}

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

html { scroll-behavior: smooth; }

/* Отступ для якорей, чтобы заголовок не прятался под липкой шапкой */
[id] { scroll-margin-top: 81px; }
@media (max-width: 699px) { [id] { scroll-margin-top: 106px; } }

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

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

img { display: block; }

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.header--sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 8, 12, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .04em;
}
.brand__name span { font-weight: 400; color: var(--text-dim); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  white-space: nowrap;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
}
.nav a, .back-link { color: var(--text-muted); }
.nav a:hover, .back-link:hover { color: var(--accent); }

@media (max-width: 699px) {
  .header--sticky { flex-wrap: wrap; row-gap: 14px; padding-top: 16px; padding-bottom: 14px; }
  .header--sticky .nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 24px; padding-left: 2px; font-size: 15px; }
}
@media (max-width: 340px) {
  .header--sticky .nav { justify-content: space-between; gap: 8px; }
}

.back-link {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--text); color: var(--bg); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: var(--accent); color: var(--bg); }

/* ===== Hero ===== */
.page { min-height: 100vh; background: var(--bg); overflow: hidden; }

.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Скрываем системную кнопку «Play» Safari/iOS, если autoplay заблокирован */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-overlay-play-button,
.hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,12,.98) 0%, rgba(7,8,12,.9) 35%, rgba(7,8,12,.65) 65%, rgba(7,8,12,.45) 100%),
    linear-gradient(0deg, #07080c 0%, transparent 30%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 160px) var(--gutter) clamp(64px, 9vw, 128px);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: end;
  margin-top: 56px;
}
.hero__text { display: flex; flex-direction: column; gap: 16px; max-width: 580px; }
.hero__lead {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
  text-wrap: balance;
}
.hero__sub {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.section-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.ornament { display: flex; align-items: center; gap: 12px; }
.ornament__line { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament__diamond { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }

.section-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.section-title span { color: var(--gold); }
.section-sub { margin: 0; font-size: 17px; color: var(--text-muted); }

/* ===== Cards ===== */
.card {
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--card);
  border-radius: 8px;
}
.card__title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.3;
  color: var(--text-strong);
}
.card__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}

/* Gold-framed icon badge */
.badge {
  flex: none;
  display: flex;
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 9px;
  background: linear-gradient(145deg, #f6e3a1 0%, #b8862f 30%, #5e3f12 55%, #d9b05a 80%, #7a5418 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 1px var(--bg);
}
.badge__inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 38%, #33467e 0%, #141b3a 55%, #05060c 100%);
  box-shadow: inset 0 0 14px rgba(0,0,0,.85);
}
.badge svg { filter: drop-shadow(0 0 5px rgba(255,200,90,.4)); }

/* Conditions */
.conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.condition { display: flex; flex-direction: column; gap: 20px; }
.condition__body { display: flex; flex-direction: column; gap: 8px; }
.condition__key {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--gold);
}

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.advantage { display: flex; align-items: flex-start; gap: 24px; }
.advantage__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 4px; }
.advantage .card__title { text-wrap: balance; }
.advantage .card__text { max-width: 46ch; }

/* ===== Hiring timeline ===== */
.section--hiring {
  max-width: 1120px;
  align-items: center;
  padding-left: clamp(16px, 5vw, 64px);
  padding-right: clamp(16px, 5vw, 64px);
}

.timeline { position: relative; width: 100%; }
.timeline__list { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-auto-rows: 1fr; }
.timeline__path {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 150px;
  height: 100%;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}
.timeline__glow { stroke: rgba(201,162,74,.12); stroke-width: 14; }
.timeline__dash { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 9; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: center;
  padding: 14px 0;
}
.step__card {
  grid-row: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  background: var(--card);
  border-radius: 8px;
}
.step--left .step__card { grid-column: 1; justify-self: end; text-align: right; }
.step--right .step__card { grid-column: 3; justify-self: start; }
.step__label {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--gold);
}

.step__marker {
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__marker::before,
.step__marker::after {
  content: '';
  position: absolute;
  transform: rotate(45deg);
}
.step__marker::before {
  inset: 9px;
  background: linear-gradient(145deg, #f6e3a1 0%, #b8862f 35%, #5e3f12 65%, #d9b05a 100%);
  box-shadow: 0 0 0 4px var(--bg), 0 0 26px rgba(201,162,74,.35);
}
.step__marker::after {
  inset: 13px;
  background: radial-gradient(circle at 50% 38%, #33467e 0%, #141b3a 60%, #05060c 100%);
}
.step__num {
  position: relative;
  z-index: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  color: #f3d48a;
}

@media (max-width: 759px) {
  .timeline__path { left: 0; width: 60px; transform: none; }
  .timeline__glow { stroke-width: 12; }
  .timeline__dash { stroke-dasharray: 2 8; }

  .step { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
  .step__marker { grid-column: 1; width: 56px; height: 56px; }
  .step__marker::before { box-shadow: 0 0 0 4px var(--bg), 0 0 22px rgba(201,162,74,.35); }
  .step__num { font-size: 14px; }
  .step:nth-child(n) .step__card {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
    gap: 6px;
    padding: 18px 20px;
    text-align: left;
  }
  .step__label { display: none; }
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  background-image: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(141,184,236,.10) 0%, transparent 70%);
}
.cta__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta__logo { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 32px rgba(141,184,236,.22); }
.cta__title {
  margin: 0;
  max-width: 34ch;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cta__text {
  margin: 0;
  max-width: 620px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}
.cta .btn { margin-top: 8px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.footer__brand img { width: 24px; height: 24px; border-radius: 6px; flex: none; }

/* ===== Inner pages (form, thanks) ===== */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell--form { background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(141,184,236,.08) 0%, transparent 70%), var(--bg); }
.shell--thanks { background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(141,184,236,.10) 0%, transparent 70%), var(--bg); }

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) 20px;
}
.main--center { align-items: center; }

/* Form */
.form { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.form__sections { display: contents; }
.form__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.form__eyebrow { font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--gold); }
.form__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.form__note { font-size: 16px; color: var(--text-dim); }

.fieldset {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--card);
  border-radius: 12px;
}
.fieldset__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold);
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-size: 17px; font-weight: 700; color: var(--text-strong); line-height: 1.4; }
.field__star { color: var(--accent); }
.field__hint { font-size: 15px; color: var(--text-dim); margin-top: -4px; }

.input, .textarea {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color .15s;
}
.input { height: 54px; padding: 0 16px; }
.textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  background: var(--bg);
  color: var(--text-body);
  border: 1px solid var(--field-line);
}
.chip[aria-pressed="true"] {
  background: rgba(141,184,236,.14);
  color: var(--text);
  border-color: var(--accent);
}

.checklist { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--field-line);
}
.check__box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--bg);
  background: transparent;
  border: 1px solid var(--text-faint);
}
.check__text { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.check__season { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.check__name { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; }
.check[aria-pressed="true"] { background: rgba(141,184,236,.10); border-color: var(--accent); }
.check[aria-pressed="true"] .check__box { background: var(--accent); border-color: var(--accent); }
.check[aria-pressed="true"] .check__box::before { content: '✓'; }

.form__error { font-size: 16px; color: var(--error); }
.form__error:empty { display: none; }

.btn--submit {
  align-self: flex-start;
  height: 60px;
  padding: 0 32px;
  text-transform: none;
  letter-spacing: .02em;
}
.btn--submit:disabled { cursor: progress; }

/* Thanks */
.thanks {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background: var(--card);
  border-radius: 12px;
}
.thanks__logo { width: 80px; height: 80px; border-radius: 16px; box-shadow: 0 0 40px rgba(141,184,236,.3); }
.thanks__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.thanks__text { margin: 0; max-width: 40ch; font-size: 18px; line-height: 1.6; color: var(--text-body); }
.thanks .btn { padding: 18px 30px; margin-top: 8px; text-transform: none; letter-spacing: normal; }
