:root {
  --indigo: #4b3f99;
  --indigo-deep: #2c2466;
  --violet: #7b6cd9;
  --accent: #f2b33d;
  --bg: #f6f5fc;
  --bg-alt: #ebe8f8;
  --surface: #ffffff;
  --text: #1d1a33;
  --muted: #5a5675;
  --border: #d9d4f0;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(44, 36, 102, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14122a;
    --bg-alt: #1b1838;
    --surface: #221f45;
    --text: #ecebf7;
    --muted: #aaa6c9;
    --border: #36316a;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
a { color: var(--violet); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--indigo-deep);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand small { display: block; font-weight: 500; font-size: 0.75rem; opacity: 0.8; letter-spacing: 0.08em; text-transform: uppercase; }
.cube {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--violet);
  box-shadow: inset 0 0 0 5px var(--indigo), inset 0 0 0 9px var(--violet);
  position: relative;
}
.cube::after { content: ""; position: absolute; inset: 11px; background: var(--indigo-deep); border-radius: 2px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 6px 12px; border-radius: 8px; font: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent); color: #1d1a33;
  font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: none;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-small { padding: 7px 16px; color: #1d1a33 !important; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 30%, var(--violet), var(--indigo) 45%, var(--indigo-deep));
  color: #fff;
  padding: 72px 0 84px;
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); font-weight: 700; margin: 0 0 12px; }
.lead { font-size: 1.15rem; opacity: 0.92; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.hero-art { display: flex; justify-content: center; }
.big-cube {
  width: 220px; height: 220px; border-radius: 34px;
  background: var(--violet);
  box-shadow: inset 0 0 0 26px var(--indigo), inset 0 0 0 46px var(--violet), 0 20px 50px rgba(0,0,0,0.35);
  position: relative;
  transform: rotate(-8deg);
  animation: float 6s ease-in-out infinite;
}
.big-cube span { position: absolute; inset: 72px; background: var(--indigo-deep); border-radius: 12px; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .big-cube { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 46em; margin-bottom: 32px; }
.fine { color: var(--muted); font-size: 0.88rem; }

.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-block; background: var(--accent); color: #1d1a33; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Pricing */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.price-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.price-group h3 { color: var(--violet); border-bottom: 2px solid var(--border); padding-bottom: 8px; }
table { width: 100%; border-collapse: collapse; }
td { padding: 9px 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td small { display: block; color: var(--muted); font-size: 0.8rem; }
.price { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.highlight td { color: var(--violet); }
.group-note { margin: 12px 0 0; }
.group-lead { margin: 0 0 8px; }
.other-work { margin: 24px 0 8px; max-width: 46em; }
.tag { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent); color: #1d1a33; padding: 0 6px; border-radius: 4px; vertical-align: middle; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--indigo); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }

.towns { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-weight: 500; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Form */
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #2f9e5b; }
.form-status.err { color: #d0453f; }

/* Footer */
.site-footer { background: var(--indigo-deep); color: #d7d3f2; padding: 28px 0; text-align: center; }
.site-footer p { margin: 4px 0; }
.site-footer .fine { color: #a39fc9; }

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--indigo-deep); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn-small { text-align: center; margin-top: 8px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .price-groups { grid-template-columns: 1fr; }
}
