/* ============================================================
   CERCA Migración — styles.css
   Palette: cream #F6F3EC · forest #1F4D3A · sage #BCD6A3
            terra #C74A35 · sand #EBE0C8 · text #1A2B24
   Fonts: Fraunces (headings) · Manrope (body)
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  --c-bg:       #F6F3EC;
  --c-surface:  #FDFCF7;
  --c-primary:  #1F4D3A;
  --c-on-pri:   #F6F3EC;
  --c-sage:     #BCD6A3;
  --c-terra:    #C74A35;
  --c-sand:     #EBE0C8;
  --c-text:     #1A2B24;
  --c-muted:    #6B7A70;
  --c-border:   #E0DCD0;
  --c-pri-con:  #DFE8DC;

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-pill: 999px;

  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-xxl: 64px;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --shadow-sm: 0 1px 4px rgba(26,43,36,.08);
  --shadow-md: 0 4px 20px rgba(26,43,36,.10);
  --shadow-lg: 0 12px 48px rgba(26,43,36,.13);

  --nav-h: 64px;
  --max-w: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-pri-con);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-md);
}
.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--c-text);
  margin-bottom: var(--sp-md);
}
.section-sub {
  font-size: 18px;
  color: var(--c-muted);
  max-width: 640px;
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: var(--c-primary);
  color: var(--c-on-pri);
}

/* ── Section glow ───────────────────────────────────────────── */
.section-glow {
  position: relative;
  isolation: isolate;
}
.section-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    120% 80% at 50% 0%,
    rgba(188, 214, 163, 0.28) 0%,
    rgba(31, 77, 58, 0.07) 38%,
    transparent 70%
  );
  pointer-events: none;
}
.section-glow--corner::before {
  background: radial-gradient(
    90% 70% at 12% 0%,
    rgba(188, 214, 163, 0.30) 0%,
    rgba(31, 77, 58, 0.06) 42%,
    transparent 72%
  );
}

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; will-change: auto; }
}

/* ── NAV ────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  transition: box-shadow .2s;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--c-primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.nav-logo-mark svg { width: 22px; height: 22px; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1;
}
.nav-logo-sub {
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: .06em;
  display: block;
}
.nav-links {
  display: flex;
  gap: var(--sp-xl);
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--c-primary); }
.nav-cta {
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--c-terra);
  outline-offset: 3px;
}
/* Arrow via ::after — only on non-small, non-submit, non-flagged buttons */
.btn-primary:not(.btn-sm):not(.form-submit-btn)::after,
.btn-white:not(.btn-sm)::after,
.btn-ghost:not(.btn-sm):not([data-no-arrow])::after {
  content: '↗';
  display: inline-block;
  transition: transform 200ms ease;
}
.btn-primary:not(.btn-sm):not(.form-submit-btn):hover::after,
.btn-white:not(.btn-sm):hover::after,
.btn-ghost:not(.btn-sm):not([data-no-arrow]):hover::after {
  transform: translate(2px, -2px);
}
.btn-primary {
  background: var(--c-terra);
  color: #fff;
}
.btn-primary:hover {
  background: #a93d2c;
  transform: translateY(-1px);
  box-shadow: 0 0 40px -8px rgba(199,74,53,.55), 0 4px 14px rgba(199,74,53,.30);
}
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-ghost:hover {
  background: var(--c-pri-con);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--c-primary);
}
.btn-white:hover {
  background: var(--c-surface);
  transform: translateY(-1px);
  box-shadow: 0 0 40px -8px rgba(31,77,58,.35), var(--shadow-md);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background .2s, color .2s, border-color .2s; }
  .btn::after { transition: none; }
  .btn:hover { transform: none !important; box-shadow: none !important; }
  .btn-primary:hover { box-shadow: 0 4px 14px rgba(199,74,53,.35); }
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Bottom fade dissolving hero photo into the cream background below */
.hero::after {
  content: '';
  position: absolute;
  inset-x: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--c-bg));
  z-index: 0;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3d2d 0%, #2a5f48 50%, #1a3325 100%);
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  transition: opacity .4s;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 35, 25, .80) 0%,
    rgba(15, 35, 25, .55) 50%,
    rgba(15, 35, 25, .25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding-block: var(--sp-xxl);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-sage);
  margin-bottom: var(--sp-lg);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-sage);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-dot { animation: none; }
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  color: #fff;
  margin-bottom: var(--sp-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.hero-title em {
  font-style: normal;
  color: var(--c-sage);
}
.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.82);
  margin-bottom: var(--sp-xl);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  padding: var(--sp-xl) 0 var(--sp-xxl);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,.2);
  align-self: stretch;
}

