@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink-900: #0B1F26;
  --ink-800: #0F2830;
  --teal-700: #1E4D5C;
  --teal-500: #2E8C84;
  --teal-400: #3FB5A6;
  --mint: #3FD6C1;
  --sky: #7FB8C6;
  --bg: #F5F4F0;
  --white: #FFFFFF;
  --text: #15171C;
  --text-2: #4A4F57;
  --text-3: #5F646B;
  --line: #E4E1D8;
  --line-2: #D6D3CA;
  --on-dark-2: #B4C3C7;
  --on-dark-3: #C9D6D9;
  --on-teal: #D3E0E3;
  --muted-dark: #8FA9AF;
  --error: #FFD2C2;

  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Onest', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; min-width: 0; }
a { color: var(--text); }
a:hover { color: var(--teal-700); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 80px; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 100px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-mint { background: var(--mint); color: var(--ink-900); border: 0; }
.btn-mint:hover { background: var(--white); color: var(--ink-900); }
.btn-lg { height: 58px; padding: 0 32px; font-size: 17px; }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--white);
  font-weight: 500;
  padding: 0 28px;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: .7; cursor: default; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo-text { font-size: 16px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: rgba(11,31,38,0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}
.header-row {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.header .logo, .header .logo:hover { color: var(--white); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-dark-3); transition: color .2s; }
.nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { height: 44px; padding: 0 22px; font-size: 15px; flex-shrink: 0; }
.burger {
  display: none;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }
.menu {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px var(--gutter) 24px;
  flex-direction: column;
  background: var(--ink-900);
  display: none;
}
.menu.is-open { display: flex; }
.menu a:not(.btn) {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}
.menu a:not(.btn):nth-last-child(2) { border-bottom: 0; }
.menu .btn { margin-top: 16px; height: 54px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; background: var(--ink-900); color: var(--white); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000, transparent 75%);
  animation: grid-move 12s linear infinite;
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-glow--mint {
  width: 720px; height: 720px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(63,214,193,0.22), rgba(63,214,193,0) 65%);
  animation: drift 18s ease-in-out infinite;
}
.hero-glow--teal {
  width: 560px; height: 560px; left: -200px; bottom: -260px;
  background: radial-gradient(circle, rgba(30,77,92,0.7), rgba(30,77,92,0) 65%);
}
.hero-inner {
  position: relative;
  padding-top: clamp(128px, 14vw, 176px);
  padding-bottom: clamp(56px, 7vw, 88px);
  display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px);
}
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 span { color: var(--mint); }
.lead {
  max-width: 600px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-mint:hover { transform: translateY(-2px); }
.hero-cta .btn-outline { height: 58px; font-size: 17px; }

.orbit-wrap {
  flex: 0 1 420px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.ring { position: relative; width: min(100%, 340px); aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-arcs { transform-origin: 170px 170px; animation: spin 90s linear infinite; }
.ring-arcs circle { animation: draw 1.6s var(--ease) both; }
.ring-arcs circle:nth-child(1) { animation-delay: .2s; }
.ring-arcs circle:nth-child(2) { animation-delay: .45s; }
.ring-arcs circle:nth-child(3) { animation-delay: .7s; }
.ring-ticks { transform-origin: 170px 170px; animation: spin 140s linear infinite reverse; }
.ring-dot { animation: pulse 2.4s ease-in-out infinite; }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center;
}
.ring-center b { font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.ring-center span { font-size: 14px; color: var(--on-dark-2); }
.legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  font-size: 14px; color: var(--on-dark-3);
  margin: 0; padding: 0; list-style: none;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; background: var(--ink-800); }
.stat b {
  font-size: clamp(40px, 4vw, 54px); line-height: 1; font-weight: 600; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat b.accent { color: var(--mint); }
.stat span { font-size: 15px; color: var(--on-dark-2); }

/* ---------- Section heads ---------- */
.section-inner {
  padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px);
}
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px;
}
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section-head p { max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--text-3); }

/* ---------- Directions ---------- */
.directions { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  min-height: 380px; padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-decoration: none;
  color: var(--text);
  transition: background .35s, color .35s, transform .35s, border-color .35s;
}
.card:hover { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); transform: translateY(-6px); }
.card:hover .card-num { color: var(--white); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; transition: color .35s; }
.card-arrow {
  width: 52px; height: 52px; border-radius: 100px;
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;
}
.card-body { display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.card p { font-size: 17px; line-height: 1.55; opacity: 0.78; }

/* ---------- Approach ---------- */
.approach { background: var(--white); }
.approach .section-inner { gap: clamp(48px, 6vw, 80px); }
.approach .h2 { max-width: 720px; }
.timeline { position: relative; }
.timeline-line {
  position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.timeline-line i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--teal-700), var(--mint));
  transition: width 1.8s var(--ease);
}
.js .timeline:not(.is-on) .timeline-line i { width: 0; }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px;
  margin: 0; padding: 0; list-style: none;
}
.step { display: flex; flex-direction: column; gap: 28px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink-900); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 0 0 8px var(--white);
}
.step div { display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 16px; line-height: 1.55; color: var(--text-3); }

