/* ====== CSS VARIABLES & THEMES ====== */
:root {
  --ice: #D6F0E8;
  --mint: #D6F0E8;
  --white: #FAFCFF;
  --sky: #2DAA86;
  --sky-deep: #1E8F6F;
  --sky-soft: #A8DDD0;
  --ink: #0F2A3F;
  --ink-2: #3E5A6E;
  --ink-3: #6B8294;
  --line: rgba(45, 170, 134, 0.14);
  --shadow-sm: 0 2px 8px rgba(30, 100, 80, 0.06);
  --shadow-md: 0 8px 28px rgba(30, 100, 80, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 100, 80, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* Theme tokens — mint background defaults */
  --bg: #EEFAF3;
  --surface: #FFFFFF;
  --surface-2: #E2F5EA;
  --surface-3: #D1EEDC;
  --text: #0F2A3F;
  --text-2: #3E5A6E;
  --text-3: #6B8294;
  --border: rgba(45, 170, 134, 0.18);
  --header-bg: rgba(238, 250, 243, 0.88);
  --footer-bg: #0F2A3F;
  --footer-text: rgba(255, 255, 255, 0.78);
  --footer-text-2: rgba(255, 255, 255, 0.72);
  --footer-line: rgba(255, 255, 255, 0.1);
  --hero-grad-1: var(--ice);
  --hero-grad-2: var(--mint);
  --pill-bg: rgba(45, 170, 134, 0.10);
  --error: #E5564A;
  --error-bg: #FFF6F5;

  /* Promo / sale-price tokens (Phase 6) */
  --promo: #e74c3c;
  --promo-deep: #c0392b;
  --promo-grad: linear-gradient(135deg, var(--promo), var(--promo-deep));
  --price-old: #999;
  --price-new: #e74c3c;
  --badge-bg: var(--promo);
  --badge-text: #fff;
}

[data-theme="dark"] {
  --bg: #0A1A14;
  --surface: #132E24;
  --surface-2: #1A3E32;
  --surface-3: #204E3E;
  --text: #EAF4FB;
  --text-2: #B8CFDE;
  --text-3: #8AABB8;
  --border: rgba(45, 170, 134, 0.26);
  --header-bg: rgba(10, 26, 20, 0.92);
  --footer-bg: #060E15;
  --footer-text: rgba(234, 244, 251, 0.85);
  --footer-text-2: rgba(234, 244, 251, 0.70);
  --footer-line: rgba(255, 255, 255, 0.10);
  --hero-grad-1: rgba(45, 170, 134, 0.20);
  --hero-grad-2: rgba(45, 200, 170, 0.16);
  --pill-bg: rgba(45, 170, 134, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.50);
  --error: #FF7A6E;
  --error-bg: rgba(229, 86, 74, 0.14);

  /* Promo / sale-price tokens lifted for dark mint contrast (D-09) */
  --promo: #FF6B5C;
  --promo-deep: #D9483B;
  --price-old: #7E8A93;
  --price-new: #FF7A6E;
}

/* ====== FOCUS VISIBLE — keyboard navigation ring ====== */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Suppress outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* ====== SKIP LINK (keyboard accessibility) ====== */
.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  background: var(--sky);
  color: white;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus { top: 0; }

/* Visually hidden but remains in the accessibility tree and heading outline.
   Used for the footer <h2> (D-11 heading-hierarchy fix). Do NOT use display:none
   or visibility:hidden — those remove the element from screen-reader traversal. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ====== RESET & BASE ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ====== HEADER ====== */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .35s;
}

header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 19px;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--sky) 0%, #5BB8E8 100%);
  border-radius: 11px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(45, 170, 134, 0.32);
  position: relative;
}

.logo-mark svg { width: 20px; height: 20px; }

.logo-mark::after {
  content: ""; position: absolute; inset: 2px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, transparent 60%);
  pointer-events: none;
}

.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-weight: 600;
}

.nav-links a {
  color: inherit; text-decoration: none;
  font-size: 15px;
  transition: color .2s;
}

