/* Чебурчат landing — reset, base, and shared chrome (header / footer / buttons / layout).
   Section-specific styles are added per section as the page is built out. */

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(46, 32, 24, .022) 1px, transparent 1px);
  background-size: 4px 4px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
svg[data-lucide] {
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

a { color: var(--green-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; }

:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ----- layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 9vw, 96px); }
.section--alt  { background: var(--paper-3); }
.section--dark { background: var(--dark); color: var(--dark-ink); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--green-text);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow svg { width: 14px; height: 14px; stroke-width: 2; }
.section--dark .eyebrow { color: var(--dark-ink-soft); }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 14px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 650; letter-spacing: -0.01em;
  padding: 14px 22px; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(180deg, var(--green-btn-hi) 0%, var(--green-btn) 60%, var(--green-btn-lo) 100%);
  color: #fff;
  box-shadow: 0 2px 0 var(--green-btn-lo), 0 10px 22px rgba(31, 107, 24, .34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--green-btn-lo), 0 16px 30px rgba(31, 107, 24, .40); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--green-btn-lo), 0 6px 14px rgba(31, 107, 24, .30); }

.btn-secondary {
  background: var(--paper-2); color: var(--ink);
  border: 1.5px solid var(--paper-edge);
  box-shadow: 0 1px 2px rgba(46, 32, 24, .05);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--green); color: var(--green-text); text-decoration: none; }
.btn-secondary:active { transform: translateY(1px); }

/* ----- header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--paper-edge);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; flex: none;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(46, 32, 24, .18));
}
.brand__name { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.brand__name span { color: var(--green-text); }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.site-nav a:hover { color: var(--green-text); text-decoration: none; }
.site-header .btn { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.site-header .btn svg { width: 16px; height: 16px; }
.nav-toggle { display: none; }

/* ----- hero (foundation stub — validates the brand language renders) ----- */
.hero { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: 104px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 12px 22px rgba(46, 32, 24, .14)); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); max-width: 16ch; margin-top: 16px; }
.hero h1 .hl { color: var(--green-text); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .26em;
  background: var(--green); opacity: .2; border-radius: 4px; z-index: -1;
}
.hero__sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); max-width: 54ch; margin-top: 18px; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 28px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--green-text); stroke-width: 2; }

/* ----- footer ----- */
.site-footer { background: var(--dark); color: var(--dark-ink-soft); padding-block: var(--space-8) var(--space-6); }
.site-footer a { color: var(--dark-ink-soft); }
.site-footer a:hover { color: var(--dark-ink); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: var(--space-7); justify-content: space-between; }
.site-footer__brand { max-width: 320px; }
.site-footer .brand__name { color: var(--dark-ink); }
.site-footer__tag { margin-top: 14px; font-size: 14px; line-height: 1.55; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-7); }
.site-footer__col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-ink); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.site-footer__muted { color: var(--dark-ink-soft); opacity: .6; }
.site-footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--dark-edge);
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center;
}

