/* Стиль как у rf4-map.ru: глубокая вода, бирюзовый акцент, песочные кнопки, Geologica + Inter */
:root {
  --bg: #040b12; --fg: #eaf1f5; --muted-fg: #8fa8ba;
  --card: rgba(15, 36, 56, .55); --card-solid: #0f2438; --sunken: #071522;
  --border: rgba(230, 215, 181, .16); --grid: #15283a;
  --accent: #1fa7c1; --shallow: #6ed6d0; --sand: #e6d7b5; --gold: #cdb06e; --deep: #0b1d2e;
  --f-display: "Geologica", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { background: var(--bg) }
body {
  margin: 0; color: var(--fg); font: 16px/1.6 var(--f-body);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(31, 167, 193, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(18, 58, 90, .55), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  min-height: 100vh;
}
a { color: var(--shallow) }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--shallow); outline-offset: 2px }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; line-height: 1.12 }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; letter-spacing: -.022em }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -.012em }
h3 { font-size: 18px; font-weight: 600 }
p { margin: 0 }

.topbar { max-width: 920px; margin: 0 auto; padding-block: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-display); letter-spacing: .18em; color: var(--fg); text-decoration: none }
.wordmark .dot { color: var(--accent) }
.wordmark .ads { color: var(--accent); font-weight: 500 }

.wrap { max-width: 920px; margin: 0 auto; padding-block: 40px 72px; display: flex; flex-direction: column; gap: 56px }
.eyebrow { font: 600 12px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--shallow) }
.hero { display: flex; flex-direction: column; gap: 18px; align-items: flex-start }
.hero .lead { max-width: 62ch; color: var(--muted-fg); font-size: 18px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--fg); text-decoration: none }
a.chip:hover { border-color: var(--shallow) }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sand); color: var(--deep); font: 600 15px/1 var(--f-body); padding: 14px 20px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer }
.btn:hover { background: #efe3c7 }

.sec { display: flex; flex-direction: column; gap: 20px }
.sec-head { display: flex; flex-direction: column; gap: 8px }
.sec-head p, .note { color: var(--muted-fg); max-width: 64ch }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(6px) }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.stat b { font: 700 28px/1.1 var(--f-display); color: var(--fg); font-variant-numeric: tabular-nums }
.stat span { color: var(--muted-fg); font-size: 14px }

.chart-box { padding: 18px; overflow-x: auto }
.chart-box svg { display: block; width: 100%; min-width: 560px; height: auto }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted-fg); margin-top: 10px }
.legend i { display: inline-block; width: 16px; vertical-align: middle; margin-right: 6px; border-top: 2px solid var(--shallow) }
.legend i.l-gar { border-top: 2px dashed var(--sand) }

.tbl { overflow-x: auto; border-radius: var(--radius) }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums }
.price { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden }
.price th, .price td { padding: 15px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--grid) }
.price thead th { border-top: 0; font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-fg); background: var(--sunken) }
.price td:last-child, .price th:last-child { text-align: right; white-space: nowrap }
.price .name { font-weight: 600 }
.price .desc { color: var(--muted-fg); font-size: 14px; margin-top: 2px }
.price .cost { font: 700 19px/1.2 var(--f-display); color: var(--gold) }
.price tr.hit td { background: rgba(31, 167, 193, .1) }
.tag { display: inline-block; font: 600 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--shallow); border: 1px solid var(--shallow); border-radius: 4px; padding: 4px 6px; margin-left: 8px; vertical-align: 2px }

.tgcard { padding: 18px; display: flex; flex-direction: column; gap: 12px }
.matrix th, .matrix td { padding: 12px 14px; border-top: 1px solid var(--grid); text-align: right; white-space: nowrap }
.matrix thead th { border-top: 0; font: 600 12px/1.3 var(--f-body); color: var(--muted-fg); vertical-align: bottom }
.matrix thead th .sub { display: block; color: var(--shallow); font-weight: 500; font-size: 11px; margin-top: 2px }
.matrix tbody th { text-align: left; font-weight: 500; color: var(--muted-fg) }
.matrix td { font: 700 17px/1.2 var(--f-display); color: var(--gold) }

.guarantee { border: 1px solid var(--sand); background: linear-gradient(135deg, rgba(230, 215, 181, .1), rgba(15, 36, 56, .5)); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px }
.guarantee b { font: 600 19px/1.2 var(--f-display); color: var(--sand) }

.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px }
.terms li { position: relative; padding-left: 20px; min-width: 0 }
.terms li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(31, 167, 193, .2) }

.foot { border-top: 1px solid var(--grid); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px }
.foot b { font: 600 20px/1.2 var(--f-display) }
.foot p { color: var(--muted-fg); margin-top: 4px }

@media (max-width: 560px) {
  .wrap { gap: 44px; padding-block: 28px 56px }
  .price th, .price td { padding: 12px }
  .price .cost { font-size: 17px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