/* ── WHY SECTION ─────────────────────────────────────────────── */
.why {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-surface);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xxl);
  align-items: center;
}
.why-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-primary) 0%, #2a5f48 100%);
}
.why-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.why-img:hover img { transform: scale(1.03); }
.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.why-card {
  background: rgba(253, 252, 247, 0.75);
  border: 1px solid rgba(224, 220, 208, 0.8);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 240ms ease-out, transform 240ms ease-out, background 240ms ease-out;
}
.why-card:hover {
  border-color: rgba(31, 77, 58, 0.35);
  background: rgba(253, 252, 247, 0.95);
  transform: translateY(-4px);
}
@supports not (backdrop-filter: blur(1px)) {
  .why-card { background: var(--c-surface); }
}
.why-card-icon {
  margin-bottom: var(--sp-sm);
  color: var(--c-primary);
}
.why-card-icon svg { width: 26px; height: 26px; }
.why-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}
.why-card-text {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ── PACKAGES ────────────────────────────────────────────────── */
.packages {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-bg);
}
.packages-header {
  text-align: center;
  margin-bottom: var(--sp-xxl);
}
.packages-header .section-sub { margin-inline: auto; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  align-items: start;
}
.pkg-card {
  background: rgba(253, 252, 247, 0.78);
  border: 1.5px solid rgba(224, 220, 208, 0.8);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 240ms ease-out, transform 240ms ease-out, background 240ms ease-out, box-shadow 240ms ease-out;
}
.pkg-card:hover {
  border-color: rgba(31, 77, 58, 0.30);
  background: rgba(253, 252, 247, 0.96);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
@supports not (backdrop-filter: blur(1px)) {
  .pkg-card { background: var(--c-surface); }
}
.pkg-card.recommended {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.pkg-card.recommended:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
.pkg-badge {
  background: var(--c-primary);
  color: var(--c-sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.pkg-head {
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
}
.pkg-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}
.pkg-tagline {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: var(--sp-lg);
}
.pkg-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkg-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.pkg-price-label { color: var(--c-muted); }
.pkg-price-val {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
}
.pkg-price-val.highlight { color: var(--c-terra); }
.pkg-divider {
  height: 1px;
  background: var(--c-border);
  margin-inline: var(--sp-xl);
}
.pkg-body {
  padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
  flex: 1;
}
.pkg-includes-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-md);
}
.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.45;
}
.pkg-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--c-sage);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%231F4D3A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}
.pkg-cta {
  padding: 0 var(--sp-xl) var(--sp-xl);
}
.pkg-cta .btn { width: 100%; }
.pkg-note {
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
/* disclaimer */
.packages-disclaimer {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--c-sand);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-primary);
  font-size: 14px;
  color: var(--c-muted);
}
.packages-disclaimer strong { color: var(--c-text); }

/* ── INDIVIDUAL SERVICES (Package 3) ────────────────────────── */
.services {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-surface);
}
.services-header {
  margin-bottom: var(--sp-xxl);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-md);
}
.svc-item {
  background: rgba(253, 252, 247, 0.72);
  border: 1px solid rgba(224, 220, 208, 0.8);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 240ms ease-out, transform 240ms ease-out, background 240ms ease-out;
}
.svc-item:hover {
  border-color: rgba(31, 77, 58, 0.30);
  background: rgba(253, 252, 247, 0.95);
  transform: translateY(-3px);
}
@supports not (backdrop-filter: blur(1px)) {
  .svc-item { background: var(--c-bg); }
}
.svc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

/* ── PROCESS TIMELINE ────────────────────────────────────────── */
.process {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-bg);
}
.process-header { margin-bottom: var(--sp-xxl); }
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-primary) 0%, var(--c-sage) 100%);
}
.tl-item {
  display: flex;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-sage);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--c-bg);
}
.tl-content {
  padding-top: 10px;
  flex: 1;
}
.tl-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.tl-text {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.6;
}
.tl-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-primary);
  font-weight: 600;
  background: var(--c-pri-con);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.tl-optional {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--c-sand);
  border-radius: var(--r-md);
}
.tl-optional-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  margin-bottom: var(--sp-md);
}
.tl-optional ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.tl-optional li {
  font-size: 14px;
  color: var(--c-primary);
  background: var(--c-pri-con);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-weight: 500;
}