/* ---------- Contacts ---------- */
.contacts { padding: clamp(12px, 2vw, 24px); }
.contacts-card {
  position: relative; overflow: hidden; overflow: clip;
  max-width: 1392px; margin: 0 auto;
  background: var(--teal-700);
  border-radius: clamp(20px, 2.4vw, 32px);
  color: var(--white);
}
.contacts-glow {
  position: absolute; width: 640px; height: 640px; right: -200px; top: -260px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(63,214,193,0.35), rgba(63,214,193,0) 65%);
}
.contacts-inner {
  position: relative;
  padding: clamp(36px, 6vw, 96px);
  display: flex; flex-wrap: wrap; gap: 56px 64px;
}
.contacts-info {
  flex: 1 1 360px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.contacts-info > div { display: flex; flex-direction: column; gap: 20px; }
.contacts-info p { max-width: 420px; font-size: 18px; line-height: 1.55; color: var(--on-teal); }
.contacts-list { display: flex; flex-direction: column; gap: 14px; }
.contacts-list a { color: var(--white); text-decoration: none; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; }
.contacts-list a:hover { color: var(--mint); }
.contacts-list address { font-style: normal; color: var(--on-teal); font-size: 16px; line-height: 1.5; }

.form, .form-success {
  flex: 1 1 440px; min-width: 0;
  background: rgba(11,31,38,0.3);
  border-radius: 24px;
}
.form {
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(255,255,255,0.12);
}
.form[hidden], .form-success[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--on-teal); }
.field input, .field textarea {
  height: 46px; padding: 0;
  border: 0; border-bottom: 1px solid var(--muted-dark); border-radius: 0;
  background: transparent;
  font-size: 18px; font-family: inherit; color: var(--white);
  transition: border-color .2s;
}
.field textarea { height: auto; padding-top: 14px; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--mint); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dark); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.req { color: var(--mint); }
.error { font-size: 13px; color: var(--error); min-height: 0; }
.error:empty { display: none; }
.consent { display: flex; flex-direction: column; gap: 6px; }
.consent label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--on-teal); }
.consent input {
  width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--mint);
}
.consent a { color: var(--white); }
.consent a:hover { color: var(--mint); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .btn { height: 58px; padding: 0 40px; font-size: 17px; }
.form-status { font-size: 14px; line-height: 1.5; color: var(--error); }
.form-status:empty { display: none; }

.form-success {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  min-height: 360px; padding: 40px;
  border: 1px solid rgba(255,255,255,0.16);
}
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.form-success p { font-size: 17px; line-height: 1.55; color: var(--on-teal); }
.link-btn {
  align-self: flex-start; margin-top: 8px; padding: 0;
  border: 0; background: none; color: var(--white);
  font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer;
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px;
  display: flex; flex-direction: column; gap: 48px;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer .logo { flex: 1 1 280px; align-self: flex-start; }
.footer-col { flex: 0 1 220px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col:last-child { flex-basis: 260px; }
.footer-col a { text-decoration: none; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  font-size: 13px; line-height: 1.6; color: var(--text-3);
}
.footer-bottom > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--text-3); }
.footer-bottom p { max-width: 1000px; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(120px, 12vw, 160px); padding-bottom: var(--section-y); }
.legal-inner { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.legal .back { font-size: 15px; color: var(--teal-700); }
.legal-inner { gap: 20px; }
.legal h1 { hyphens: auto; overflow-wrap: break-word; }
.legal h2 {
  margin-top: 24px;
  font-size: clamp(22px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em;
}
.legal-meta { font-size: 15px !important; color: var(--text-3) !important; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal ul.legal-purposes {
  list-style: none; padding: 0; gap: 0;
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
}
.legal-purposes li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.legal-purposes li:last-child { border-bottom: 0; }
.legal-purposes b { font-weight: 600; color: var(--text); }
.legal-purposes span { font-size: 15px; color: var(--text-3); }
.legal a { color: var(--teal-700); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .card[data-reveal].is-visible:hover { transform: translateY(-6px); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.12); }
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes draw { from { stroke-dasharray: 0 var(--len); } }
@keyframes grid-move { to { background-position: 64px 64px; } }

/* ---------- Breakpoints ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1041px) {
  .menu.is-open { display: none; }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-line { display: none; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .card { min-height: 0; gap: 40px; padding: 28px; }
  .stat { padding: 22px 24px; }
  .ring { width: min(100%, 260px); }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .header .logo-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .timeline .timeline-line i { width: 100%; }
}
.page-legal .header { background: var(--ink-900); }
