@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400&family=Onest:wght@300;400;500&display=swap');

:root {
  --bg: #0f0b16;
  --bg2: #161020;
  --surface: #1c1528;
  --ink: #f2ecf8;
  --muted: #a598b6;
  --faint: #6f6380;
  --line: rgba(196, 168, 255, .14);
  --lilac: #c6a8ff;
  --violet: #8f5cff;
  --glow: linear-gradient(100deg, #e6d6ff 0%, #b48cff 45%, #8a5cf6 100%);
  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Onest', -apple-system, system-ui, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 400 11px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--lilac); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--lilac); opacity: .6; }
h1, h2, h3 { font-family: var(--display); font-weight: 200; line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-size: 19px; font-weight: 300; letter-spacing: 0; }
em { font-style: normal; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lilac); background: radial-gradient(circle at 30% 25%, rgba(180, 140, 255, .18), transparent 70%); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* шапка */
header { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.solid { background: rgba(15, 11, 22, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 300 15px/1 var(--display); letter-spacing: .3em; text-decoration: none; text-transform: uppercase; }
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 14px 3px rgba(180, 140, 255, .65); }
.menu { display: flex; gap: 36px; font-size: 13px; letter-spacing: .06em; }
.menu a { text-decoration: none; color: var(--muted); transition: color .2s; }
.menu a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 100px; font: 400 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); transition: background .25s, border-color .25s, box-shadow .25s, color .25s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn.fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.fill:hover { background: var(--lilac); border-color: var(--lilac); box-shadow: 0 0 40px rgba(180, 140, 255, .45); }
.btn.line:hover { border-color: var(--lilac); color: var(--lilac); }

/* первый экран */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: url('img/hero.jpg') center right / cover no-repeat; }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,11,22,.97) 0%, rgba(15,11,22,.8) 36%, rgba(15,11,22,0) 68%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero .wrap { position: relative; width: 100%; padding-top: 78px; }
.hero-text { max-width: 640px; }
.hero h1 { margin: 26px 0 28px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 470px; margin: 0 0 44px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

section { padding: 140px 0; scroll-margin-top: 78px; }
.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; margin-bottom: 70px; }
.head h2 { margin-top: 24px; }
.head p { color: var(--muted); margin: 0; max-width: 450px; }

/* о нас */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 90px; align-items: center; }
.about h2 { margin: 24px 0 28px; }
.about p { color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.facts div { background: var(--bg); padding: 26px 24px; }
.facts b { display: block; font: 200 30px/1 var(--display); margin-bottom: 10px; white-space: nowrap; }
.facts span { font-size: 13px; color: var(--muted); }
.quote { position: relative; padding: 50px 46px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(120% 90% at 100% 0%, rgba(143, 92, 255, .22), transparent 60%), var(--bg2); font: 200 clamp(22px, 2.2vw, 28px)/1.45 var(--display); }
.quote small { display: block; margin-top: 26px; font: 400 13px/1 var(--sans); color: var(--muted); letter-spacing: .04em; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { padding: 30px 26px 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg2); transition: border-color .3s, transform .3s; }
.step:hover { border-color: rgba(198, 168, 255, .4); transform: translateY(-4px); }
.step .n { float: right; font: 200 13px/46px var(--display); color: var(--faint); }
.step h3 { margin: 26px 0 10px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* статусы */
.glow { position: relative; background: radial-gradient(60% 50% at 80% 0%, rgba(143, 92, 255, .2), transparent 70%), var(--bg2); border-block: 1px solid var(--line); }
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.status div { background: var(--bg2); padding: 38px 34px; display: flex; gap: 20px; align-items: flex-start; }
.status h3 { margin: 4px 0 6px; }
.status p { margin: 0; color: var(--muted); font-size: 14.5px; }
.bot { color: var(--lilac); text-decoration: none; border-bottom: 1px solid rgba(198, 168, 255, .35); }

/* условия */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 80px; }
.term { border-top: 1px solid var(--line); padding: 32px 0; display: flex; gap: 22px; }
.term h3 { margin: 6px 0 10px; }
.term p { margin: 0; color: var(--muted); font-size: 15px; }

/* вопросы */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; font: 300 20px/1.3 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lilac); font: 300 20px/1 var(--sans); transition: transform .25s, background .25s; }
details[open] summary::after { transform: rotate(45deg); background: rgba(143, 92, 255, .15); }
details p { margin: -6px 0 30px; color: var(--muted); max-width: 760px; }