/* ── CONSULTANT ──────────────────────────────────────────────── */
.consultant {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-primary);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.consultant::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse at 100% 0%, rgba(188,214,163,.13) 0%, transparent 65%);
  pointer-events: none;
}

/* Лид-часть — левый край совпадает с остальным контентом секции */
.consultant-lede {
  max-width: 720px;
  margin-bottom: var(--sp-xxl);
}
.consultant .section-label {
  color: var(--c-sage);
  background: rgba(188,214,163,.15);
}
.consultant-name {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: var(--sp-md);
}
.consultant-bio {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Факты-плашки: 4 равных колонки → левый и правый край совпадают с остальным
   контентом секции, горизонтальная вертикаль не ломается. */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xxl);
}
.trust-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Иконка вместо цифры в ряду доверия — выравниваем по оптической высоте «4+». */
.trust-stat-val--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(22px, 2.5vw, 32px);
}
.trust-stat-val--icon svg { width: 28px; height: 28px; }

.trust-stat-val {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--c-sage);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.68);
  line-height: 1.4;
}

/* «После cédula вы не одни» */
.after-cedula {
  margin-bottom: var(--sp-xxl);
}
.after-cedula-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--c-sage);
  margin-bottom: var(--sp-md);
}
.after-cedula-sub {
  font-size: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: var(--sp-xl);
}
.after-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.after-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: border-color 240ms ease-out, transform 240ms ease-out, background 240ms ease-out;
}
.after-card:hover {
  border-color: rgba(188,214,163,.35);
  background: rgba(255,255,255,.11);
  transform: translateY(-3px);
}
.after-card-icon {
  margin-bottom: var(--sp-sm);
  line-height: 1;
  color: var(--c-sage);
}
.after-card-icon svg { width: 28px; height: 28px; }
.after-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.after-card-text {
  font-size: 13px;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}

/* Буллеты */
.consultant-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}
.cons-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.cons-feat-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--c-sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.cons-feat-icon svg {
  width: 11px; height: 11px;
  fill: var(--c-primary);
}

/* ── APP PROMO ───────────────────────────────────────────────── */
.app-promo {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-sand);
}
.app-promo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-xxl);
  align-items: center;
}
.app-promo-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2a5f48 0%, #1a3d2d 100%);
}
.app-promo-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-promo .section-title { font-size: clamp(24px, 3vw, 36px); }
.app-promo-features { display: flex; flex-direction: column; gap: 14px; margin: var(--sp-xl) 0; }
.app-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--c-text);
}
.app-feat-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--c-primary);
  display: grid;
  place-items: center;
  color: var(--c-sage);
}
.app-feat-icon svg { width: 18px; height: 18px; }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
  background: linear-gradient(135deg, #1a3d2d 0%, #1F4D3A 60%, #2a5f48 100%);
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/nature.jpg');
  background-size: cover;
  background-position: center;
  opacity: .12;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(28px, 4vw, 52px);
  color: #fff;
  margin-bottom: var(--sp-lg);
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto var(--sp-xl);
}
.cta-actions { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-surface);
}
.faq-header { text-align: center; margin-bottom: var(--sp-xxl); }
.faq-header .section-sub { margin-inline: auto; }
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--c-text);
  user-select: none;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--c-pri-con); }
.faq-item[open] summary {
  background: var(--c-pri-con);
  color: var(--c-primary);
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-border);
  display: grid;
  place-items: center;
  transition: transform .3s, background .2s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--c-primary);
}
.faq-chevron svg {
  width: 10px; height: 10px;
  stroke: var(--c-text);
  fill: none;
  transition: stroke .2s;
}
.faq-item[open] .faq-chevron svg { stroke: #fff; }
.faq-answer {
  padding: 0 var(--sp-xl) var(--sp-lg);
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ── FORM SECTION ────────────────────────────────────────────── */
.form-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--c-bg);
  scroll-margin-top: var(--nav-h);
}
.form-section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-xxl);
  align-items: center;
}
.form-info { padding-top: var(--sp-md); }
.form-info .section-title {
  margin-bottom: var(--sp-lg);
  font-size: clamp(24px, 3.2vw, 38px);
  text-wrap: balance;
}
.form-contact-block {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.form-contact-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--c-text);
  margin-bottom: 4px;
}
.form-contact-role {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: var(--sp-md);
}
.form-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
}
.form-contact-link:hover {
  background: var(--c-primary);
  color: #fff;
}
.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
}
.form-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-sm);
}
.form-card-sub {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: var(--sp-xl);
}
.consult-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
/* Ряды полей дышат. Раскладку держит сама форма: .form-fields — обёртка с
   единственным ребёнком <form>, её gap до полей не достаёт. */
