:root {
  --bg: #0e1217;
  --bg-2: #141a21;
  --bg-3: #1b222b;
  --ink: #ece9e3;
  --ink-soft: #b9bec6;
  --muted: #7f8893;
  --line: rgba(236, 233, 227, 0.16);
  --line-strong: rgba(236, 233, 227, 0.55);
  --gold: #6fd3ea;
  --gold-soft: rgba(111, 211, 234, 0.14);
  --paper: #efebe4;
  --paper-ink: #1b1f25;
  --max: 1180px;
  --serif: "Libre Franklin", system-ui, sans-serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 5.4vw, 70px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; }
.kicker { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.muted { color: var(--muted); }
.ph { color: var(--gold); font-style: italic; }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header.solid { position: sticky; background: rgba(14, 18, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { font-family: var(--serif); font-size: 21px; font-weight: 500; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
  border: 1px solid var(--line-strong); color: var(--ink); background: transparent;
  font-family: var(--sans); font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-gold { border-color: var(--gold); color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 70% 10%, #2a313b 0%, #161b22 45%, var(--bg) 100%); }
.hero .ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 48px; align-items: center; padding-top: 110px; padding-bottom: 80px; width: 100%; }
.hero h1 { margin-bottom: 14px; }
.hero .sub { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 24px); color: var(--ink); margin-bottom: 22px; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }

/* network map */
.netmap { width: 100%; height: auto; overflow: visible; }
.netmap .grid-dot { fill: rgba(236, 233, 227, .16); }
.netmap .ru-dot { fill: rgba(111, 211, 234, .5); }
.netmap .arc { fill: none; stroke: rgba(236, 233, 227, .22); stroke-width: 1; transition: stroke .25s, stroke-width .25s; }
.netmap .arc.flow { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 3 9; animation: flow 2.6s linear infinite; opacity: .55; }
.netmap .arc.hot { stroke: var(--gold); stroke-width: 1.6; opacity: 1; }
.netmap .ru-link { stroke: rgba(111, 211, 234, .45); stroke-width: 1; fill: none; }
.netmap .node { cursor: pointer; }
.netmap .node circle.core { fill: var(--ink); }
.netmap .node circle.halo { fill: none; stroke: rgba(236, 233, 227, .35); }
.netmap .node.hub circle.core { fill: var(--gold); }
.netmap .node.hub circle.halo { stroke: var(--gold); animation: pulse 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.netmap .node text { font-family: var(--sans); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); transition: fill .2s; }
.netmap .node:hover text, .netmap .node.hot text { fill: var(--ink); }
.netmap .node:hover circle.core, .netmap .node.hot circle.core { fill: var(--gold); }
.netmap .pkt { fill: var(--gold); }
.map-caption { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 22px; letter-spacing: .02em; }
.map-caption b { color: var(--ink); font-weight: 500; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .netmap .arc.flow, .netmap .node.hub circle.halo { animation: none; } }

/* ---------- sections ---------- */
section { padding: 120px 0; position: relative; }
section.b2 { background: var(--bg-2); }
section.paper { background: var(--paper); color: var(--paper-ink); }
section.paper .lead, section.paper p { color: #474d57; }
section.paper .kicker { color: #8b6d33; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
@media (max-width: 700px) { section { padding: 80px 0; } }
.head { max-width: 760px; margin-bottom: 60px; }

/* ---------- problem ---------- */
.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.questions li { counter-increment: q; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 28px; align-items: baseline; }
.questions li::before { content: "0" counter(q); font-family: var(--sans); font-size: 13px; letter-spacing: .15em; color: var(--gold); min-width: 28px; }
.answer { margin-top: 56px; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; max-width: 900px; }
.answer em { color: var(--gold); font-style: italic; }

/* ---------- products ---------- */
.products { border-top: 1px solid var(--line); }
.product { border-bottom: 1px solid var(--line); }
.product button {
  width: 100%; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 24px; align-items: baseline; padding: 34px 0; font: inherit;
}
.product .num { font-size: 13px; letter-spacing: .15em; color: var(--gold); }
.product .name { font-family: var(--serif); font-size: clamp(23px, 2.4vw, 32px); line-height: 1.1; }
.product .tag { color: var(--ink-soft); font-size: 17px; }
.product .plus { justify-self: end; font-size: 28px; font-weight: 300; color: var(--gold); transition: transform .3s; }
.product.open .plus { transform: rotate(45deg); }
.product .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.product.open .body { grid-template-rows: 1fr; }
.product .body > div { overflow: hidden; }
.product .inner { display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 24px; padding-bottom: 36px; }
.product .inner ul { grid-column: 3; margin: 0; padding: 0; list-style: none; }
.product .inner li { padding: 7px 0 7px 22px; position: relative; color: var(--ink-soft); font-size: 16px; }
.product .inner li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 1px; background: var(--gold); }
.product .inner .more { grid-column: 3; margin-top: 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.product button:hover .name { color: var(--gold); }
@media (max-width: 800px) {
  .product button { grid-template-columns: 44px 1fr 30px; }
  .product .tag { grid-column: 2; grid-row: 2; }
  .product .plus { grid-column: 3; grid-row: 1; }
  .product .inner { grid-template-columns: 44px 1fr; }
  .product .inner ul, .product .inner .more { grid-column: 2; }
}

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 20px; }
.journey::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(111, 211, 234, .25)); }
.stage { position: relative; padding: 44px 22px 0 0; }
.stage::before { content: ""; position: absolute; top: 3px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--gold); }
.stage:first-child::before { background: var(--gold); }
.stage .arrow { position: absolute; top: -2px; right: 12px; color: var(--gold); font-size: 16px; }
.stage h3 { font-size: 26px; margin-bottom: 10px; }
.stage p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .journey::before { top: 10px; bottom: 10px; left: 6px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(111, 211, 234, .25)); }
  .stage { padding: 0 0 36px 40px; }
  .stage .arrow { display: none; }
}

