/* ===== Token ===== */
:root {
  --ink: #16213a;
  --ink-soft: #3b4660;
  --muted: #5f6880;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #e2ddd2;
  --accent: #b5652b;
  --accent-ink: #ffffff;
  --accent-soft: #f3e4d6;
  --teal: #1f6f6b;
  --radius: 14px;
  --maxw: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f5;
    --ink-soft: #c9cedb;
    --muted: #9aa2b5;
    --paper: #12161f;
    --surface: #1a2030;
    --line: #2c3446;
    --accent: #e08a4c;
    --accent-ink: #12161f;
    --accent-soft: #33261c;
    --teal: #5cbcb5;
    color-scheme: dark;
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border: 0; margin-top: 12px; text-align: center; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: var(--accent-ink); filter: brightness(1.06); transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }

/* ===== Sections ===== */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Hero */
.hero { padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; box-shadow: 0 18px 40px -24px rgba(22,33,58,.35); }
.hero-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.check { list-style: none; margin: 0; padding: 0; }
.check li { position: relative; padding: 0 0 12px 30px; color: var(--ink-soft); }
.check li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.check li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (max-width: 860px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.tag-teal { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 116px 1fr; gap: 34px; padding: 0 0 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 126px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline li.future::before { border-color: var(--muted); }
.timeline .date { font-family: var(--serif); font-weight: 600; text-align: right; color: var(--ink); }
.timeline .date span { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.timeline h3 { font-size: 1.08rem; margin-bottom: .3em; }
.timeline p { color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::before { left: 1px; }
  .timeline .date { text-align: left; }
}
.callout { margin-top: 28px; background: var(--surface); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.callout p:last-child { margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 1.2rem; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-soft); }

/* Pricing */
.offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
.price-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 28px; }
.price-card h3 { color: var(--paper); }
.price-card .price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: 10px 0 6px; }
.price-card .price small { font-family: var(--sans); font-size: .95rem; opacity: .8; }
.price-card p, .price-card li { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.price-card .check li::before { background: transparent; }
.price-card .btn { margin-top: 10px; }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.portrait { width: 220px; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; color: var(--accent); border: 1px solid var(--line); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { width: 140px; font-size: 2.6rem; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); }

/* Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin: 6px 0 18px; }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.hidden { position: absolute !important; left: -9999px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { padding: 64px 0 84px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface); }
.table-wrap { overflow-x: auto; }

/* Footer */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 80%, transparent); padding: 44px 0 36px; font-size: .92rem; }
.site-footer a { color: var(--paper); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.site-footer .legal-data { line-height: 1.6; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer ul { justify-content: flex-start; } }

/* Simple pages */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
