/* ============================================================
   AstroWay — design tokens
   ============================================================ */
:root {
  --bg-0: #04101a;
  --bg-1: #06192a;
  --bg-2: #0a2a3c;
  --teal: #0f3a4c;
  --line: rgba(150, 210, 220, .16);
  --line-strong: rgba(170, 225, 225, .34);
  --text: #eaf1f5;
  --text-dim: #a9bac6;
  --text-mute: #7d91a0;
  --gold: #f3c97a;
  --gold-2: #dcb05a;
  --cyan: #8fd8ff;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ---------- buttons: dark teal capsule with pale rim (as in the mockup) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: .01em; color: #f2faf7;
  background: linear-gradient(180deg, #1e5158 0%, #0f3440 100%);
  border: 1px solid rgba(190, 240, 225, .45);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.35), 0 0 26px rgba(120, 230, 200, .16), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 12px 34px rgba(0,0,0,.4), 0 0 34px rgba(120,230,200,.28); }
.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--light {
  background: linear-gradient(180deg, #2f7a76 0%, #164a52 100%);
  border-color: rgba(210, 250, 235, .6);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(6, 24, 36, .7);
  font-size: 12px; font-weight: 500; color: var(--text);
  transition: border-color .2s, background .2s;
}
.pill svg { width: 14px; height: 14px; fill: currentColor; }
.pill:hover { border-color: rgba(190,240,225,.7); background: rgba(30, 80, 88, .5); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 9, 16, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 22px; font-weight: 500; letter-spacing: .01em; }
.logo__mark { width: 28px; height: 28px; color: var(--gold); }

.nav {
  margin-left: auto;
  display: flex; gap: 4px;
  padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6, 22, 34, .65);
}
.nav a { padding: 8px 16px; border-radius: 999px; font-size: 12px; color: var(--text-dim); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(160,205,215,.08); }

.header__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6,22,34,.65); }
.lang__btn { padding: 6px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-mute); }
.lang__btn.is-active { color: var(--text); background: rgba(160,205,215,.14); }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 20px; height: 1.5px; background: var(--text); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero: photographic background from the mockup ---------- */
.hero {
  position: relative;
  aspect-ratio: 591 / 330;
  min-height: 420px; max-height: 860px;
  background: #061420 url("../img/hero.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(3,10,17,.85));
}
.hero__inner { position: absolute; inset: 0; margin-inline: auto; }
.hero__title {
  position: absolute; left: 0; top: 9%;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 5.2vw, 78px); line-height: .96; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__title::after { content: ""; display: block; width: 28px; height: 1px; margin-top: 16px; background: var(--gold); opacity: .8; }
