@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('/fonts/plex-sans-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('/fonts/plex-sans-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('/fonts/plex-sans-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('/fonts/plex-sans-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('/fonts/plex-sans-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('/fonts/plex-sans-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #1c2430; --ink-2: #4a5462; --ink-3: #66707c;
  --bg: #f4f2ef; --surface: #ffffff; --sunken: #ebe8e3; --line: #ddd8d1;
  --accent: #a84c26; --accent-ink: #ffffff; --accent-soft: #f6e6db;
  --shadow: 0 24px 48px -24px rgba(28, 36, 48, .35);
  --radius: 12px;
  --font: 'Plex', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e8e6e3; --ink-2: #bdb8b1; --ink-3: #9a948c;
    --bg: #14181e; --surface: #1b2129; --sunken: #10141a; --line: #2c333d;
    --accent: #ec9466; --accent-ink: #1d0f08; --accent-soft: #3a261c;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #e8e6e3; --ink-2: #bdb8b1; --ink-3: #9a948c;
  --bg: #14181e; --surface: #1b2129; --sunken: #10141a; --line: #2c333d;
  --accent: #ec9466; --accent-ink: #1d0f08; --accent-soft: #3a261c;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: min(1168px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin-inline: auto; }

.for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .for-light { display: none; }
  :root:not([data-theme='light']) .for-dark { display: block; }
}
:root[data-theme='dark'] .for-light { display: none; }
:root[data-theme='dark'] .for-dark { display: block; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 16px 24px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; min-height: 44px; min-width: 44px; margin-right: auto; }
.links { display: flex; gap: 4px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 0 12px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.links a:hover { color: var(--ink); background: var(--sunken); }
.controls { display: flex; gap: 8px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg a, .seg button { min-width: 44px; min-height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 13px var(--font); text-decoration: none; cursor: pointer; }
.seg a[aria-current], .seg button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding: 64px 0 36px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.intro-side { padding-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.fine { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }

.hero { margin-block: 0 96px; }
.hero img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero figcaption { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 70ch; }

.section-lead { color: var(--ink-2); max-width: 62ch; margin-bottom: 40px; }
.flow { padding-bottom: 72px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px 64px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.step.flip { grid-template-columns: 380px minmax(0, 1fr); }
.step.flip .step-text { order: 2; }
.step.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 788px); }
.step-text { max-width: 46ch; }
.step-text p { color: var(--ink-2); margin: 0; }
.step time { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.shot, .panel-shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-shot { width: 100%; max-width: 380px; justify-self: center; }

.safe { background: var(--sunken); padding: 72px 0; border-block: 1px solid var(--line); }
.safe dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 24px 0 0; }
.safe dl div { border-left: 3px solid var(--accent); padding-left: 18px; }
.safe dt { font-weight: 600; margin-bottom: 6px; }
.safe dd { margin: 0; color: var(--ink-2); }

.pricing, .install, .faq { padding-top: 88px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 820px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 15px; color: var(--ink-2); background: var(--sunken); }
tbody th { font-weight: 400; color: var(--ink-2); }
td:nth-child(3) { color: var(--ink-2); }
.badge { font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 9px; margin-left: 4px; }

.install p { max-width: 70ch; color: var(--ink-2); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.howto { font-size: 15px; border-left: 3px solid var(--line); padding-left: 16px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; min-height: 52px; display: flex; align-items: center; }
.faq details p { color: var(--ink-2); margin: 0; padding: 0 18px 16px; }

.foot { padding: 88px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 14px; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.tm { font-size: 13px; }

.doc { max-width: 760px; padding: 32px 0 24px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 21px; margin-top: 1.6em; }
.doc section { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; }
.doc p, .doc li { color: var(--ink-2); }

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; padding-top: 40px; align-items: start; }
  .step, .step.flip, .step.wide { grid-template-columns: 1fr; gap: 24px; }
  .step.flip .step-text { order: 0; }
  .safe dl { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top-in { padding-block: 8px; gap: 4px 8px; justify-content: space-between; }
  .links { order: 3; width: 100%; margin: 0 0 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .lead { font-size: 17px; }
  .hero { margin-bottom: 64px; }
  .pricing, .install, .faq { padding-top: 64px; }
  .btn { width: 100%; }
}
@media (max-width: 400px) {
  .logo span { display: none; }
  .seg a, .seg button { min-width: 42px; padding: 0 4px; }
}
