/* ============================================================
   REDO Kitchen & Bath Remodeling — Design System
   Palette: Ocean Blue #176B87 · Warm Amber #D4773A · Deep Navy #1C2B35
   Typography: Manrope (headings) + Inter (body)
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ── TOKENS ── */
:root {
  --primary:    #176B87;
  --primary-10: rgba(23,107,135,0.10);
  --primary-20: rgba(23,107,135,0.20);
  --bg:         #F9F8F6;
  --surface:    #FFFFFF;
  --accent:     #D4773A;
  --accent-dark:#bf6830;
  --text:       #1C2B35;
  --text-muted: #718096;
  --border:     #DDE4EA;
  --overlay:    rgba(28,43,53,0.58);

  --font-h:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-b:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-card: 8px;
  --r-btn:  8px;
  --r-chip: 20px;

  --shadow-card: 0 2px 12px rgba(28,43,53,0.08);
  --shadow-lift: 0 8px 24px rgba(28,43,53,0.13);

  --header-h: 68px;
  --section-y-mobile: 64px;
  --section-y-desk:  100px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-family: var(--font-h); color: var(--text); }

h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 700; }
h3 { font-family: var(--font-b); font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-family: var(--font-b); font-size: 18px; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.eyebrow--light { color: rgba(255,255,255,0.5); }

.section-label {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-btn);
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,119,58,0.35);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: #125d76;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--glass {
  background: rgba(13,35,45,0.25);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--glass:hover {
  background: rgba(23,107,135,0.55);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover { background: var(--primary-10); }

.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 36px; font-size: 16px; }
.btn--full { width: 100%; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 200ms ease;
}