.hero__tag { position: absolute; margin: 0; color: rgba(234,241,245,.85); line-height: 2; font-size: clamp(7px, .75vw, 11px); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.hero__tag--top { left: 0; top: 34%; }
.hero__tag--bottom { left: 0; top: 72%; }
.hero__tag--right { right: 0; top: 63%; }

/* ---------- stats ---------- */
.stats { background: #030a12; border-block: 1px solid rgba(150,210,220,.1); }
.stats__inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 26px; }
.stat { text-align: center; padding-inline: 12px; }
.stat + .stat { border-left: 1px solid rgba(150,210,220,.16); }
.stat__num {
  font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1;
  background: linear-gradient(90deg, var(--gold), #f6e7c1 60%, #cfe6ee); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.stat__label { margin-top: 6px; color: var(--text-dim); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(56px, 8vw, 110px); }
.eyebrow { color: var(--gold); margin-bottom: 14px; }
.eyebrow--center { text-align: center; }
.h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; }
.h2 em { font-style: italic; color: var(--gold); }
.h2--italic { font-style: italic; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section__lead { max-width: 340px; font-size: 12px; color: var(--text-dim); }

.card {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(20,64,80,.55) 0%, rgba(8,32,46,.85) 60%, rgba(6,22,34,.9) 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- services ---------- */
.services { background: linear-gradient(180deg, #030a12 0%, var(--bg-1) 100%); overflow: hidden; }
.services__glow {
  position: absolute; right: -8%; top: 30%; width: 46vw; max-width: 700px; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(60,150,170,.26), rgba(20,90,110,.12) 40%, transparent 68%); filter: blur(20px);
}
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  margin-block: 26px 18px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6,22,34,.7);
}
.tab { padding: 8px 16px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--text-dim); transition: color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab.is-active {
  color: #f2faf7; font-weight: 600;
  background: linear-gradient(180deg, #1e5158, #0f3440);
  box-shadow: inset 0 0 0 1px rgba(190,240,225,.4), 0 0 18px rgba(120,230,200,.16);
}

.service-card { display: grid; grid-template-columns: 56px 200px 1fr; gap: 24px; padding: clamp(24px, 4vw, 44px); overflow: hidden; }
.service-card::after {
  content: ""; position: absolute; right: -10%; bottom: -40%; width: 60%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(70,170,190,.22), transparent 60%);
}
.service-card__num { color: var(--gold); padding-top: 40px; }
.service-card__art { display: flex; align-items: center; }
.mini-chart { width: 100%; }
.mc-ring { fill: none; stroke: rgba(200,225,235,.8); stroke-width: 1; }
.mc-ring--dots { stroke: rgba(200,225,235,.55); stroke-width: 1; stroke-dasharray: 1.5 4; }
.mc-ring--gold { stroke: var(--gold); stroke-width: .9; opacity: .85; }
.service-card__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); }
.service-card__text { margin-top: 14px; font-size: 13px; color: var(--text-dim); max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(6,22,34,.5); font-size: 10px; }
.chips li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.service-card__footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 22px; }
.price { font-family: var(--font-serif); font-size: 30px; }
.fade { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- how ---------- */
.how { overflow: hidden; background: linear-gradient(180deg, var(--bg-1) 0%, #0b2c3d 55%, var(--bg-1) 100%); }
.how__decor { position: absolute; inset: 0; pointer-events: none; }
.how__dots {
  position: absolute; right: 0; top: 0; width: 46%; height: 70%;
  background-image: radial-gradient(rgba(170,220,230,.32) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(circle at 70% 40%, #000 20%, transparent 70%);
}
.how__ring { position: absolute; right: 12%; top: 22%; border-radius: 50%; border: 1px solid rgba(170,220,230,.22); transform: translate(50%, -50%); }
.how__ring--1 { width: 220px; height: 220px; border-style: dashed; }
.how__ring--2 { width: 400px; height: 400px; }
.how__ring--3 { width: 620px; height: 620px; border-color: rgba(170,220,230,.12); }
.how__orb {
  position: absolute; right: 12%; top: 22%; width: 160px; height: 160px; border-radius: 50%; transform: translate(50%, -50%);
  background: radial-gradient(circle, rgba(255,232,170,.95) 0%, rgba(243,201,122,.45) 18%, rgba(243,201,122,.08) 45%, transparent 65%);
}
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.step { padding: 26px 22px 24px; }
.step::before { content: ""; position: absolute; top: 0; left: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); transform: translateY(-50%); }
.step__num { color: var(--gold); }
.step__title { margin-top: 12px; font-family: var(--font-serif); font-weight: 400; font-size: 24px; }
.step__text { margin-top: 8px; font-size: 12px; color: var(--text-dim); }

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--bg-1), #051520 60%, #030a12); }
.about__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__lead { margin-top: 18px; font-size: 13px; color: var(--text-dim); max-width: 56ch; }
.timeline { margin-top: 30px; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--gold), rgba(243,201,122,.1)); }
.timeline li { position: relative; padding-block: 10px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 18px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg-0); box-shadow: 0 0 10px rgba(243,201,122,.5); }
.timeline strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 20px; }
.timeline span { display: block; font-size: 11px; color: var(--text-dim); }
.about__photo {
  justify-self: center; width: min(100%, 380px); aspect-ratio: 190 / 215;
  border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(243,201,122,.1);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- booking ---------- */
.book { overflow: hidden; background: radial-gradient(80% 70% at 50% 10%, #0d3345, var(--bg-1) 60%, #030a12 100%); text-align: center; }
.book__decor { position: absolute; inset: 0; pointer-events: none; }
.book__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(170,220,230,.18); }
.book__ring--tl { left: -8%; bottom: -20%; width: 520px; height: 520px; border-style: dashed; }
.book__ring--tr { right: -6%; top: -30%; width: 620px; height: 620px; }
.book__ring--bl { left: -14%; bottom: -34%; width: 760px; height: 760px; border-color: rgba(170,220,230,.1); }
.quote { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.2; max-width: 22ch; margin-inline: auto; }
.book__lead { margin-top: 18px; font-size: 12px; color: var(--text-dim); }

.form {
  position: relative; margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr auto;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(20,64,80,.6), rgba(6,24,36,.9));
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); text-align: left;
}
.field { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 22px; border-right: 1px solid var(--line); }
.field label { display: flex; flex-direction: column; gap: 4px; }
.field__label { color: var(--gold); }
.field input[type="text"] { width: 100%; background: none; border: 0; outline: 0; font-size: 14px; color: var(--text); }
.field input::placeholder { color: var(--text-mute); }
.field--time { gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text-mute); letter-spacing: .08em; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin: 0; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; cursor: pointer;
}
.check input:checked { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--bg-1); }
.form__submit { margin: 8px; }
.form__note { margin-top: 16px; color: var(--text-mute); }
.form__status { min-height: 1.4em; margin-top: 6px; color: var(--gold); letter-spacing: .1em; text-transform: none; }
.form.is-invalid input:invalid { border-bottom: 1px solid #e9857a; }

.book__or { margin-top: 32px; color: var(--text-dim); }
.messengers { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- footer ---------- */
.footer { background: #030a12; padding-block: 34px 28px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(150,210,220,.12); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 11px; color: var(--text-dim); }
.footer__nav a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.footer__contacts, .footer__copy { color: var(--text-mute); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .service-card { grid-template-columns: 40px 170px 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; border-radius: var(--radius); }
  .field { border-bottom: 1px solid var(--line); }
  .field:nth-child(2n) { border-right: 0; }
  .form__submit { grid-column: 1 / -1; margin: 16px; }
  .how__ring--3 { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .burger { display: flex; }
  .header .btn { display: none; }
  .nav {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px);
    flex-direction: column; border-radius: var(--radius); background: rgba(4,14,24,.97);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 14px; }

  .hero { aspect-ratio: auto; height: 78vh; min-height: 520px; background-position: 62% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,10,17,.7) 0%, rgba(3,10,17,.25) 40%, transparent 65%), linear-gradient(0deg, rgba(3,10,17,.8) 0%, transparent 30%); }
  .hero__tag { color: #eaf1f5; }
  .hero__title { top: 7%; font-size: 42px; }
  .hero__rule { font-size: 42px; top: calc(7% + 2.6em + 8px); }
  .hero__tag { font-size: 8px; }
  .hero__tag--top { top: 32%; }
  .hero__tag--bottom { top: auto; bottom: 10%; }
  .hero__tag--right { top: auto; bottom: 10%; text-align: right; }

  .stats__inner { padding-block: 18px; }
  .stat__label { font-size: 8px; letter-spacing: .14em; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }

  .service-card { grid-template-columns: 1fr; gap: 16px; }
  .service-card__num { padding: 0; }
  .service-card__art { width: 160px; }
  .service-card__footer { flex-wrap: wrap; gap: 14px; }

  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .how__ring--2 { width: 260px; height: 260px; }
  .how__orb { width: 110px; height: 110px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__photo { width: min(100%, 280px); }

  .form { grid-template-columns: 1fr; }
  .field { border-right: 0; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