#consultForm { display: flex; flex-direction: column; gap: var(--sp-lg); }
/* Honeypot не должен добавлять пустую строку в flex-колонку. */
#consultForm .hp-field { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}
.field label .req { color: var(--c-terra); margin-left: 2px; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(31,77,58,.15);
}
.field input:not([type="checkbox"]).error,
.field select.error,
.field textarea.error {
  border-color: var(--c-terra);
}
.field-error {
  font-size: 12px;
  color: var(--c-terra);
  display: none;
}
.field.has-error .field-error { display: block; }
.field textarea { resize: vertical; min-height: 100px; }
/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tab-index: -1; }
/* consent */
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
  padding-top: var(--sp-xs);
}
.consent-field input[type=checkbox] {
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  /* Выравниваем по середине первой строки подписи, а не по её верху. */
  margin: 2px 0 0;
  accent-color: var(--c-primary);
  cursor: pointer;
}
.consent-field input[type=checkbox]:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.consent-field label { cursor: pointer; }
.consent-field a { color: var(--c-primary); }
/* submit */
.form-submit-btn {
  width: 100%;
  padding: 15px 24px;
  font-size: 16px;
  position: relative;
}
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-submit-btn.loading .btn-text { opacity: 0; }
.form-submit-btn.loading .btn-spinner { display: block; position: absolute; }

/* success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-xxl) var(--sp-xl);
}
.form-success.visible { display: flex; flex-direction: column; align-items: center; gap: var(--sp-lg); }
.success-icon {
  width: 64px; height: 64px;
  background: var(--c-sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.success-icon svg { width: 28px; height: 28px; stroke: var(--c-primary); fill: none; stroke-width: 2.5; }
.form-success-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
}
.form-success-text {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 360px;
}
/* error fallback */
.form-error-fallback {
  display: none;
  padding: var(--sp-lg);
  background: #fef2f0;
  border: 1px solid #f5c9c3;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--c-terra);
}
.form-error-fallback.visible { display: block; }
.form-error-fallback a { color: var(--c-terra); font-weight: 600; }

/* ── MOBILE STICKY CTA ────────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-md) var(--sp-lg);
  box-shadow: 0 -4px 20px rgba(26,43,36,.12);
}
.mobile-cta-bar .btn { width: 100%; }
/* Скрываем, когда форма уже на экране — бар дублировать её незачем. */
.mobile-cta-bar.hidden { display: none !important; }
/* Плашка «скоро» у функций приложения, которые ещё не выпущены. */
.soon-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-pri-con);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  margin-left: 4px;
}


/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,.7);
  padding-block: var(--sp-xxl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-xxl);
  margin-bottom: var(--sp-xxl);
}
.footer-logo-mark {
  width: 36px; height: 36px;
  background: var(--c-primary);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-md);
}
.footer-logo-mark svg { width: 24px; height: 24px; }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--sp-md);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-legal { display: flex; gap: var(--sp-xl); }
.footer-legal a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .packages-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .pkg-card.recommended { transform: none; }
  .pkg-card.recommended:hover { transform: translateY(-4px); }
  .why-grid { grid-template-columns: 1fr; }
  .why-img { max-height: 320px; }
  .app-promo-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .after-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .why-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .consultant-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--sp-xl); }
  .hero-stat-divider { display: none; }
  .mobile-cta-bar { display: block; }
  /* CTA в шапке не влезает в узкий экран (224px при ширине окна 360) и рвёт
     страницу горизонтально. Внизу для этого есть sticky-бар — дублировать
     кнопку в шапке незачем. */
  .nav-cta { display: none; }
  body { padding-bottom: 76px; }
  .pkg-head, .pkg-body, .pkg-cta { padding-inline: var(--sp-lg); }
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .trust-stat { padding: 16px 20px; }
  .after-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .trust-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .why-card:hover,
  .svc-item:hover,
  .pkg-card:hover,
  .after-card:hover { transform: none; }
}
@media (max-width: 480px) {
  :root { --sp-xxl: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-lg { padding: 14px 24px; }
}