.nav-links a:hover:not(.nav-call) { color: var(--sky); }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s, background .35s;
  position: relative; overflow: hidden;
}

.theme-toggle:hover { color: var(--sky); border-color: var(--sky); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; transition: opacity .3s, transform .4s; position: absolute; }
.theme-toggle .icon-sun { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.5) rotate(90deg); }

.nav-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--sky-deep);
  color: #EEEEEF;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, padding .2s, font-size .2s;
}

.nav-call:hover { background: var(--sky); color: var(--mint); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45, 170, 134, 0.32); }
.nav-call svg { width: 14px; height: 14px; }

@media (min-width: 961px) {
  header.scrolled .nav-call {
    background: var(--sky);
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(45, 170, 134, 0.38);
    letter-spacing: 0.01em;
  }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--hero-grad-1) 100%);
}

.hero-stack {
  display: flex; flex-direction: column;
  position: relative; z-index: 2;
  text-align: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--pill-bg);
  color: var(--sky);
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.pill-dot {
  width: 8px; height: 8px; background: #34C77B; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 199, 123, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 199, 123, 0); } }

.hero-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 12px;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 22px;
  text-align: center;
}

.hero p.sub {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 auto 28px;
  max-width: 520px;
  line-height: 1.5;
  text-align: center;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .2s;
}

.btn-primary {
  background: var(--sky);
  color: white;
  box-shadow: 0 12px 28px rgba(45, 170, 134, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(45, 170, 134, 0.46);
  background: var(--sky-deep);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn svg { width: 18px; height: 18px; }

.hero .btn { padding: 12px 24px; font-size: 14px; }

/* ====== SECTION TITLES ====== */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 13px;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-head p  { color: var(--text-2); font-size: 17px; }

/* ====== BENEFITS ====== */
.benefits { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-3) 100%); }

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.benefit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.benefit-row-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

.benefit-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-row h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.benefit-row p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
}

/* ====== HOW IT WORKS — TIMELINE ====== */
.process { background: var(--bg); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1 0 auto;
  min-height: 24px;
  background: var(--sky-soft);
  margin: 4px auto 0;
}

.step-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 8px;
}

.step-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

/* ====== SERVICES ====== */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}

.service {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s, background .35s;
  /* Pin price to bottom: equal-height cards via grid stretch, content stacks via flex column */
  display: flex;
  flex-direction: column;
}

.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--sky);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}

.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.service:hover::before { transform: scaleX(1); }

.service-illu {
  height: 110px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}

.service:nth-child(1) .service-illu { background: linear-gradient(135deg, rgba(45, 170, 134, 0.18) 0%, rgba(45, 170, 134, 0.32) 100%); }
.service:nth-child(2) .service-illu { background: linear-gradient(135deg, rgba(45, 200, 170, 0.18) 0%, rgba(45, 200, 170, 0.32) 100%); }
.service:nth-child(3) .service-illu { background: linear-gradient(135deg, rgba(232, 144, 72, 0.18)  0%, rgba(232, 144, 72, 0.32)  100%); }
.service:nth-child(4) .service-illu { background: linear-gradient(135deg, rgba(139, 92, 246, 0.18)  0%, rgba(139, 92, 246, 0.32)  100%); }
.service-illu svg { width: 56px; height: 56px; }
.service:nth-child(1) .service-illu svg { color: var(--sky); }
.service:nth-child(2) .service-illu svg { color: #2DAA86; }
.service:nth-child(3) .service-illu svg { color: #D97441; }
.service:nth-child(4) .service-illu svg { color: #8B5CF6; }

.service h3 { font-size: 20px; margin-bottom: 10px; }
.service-desc { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }

.service-list { list-style: none; margin-bottom: 20px; }

.service-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 5px 0;
  font-size: 14px; color: var(--text-2);
}

.service-list li::before {
  content: ""; width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--sky);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-6.5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-6.5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

.service-price {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 16px; border-top: 1px dashed var(--border);
  /* Push price to bottom of card regardless of content height above */
  margin-top: auto;
}

.service-price-from { color: var(--text-3); font-size: 13px; font-weight: 600; }
.service-price-val  { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: var(--price-new); }
.service-price-cur  { color: var(--text-2); font-weight: 600; }
.service-price-old  { color: var(--price-old); text-decoration: line-through; font-size: 14px; font-weight: 600; }

/* Promo banner — red Акція strip above the services grid (06-03 adds markup) */
.promo-banner {
  background: var(--promo-grad);
  color: var(--badge-text);
  font-weight: 700;
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.promo-banner-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.promo-banner-sub   { font-size: 13px; font-weight: 600; opacity: 0.92; margin-top: 4px; }
.promo-banner [data-promo-discount] { color: inherit; font-weight: 800; white-space: nowrap; }

/* Per-card АКЦІЯ corner badge (D-11) */
.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ====== EXTRAS ACCORDIONS ====== */
.extras-accordion {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: background .35s;
}

.extras-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color .2s;
}

.extras-toggle:hover { color: var(--sky); }

.extras-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--sky);
  transition: transform .3s ease;
}