/* ----- responsive ----- */
@media (max-width: 720px) {
  .nav-toggle {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px;
    border: 1.5px solid var(--paper-edge); background: var(--paper-2);
    border-radius: 11px; color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .site-header__inner { gap: 12px; }
  .site-header .btn { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 4px var(--gutter) 14px;
    background: var(--paper-2); border-bottom: 1px solid var(--paper-edge);
    box-shadow: 0 14px 30px rgba(46, 32, 24, .12);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 2px; font-size: 15px; border-top: 1px solid var(--paper-edge); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   Sections (Phase 2 · Pass A) — shared heads, СОРМ, compare, how
========================================================= */

/* shared section heading */
.section-head { text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 46px); }
.section-lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin-top: 16px; text-wrap: pretty; }
.section-lead--dark { color: var(--dark-ink-soft); }
.section--dark a {
  color: var(--dark-ink); text-decoration: underline;
  text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.section--dark a:hover { text-decoration-color: var(--dark-ink); }
.t-red { color: var(--dark-red); }

/* reveal-on-scroll (only active once JS marks <html class="js">; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ----- 2 · СОРМ (dark) ----- */
.sorm__title { font-size: clamp(28px, 4.6vw, 46px); }
.sorm__flow {
  margin-top: clamp(36px, 6vw, 56px);
  display: flex; align-items: stretch; justify-content: center; flex-wrap: nowrap;
}
.node {
  flex: 1 1 0; max-width: 220px;
  background: var(--dark-2); border: 1px solid var(--dark-edge); border-radius: var(--radius-sm);
  padding: 22px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.node__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--dark-ink); }
.node__ic svg { width: 23px; height: 23px; }
.node__t { font-weight: 650; font-size: 15px; color: var(--dark-ink); line-height: 1.25; }
.node__sub { font-family: var(--mono); font-size: 11px; color: var(--dark-red); letter-spacing: .02em; }
.node--danger {
  border-color: rgba(232, 137, 126, .5);
  background: linear-gradient(180deg, #241a16, var(--dark-2));
  box-shadow: 0 0 0 1px rgba(232, 137, 126, .18), 0 18px 44px rgba(168, 53, 44, .20);
}
.node--danger .node__ic { background: rgba(232, 137, 126, .14); color: var(--dark-red); }

.wire { flex: 0 0 auto; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-inline: clamp(8px, 2vw, 22px); color: var(--dark-ink-soft); }
.wire__label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-red); white-space: nowrap; }
.wire svg { width: 28px; height: 18px; opacity: .75; }

.sorm__sub { font-size: clamp(20px, 3vw, 26px); font-weight: 750; letter-spacing: -0.02em; color: var(--dark-ink); margin-bottom: 14px; }

/* ----- 3 · до / после ----- */
.compare__grid {
  margin-top: clamp(32px, 5vw, 48px);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 28px); align-items: center;
}
.compare__card { background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.compare__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; padding: 7px 13px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.compare__badge svg { width: 15px; height: 15px; }
.compare__badge--red { background: var(--red-wash); color: var(--red); }
.compare__badge--green { background: var(--green-wash); color: var(--green-text); }

.shot { position: relative; height: 322px; border-radius: 14px; overflow: hidden; background: #0f0d0b; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.shot__bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1c1814; border-bottom: 1px solid rgba(255, 255, 255, .06); z-index: 2; }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.shot__bar b { margin-left: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .4); }
.shot img { position: absolute; inset: 30px 0 0 0; width: 100%; height: calc(100% - 30px); }
.compare__card--before .shot img { object-fit: cover; object-position: top center; }
.compare__card--after  .shot img { object-fit: contain; padding: 16px; }
.compare__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-muted); text-align: center; }
.compare__note code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); background: var(--paper-3); padding: 1px 6px; border-radius: 6px; }

.compare__mid { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.compare__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-wash); box-shadow: 0 6px 16px rgba(31, 107, 24, .18); }
.compare__arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--green-btn); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.compare__mid-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--ink-muted); line-height: 1.45; }

