/* ==========================================================================
   Arlo Smart Firm - Website Design & Development
   Production stylesheet | Pure CSS3, no framework
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #071227;
  --navy-800: #0b1b33;
  --navy-700: #12294a;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #5a6b85;
  --muted-light: #7c8aa1;
  --accent: #1c53f0;
  --accent-dark: #133cb5;
  --accent-soft: #eef2ff;
  --accent-ring: rgba(28, 83, 240, 0.18);
  --teal: #0e9384;
  --teal-soft: #e6fbf8;
  --white: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef2f8;
  --line: #e3e8f0;
  --line-strong: #cfd8e6;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 27, 51, 0.12);
  --shadow-accent: 0 12px 28px rgba(28, 83, 240, 0.22);

  --container: 1160px;
  --header-h: 72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 8px; }

strong { color: var(--ink); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 76px 0; }
.section--tight { padding: 54px 0; }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.03rem; margin-bottom: 0; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.eyebrow--light {
  color: #bcd0ff;
  background: rgba(255, 255, 255, 0.08);
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-900); color: #fff; }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn--sm { padding: 11px 18px; font-size: 0.9rem; min-height: 42px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; flex: 0 0 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); background: var(--surface); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav a.is-active { color: var(--accent); font-weight: 600; }
.mobile-nav .btn { margin-top: 16px; }
.mobile-nav__meta {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(28, 83, 240, 0.16), transparent 60%),
    radial-gradient(760px 420px at 92% 8%, rgba(14, 147, 132, 0.14), transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #dbe4f2;
  padding: 88px 0 96px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero__lead {
  font-size: 1.1rem;
  color: #b9c7dd;
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  color: #cbd7ea;
  font-weight: 500;
}
.trust-list .tick { color: #6ee7d3; font-weight: 700; }

/* Hero visual card */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.hero-card__inner {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  color: var(--ink-soft);
}
.hero-card__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.hero-card__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hero-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.hero-card__row:last-of-type { border-bottom: 0; }
.hero-card__row b { color: var(--ink); font-weight: 600; }
.hero-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-card__note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted-light);
}
.hero-card__mock {
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f6fd, var(--surface));
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 18px;
}
.hero-card__mock-line {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
  margin-bottom: 9px;
}
.hero-card__mock-line--title {
  height: 15px;
  width: 62%;
  background: var(--navy-700);
  margin-bottom: 14px;
}
.hero-card__mock-line--short { width: 74%; }
.hero-card__mock-btn {
  display: block;
  width: 108px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  margin-top: 14px;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(760px 380px at 8% -30%, rgba(28, 83, 240, 0.1), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 62px 0 56px;
}
.page-hero h1 { max-width: 24ch; }
.page-hero p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 66ch;
  margin-bottom: 0;
}
.page-hero .btn-row { margin-top: 26px; }

.breadcrumb {
  font-size: 0.84rem;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { padding: 0 6px; }

/* --------------------------------------------------------------------------
   8. Value strip
   -------------------------------------------------------------------------- */
.value-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
}
.value-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: center;
}
.value-strip__item {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.value-strip__item svg { color: var(--accent); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card__icon--teal { background: var(--teal-soft); color: var(--teal); }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-xs); }

.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(28, 83, 240, 0.28);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 11px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Detailed service block */
.service-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; padding-top: 6px; }
.service-block h3 { font-size: 1.3rem; }
.service-block__aside .card__icon { margin-bottom: 12px; }
.service-block__meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.service-block__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
  margin-top: 18px;
}
.service-block__cols h4 {
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   10. Steps / process
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.step__num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(28, 83, 240, 0.14);
}
.price-card__tag {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-accent);
}
.price-card__name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.price-card__for {
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 68px;
  margin-bottom: 14px;
}
.price-card__price {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.price-card__amount {
  display: block;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.price-card__from {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 6px;
}
.price-card__unit {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 4px;
}
.price-card .feature-list { margin-top: 0; flex: 1 1 auto; }
.price-card .btn { margin-top: 22px; }

.price-note {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.price-note strong { display: block; margin-bottom: 4px; }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.compare th,
table.compare td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.compare thead th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   12. Chips / audience
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}
.chip svg { color: var(--accent); }

/* --------------------------------------------------------------------------
   13. FAQ (native details/summary)
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 25px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--accent); }
.faq .faq__body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(28, 83, 240, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #c9d6ea;
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin: 0 auto 26px; color: #b7c6dd; }
.cta-band--flush { border-radius: 0; }

/* --------------------------------------------------------------------------
   15. Contact page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .opt { color: var(--muted-light); font-weight: 500; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 46px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235a6b85' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #d92d20; }

.form-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.87rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.form-consent input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: 0 0 18px; }

.form-status {
  display: none;
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.93rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}
.form-status.is-visible { display: block; }
.form-status.is-info { border-color: rgba(28, 83, 240, 0.3); background: var(--accent-soft); }
.form-status.is-error { border-color: rgba(217, 45, 32, 0.32); background: #fef3f2; color: #912018; }
.form-status.is-ok { border-color: rgba(14, 147, 132, 0.3); background: var(--teal-soft); color: #0a6c61; }

.info-card {
  background: var(--navy-800);
  color: #c6d3e7;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.info-card h2, .info-card h3 { color: #fff; }
.info-card h3 { font-size: 1.02rem; }
.info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fc0ff;
}
.info-row__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ea3c2;
  margin-bottom: 3px;
}
.info-row a { color: #fff; font-weight: 600; }
.info-row a:hover { color: #bcd0ff; }
.info-row address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #c6d3e7;
}

/* --------------------------------------------------------------------------
   16. Legal / long-form content
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9rem;
}
.legal-toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 12px;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--accent); }

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.34rem; margin-top: 38px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 22px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.98rem; }
.prose ul { padding-left: 22px; }
.updated {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 26px;
}
.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(28, 83, 240, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 22px 0;
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 70px 0;
}
.error-code {
  font-size: clamp(3.6rem, 12vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #94a7c4;
  padding: 60px 0 0;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94a7c4; }
.site-footer a:hover { color: #fff; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer-brand:hover { color: #fff; }
.footer-brand .brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.footer-about { max-width: 34ch; margin-bottom: 18px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { flex: 0 0 16px; margin-top: 4px; color: #6f86a8; }
.footer-contact address { font-style: normal; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #7d92b1;
}

/* --------------------------------------------------------------------------
   19. Mobile CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.08);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.mobile-cta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobile-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mobile-cta a.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   20. Cookie consent
   -------------------------------------------------------------------------- */
.cookie-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  max-width: 620px;
  margin: 0 auto;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 100%; }
  .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps--5 { grid-template-columns: repeat(3, 1fr); }
  .value-strip__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .legal { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .contact-layout { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; gap: 16px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
  .cookie-bar { bottom: 82px; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .hero { padding: 62px 0 68px; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .pricing-grid--3 { grid-template-columns: 1fr; }
  .steps--5 { grid-template-columns: 1fr; }
  .value-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .service-block__cols { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 22px; border-radius: var(--radius-lg); }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .header-inner { height: 64px; }
  :root { --header-h: 64px; }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .mobile-cta, .cookie-bar, .btn-row { display: none !important; }
  body { padding-bottom: 0; }
}
