/* =========================================================
   Pravoved — Адвокатское бюро. Conservative legal palette.
   Navy accent, slate neutrals, serif display + Inter body.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background-color: hsl(215 28% 96%);
  background-image:
    radial-gradient(1100px circle at 6% -6%, hsl(215 70% 55% / 0.18), transparent 55%),
    radial-gradient(900px circle at 102% 8%, hsl(355 55% 50% / 0.14), transparent 55%),
    radial-gradient(820px circle at 50% 118%, hsl(40 80% 55% / 0.14), transparent 55%),
    linear-gradient(180deg, hsl(215 35% 98%) 0%, hsl(215 25% 95%) 48%, hsl(215 20% 92%) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M20 0 L21 19 L40 20 L21 21 L20 40 L19 21 L0 20 L19 19 Z' fill='%231a3a5c' fill-opacity='0.04'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, cover, 40px 40px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --accent-h: 215;
  --accent-s: 45%;
  --accent-l: 28%;

  --bg:            hsl(0 0% 100%);
  --surface:       hsl(215 22% 97%);
  --card:          hsl(0 0% 100%);
  --border:        hsl(215 16% 88%);
  --border-strong: hsl(215 14% 78%);
  --fg:            hsl(215 28% 12%);
  --muted:         hsl(215 14% 40%);
  --muted-fg:      hsl(215 10% 58%);

  --accent:       hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-hover: hsl(var(--accent-h) var(--accent-s) 22%);
  --accent-fg:    hsl(0 0% 100%);
  --accent-soft:  hsl(var(--accent-h) 30% 96%);
  --accent-line:  hsl(var(--accent-h) 35% 86%);

  --burgundy:     hsl(355 38% 34%);
  --gold:         hsl(40 75% 52%);
  --gold-soft:    hsl(40 65% 90%);

  --danger:       hsl(0 60% 45%);
  --success:      hsl(142 45% 36%);

  --shadow-sm: 0 1px 2px hsl(215 28% 12% / 0.04);
  --shadow:    0 4px 12px hsl(215 28% 12% / 0.06);
  --shadow-lg: 0 24px 48px hsl(215 28% 12% / 0.10);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --font-display: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --reading: 720px;

  --hdr-height: 64px;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
}
p { font-size: 16px; line-height: 1.7; color: var(--fg); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
small { font-size: 13px; }

a.link, .prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
a.link:hover, .prose a:hover { color: var(--accent-hover); border-color: var(--accent); }

/* ----- Focus ----- */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: inherit;
  transition: outline-offset 200ms ease-out;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-12); }
@media (min-width: 768px) { .section { padding-block: var(--space-16); } }
.section--hero { padding-block: var(--space-12); }
@media (min-width: 768px) { .section--hero { padding-block: var(--space-20); } }
.section--surface { background: var(--surface); }
.section--accent { background: var(--accent-soft); }

.section__eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}
.section__title { margin-bottom: var(--space-4); }
.section__intro { color: var(--muted); max-width: 680px; margin-bottom: var(--space-10); }

.grid { display: grid; gap: var(--space-6); }
.grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid--cols-3, .grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--cols-2, .grid--cols-3, .grid--cols-4 { grid-template-columns: 1fr; }
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent);
  color: var(--accent-fg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: var(--space-2); }

/* ----- Buttons / CTA ----- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--font-body);
}
.cta-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.cta-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cta-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
}
.cta-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.cta-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
}
.cta-ghost:hover { background: var(--accent-soft); }

/* ----- Top bar ----- */
.top-bar {
  background: linear-gradient(180deg, var(--surface) 0%, hsl(215 24% 94%) 100%);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.top-bar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.top-bar__contacts {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.top-bar__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--fg);
  font-weight: 500;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition: color 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
}
.top-bar__chip svg {
  color: var(--accent);
  flex-shrink: 0;
  transition: color 150ms ease-out;
}
a.top-bar__chip:hover {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
a.top-bar__chip:hover svg { color: var(--accent-fg); }
.top-bar__chip--static { box-shadow: none; background: transparent; border-color: transparent; color: var(--muted); padding-inline: var(--space-2); }
.top-bar__social {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.top-bar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: color 150ms ease-out, background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
.top-bar__social-link:hover {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.top-bar__social-text { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
@media (max-width: 768px) { .top-bar { display: none; } }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease-out, background 200ms ease-out;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  background: hsl(0 0% 100% / 0.92);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr-height);
  gap: var(--space-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
}
.brand__name { white-space: nowrap; }
.brand__name em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.primary-nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  border-radius: var(--radius);
  transition: background 150ms ease-out, color 150ms ease-out;
  position: relative;
}
.nav-link:hover { color: var(--accent); background: var(--accent-soft); }
.nav-link.is-current {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.hdr-cta { display: inline-flex; }

.hdr-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--fg);
  transition: background 150ms ease-out;
}
.hdr-toggle:hover { background: var(--surface); }
.hdr-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .primary-nav, .site-header .hdr-cta { display: none; }
  .hdr-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: var(--space-6);
}
.drawer.is-open { display: flex; }
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}
.drawer__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--fg);
}
.drawer__close:hover { background: var(--surface); }
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.drawer__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}
.drawer__link.is-current { color: var(--accent); }
.drawer__link:hover { background: var(--accent-soft); color: var(--accent); }
.drawer__cta { margin-top: auto; padding-top: var(--space-8); }
.drawer__cta .cta { width: 100%; }