/* ----- 4 · как работает ----- */
.how__steps {
  list-style: none; padding-left: 0; margin-top: clamp(32px, 5vw, 48px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px);
}
.step { position: relative; background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-soft); }
.step__n { position: absolute; top: 16px; right: 20px; font-family: var(--mono); font-size: 36px; font-weight: 700; color: var(--paper-edge); line-height: 1; }
.step__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-wash); color: var(--green-text); margin-bottom: 18px; }
.step__ic svg { width: 26px; height: 26px; stroke-width: 1.9; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ----- responsive (Pass A sections) ----- */
@media (max-width: 900px) {
  .how__steps { grid-template-columns: 1fr; }
  .compare__grid { grid-template-columns: 1fr; }
  .compare__mid { flex-direction: row; justify-content: center; gap: 14px; }
  .compare__arrow svg { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .sorm__flow { flex-direction: column; align-items: stretch; gap: 4px; }
  .node { max-width: none; }
  .wire { flex-direction: row-reverse; justify-content: center; padding-block: 8px; }
  .wire svg { transform: rotate(90deg); }
}

/* reveal must never trap content hidden when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Sections (Phase 2 · Pass B) — trust, honest, чебурнет, faq, final CTA
========================================================= */

.site-header.is-scrolled { box-shadow: 0 1px 0 var(--paper-edge), 0 10px 30px rgba(46, 32, 24, .06); }

/* ----- 5 · почему доверять ----- */
.feature-grid { margin-top: clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 26px); }
.feature { background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-soft); }
.feature__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--green-wash); color: var(--green-text); margin-bottom: 16px; }
.feature__ic svg { width: 25px; height: 25px; stroke-width: 1.9; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ----- белые списки (внутри блока «Проблема», тёмный) ----- */
.sorm__more { width: min(var(--container-narrow), 100% - 2 * var(--gutter)); margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; }
.sorm__more p { font-size: 15px; color: var(--dark-ink-soft); line-height: 1.65; }
.sorm__more strong { color: var(--dark-ink); }
.sorm__links { margin-top: 12px; font-size: 13px; color: var(--dark-ink-soft); }

/* ----- 8 · FAQ ----- */
.faq__list { margin-top: clamp(28px, 4vw, 40px); display: grid; gap: 12px; }
.faq__item { background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__chev { flex: none; color: var(--green-text); transition: transform .25s var(--ease); }
.faq__chev svg { width: 20px; height: 20px; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; }
.faq__a p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 64ch; }

/* ----- 9 · финальный CTA (green band) ----- */
.cta-final { background: linear-gradient(165deg, var(--green-btn-hi), var(--green-btn) 55%, var(--green-btn-lo)); color: #fff; text-align: center; }
.cta-final__inner { display: flex; flex-direction: column; align-items: center; }
.cta-final__logo { width: 92px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); }
.cta-final h2 { font-size: clamp(28px, 4.6vw, 46px); color: #fff; max-width: 18ch; }
.cta-final p { margin-top: 16px; font-size: clamp(16px, 2vw, 18px); color: rgba(255, 255, 255, .86); max-width: 52ch; line-height: 1.55; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.btn-on-green { background: #fff; color: var(--green-btn); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-on-green:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0, 0, 0, .24); text-decoration: none; }
.btn-on-green:active { transform: translateY(1px); }
.btn-ghost-green { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost-green:hover { background: rgba(255, 255, 255, .12); border-color: #fff; text-decoration: none; }

/* ----- responsive (Pass B) ----- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Subpages (Phase 3) — /install, /privacy
========================================================= */

.page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(24px, 4vw, 40px); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero__logo { width: 88px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 10px 18px rgba(46, 32, 24, .12)); }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); margin-top: 12px; }
.page-lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin: 16px auto 0; max-width: 56ch; text-wrap: pretty; }

/* install */
.install-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.btn-soon { background: var(--paper-3); color: var(--ink-muted); border: 1.5px dashed var(--paper-edge); cursor: default; box-shadow: none; }
.btn-soon:hover { transform: none; }
.install-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.install-steps li { display: flex; gap: 18px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.install-steps__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-btn); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.install-steps h3 { font-size: 17px; margin-bottom: 5px; }
.install-steps p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.install-steps code,
.install-note code { font-family: var(--mono); font-size: 13px; background: var(--paper-3); color: var(--ink); padding: 2px 8px; border-radius: 6px; word-break: break-all; }
.install-note { margin-top: 22px; font-size: 14px; color: var(--ink-muted); line-height: 1.6; text-align: center; }

/* legal (privacy) */
.legal__updated { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 8px; }
.legal ul { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; }
.legal li { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.legal strong { color: var(--ink); }
.legal code { font-family: var(--mono); font-size: 13px; background: var(--paper-3); color: var(--ink); padding: 2px 7px; border-radius: 6px; }

/* ----- поддерживаемые браузеры (/install) ----- */
.browsers__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 44px); margin-top: clamp(28px, 4vw, 40px); }
.browser { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 88px; }
.browser img { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(46, 32, 24, .14)); transition: transform .15s var(--ease); }
.browser:hover img { transform: translateY(-3px) scale(1.05); }
.browser span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.browsers__note { width: min(var(--container-narrow), 100% - 2 * var(--gutter)); margin: clamp(24px, 3vw, 32px) auto 0; text-align: center; font-size: 14px; color: var(--ink-muted); }
