:root{color-scheme:light}body{margin:0}img{max-width:100%}

/* Layout: одна колонка 1080px; в первом экране слева тезис, справа разрез ковчега с тремя палубами (три устройства). */
:root {
  --bg: #E9EEEC;
  --fg: #0C2B2E;
  --muted: #46605F;
  --line: #C3D0CD;
  --card: #F6F9F7;
  --water: #0B2F3A;
  --on-water: #E9EEEC;
  --accent: #A9CC3A;
  --accent-ink: #0C2B2E;
  --accent-text: #4F6B10;
  --wood: #8A5A2B;
  --wood-dark: #6B4420;
  --hull-ink: #FBF3E4;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08171B; --fg: #E3ECE9; --muted: #8FA7A4; --line: #1F3A3F; --card: #0E2429;
    --water: #123642; --on-water: #E3ECE9; --accent: #B7DB4A; --accent-ink: #08171B;
    --accent-text: #B7DB4A; --wood: #A97844; --wood-dark: #7F5A30; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08171B; --fg: #E3ECE9; --muted: #8FA7A4; --line: #1F3A3F; --card: #0E2429;
  --water: #123642; --on-water: #E3ECE9; --accent: #B7DB4A; --accent-ink: #08171B;
  --accent-text: #B7DB4A; --wood: #A97844; --wood-dark: #7F5A30; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 40px;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4.2vw, 40px); }
p { margin: 0; }
.label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* header */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 30px; height: 30px; flex: none; }
nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--font-body);
  padding: 15px 24px; border-radius: 10px; border: 0; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn.small { padding: 11px 16px; font-size: 15px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 36px 64px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); }
.hero h1 span { color: var(--accent-text); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin-top: 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 30px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 600; }
.ark { width: 100%; height: auto; display: block; }
.ark .sea { fill: var(--water); }
.ark .wave { fill: none; stroke: var(--on-water); stroke-width: 2; opacity: 0.55; stroke-linecap: round; }
.ark .hull { fill: var(--wood); }
.ark .hull-dark { fill: var(--wood-dark); }
.ark .roof { fill: var(--wood-dark); }
.ark .deckline { stroke: var(--hull-ink); stroke-width: 1.5; opacity: 0.45; }
.ark text { font-family: var(--font-mono); font-size: 14px; fill: var(--hull-ink); }
.ark .dot { fill: var(--accent); }
.ark .win { fill: var(--accent); }
.ark .cap { fill: var(--on-water); font-size: 12px; letter-spacing: 0.08em; opacity: 0.8; }

/* sections */
section { padding-block: 64px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: 36px; }
.sec-head p { color: var(--muted); }

/* devices */
.decks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.deck { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.deck h3 { font-size: 18px; }
.deck p { color: var(--muted); font-size: 15px; }
.deck svg { width: 34px; height: 34px; stroke: var(--accent-text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apps { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); font-size: 15px; }
.chip { font-family: var(--font-mono); font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--fg); background: var(--card); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 0 24px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li::before {
  counter-increment: s; content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: 15px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--water); color: var(--on-water);
}
.steps h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.steps p { color: var(--muted); font-size: 15px; }

/* pricing */
.price-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.picker { display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.seg button {
  font: 600 16px/1 var(--font-mono); padding: 16px 0; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--fg);
}
.seg button[aria-pressed="true"] { background: var(--water); color: var(--on-water); border-color: var(--water); }
.seg-note { font-size: 14px; color: var(--muted); }
.ticket { background: var(--water); color: var(--on-water); border-radius: 18px; padding: 32px; display: grid; gap: 18px; align-content: space-between; }
.ticket .label { color: var(--on-water); opacity: 0.7; }
.ticket .amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 8vw, 68px); line-height: 1; font-variant-numeric: tabular-nums; }
.ticket .amount small { font-size: 0.4em; font-weight: 500; opacity: 0.8; }
.ticket dl { margin: 0; display: grid; gap: 10px; font-size: 16px; }
.ticket dl div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(233, 238, 236, 0.18); padding-top: 10px; }
.ticket dt { opacity: 0.75; }
.ticket dd { margin: 0; font-weight: 600; text-align: right; }
.ticket .btn { width: 100%; }

/* faq */
.faq { display: grid; max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; max-width: 40em; }

footer { border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
footer .logo { color: var(--fg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .decks, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .price-box { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .decks, .steps { grid-template-columns: minmax(0, 1fr); }
  .seg button { font-size: 14px; }
  .ticket { padding: 24px; }
  section { padding-block: 48px; }
  nav { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ark .wave { animation: drift 7s ease-in-out infinite alternate; }
  .ark .wave.b { animation-duration: 9s; animation-direction: alternate-reverse; }
  @keyframes drift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
}
