/* SP Digital — site styles. No build step, no external fonts. */
:root {
  --bg: #0d1117;
  --header: #010409;
  --panel: #151b23;
  --btn: #212830;
  --line: #3d444d;
  --line-soft: #262c36;
  --text: #f0f6fc;
  --muted: #9198a1;
  --accent: #3fb950;
  --hover: #8fafc4;
  --danger: #ff7b72;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--hover); }
p a, li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #2ea043; color: var(--bg); }
.btn-secondary { background: var(--btn); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--hover); color: var(--text); }
.btn-outline { border-color: var(--accent); color: var(--accent); min-height: 44px; padding: 0 18px; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-outline:hover { background: var(--accent); color: var(--bg); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--header); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .btn-outline { margin-top: 16px; border-bottom: 1px solid var(--accent); }
}

/* Sections */
.hero { padding: 120px 0 96px; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.035em; max-width: 1000px; margin-bottom: 32px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 640px; margin-bottom: 44px; }
.page-hero { padding: 96px 0 64px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 60px); letter-spacing: -0.03em; margin-bottom: 20px; }
.page-hero .lead { font-size: 19px; color: var(--muted); max-width: 680px; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.strip ul { list-style: none; margin: 0; padding: 26px 0; display: flex; flex-wrap: wrap; gap: 16px 32px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.strip li::before { content: "\25CF"; color: var(--accent); margin-right: 8px; }

.section { padding: 104px 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.025em; }
.section-head p { color: var(--muted); max-width: 420px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.card h3 { font-size: 22px; font-weight: 600; }
.card p { color: var(--muted); }
a.card:hover { border-color: var(--hover); color: var(--text); }
.card-cta { background: var(--bg); border-style: dashed; justify-content: space-between; }
.card-cta .mono { color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { border-top: 2px solid var(--line); padding-top: 20px; }
.step:first-child { border-top-color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); }

.cta-band { background: var(--panel); border-top: 1px solid var(--line); }
.cta-band .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { flex: 1 1 520px; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.cta-band h2 span { color: var(--muted); }

/* Services page */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding: 72px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 24px; }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: 32px; letter-spacing: -0.02em; margin: 10px 0 16px; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.service li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
.service li strong { display: block; font-weight: 600; }
.service li span { color: var(--muted); font-size: 15px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 24px; } }

/* Prose pages */
.prose { max-width: 760px; padding: 64px 0 104px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #c9d1d9; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 104px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-size: 15px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }
.aside { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 32px; align-self: start; display: grid; gap: 20px; }
.aside h2 { font-size: 22px; }
.aside ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #c9d1d9; }
.small { font-size: 14px; color: var(--muted); }

/* 404 */
.notfound { padding: 140px 0; }
.notfound h1 { font-size: clamp(44px, 7vw, 72px); letter-spacing: -0.03em; margin: 16px 0 20px; }
.notfound p { color: var(--muted); margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--header); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer .brand img { height: 30px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--hover); }
.site-footer .copy { width: 100%; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 20px; }

@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 72px 0; }
  .card, .aside { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