/* Remove default summary marker */
details.extras-accordion > summary.extras-toggle {
  list-style: none;
}
details.extras-accordion > summary.extras-toggle::-webkit-details-marker {
  display: none;
}

/* Arrow rotates when open — driven by native [open] attribute */
details.extras-accordion[open] > summary .extras-arrow {
  transform: rotate(180deg);
}

/* Smooth animation — Chrome 131+ only; instant open/close on other browsers */
details.extras-accordion {
  interpolate-size: allow-keywords;
}
details.extras-accordion::details-content {
  display: block;
  overflow: hidden;
  height: 0;
  transition: height .35s ease, content-visibility .35s;
  transition-behavior: allow-discrete;
}
details.extras-accordion[open]::details-content {
  height: auto;
}

.extras-list {
  list-style: none;
  padding: 0 24px 20px;
}

.extras-list li {
  display: flex;
  flex-direction: column;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}

.extras-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.extras-list li:last-child { border-bottom: none; }

.extras-name { color: var(--text); }

.extras-price {
  flex-shrink: 0;
  color: var(--sky);
  font-weight: 700;
  font-size: 15px;
}

/* Nested why accordion toggle */
details.extras-why-details {
  interpolate-size: allow-keywords;
  margin-top: 4px;
}

details.extras-why-details > summary.extras-why-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: var(--sky);
  cursor: pointer;
  padding: 2px 0;
  user-select: none;
}

details.extras-why-details > summary.extras-why-toggle::-webkit-details-marker {
  display: none;
}

.extras-why-arrow {
  display: inline-block;
  font-style: normal;
  transition: transform .2s ease;
  line-height: 1;
}

details.extras-why-details[open] > summary .extras-why-arrow {
  transform: rotate(90deg);
}

details.extras-why-details::details-content {
  display: block;
  overflow: hidden;
  height: 0;
  transition: height .25s ease, content-visibility .25s;
  transition-behavior: allow-discrete;
}

details.extras-why-details[open]::details-content {
  height: auto;
}

.extras-why {
  padding: 8px 0 4px 10px;
  border-left: 2px solid var(--sky-soft);
}