/* ---------- experience ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 64px; }
.area { background: var(--bg); padding: 34px; }
.area h3 { font-size: 24px; margin-bottom: 8px; }
.area p { color: var(--ink-soft); margin: 0; font-size: 15px; letter-spacing: .03em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat .big { font-family: var(--serif); font-size: clamp(46px, 5vw, 68px); line-height: 1; color: var(--gold); }
.stat .lbl { font-size: 14px; color: var(--ink-soft); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.cases-note { margin-top: 56px; padding: 26px 30px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .areas { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- independent ---------- */
.nos { list-style: none; margin: 0 0 56px; padding: 0; }
.nos li { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.2; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.yes { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; max-width: 900px; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 28px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #262d37, #151a20); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .06em; padding: 30px; }
.portrait span { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink-soft); letter-spacing: 0; margin-bottom: 10px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- briefing ---------- */
.briefing { border: 1px solid var(--gold); padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; background: linear-gradient(135deg, rgba(111, 211, 234, .07), transparent 60%); }
.briefing .pill { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold); padding: 6px 12px; margin-bottom: 20px; }
.inline-form { display: flex; flex-direction: column; gap: 14px; }
.inline-form input { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--ink); font: inherit; font-size: 18px; padding: 12px 2px; }
.inline-form input:focus { outline: none; border-bottom-color: var(--gold); }
.inline-form .btn { justify-content: center; }
.inline-form small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .briefing { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; } }

/* ---------- inner pages ---------- */
.page-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, #232a33 0%, var(--bg) 70%); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 900px; }
.svc { display: grid; grid-template-columns: 340px 1fr; gap: 64px; padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc .num { font-size: 13px; letter-spacing: .15em; color: var(--gold); }
.svc h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 10px; }
.svc .price { font-family: var(--serif); font-size: 26px; color: var(--gold); margin: 18px 0 2px; }
.svc .time { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.svc .for { font-family: var(--serif); font-size: 21px; line-height: 1.3; margin-bottom: 20px; }
.svc h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 30px 0 10px; font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0 11px 26px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 1px; background: var(--gold); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 10px; padding: 52px 0; } }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards > * { background: var(--bg); padding: 36px; scroll-margin-top: 100px; }
.cards h3 { font-size: 24px; }
.cards p { color: var(--ink-soft); font-size: 16px; }
.cards ul { color: var(--ink-soft); font-size: 15px; padding-left: 18px; margin: 12px 0 0; }
.cards .tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 14px; }
.cards .soon { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .cards, .cards.c3 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.chips a:hover { border-color: var(--gold); color: var(--gold); }

details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 20px; list-style: none; position: relative; padding-right: 36px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 28px; color: var(--gold); font-weight: 300; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- form ---------- */
.form { display: grid; gap: 30px; }
.field label, .field legend { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--ink);
  font: inherit; font-size: 18px; padding: 10px 2px;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 15px; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; user-select: none; }
.options input:checked + span { border-color: var(--gold); color: var(--bg); background: var(--gold); }
.options input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }
.form-done { display: none; }
.form-done.show { display: block; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-end; }
.site-footer .fname { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.1; }
.site-footer .frole { color: var(--ink-soft); margin-top: 6px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }

/* Libre Franklin: light display weight */
.hero .sub, .questions li, .answer, .product .name, .stat .big, .nos li, .yes, .svc .price, .svc .for, details summary, .site-footer .fname, .portrait span { font-weight: 300; letter-spacing: -0.01em; }