.site-header.scrolled { box-shadow: 0 2px 16px rgba(28,43,53,0.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo img { height: 28px; width: auto; }

.header-nav {
  display: none;
  gap: 28px;
  align-items: center;
}

@media (min-width: 960px) { .header-nav { display: flex; } }

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 150ms;
}
.header-nav a:hover { color: var(--primary); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 12px;
}
.nav-arrow { font-size: 10px; opacity: 0.5; transition: transform 200ms; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  transition: background 120ms;
}
.nav-dropdown a:hover { background: var(--bg); color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
@media (min-width: 768px) { .header-phone { display: block; } }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
@media (min-width: 960px) { .burger { display: none; } }

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 250ms, opacity 200ms;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 280ms ease, opacity 200ms ease;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-menu nav a { font-size: 16px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu-phone { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; display: block; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: #0d2d3a;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,35,45,0.96) 0%, rgba(13,35,45,0.90) 35%, rgba(13,35,45,0.50) 65%, rgba(13,35,45,0.15) 100%);
}

/* img1: bathroom — 0–6s visible */
.hero-bg--1 { animation: heroFade1 18s infinite; }
@keyframes heroFade1 {
  0%,  28% { opacity: 1; }
  33%       { opacity: 0; }
  94%       { opacity: 0; }
  100%      { opacity: 1; }
}

/* img2: kitchen — 6–12s visible */
.hero-bg--2 { animation: heroFade2 18s infinite; }
@keyframes heroFade2 {
  0%,  28% { opacity: 0; }
  33%,  61% { opacity: 1; }
  67%       { opacity: 0; }
  100%      { opacity: 0; }
}

/* img3: living room / full reno — 12–18s visible */
.hero-bg--3 { animation: heroFade3 18s infinite; }
@keyframes heroFade3 {
  0%,  61% { opacity: 0; }
  67%,  94% { opacity: 1; }
  100%      { opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr auto; gap: 48px; }
}

.hero-content { display: flex; flex-direction: column; gap: 0; }

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.hero-proof-item {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-proof-dot {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

.hero-phone {
  background: rgba(13,35,45,0.45);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: var(--r-card);
  padding: 20px 24px;
  text-align: center;
  min-width: 170px;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-phone:hover {
  background: rgba(23,107,135,0.55);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.hero-phone-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

.hero-phone-number {
  font-family: var(--font-b);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
}

.hero-phone-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--primary);
  padding: 14px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.trust-item svg, .trust-icon { opacity: 0.85; font-size: 15px; }

.trust-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
}

/* ── SECTION ── */
.section { padding: var(--section-y-mobile) 0; }
@media (min-width: 768px) { .section { padding: var(--section-y-desk) 0; } }

.section--surface { background: var(--surface); }
.section--primary { background: var(--primary); }
.section--dark { background: var(--primary); color: #fff; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.85); }
.section--dark .section-label { color: rgba(255,255,255,0.55); }
.section--dark [style*="color:var(--text-muted)"],
.section--dark [style*="color: var(--text-muted)"] { color: rgba(255,255,255,0.6) !important; }
.section--dark a[href^="tel"] { color: #fff !important; }
.section--dark span[style*="color:var(--primary)"],
.section--dark span[style*="color: var(--primary)"] { color: rgba(255,255,255,0.9) !important; }
.section--dark .form-card,
.section--dark .form-card h2,
.section--dark .form-card h3,
.section--dark .form-card p { color: var(--text); }

.section-header {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-header--center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 { margin-bottom: 12px; }
@media (min-width: 768px) { .section-header h2, .section-header--center h2 { margin-bottom: 24px; } }
.section-header p { color: var(--text-muted); font-size: 17px; }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cards-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ── SERVICE CARD ── */
.service-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 200ms, transform 200ms;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #cce3ec;
}

.card-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }

.card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
}

.card-title {
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 150ms;
}
.card-link:hover { gap: 8px; }

/* ── BEFORE/AFTER SLIDER ── */
.ba-wrap {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  aspect-ratio: 16/9;
}

.ba-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ba-placeholder--after { background: #e8f2f5; color: #176B87; }
.ba-placeholder--after::after { content: 'Photo Coming Soon'; }
.ba-placeholder--before { background: #f0ede8; color: #8a7060; width: 100vw; }
.ba-placeholder--before::after { content: 'Photo Coming Soon'; }

.ba-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  display: block;
}

.ba-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-after-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  max-width: none;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -1px;
}

.ba-label {
  position: absolute;
  top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
}

.ba-label--before { left: 14px; background: rgba(0,0,0,0.45); }
.ba-label--after  { right: 14px; background: var(--primary); }

/* ── PRICING TABLE ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 200ms, box-shadow 200ms;
}

.pricing-card:hover {
  border-color: var(--primary-20);
  box-shadow: var(--shadow-card);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.pricing-price {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

.pricing-note { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }

.pricing-divider { height: 1px; background: var(--border); margin-bottom: 20px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.pricing-features li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.pricing-check { color: var(--primary); font-size: 13px; flex-shrink: 0; margin-top: 1px; }

.pricing-cta { margin-top: 28px; }

/* ── FAQ ── */
.faq-list { max-width: 760px; }
.faq-list--center { margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color 150ms;
}

.faq-question:hover { color: var(--primary); }
.faq-question[aria-expanded="true"] { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 250ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms ease-in-out;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── TESTIMONIALS ── */
.reviews-aggregate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
}
.reviews-score {
  font-family: var(--ff-head);
  font-size: 56px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.reviews-aggregate-right { display: flex; flex-direction: column; gap: 4px; }
.reviews-stars { color: #F59E0B; font-size: 22px; letter-spacing: 2px; }
.reviews-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.google-logo { width: 18px; height: 18px; flex-shrink: 0; }
.google-logo--inline { width: 20px; height: 20px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.testimonial-meta { flex: 1; }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 3px; }
.testimonial-stars { color: #F59E0B; font-size: 13px; letter-spacing: 0.5px; }
.card-google-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.testimonial-footer { font-size: 13px; font-weight: 500; color: var(--text-muted); }

.reviews-cta {
  text-align: center;
  margin-top: 36px;
}
.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.reviews-link:hover { opacity: 0.75; }

/* ── FORM ── */
.form-card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: clamp(28px, 5vw, 48px);
  max-width: 500px;
}

.form-title { margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-field { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-card);
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  appearance: none;
  transition: border-color 150ms;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.form-input::placeholder { color: #aab4be; }

.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}
.form-success-icon { font-size: 40px; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 15px; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table th {
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}

.compare-table td:first-child { color: var(--text-muted); font-weight: 500; }
.compare-table td:not(:first-child) { font-weight: 600; color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--text);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.6); font-size: 17px; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}

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

@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }

.footer-logo { height: 30px; width: auto; margin-bottom: 16px; }

.footer-desc { font-size: 14px; line-height: 1.65; max-width: 280px; }

.footer-col-title {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 150ms;
}

.footer-links a:hover { color: #fff; }

.footer-divider { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 24px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 12px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── PROCESS STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 600px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card { display: flex; flex-direction: column; gap: 14px; }

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-title { font-family: var(--font-b); font-size: 16px; font-weight: 700; color: var(--text); }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--primary);
  padding: calc(var(--header-h) + 48px) 0 56px;
}

.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 18px; max-width: 600px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb-sep { font-size: 10px; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 400ms ease, transform 400ms ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 60ms; }
  .reveal-delay-2 { transition-delay: 120ms; }
  .reveal-delay-3 { transition-delay: 180ms; }
}

/* ── FORM SECTION ── */
.form-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) {
  .form-section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ── RESPONSIVE HELPERS ── */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }
.hide-desk { display: block; }
@media (min-width: 768px) { .hide-desk { display: none; } }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,35,45,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 22px; margin-bottom: 6px; }

/* ── TRUSTED PARTNERS ── */
.section--partners { background: var(--surface); }
.partners-header { text-align: center; margin-bottom: 40px; }
.partners-header h2 { margin-bottom: 20px; }
.partners-header .section-sub { max-width: 520px; margin: 0 auto; color: var(--text-muted); font-size: 15px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr; }
}
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease;
}
.partner-card:hover { box-shadow: 0 8px 32px rgba(13,35,45,0.10); }
.partner-tag {
  display: inline-block;
  background: rgba(23,107,135,0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.partner-name { font-size: 20px; font-weight: 700; color: var(--text); margin-top: 4px; }
.partner-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.partner-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.partner-stars { color: #F4B400; font-size: 16px; letter-spacing: 1px; }
.partner-score { font-size: 17px; font-weight: 700; color: var(--text); }
.partner-count { font-size: 13px; color: var(--text-muted); }
.partner-card--empty {
  border: 1.5px dashed var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 40px 28px;
  min-height: 200px;
}
.partner-card--empty:hover { box-shadow: none; transform: none; }
.partner-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.partner-empty-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.partner-empty-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.3);
  line-height: 1.5;
  max-width: 200px;
}

/* ══════════════════════════════════════════════
   MOBILE FIXES
══════════════════════════════════════════════ */

/* Мобильные фоны — скрыты на десктопе */
.hero-bg--m1, .hero-bg--m2, .hero-bg--m3 { display: none; }

@media (max-width: 767px) {

  /* Hero — телефонная карточка скрыта */
  .hero-phone { display: none; }

  /* Hero — скрыть десктопные фоны, показать мобильные портретные */
  .hero-bg--1, .hero-bg--2, .hero-bg--3 { display: none; }
  .hero-bg--m1, .hero-bg--m2, .hero-bg--m3 {
    display: block;
    background-position: center top;
    background-size: cover;
  }
  .hero-bg--m1 { animation: heroFade1 18s infinite; }
  .hero-bg--m2 { animation: heroFade2 18s infinite; }
  .hero-bg--m3 { animation: heroFade3 18s infinite; }

  /* Hero — градиент: заменить горизонтальный на матовое стекло на весь экран */
  .hero-bg::after {
    background: rgba(13,35,45,0.52);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
  }

  /* Hero proof — одна строка, короткие подписи */
  .hero-proof {
    flex-wrap: nowrap;
    gap: 6px 10px;
  }
  .hero-proof-item {
    font-size: 11px;
    white-space: nowrap;
  }
  .hero-proof { margin-bottom: 12px; }

  /* CTA — скрыть label и h2 (форма и так объясняет) */
  .cta-header-hide { display: none; }

  /* CTA — форма идёт первой, текст вторым */
  .form-section-grid { display: flex; flex-direction: column; }
  .form-section-grid > div:first-child { order: 2; }
  .form-card { order: 1; }

  /* CTA — скрыть 2 нижних пункта чеклиста */
  .form-section-grid > div:first-child > div > div:nth-child(n+3) { display: none; }

  /* CTA — скрыть номер (есть плавающая кнопка) */
  .cta-phone-block { display: none; }

  /* Trust bar — только первые 3 пункта */
  .trust-bar-inner > *:nth-child(n+4) { display: none; }

  /* Process H2 — одна строка */
  #process-heading {
    font-size: clamp(16px, 4.5vw, 22px);
    white-space: nowrap;
  }
}

.partner-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.partner-cta:hover { text-decoration: underline; }
.partner-cta--secondary {
  color: var(--text-muted);
  font-weight: 500;
}
.partner-cta--secondary:hover { color: var(--text); }
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ── CONTACT INFO MODAL ── */
.cmi-list { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.cmi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.cmi:last-child { border-bottom: none; padding-bottom: 4px; }
.cmi--link { transition: color 0.15s; cursor: pointer; }
.cmi--link:hover .cmi-value { color: var(--teal); }
.cmi-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(23,107,135,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}
.cmi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.cmi-value { font-size: 15px; font-weight: 500; }

/* ── SMS CONSENT ── */
.consent-details {
  margin-top: 10px;
}
.consent-details summary {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.consent-details summary::-webkit-details-marker { display: none; }
.consent-details .consent-arrow {
  font-size: 13px;
  transition: transform 0.2s ease;
  display: inline-block;
}
.consent-details[open] .consent-arrow { transform: rotate(90deg); }
.consent-details p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
}
.consent-details p a { color: var(--primary); }

/* ── FLOATING CALL BUTTON ── */
.float-call { display: none; }

@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

@media (max-width: 767px) {
  .float-call {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 8000;
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }
  .float-call svg {
    animation: floatPulse 2.4s ease-in-out infinite;
  }
}

/* ── PRICING DARK SECTION ── */
.section--pricing-dark {
  background: var(--primary);
}
.section--pricing-dark h2,
.section--pricing-dark h3 {
  color: #fff;
}
.section--pricing-dark .section-label {
  color: rgba(255,255,255,0.55);
}
.section--pricing-dark .pricing-card {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.section--pricing-dark .pricing-card--featured {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}
.section--pricing-dark .pricing-name {
  color: var(--primary);
}
.section--pricing-dark .pricing-badge {
  background: var(--accent);
  color: #fff;
}
.section--pricing-dark p {
  color: rgba(255,255,255,0.9);
  margin-top: 16px;
  text-align: center;
}
.section--pricing-dark .pricing-note {
  color: var(--text-muted);
}
.pricing-footnote {
  text-align: center !important;
  width: 100%;
  display: block;
}
.section--pricing-dark .pricing-divider {
  background: var(--border);
}

/* ── SERVICE PAGE HERO — mobile overlay (matches main page style) ── */
@media (max-width: 767px) {
  .page-hero { position: relative; }
  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13,35,45,0.52);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    pointer-events: none;
    z-index: 0;
  }
  .page-hero .container { position: relative; z-index: 1; }
}

/* ── BEFORE/AFTER SECTION WRAPPER (service pages) ── */
.ba-section {
  position: relative;
  padding: 40px 0 72px;
  background: #f7f9fb;
  overflow: hidden;
}