.extras-why p {
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.extras-why strong { color: var(--text); }

/* ====== ORDER FORM ====== */
.order {
  background:
    radial-gradient(900px 500px at 90% 0%, var(--hero-grad-1) 0%, transparent 65%),
    radial-gradient(700px 500px at -10% 100%, var(--hero-grad-2) 0%, transparent 60%),
    var(--bg);
  position: relative;
}

.order-card {
  max-width: 940px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid var(--border);
  transition: background .35s;
}

.order-aside {
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: white;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}

.order-aside::before {
  content: ""; position: absolute; bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.order-aside::after {
  content: ""; position: absolute; top: -40px; left: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.order-aside h3 { color: white; font-size: 26px; margin-bottom: 16px; position: relative; }
.order-aside p  { color: rgba(255, 255, 255, 0.9); font-size: 15px; line-height: 1.6; margin-bottom: 28px; position: relative; }

.order-aside-list { list-style: none; position: relative; }

.order-aside-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  color: white;
  font-weight: 600; font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.order-aside-list li:first-child { border-top: none; }

.order-aside-list li svg {
  width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px; padding: 4px;
  box-sizing: content-box;
}

.order-form { padding: 44px 40px; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.form-field label .req { color: var(--error); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--text);
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 4.5L6 8l3.5-3.5' stroke='%232DAA86' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
}

.form-field textarea { resize: vertical; min-height: 96px; font-family: 'Nunito', sans-serif; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(45, 170, 134, 0.18);
}

.form-field.error input,
.form-field.error select {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-field .err-msg { color: var(--error); font-size: 13px; font-weight: 600; display: none; }
.form-field.error .err-msg { display: block; }

.form-field--optional label { color: var(--text-3); font-weight: 600; }
.form-field--optional textarea { opacity: 0.80; border-style: dashed; }
.form-field--optional textarea:focus { opacity: 1; border-style: solid; }

.form-submit {
  margin-top: 22px;
  width: 100%;
  padding: 19px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(45, 170, 134, 0.36);
  transition: transform .2s, box-shadow .2s, background .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

.form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--sky-deep) 0%, #176A53 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(45, 170, 134, 0.48);
}

.form-submit:disabled { opacity: 0.7; cursor: wait; }

/* Success state */
.form-success {
  display: none;
  text-align: center; padding: 24px 12px 8px;
  animation: pop .4s ease;
}

.form-success.shown { display: block; }

.form-success-circle {
  width: 78px; height: 78px;
  margin: 0 auto 22px;
  background: rgba(45, 200, 170, 0.16);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #2DAA86;
}

.form-success-circle svg { width: 36px; height: 36px; }
.form-success h4 { font-family: 'Montserrat', sans-serif; font-size: 24px; margin-bottom: 10px; }
.form-success p  { color: var(--text-2); }

@keyframes pop {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ====== FAQ SECTION (D-15 / D-17) ====== */
/* Theme-aware: uses only CSS variables; dark mode works automatically via [data-theme="dark"] overrides.
   Mirrors the extras-accordion idiom under new .faq-* class names to avoid collision with extras-*. */

.faq {
  background: var(--bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

/* <details> wrapper */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background .35s, border-color .25s, box-shadow .25s;
  interpolate-size: allow-keywords;
}

.faq-item:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
}

/* <summary> toggle row */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}

.faq-question:hover { color: var(--sky); }

/* Remove native disclosure triangle */
details.faq-item > summary.faq-question { list-style: none; }
details.faq-item > summary.faq-question::-webkit-details-marker { display: none; }

/* Chevron arrow */
.faq-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--sky);
  transition: transform .3s ease;
}

/* Rotate arrow 180° when open — driven by native [open] attribute */
details.faq-item[open] > summary .faq-arrow {
  transform: rotate(180deg);
}

/* Smooth open/close — Chrome 131+; instant on older browsers */
details.faq-item::details-content {
  display: block;
  overflow: hidden;
  height: 0;
  transition: height .35s ease, content-visibility .35s;
  transition-behavior: allow-discrete;
}

details.faq-item[open]::details-content {
  height: auto;
}

/* Answer body */
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.faq-answer p { margin: 0; }

/* Open-state accent on question text */
details.faq-item[open] > summary.faq-question {
  color: var(--sky);
}

/* ====== FOOTER ====== */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  transition: background .35s;
}

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 44px;
}

.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; max-width: 320px; }

.footer-col h4 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--footer-text-2);
  text-decoration: none;
  font-size: 15px;
  padding: 5px 0;
  transition: color .2s;
}

.footer-col a:hover { color: var(--sky-soft); }

.footer-phone {
  font-family: 'Montserrat', sans-serif;
  color: white !important;
  font-size: 22px !important;
  font-weight: 700;
  padding: 0 0 4px !important;
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--footer-line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13.5px;
  color: var(--footer-text-2);
  opacity: 0.75;
}

