:root {
  --bg: #0e0f12;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --line: #2a2e38;
  --text: #f4f4f7;
  --muted: #a6abb8;
  --accent: #f2a93b;
  --accent-text: #ffc469;
  --on-accent: #1a1206;
  --light: #ffd67a;
  --deep: #e27a12;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--light); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.kicker { color: var(--accent-text); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8em; display: block; }
.grad { background: linear-gradient(225deg, var(--light), var(--deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 15, 18, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: 1rem; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--light); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn small { display: block; font-weight: 600; font-size: 0.72rem; opacity: 0.8; line-height: 1; margin-bottom: 3px; }
.btn span { line-height: 1.1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto 40%; height: 700px; background: radial-gradient(closest-side, rgba(242, 169, 59, 0.22), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.fine { font-size: 0.85rem; color: var(--muted); }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 230px; border-radius: 30px; padding: 8px; background: #050506; border: 1px solid #2f333d; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); }
.phone img { border-radius: 23px; }
.phone.p1 { left: 0; top: 70px; transform: rotate(-6deg); }
.phone.p2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone.p3 { right: 0; top: 70px; transform: rotate(6deg); }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 46em; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(242, 169, 59, 0.14); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.shots { display: flex; gap: 14px; justify-content: center; }
.shots img { width: min(46%, 240px); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.shots img:nth-child(2) { margin-top: 40px; }

.gallery { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 18px; scroll-snap-type: x mandatory; max-width: var(--max); margin: 0 auto; }
.gallery figure { margin: 0; flex: 0 0 200px; scroll-snap-align: start; }
.gallery img { border-radius: 18px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; text-align: center; }

.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.req .card h3 { margin-bottom: 6px; }

details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
details summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: '−'; }
details summary::-webkit-details-marker { display: none; }
details > div { padding: 0 20px 16px; color: var(--muted); }

.cta { text-align: center; }
.cta .actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
footer p { margin: 0; max-width: 40em; }

/* Long text pages (manual, privacy) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 0.4em; }
.doc blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted); }
.doc blockquote p:last-child { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.doc p:has(> img) { display: flex; flex-wrap: wrap; gap: 12px; }
.doc p > img { width: calc(33.33% - 8px) !important; max-width: 240px; border-radius: 16px; border: 1px solid var(--line); }
.updated { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr 1fr; }
  .phones { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 190px; }
}
@media (max-width: 600px) {
  .nav a { padding: 8px 8px; font-size: 0.88rem; }
  .brand span { display: none; }
  .hero { padding-top: 44px; }
  .grid, .req { grid-template-columns: 1fr; }
  .phones { height: 380px; }
  .phone { width: 150px; border-radius: 22px; padding: 5px; }
  .phone img { border-radius: 18px; }
  .phone.p1, .phone.p3 { top: 50px; }
  .doc p > img { width: calc(50% - 6px) !important; }
  section { padding: 52px 0; }
}
