:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --surface: #ffffff;
  --ink: #16151a;
  --muted: #5d5a66;
  --line: #e4e1da;
  --accent: #5b4bff;
  --accent-ink: #ffffff;
  --accent-soft: rgb(91 75 255 / 9%);
  --warn: #c8341f;
  --shadow: 0 1px 2px rgb(22 21 26 / 5%), 0 12px 32px -12px rgb(22 21 26 / 18%);

  --radius: 18px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121118;
    --bg-alt: #17161f;
    --surface: #1d1c26;
    --ink: #f1f0f5;
    --muted: #a5a2b3;
    --line: #2d2b39;
    --accent: #8f84ff;
    --accent-ink: #110d33;
    --accent-soft: rgb(143 132 255 / 12%);
    --warn: #ff8a7a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 7.4vw, 4.2rem); font-weight: 800; }
h1 span { color: var(--accent); display: block; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.15rem var(--font-head); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 22px; color: var(--accent); }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-inner > .btn { margin-left: auto; }
@media (min-width: 820px) { .nav { display: flex; } .header-inner > .btn { margin-left: 0; } }

/* Hero */
.hero { padding: 48px 0 32px; overflow: hidden; background: radial-gradient(55% 60% at 85% 30%, var(--accent-soft), transparent 70%); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { color: var(--muted); font-size: 15px; margin: 0; }
.hero-phones { position: relative; height: 430px; max-width: 420px; width: 100%; margin-inline: auto; }
.phone { position: absolute; width: 190px; border-radius: 26px; border: 6px solid #16151a; box-shadow: var(--shadow); background: #000; }
.phone-front { left: 50%; top: 0; transform: translateX(-20%) rotate(3deg); z-index: 2; }
.phone-back { left: 50%; top: 34px; transform: translateX(-88%) rotate(-5deg); opacity: .96; }
@media (min-width: 920px) {
  .hero { padding: 88px 0 72px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero-phones { height: 520px; }
  .phone { width: 230px; }
}

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 40em; }

.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card .card-icon { font-size: 28px; margin-bottom: 10px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; gap: 16px 28px; } }
.features li { position: relative; padding: 18px 20px 18px 54px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.features li strong { color: var(--ink); display: block; margin-bottom: 2px; }
.features li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.features li::after { content: ""; position: absolute; left: 26px; top: 27px; width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.work-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.work:hover { transform: translateY(-2px); border-color: var(--accent); }
.work img { border-radius: 16px; border: 4px solid #16151a; }
.work p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.work-link { color: var(--accent); font-weight: 700; }
@media (min-width: 520px) { .work { grid-template-columns: 150px 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }

.price-grid { display: grid; gap: 16px; max-width: 820px; }
@media (min-width: 680px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price { font: 800 2.6rem var(--font-head); margin: 0; letter-spacing: -.03em; }
.price small { font: 500 1rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.price-sub { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.founding { margin-top: 20px; max-width: 820px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.founding p { margin: 0; max-width: 36em; }
.note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }

.about p { color: var(--muted); font-size: 1.08rem; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; position: relative; padding: 17px 52px 17px 20px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 17px; margin: 0; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
.contact-alt { color: var(--muted); }
.contact-form, .confirm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
[aria-invalid="true"] { border-color: var(--warn); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; text-align: center; margin: 12px 0 0; }
.confirm { text-align: center; }
.confirm:focus { outline: none; }
.confirm p { color: var(--muted); margin: 0; }
.confirm-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--accent); color: var(--accent-ink); font-size: 30px; font-weight: 800; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { justify-content: center; font-size: 1.25rem; }
.site-footer p { margin: 0; color: var(--muted); }
.footer-tagline { font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 4px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.footer-links a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .credit { font-size: 13px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; max-width: 560px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