/* ====== ANIMATIONS ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* Reduced-motion users: show immediately, no transform/transition.
   The time-based reveal fallback lives in JS (2.5s timeout, see capitalClimateLanding.js). */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }


/* ====== STICKY CTA STRIP (appears after hero scrolls out) ====== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(30, 100, 80, 0.12);
  padding: 12px 20px;
  display: none; /* JS sets to flex once hero CTA leaves viewport */
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .35s, box-shadow .35s;
}

.sticky-cta-text {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.3;
}

.sticky-cta-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.sticky-cta .btn-primary {
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ====== PRIMARY BUTTON PULSE (hero CTA) ====== */
.btn-primary {
  position: relative;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(45, 170, 134, 0.50);
  animation: ctaPulse 2.5s ease-out infinite;
}

@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 170, 134, 0.50); }
  70%  { box-shadow: 0 0 0 14px rgba(45, 170, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 170, 134, 0); }
}

/* ====== URGENCY BADGE on hero ====== */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.urgency-badge svg {
  width: 15px; height: 15px;
  color: var(--sky);
  flex-shrink: 0;
}

/* ====== SOCIAL PROOF STRIP (near order form) ====== */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 28px;
  margin: 0 auto 40px;
  max-width: 800px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
}

.proof-item svg {
  width: 22px; height: 22px;
  color: var(--sky);
  flex-shrink: 0;
}

.proof-item strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .nav-links a:not(.nav-call) { display: none; }

  /* Show abbreviated number on tablet nav */
  .nav-call {
    padding: 10px 14px;
    border-radius: 999px;
    gap: 6px;
  }
  .nav-call svg { width: 15px; height: 15px; }
  .nav-call-label { display: inline; font-size: 13px; }

  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: 24px; }
  .section { padding: 70px 0; }
  .timeline { max-width: 100%; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .order-card { grid-template-columns: 1fr; }
  .order-aside { padding: 32px 28px; }
  .order-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Proof strip stack */
  .proof-strip { gap: 18px; }

  /* Extras accordions */
  .extras-item-row { flex-direction: column; gap: 2px; align-items: flex-start; }

  /* FAQ accordion — full-width at tablet */
  .faq-list { max-width: 100%; }
  .faq-question { padding: 16px 20px; font-size: 15px; }
  .faq-answer { padding: 0 20px 16px; font-size: 15px; }

  /* Add bottom padding so fixed sticky CTA doesn't cover content */
  body { padding-bottom: 74px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }

  /* Header — extra compact on small screens */
  .nav { padding: 14px 0; gap: 8px; }
  .nav-links { gap: 8px; }
  .logo { font-size: 16px; gap: 7px; }
  .logo-mark { width: 32px; height: 32px; }
  .theme-toggle { width: 36px; height: 36px; }

  /* Icon-only call button on small phones */
  .nav-call {
    padding: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .nav-call svg { width: 16px; height: 16px; margin: 0; }
  .nav-call-label { display: none; }

  /* Hero */
  .hero { padding: 20px 0 26px; }
  .hero-tag { font-size: 10px; }
  .hero h1 { font-size: 20px; line-height: 1.1; margin-bottom: 16px; }
  .hero p.sub { font-size: 14px; margin-bottom: 20px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  /* Hide sticky strip text on small screens, full-width order button */
  .sticky-cta-text { display: none; }
  .sticky-cta { justify-content: stretch; gap: 0; padding: 10px 16px; }
  .sticky-cta .btn-primary { flex: 1; }

  /* Sections */
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .benefit-row { padding: 8px 12px; }
  .step-card { padding: 8px 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }

  /* Proof strip — single column */
  .proof-strip { flex-direction: column; gap: 12px; align-items: flex-start; padding: 18px 20px; }

  /* FAQ accordion — compact on small phones */
  .faq-question { padding: 14px 16px; font-size: 14px; gap: 10px; }
  .faq-answer { padding: 0 16px 14px; font-size: 14px; }
  .faq-item { border-radius: var(--radius-sm); }

  /* Extra bottom padding for FAB + sticky strip */
  body { padding-bottom: 74px; }
}