body.no-scroll { overflow: hidden; }

/* ----- Hero ----- */
.hero { position: relative; }
.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.hero__title {
  font-size: 36px;
  margin-bottom: var(--space-5);
  max-width: 880px;
}
@media (min-width: 768px) { .hero__title { font-size: 48px; } }
@media (min-width: 1024px) { .hero__title { font-size: 60px; line-height: 1.1; } }
.hero__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero--centered { text-align: center; }
.hero--centered .hero__title,
.hero--centered .hero__sub { margin-inline: auto; }
.hero--centered .hero__actions { justify-content: center; }

/* Top-bar-hero metrics strip */
.trust-strip {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-10);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  max-width: 920px;
  margin-inline: auto;
}
.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 120px;
}
.trust-strip__val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.trust-strip__label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Hero with side image */
.hero--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 960px) { .hero--split { grid-template-columns: 1.1fr 1fr; } }
.hero__visual {
  border-radius: var(--radius-xl);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  min-height: 320px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumbs */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin-inline: var(--space-2); opacity: 0.6; }

/* ----- Cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}
.card--link:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 22px;
  margin-bottom: var(--space-4);
}
.card__title { font-size: 18px; margin-bottom: var(--space-2); }
.card__desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* Service cards (overview) */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
  height: 100%;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.service-card h3 { margin-bottom: var(--space-3); font-size: 20px; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.service-card .card__more { margin-top: var(--space-5); }

/* ----- Stats ----- */
.stat {
  text-align: center;
  padding: var(--space-6);
}
.stat__val {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}

/* ----- Testimonials ----- */
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial::before {
  content: """;
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 0.7;
  color: var(--accent);
  margin-bottom: var(--space-2);
  display: block;
}
.testimonial__quote { font-size: 15px; line-height: 1.7; color: var(--fg); flex: 1; }
.testimonial__by { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.testimonial__author { font-weight: 600; font-size: 15px; }
.testimonial__role { color: var(--muted); font-size: 13px; }
.testimonial__photo {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--accent-soft); display: grid; place-items: center;
  font-weight: 600; color: var(--accent);
}

/* ----- Pricing ----- */
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease-out;
}
.plan--highlight {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.plan--highlight::before {
  content: "Рекомендуем";
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--accent);
  color: var(--accent-fg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan__name { font-size: 18px; margin-bottom: var(--space-2); }
.plan__price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.plan__period { font-size: 14px; color: var(--muted); margin-left: var(--space-1); }
.plan__features {
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.plan__features li {
  position: relative;
  padding-left: var(--space-6);
  font-size: 15px;
  line-height: 1.5;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .cta { width: 100%; }

/* ----- Team ----- */
.member {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.member__photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 18px; margin-bottom: var(--space-1); }
.member__role { color: var(--accent); font-size: 14px; margin-bottom: var(--space-3); font-weight: 500; }
.member__bio { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 880px; margin-inline: auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 150ms ease-out;
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: background 150ms ease-out;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface); }
.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 200ms ease-out;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq-item__answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ----- Contact info ----- */
.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-info__row { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-info__icon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.contact-info__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.contact-info__value { font-size: 15px; color: var(--fg); }
.contact-info__value a:hover { color: var(--accent); }
.contact-info__hours { display: flex; flex-direction: column; gap: var(--space-1); }
.contact-info__social { display: flex; gap: var(--space-3); }
.contact-info__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 150ms, border-color 150ms;
}
.contact-info__social a:hover { color: var(--accent); border-color: var(--accent); }

/* ----- Forms ----- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.lead-form__title { margin-bottom: var(--space-2); }
.lead-form__sub { color: var(--muted); font-size: 14px; margin-bottom: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 13px; font-weight: 500; color: var(--fg); }
.field input,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; }

.cta__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid hsl(0 0% 100% / 0.4);
  border-top-color: var(--accent-fg);
  border-radius: var(--radius-full);
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lead-form[data-state="submitting"] .cta__spinner { display: inline-block; }
.lead-form[data-state="submitting"] button[type="submit"] { pointer-events: none; opacity: 0.7; }
.form__msg { font-size: 14px; padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.form__msg--success { background: hsl(142 45% 95%); color: var(--success); border: 1px solid hsl(142 45% 80%); }
.form__msg--error   { background: hsl(0 60% 96%); color: var(--danger); border: 1px solid hsl(0 60% 85%); }
.lead-form[data-state="success"] .form__msg--success { display: block; }
.lead-form[data-state="error"]   .form__msg--error   { display: block; }

/* ----- Prose / content blocks ----- */
.prose { max-width: var(--reading); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { margin-top: var(--space-10); font-size: 24px; }
.prose h3 { margin-top: var(--space-8); font-size: 18px; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--fg); }
.prose ul, .prose ol { padding-left: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.prose blockquote cite { display: block; margin-top: var(--space-2); font-size: 14px; color: var(--muted); font-style: normal; }
.prose figure { margin: var(--space-6) 0; }
.prose figure img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: var(--space-2); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.prose th, .prose td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
.prose thead { background: var(--surface); }
.prose th { font-weight: 600; }
.prose .cta { margin-top: var(--space-2); margin-right: var(--space-2); border-bottom: none; }
.prose a.cta-primary { color: var(--accent-fg); }
.prose a.cta-primary:hover { color: var(--accent-fg); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* In-section anchors (service page TOC) */
.toc {
  margin: var(--space-6) 0 var(--space-10);
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc__label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: var(--space-2); }
.toc ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.toc a { color: var(--accent); font-size: 14px; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* ----- Blog ----- */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 150ms, box-shadow 150ms;
}
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.post-card__eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.post-card h3 { font-size: 20px; margin-bottom: var(--space-3); }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card .card__more { margin-top: var(--space-4); }

.blog-meta { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin-bottom: var(--space-3); text-transform: uppercase; }

/* ----- About founder quote ----- */
.founder-quote {
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  margin-block: var(--space-10);
}
.founder-quote__text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  color: var(--fg);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  font-style: italic;
}
.founder-quote__by { font-size: 14px; color: var(--muted); }

/* ----- CTA section ----- */
.cta-section {
  background: var(--accent-soft);
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.cta-section h2 { margin-bottom: var(--space-3); }
.cta-section p { color: var(--muted); max-width: 600px; margin: 0 auto var(--space-6); }
.cta-section__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.cta-section__actions .cta {
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
}
.cta-section__actions .cta-primary {
  box-shadow: 0 8px 22px hsl(var(--accent-h) 45% 28% / 0.28);
}
.cta-section__actions .cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px hsl(var(--accent-h) 45% 28% / 0.34);
}

/* ----- 404 ----- */
.error-page { text-align: center; padding: var(--space-24) var(--space-6); }
.error-page__code {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
@media (min-width: 768px) { .error-page__code { font-size: 128px; } }
.error-page__title { margin-bottom: var(--space-4); }
.error-page__sub { color: var(--muted); max-width: 540px; margin: 0 auto var(--space-8); }
.error-page__links { display: flex; flex-direction: column; gap: var(--space-2); max-width: 360px; margin: var(--space-10) auto 0; text-align: left; }
.error-page__links a {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 150ms, color 150ms;
}
.error-page__links a:hover { border-color: var(--accent); color: var(--accent); }

/* ----- Footer ----- */
.site-footer {
  background: hsl(215 28% 10%);
  color: hsl(215 12% 78%);
  padding-block: var(--space-16) var(--space-6);
  margin-top: var(--space-16);
}
.site-footer .container { padding-inline: var(--space-6); }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 18px;
  color: hsl(0 0% 95%);
  max-width: 480px;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 860px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  color: hsl(0 0% 95%);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col a { font-size: 14px; transition: color 150ms; }
.footer__col a:hover { color: hsl(0 0% 100%); }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: hsl(0 0% 100%);
  margin-bottom: var(--space-4);
}
.footer__brand .brand__mark { background: var(--accent); }
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid hsl(215 28% 18%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: hsl(215 12% 64%);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* =========================================================
   Premium customizations — aurora background, gold accents,
   glass surfaces, gradient title, refined hover states.
   ========================================================= */

/* Slow drifting aurora layer behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 20% 30%, hsl(215 70% 50% / 0.10), transparent 60%),
    radial-gradient(36vmax 28vmax at 80% 70%, hsl(40 80% 55% / 0.10), transparent 60%),
    radial-gradient(30vmax 24vmax at 50% 50%, hsl(355 50% 45% / 0.08), transparent 60%);
  filter: blur(20px);
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  100% { transform: translate3d(-1.5%, 2%, 0) scale(1.02); }
}

/* Gradient hero title — navy → burgundy → gold sweep */
.hero__title {
  background: linear-gradient(120deg, var(--accent) 0%, var(--burgundy) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Error page code: same premium gradient */
.error-page__code {
  background: linear-gradient(120deg, var(--accent) 0%, var(--burgundy) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glass-morphism trust strip */
.trust-strip {
  background: hsl(0 0% 100% / 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid hsl(0 0% 100% / 0.7);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.9) inset,
    0 18px 48px hsl(215 28% 12% / 0.10),
    0 2px 8px hsl(215 28% 12% / 0.04);
  position: relative;
  overflow: hidden;
}
.trust-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, hsl(0 0% 100% / 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.trust-strip:hover::after { animation: shine 1.4s ease-out; }
@keyframes shine {
  to { transform: translateX(100%); }
}
.trust-strip__val {
  background: linear-gradient(180deg, var(--accent) 0%, var(--burgundy) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Brand mark — gradient with subtle inner glow */
.brand__mark {
  background: linear-gradient(135deg, var(--accent) 0%, var(--burgundy) 100%);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.25),
    0 4px 10px hsl(var(--accent-h) 45% 28% / 0.25);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, hsl(0 0% 100% / 0.18), transparent 60%);
  pointer-events: none;
}

/* Cards: subtle gradient hairline on hover + lift */
.card, .service-card, .post-card, .testimonial, .plan, .member, .faq-item, .contact-info, .lead-form {
  position: relative;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, hsl(0 0% 100%) 0%, hsl(215 20% 94%) 100%) border-box;
  border: 1px solid transparent;
}
.card--link:hover, .service-card:hover, .post-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%) border-box;
}

/* Primary CTA: subtle gradient + sheen on hover */
.cta-primary {
  background: linear-gradient(135deg, var(--accent) 0%, hsl(var(--accent-h) 50% 22%) 100%);
  position: relative;
  overflow: hidden;
}
.cta-primary::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(120deg, transparent, hsl(0 0% 100% / 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 600ms ease-out;
  pointer-events: none;
}
.cta-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, hsl(var(--accent-h) 55% 18%) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px hsl(var(--accent-h) 45% 28% / 0.28);
}
.cta-primary:hover::before { left: 120%; }

/* Section eyebrow with leading rule */
.section__eyebrow, .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.section__eyebrow::before, .hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  flex-shrink: 0;
}

/* Header glass when scrolled */
.site-header.is-scrolled {
  background: hsl(0 0% 100% / 0.78);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: hsl(215 20% 88% / 0.7);
}

/* Plan highlight: animated gold ribbon */
.plan--highlight::before {
  background: linear-gradient(135deg, var(--gold) 0%, var(--burgundy) 100%);
  box-shadow: 0 6px 14px hsl(40 75% 40% / 0.28);
}

/* Founder quote / CTA section: warmer gradient backdrop */
.founder-quote, .cta-section {
  background:
    radial-gradient(600px circle at 20% 0%, hsl(40 75% 60% / 0.12), transparent 55%),
    radial-gradient(600px circle at 100% 100%, hsl(355 45% 50% / 0.12), transparent 55%),
    var(--accent-soft);
}

/* Footer: subtle navy → near-black gradient with starry texture */
.site-footer {
  background:
    radial-gradient(1000px circle at 10% 0%, hsl(215 50% 22%) 0%, transparent 60%),
    linear-gradient(180deg, hsl(215 35% 14%) 0%, hsl(215 30% 8%) 100%);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, hsl(40 80% 60% / 0.10), transparent 25%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='4' cy='4' r='0.6' fill='%23ffffff' fill-opacity='0.06'/></svg>");
  pointer-events: none;
}
.site-footer .container { position: relative; }

/* Gentle reveal of the trust-strip values */
.trust-strip__item { animation: rise-in 320ms ease-out backwards; }
.trust-strip__item:nth-child(1) { animation-delay: 30ms; }
.trust-strip__item:nth-child(2) { animation-delay: 70ms; }
.trust-strip__item:nth-child(3) { animation-delay: 110ms; }
.trust-strip__item:nth-child(4) { animation-delay: 150ms; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Scroll reveal ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
