:root {
  --bg: #07090d;
  --elevated: #0d1117;
  --fg: #f2f5f9;
  --muted: #8b98ab;
  --accent: #2e7fe8;
  --accent-bright: #5fa0f0;
  --cta: #1d5fc7;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --danger: #f87171;
  --ok: #34d399;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
em.acc { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-bright); }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 13, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.2; }
.brand img { width: 32px; height: 32px; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
nav.main { display: flex; align-items: center; gap: 24px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav.main a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--cta); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); }
.btn:hover { filter: brightness(1.1); }

/* hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,13,.2) 0%, rgba(7,9,13,.35) 45%, rgba(7,9,13,.96) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; width: 100%; }
.kicker { color: var(--accent-bright); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; margin: 0 0 18px; max-width: 820px; text-shadow: 0 2px 18px rgba(7,9,13,.85); }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: #cfd6e0; max-width: 600px; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.benefits { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: #cfd6e0; font-size: 14px; }
.benefits li::before { content: "✓"; color: var(--ok); margin-right: 8px; }

/* sections */
section.sec { padding: 96px 0; }
section.alt { background: rgba(13, 17, 23, .6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 16px; max-width: 760px; }
.intro { color: var(--muted); max-width: 620px; margin: 0 0 40px; font-size: 17px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--elevated); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(46,127,232,.14); color: var(--accent-bright); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.case .niche { color: var(--accent-bright); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.case .big { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ok); margin: 14px 0 10px; }
.case p { font-size: 13px; }
.seo h3 { font-size: 22px; margin: 6px 0 10px; }
.seo dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.seo dt { font-family: var(--display); font-size: 26px; color: var(--ok); }
.seo dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.about { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.about img { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about .who { margin-top: 14px; }
.about .who b { display: block; font-family: var(--display); font-size: 18px; }
.about .who span { color: var(--muted); font-size: 13px; }
.about p { color: #cfd6e0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 46px); line-height: 1; }
.stats span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 22px; left: 24px; font-family: var(--display); color: var(--accent-bright); font-size: 14px; letter-spacing: .1em; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent-bright); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.points { list-style: none; padding: 0; margin: 24px 0 0; }
.points li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; color: #cfd6e0; }
.points li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
form label.f { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
form .row { margin-bottom: 14px; }
input[type=text], input[type=tel], input[type=email], textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--fg); background: var(--glass); border: 1px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
form button { width: 100%; min-height: 48px; border: 0; border-radius: 10px; cursor: pointer; background: var(--cta); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; }
form button:disabled { opacity: .6; cursor: default; }
.msg { font-size: 14px; margin-top: 12px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer img { height: 34px; width: auto; }
footer nav a { color: var(--muted); margin-right: 18px; }

/* legal pages */
.legal { padding: 48px 20px 64px; max-width: 800px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); text-shadow: none; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: #cfd6e0; }

@media (max-width: 960px) {
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .about img { max-width: 320px; }
  nav.main a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  section.sec { padding: 64px 0; }
  .g4, .g5, .g2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .seo dl { grid-template-columns: 1fr; }
  .hero { min-height: 600px; }
  .hero .wrap { padding-bottom: 40px; }
  .brand small { display: none; }
  nav.main .btn { padding: 0 16px; font-size: 14px; }
}
