/* darmi.ee — без внешних шрифтов и сервисов (GDPR: ни одного обращения к Google). */
/* Тёмный сайт с неподвижной подложкой: свечение и тонкие косые линии стоят на месте,
   содержимое прокручивается поверх (как на v12motors). Подложка — отдельный fixed-слой,
   а не background-attachment:fixed: тот iPhone игнорирует. */
:root {
  --paper: #0d1117;
  --card: rgba(24, 31, 42, .82);
  --card-solid: #181f2a;
  --soft: rgba(255, 255, 255, .025);
  --ink: #e9edf2;
  --muted: #9ba6b5;
  --line: rgba(255, 255, 255, .09);
  --accent: #34c3a0;
  --accent-ink: #062019;
  --accent-soft: rgba(52, 195, 160, .12);
  --leak: #fb923c;
  --dark: rgba(0, 0, 0, .28);
  --dark-ink: #eef1f5;
  --dark-muted: #a9b3c1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 95% -10%, rgba(52, 195, 160, .24), transparent 55%),
    radial-gradient(80% 60% at -15% 105%, rgba(251, 146, 60, .13), transparent 55%),
    radial-gradient(70% 50% at 10% 0%, rgba(120, 140, 170, .07), transparent 50%),
    radial-gradient(45% 40% at 65% 60%, rgba(99, 102, 241, .14), transparent 70%),
    radial-gradient(35% 30% at 20% 45%, rgba(52, 195, 160, .10), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 8px),
    var(--paper);
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap {
  width: min(1120px, 100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  margin-inline: auto;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
mark.draft { background: #ffe066; color: #16202e; padding: 0 .2em; border-radius: 4px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 38px; padding: .35em 1em; font-size: .92rem; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; color: var(--accent); }
.menu { display: flex; gap: 18px; margin-left: auto; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--muted); }
.menu a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; font-size: .8rem; font-weight: 600; }
.langs a { text-decoration: none; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--ink); background: var(--soft); }
@media (max-width: 900px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 520px) {
  .top-cta { display: none; }
  .top-inner { gap: 10px; }
}

/* первый экран */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.chips li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-art { width: 100%; height: auto; }
.hero-art .flow { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.2s ease forwards; }
.hero-art .flow-leak { stroke: var(--leak); stroke-dasharray: 8 10; stroke-dashoffset: 0; opacity: .8; animation: none; }
.hero-art .node { fill: var(--card-solid); stroke: var(--accent); stroke-width: 4; }
.hero-art .node-good { fill: var(--accent); }
.hero-art .node-leak { stroke: var(--leak); }
.hero-art .baton { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; opacity: .75; }
.hero-art .baton-tip { fill: var(--ink); opacity: .75; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-art .flow { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; justify-self: center; order: -1; }
}

/* секции */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-soft { background: var(--soft); border-block: 1px solid var(--line); }
.band-dark { background: var(--dark); color: var(--dark-ink); }
.band-dark .lead, .band-dark .after { color: var(--dark-muted); }
.band-dark .eyebrow { color: #5fd3b4; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-price { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-price { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.card p { color: var(--muted); margin: 0; }
.card .num { display: block; font-weight: 800; font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* случай */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: #5fd3b4; font-variant-numeric: tabular-nums; }
.stat:last-child strong { color: #ffd166; }
.stat span { color: var(--dark-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* пример */
.demo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.note { font-weight: 600; padding-left: 14px; border-left: 4px solid var(--accent); }
.demo { backdrop-filter: blur(6px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.metric { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 12px; }
.metric span { display: block; font-size: .8rem; color: var(--muted); }
.metric strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .metrics { grid-template-columns: 1fr; } }
.demo-run { width: 100%; }
.demo[data-state="running"] .demo-run { opacity: .6; pointer-events: none; }
.demo[data-state="done"] .demo-run { display: none; }
.found-total { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.found-total strong { font-size: 1.6rem; color: var(--leak); font-variant-numeric: tabular-nums; }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.finding { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); animation: pop .35s ease both; }
.finding:nth-child(2) { animation-delay: .15s; }
.finding:nth-child(3) { animation-delay: .3s; }
.finding-text span { display: block; color: var(--muted); font-size: .95rem; }
.finding-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.finding .status { font-weight: 600; color: var(--accent); }
.finding .status.no { color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* фраза-фильтр */
.filter { margin: 40px 0 0; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border-left: 6px solid var(--accent); font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; line-height: 1.4; }

/* цены */
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.price .amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 10px; }
.price p:last-child { color: var(--muted); margin: 0; }

/* контакт */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid a { color: #5fd3b4; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .92rem; color: var(--dark-muted); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--dark-ink); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.contact-form .btn { justify-self: start; }

/* реквизиты и подвал */
.legal { padding: 56px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.legal h2 { font-size: 1.1rem; color: var(--ink); }
.legal-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
@media (max-width: 760px) { .legal-grid { grid-template-columns: 1fr; } }
.foot { padding: 24px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* «Жидкое стекло» как в iOS 26: размытая и чуть насыщенная подложка под блоком,
   светлый блик по верхней кромке, мягкая тень, крупные скругления. */
.card, .price, .demo, .stat, .filter, .finding, .chips li, .metric {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .035) 45%, rgba(255, 255, 255, .06) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    inset 1px 0 0 rgba(255, 255, 255, .06),
    0 18px 40px rgba(0, 0, 0, .35);
}
.card, .price, .demo, .stat, .filter { border-radius: 24px; overflow: hidden; }
.finding, .metric { border-radius: 16px; }
.card::before, .price::before, .demo::before, .stat::before, .filter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%);
}
.card > *, .price > *, .demo > *, .stat > *, .filter > * { position: relative; }
.card, .price { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (hover: hover) {
.card:hover, .price:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 24px 50px rgba(0, 0, 0, .42);
}
}
/* цвет смысла — тонкое свечение по верхней кромке вместо плоской полосы */
.card-pain { box-shadow: inset 0 2px 0 rgba(251, 146, 60, .75), inset 0 18px 30px -22px rgba(251, 146, 60, .55), 0 18px 40px rgba(0, 0, 0, .35); }
.card-rule { box-shadow: inset 0 2px 0 rgba(52, 195, 160, .75), inset 0 18px 30px -22px rgba(52, 195, 160, .5), 0 18px 40px rgba(0, 0, 0, .35); }
.filter { border-left: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 4px 0 0 var(--accent), inset 0 1px 0 rgba(255, 255, 255, .28), 0 18px 40px rgba(0, 0, 0, .35); }
.band-dark { background: rgba(0, 0, 0, .18); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .price, .demo, .stat, .filter, .finding, .chips li, .metric { background: rgba(28, 36, 48, .94); }
}
@media (prefers-reduced-motion: reduce) { .card, .price { transition: none; } .card:hover, .price:hover { transform: none; } }

/* ── Меню-«бургер» для телефона и планшета ─────────────────────────── */
.burger {
  display: none; width: 44px; height: 44px; margin-left: 4px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); cursor: pointer;
  position: relative; flex: none;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease; content: "";
}
.burger span { top: 21px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: var(--ink); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink); }
.mnav {
  border-top: 1px solid var(--line);
  background: rgba(13, 17, 23, .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  max-height: calc(100dvh - 64px); overflow-y: auto;
}
.mnav[hidden] { display: none; }
.mnav-inner { display: grid; gap: 4px; padding: 12px 0 20px; }
.mnav-inner > a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid var(--line);
}
.mnav-inner .btn { margin-top: 12px; }
.mnav-inner .langs { margin: 12px 0 0; font-size: .95rem; gap: 6px; }
.mnav-inner .langs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 900px) { .burger { display: inline-block; } .top-inner > .langs { margin-left: auto; } }
@media (min-width: 901px) { .mnav { display: none !important; } }
@media (max-width: 480px) { .top-inner > .langs { display: none; } .burger { margin-left: auto; } }

/* ── Телефон ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .hero-art { display: none; }
  .hero { padding-top: 36px; }
  .card, .price, .stat, .demo { border-radius: 20px; }
  .card, .price { padding: 20px; }
  .filter { padding: 20px; }
  .band { padding: 52px 0; }
}
/* горизонтальный телефон: низкий экран */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 28px 0; }
  .hero-art { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ── Большие мониторы: весь сайт крупнее и шире, без пустых полей ────── */
@media (min-width: 1600px) {
  html { font-size: 112.5%; }
  .wrap { width: min(1320px, 100% - 96px); }
  .top-inner { min-height: 72px; }
}
@media (min-width: 2200px) {
  html { font-size: 125%; }
  .wrap { width: min(1560px, 100% - 160px); }
  .top-inner { min-height: 80px; }
}
@media (min-width: 3000px) {
  html { font-size: 150%; }
  .wrap { width: min(1960px, 100% - 200px); }
}

/* нижний край iPhone (полоска «домой») */
.foot { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