/* призыв */
.cta { position: relative; text-align: center; padding: 160px 0; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 55%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(143, 92, 255, .32), transparent); pointer-events: none; }
.cta .wrap { position: relative; }
.cta h2 { max-width: 760px; margin: 26px auto 44px; }
.cta .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); color: var(--muted); padding: 80px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
footer .logo { color: var(--ink); }
footer h4 { margin: 0 0 18px; font: 400 11px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
footer a { display: block; text-decoration: none; margin-bottom: 9px; }
footer a:hover { color: var(--lilac); }
.legal { padding-top: 30px; font-size: 12.5px; line-height: 1.8; color: var(--faint); }

/* документы */
.doc { max-width: 820px; padding: 160px 28px 110px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 22px 0 14px; }
.doc .date { color: var(--muted); margin-bottom: 56px; }
.doc h2 { font-size: 22px; font-weight: 300; margin: 52px 0 16px; }
.doc p, .doc li { color: #cbc0d8; font-size: 15.5px; }
.doc a { color: var(--lilac); }
.doc ol, .doc ul { padding-left: 22px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

.burger, .menu-cta { display: none; }

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  section { padding: 88px 0; }
  .head, .about, .terms, .foot { grid-template-columns: 1fr; gap: 28px; }
  .head { margin-bottom: 44px; }
  .status { grid-template-columns: 1fr; }

  /* меню */
  .burger { display: grid; gap: 7px; place-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(28, 21, 40, .6); position: relative; z-index: 12; cursor: pointer; }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .menu-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu { position: fixed; inset: 0; z-index: 11; flex-direction: column; justify-content: center; gap: 8px; padding: 0 28px;
    background: radial-gradient(80% 50% at 80% 10%, rgba(143, 92, 255, .25), transparent 70%), var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .menu a { font: 200 28px/1.6 var(--display); color: var(--ink); letter-spacing: -.01em; }
  .menu .menu-cta { display: inline-flex; justify-content: center; margin-top: 30px; padding: 18px; border-radius: 100px; background: var(--ink); color: var(--bg); font: 400 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
  .menu-open .menu { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .logo { position: relative; z-index: 12; }

  /* первый экран: фото фоном на весь экран, текст поверх внизу */
  .hero { min-height: 100svh; align-items: flex-end; padding: 0 0 56px; }
  .hero-img { inset: 0 0 28% 0; background-position: 66% center; }
  .hero-img::after { background: linear-gradient(180deg, rgba(15,11,22,.5) 0%, rgba(15,11,22,0) 20%, rgba(15,11,22,0) 55%, rgba(15,11,22,.75) 80%, var(--bg) 100%); }
  .hero .wrap { padding-top: 0; }
  .hero h1 { margin: 18px 0 18px; }
  .hero p { font-size: 16px; margin-bottom: 30px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 24px; }
  .nav { height: 68px; }
  .logo { font-size: 12px; letter-spacing: .24em; }
  h1 { font-size: clamp(32px, 10.2vw, 40px); }
  h2 { font-size: 29px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .facts div { padding: 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
  .facts b { font-size: 24px; margin: 0; }
  .step { padding: 24px; }
  .step h3 { margin-top: 20px; }
  .status div { padding: 26px 22px; }
  .term { gap: 18px; }
  .quote { padding: 32px 24px; }
  summary { font-size: 17px; padding: 22px 0; }
  .btn { width: 100%; justify-content: center; }
  .cta { padding: 110px 0; }
  .cta::before { width: 500px; }
  .doc { padding: 120px 16px 80px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* backdrop-filter у шапки делает её контейнером для fixed-меню: на время открытия снимаем */
.menu-open header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }

/* плавный переход между страницами: View Transitions там, где браузер умеет, и мягкое появление страницы как запасной вариант */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .35s ease both; }
::view-transition-new(root) { animation: page-in .5s ease both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in { from { opacity: 0; } }
body { animation: fade-in .6s ease both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root), body { animation: none; }
}
