/* camping-prokat.kz — public site styles
   Hand-written, no build. Token -> base -> layout -> components -> utilities -> media.
   Implements _meta/DESIGN_SYSTEM.md. Mobile-first. */

/* ============================ 1. TOKENS ============================ */
:root {
  /* Brand — evergreen / alpine forest */
  --color-primary:        #1F4D3F;
  --color-primary-dark:   #163A2F;
  --color-primary-soft:   #2E6450;

  /* Accent — warm "action" amber (Позвонить only) */
  --color-accent:         #E8893B;
  --color-accent-dark:    #CF7427;
  --color-accent-soft:    #FBEEDF;

  /* WhatsApp brand green (WhatsApp action only) */
  --color-whatsapp:       #25D366;
  --color-whatsapp-dark:  #1EBE5A;

  /* Neutrals — cool alpine stone */
  --color-ink:            #1A2420;
  --color-ink-2:          #45524C;
  --color-ink-3:          #6F7B75;
  --color-line:           #DCE3DF;
  --color-line-strong:    #C2CCC6;

  /* Surfaces */
  --color-bg:             #FFFFFF;
  --color-surface:        #F4F7F5;
  --color-surface-2:      #E9EFEB;
  --color-card:           #FFFFFF;

  /* Status */
  --color-success:        #2E7D52;
  --color-success-soft:   #E2F1E8;
  --color-warning:        #B5781A;
  --color-warning-soft:   #FBF0DA;
  --color-error:          #C0392B;
  --color-error-soft:     #FBE7E4;

  /* Inverse */
  --color-on-primary:        #F4F7F5;
  --color-on-primary-muted:  #BFD0C7;

  /* Fonts */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.125rem;
  --fs-3xl:  2.75rem;

  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-relaxed: 1.7;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-eyebrow: 0.06em;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;

  /* Containers */
  --container:        72rem;
  --container-narrow: 44rem;
  --gutter:           var(--space-4);
  --gutter-lg:        var(--space-6);

  /* Section rhythm */
  --section-y:    var(--space-8);
  --section-y-lg: var(--space-9);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;

  /* Shadows (green-tinted) */
  --shadow-sm: 0 1px 2px rgba(22,58,47,0.06), 0 1px 1px rgba(22,58,47,0.04);
  --shadow-md: 0 4px 12px rgba(22,58,47,0.08), 0 2px 4px rgba(22,58,47,0.05);
  --shadow-lg: 0 12px 28px rgba(22,58,47,0.12), 0 4px 8px rgba(22,58,47,0.06);
  --shadow-cta: 0 6px 16px rgba(232,137,59,0.30);

  /* Motion */
  --motion-fast: 120ms ease-out;
  --motion:      200ms ease-out;
  --motion-slow: 320ms ease-out;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Z-index + sticky bar height */
  --z-header: 100;
  --z-bar:    90;
  --z-overlay: 200;
  --header-h: 56px;
  --bar-h:    66px;
}

/* ============================ 2. BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

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

h1, h2, h3, .display { font-family: var(--font-display); margin: 0; color: var(--color-ink); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-soft); text-decoration: underline; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

h1 { font-size: var(--fs-2xl); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-snug); }

/* Focus — visible ring everywhere */
:where(a, button, .btn, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-primary-soft);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute; left: var(--space-3); top: -100px;
  background: var(--color-primary); color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  z-index: var(--z-overlay); font-weight: var(--fw-semibold);
  transition: top var(--motion-fast);
}
.skip-link:focus { top: var(--space-3); color: var(--color-on-primary); text-decoration: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================ 3. LAYOUT ============================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
/* Tighter top spacing for the small map that sits directly under the hero. */
.section--tight { padding-block: var(--space-7) var(--section-y); }
.section--surface { background: var(--color-surface); }
.section--primary { background: var(--color-primary); color: var(--color-on-primary); }

.section__head { margin-bottom: var(--space-6); }
.section__head--center { text-align: center; margin-inline: auto; max-width: var(--container-narrow); }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: var(--fs-xs);
  font-weight: var(--fw-semibold); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--color-primary-soft);
  margin-bottom: var(--space-2);
}
.section--primary .eyebrow { color: var(--color-on-primary-muted); }
.section__lead { font-size: var(--fs-md); color: var(--color-ink-2); margin-top: var(--space-3); max-width: 60ch; }
.section--primary .section__lead { color: var(--color-on-primary-muted); }

/* anchor offset so sticky header never covers headings */
[id] { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

/* ============================ 4. ICONS ============================ */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.15em; }
.icon--lg { width: 2rem; height: 2rem; }

/* ============================ 5. BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--fw-semibold);
  line-height: 1; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}
.btn:hover { text-decoration: none; }

.btn--call { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-cta); }
.btn--call:hover { background: var(--color-accent-dark); color: #fff; }
.btn--call:active { transform: translateY(1px); }

.btn--whatsapp { background: var(--color-whatsapp); color: #0B3D22; }
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); color: #0B3D22; }
.btn--whatsapp:active { transform: translateY(1px); }

.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-line-strong); }
.btn--ghost:hover { background: var(--color-surface); border-color: var(--color-primary-soft); color: var(--color-primary); }

.on-dark .btn--ghost { color: var(--color-on-primary); border-color: rgba(244,247,245,0.4); }
.on-dark .btn--ghost:hover { background: rgba(244,247,245,0.08); color: var(--color-on-primary); }

.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: var(--fs-md); }

/* CTA pair: stacked mobile, inline desktop, Call first */
.cta-pair { display: flex; flex-direction: column; gap: var(--space-3); }
.cta-pair .btn { width: 100%; }

/* ============================ 6. HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-bg); box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-primary); font-weight: var(--fw-bold); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.05; color: var(--color-primary); }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: var(--fw-medium); color: var(--color-ink-3); letter-spacing: 0.01em; }

.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone { display: none; }

/* compact mobile header call icon button */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-accent); color: #fff; box-shadow: var(--shadow-cta);
  border: 2px solid transparent;
  transition: background-color var(--motion-fast);
}
.btn-icon:hover { background: var(--color-accent-dark); color: #fff; }
.btn-icon .icon { width: 22px; height: 22px; }
.btn-icon--wa { background: var(--color-whatsapp); color: #0B3D22; box-shadow: none; }
.btn-icon--wa:hover { background: var(--color-whatsapp-dark); color: #0B3D22; }

/* ============================ 7. HERO ============================ */
.hero { position: relative; background: var(--color-primary); color: var(--color-on-primary); overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  /* Two stacked gradients: a vertical darkening top+bottom for global contrast,
     plus a left-anchored wash so the headline column stays readable over the
     golden-hour image without flattening the photo on the right. */
  background:
    linear-gradient(180deg, rgba(22,58,47,0.55) 0%, rgba(22,58,47,0.32) 38%, rgba(22,58,47,0.50) 72%, rgba(11,30,24,0.82) 100%),
    linear-gradient(100deg, rgba(22,58,47,0.78) 0%, rgba(22,58,47,0.42) 42%, rgba(22,58,47,0.08) 72%, rgba(22,58,47,0) 100%);
}
.hero__inner { position: relative; padding-block: var(--space-8); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lead { font-size: var(--fs-md); color: var(--color-on-primary); margin-top: var(--space-4); max-width: 52ch; }
.hero .cta-pair { margin-top: var(--space-6); max-width: 26rem; }
.hero__micro { margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--color-on-primary-muted); display: flex; flex-direction: column; gap: var(--space-2); }
.hero__micro a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.hero__price-note { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ============================ 8. TRUST STRIP ============================ */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
.trust-item { display: flex; flex-direction: column; gap: var(--space-2); }
.trust-item__icon { color: var(--color-primary); }
.trust-item__icon .icon { width: 2rem; height: 2rem; }
.trust-item__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base); color: var(--color-ink); }
.trust-item__text { font-size: var(--fs-sm); color: var(--color-ink-2); }

/* ============================ 9. CARDS / CATALOG ============================ */
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }

.card {
  background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--motion), transform var(--motion);
}
.card__media { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--color-surface-2); }
.card__media-wrap { position: relative; background: var(--color-surface-2); }
.card__icon-badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--color-primary);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.card__icon-badge .icon { width: 22px; height: 22px; }
.card__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--color-ink); }
.card__text { font-size: var(--fs-sm); color: var(--color-ink-2); line-height: var(--lh-normal); margin: 0; }
.card__badge {
  align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--color-accent-dark);
  background: var(--color-accent-soft); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
}
.card__actions { margin-top: auto; padding-top: var(--space-3); }

/* route-kit card extras */
.kit-list { margin: var(--space-1) 0 0; display: flex; flex-direction: column; gap: var(--space-1); }
.kit-list li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-sm); color: var(--color-ink-2); }
.kit-list .icon { color: var(--color-success); width: 1.05rem; height: 1.05rem; margin-top: 0.2em; }
.kit-advice {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--fs-sm); color: var(--color-warning); background: var(--color-warning-soft);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); margin-top: var(--space-2);
}
.kit-advice .icon { flex: none; margin-top: 0.15em; }
.kit-advice b { color: var(--color-warning); }

/* ============================ 10. STEPS ============================ */
.steps { display: grid; gap: var(--space-5); grid-template-columns: 1fr; counter-reset: step; }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-surface-2); color: var(--color-primary);
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-lg);
  display: inline-flex; align-items: center; justify-content: center;
}
.step__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.step__text { font-size: var(--fs-base); color: var(--color-ink-2); margin: 0; }

/* ============================ 11. WHY / FEATURE LIST ============================ */
.feature-list { display: grid; gap: var(--space-4); }
.feature {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); background: var(--color-card);
  border: 1px solid var(--color-line); border-radius: var(--radius-lg);
}
.feature__icon { color: var(--color-primary); flex: none; }
.feature__icon .icon { width: 1.75rem; height: 1.75rem; }
.feature__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base); margin-bottom: var(--space-1); }
.feature__text { font-size: var(--fs-sm); color: var(--color-ink-2); margin: 0; }

/* ============================ 12. TERMS (table -> stacked) ============================ */
.terms { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-card); }
.terms__row { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-line); }
.terms__row:last-child { border-bottom: 0; }
.terms__row:nth-child(even) { background: var(--color-surface); }
.terms__label { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base); color: var(--color-ink); display: inline-flex; align-items: center; gap: var(--space-2); }
.terms__label .icon { color: var(--color-success); }
.terms__value { font-size: var(--fs-base); color: var(--color-ink-2); }

/* ============================ 13. SEASONAL ADVICE ============================ */
.advice-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.advice {
  padding: var(--space-5); background: var(--color-card);
  border: 1px solid var(--color-line); border-radius: var(--radius-lg); border-left: 4px solid var(--color-primary-soft);
}
.advice h3 { margin-bottom: var(--space-2); font-size: var(--fs-base); }
.advice p { font-size: var(--fs-sm); color: var(--color-ink-2); }

/* ============================ 14. REVIEWS (testimonials) ============================ */
.review-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.review-card {
  background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3); margin: 0;
  transition: box-shadow var(--motion), transform var(--motion), border-color var(--motion);
}
.review-card__mark { color: var(--color-accent-dark); line-height: 0; }
.review-card__mark .icon { width: 1.5rem; height: 1.5rem; }
.review-card__quote {
  margin: 0; font-size: var(--fs-base); color: var(--color-ink-2); line-height: var(--lh-normal);
}
.review-card__author { display: flex; flex-direction: column; gap: var(--space-1); margin-top: auto; }
.review-card__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base); color: var(--color-ink); }
.review-card__context { font-size: var(--fs-sm); color: var(--color-ink-3); }
.review-grid__note { margin-top: var(--space-5); text-align: center; font-size: var(--fs-sm); color: var(--color-ink-3); }
.review-grid__note a { font-weight: var(--fw-semibold); }

/* ============================ 15. FAQ ============================ */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--color-ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { flex: none; color: var(--color-primary); transition: transform var(--motion); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 0 var(--space-5); color: var(--color-ink-2); line-height: var(--lh-relaxed); }
.faq__answer a { font-weight: var(--fw-semibold); }

/* ============================ 16. CONTACT / MAP ============================ */
.contact-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-line { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-line__icon { color: var(--color-primary); flex: none; margin-top: 0.15em; }
.contact-line__icon .icon { width: 1.5rem; height: 1.5rem; }
.contact-line dt { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base); margin: 0; }
.contact-line dd { margin: 0; color: var(--color-ink-2); font-size: var(--fs-base); }
.contact-line a { color: var(--color-ink); }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); background: var(--color-surface-2); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-fallback { padding: var(--space-6); text-align: center; color: var(--color-ink-2); }
/* Big map at the bottom of the page — taller, responsive. */
.map-wrap--lg iframe { height: clamp(360px, 52vw, 520px); }
/* Click-to-route overlay on the small contact map. The visible "Построить
   маршрут" button stays the keyboard-accessible primary action; this overlay
   is a convenience tap target and is reachable by keyboard as well. */
.map-wrap--click .map-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: var(--space-3); text-decoration: none;
}
.map-overlay__tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.96); color: var(--color-ink);
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  transition: background var(--motion), box-shadow var(--motion), transform var(--motion);
}
.map-overlay__tag .icon { width: 1.15rem; height: 1.15rem; color: var(--color-primary); }
.map-wrap--click .map-overlay:hover .map-overlay__tag,
.map-wrap--click .map-overlay:focus-visible .map-overlay__tag {
  background: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.map-wrap--click .map-overlay:focus-visible {
  outline: 3px solid var(--color-primary); outline-offset: -3px;
}

/* ============================ 17. FINAL CTA ============================ */
.final-cta { position: relative; overflow: hidden; background: var(--color-primary-dark); color: var(--color-on-primary); }
.final-cta__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,58,47,0.82), rgba(22,58,47,0.9)); }
.final-cta__inner { position: relative; text-align: center; padding-block: var(--space-8); }
.final-cta h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.final-cta p { color: var(--color-on-primary-muted); margin-top: var(--space-3); max-width: 48ch; margin-inline: auto; }
.final-cta .cta-pair { margin-top: var(--space-6); max-width: 26rem; margin-inline: auto; }

/* ============================ 18. FOOTER ============================ */
.site-footer { background: var(--color-primary-dark); color: var(--color-on-primary); padding-block: var(--space-8) var(--space-7); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.footer-about { max-width: 44ch; }
.footer-about .brand__name, .footer-about .brand__name small { color: var(--color-on-primary); }
.footer-about p { color: var(--color-on-primary-muted); font-size: var(--fs-sm); margin-top: var(--space-3); }
.footer-col h3 { font-size: var(--fs-base); color: #fff; margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: var(--color-on-primary-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-contact a { color: var(--color-on-primary); }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(244,247,245,0.15); font-size: var(--fs-sm); color: var(--color-on-primary-muted); display: flex; flex-direction: column; gap: var(--space-2); }

/* ============================ 19. STICKY MOBILE CTA BAR ============================ */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.2) blur(8px);
  border-top: 1px solid var(--color-line); box-shadow: var(--shadow-lg);
}
.cta-bar .btn { min-height: 50px; border-radius: var(--radius-pill); }

/* ============================ 20. REVEAL (progressive) ============================ */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--motion-slow), transform var(--motion-slow); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================ 21. UTILITIES ============================ */
.text-center { text-align: center; }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.lead-block { max-width: var(--container-narrow); }

/* ============================ MEDIA QUERIES ============================ */
@media (min-width: 40em) {
  .grid--cards { grid-template-columns: 1fr 1fr; }
  .grid--kits { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .advice-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 48em) {
  .cta-pair { flex-direction: row; }
  .cta-pair .btn { width: auto; flex: 1; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 64em) {
  :root { --header-h: 68px; }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  body { padding-bottom: 0; } /* desktop: no sticky bottom bar */

  .header-nav { display: flex; gap: var(--space-5); align-items: center; }
  .header-nav a { font-size: var(--fs-sm); color: var(--color-ink-2); }
  .header-nav a:hover { color: var(--color-primary); text-decoration: none; }
  .header-phone { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-bold); color: var(--color-primary); }
  .header-phone .icon { color: var(--color-primary); }
  .header-phone:hover { text-decoration: none; }
  .header-actions .btn-icon--call-mobile { display: none; }
  .btn-icon--wa { display: none; }

  .grid--cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .grid--kits { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
  .advice-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

  .hero__inner { padding-block: var(--space-9); min-height: 30rem; display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: var(--fs-3xl); }

  .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .feature:hover { box-shadow: var(--shadow-sm); }

  .cta-bar { display: none; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 80em) {
  .grid--cards { grid-template-columns: repeat(4, 1fr); }
}

/* ============================ 22. POLISH PASS ============================
   Cohesive visual refinement layered on top of the base. Stays strictly within
   the design tokens (colors, --space-*, --fs-*, radii, shadows). Goals: stronger
   hero, clearer section rhythm, smoother surface transitions, refined cards.
   Added rather than rewritten so the original structure is preserved. */

/* --- Hero: tighter rhythm + a soft golden underglow that nods to the image,
       and CTAs that read as the primary focus. --------------------------- */
.hero h1 {
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(11,30,24,0.35);
}
.hero__lead {
  text-shadow: 0 1px 2px rgba(11,30,24,0.30);
}
.hero .cta-pair .btn--call {
  /* lift the Call button further off a busy photo */
  box-shadow: 0 8px 22px rgba(232,137,59,0.42), 0 2px 6px rgba(11,30,24,0.30);
}
/* a small warm divider line above the micro row to separate it from the CTAs */
.hero__micro {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244,247,245,0.18);
}
.hero__micro .icon { color: var(--color-accent); }

/* --- Eyebrow: small accent tick before the label, used everywhere. ------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: var(--radius-pill);
  background: var(--color-accent); flex: none;
}
.section--primary .eyebrow::before,
.on-dark .eyebrow::before { background: var(--color-accent); }
.section__head--center .eyebrow { justify-content: center; }

/* --- Section rhythm: hairline transition between adjacent light/surface
       sections so the white -> surface alternation reads as intentional. -- */
.section + .section { position: relative; }
.section--surface { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
/* avoid a double rule where a surface section meets the dark footer/cta */

/* --- Cards: unify hover, add a gentle media zoom, firmer rest border. ---- */
.card { transition: box-shadow var(--motion), transform var(--motion), border-color var(--motion); }
.card__media-wrap, .card { }
.card .card__media { transition: transform var(--motion-slow); will-change: transform; }
.card__title { line-height: var(--lh-snug); }
.card__badge { margin-top: var(--space-1); }

/* route-kit cards: give the media a consistent rounded top inside the shell
   (the shell already clips via overflow:hidden; this just keeps spacing tidy) */
.grid--kits .card__body { gap: var(--space-3); }

/* --- Feature (Почему мы) cards: match the catalog card surface + hover. -- */
.feature {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--motion), transform var(--motion), border-color var(--motion);
}
.feature__icon .icon { color: var(--color-primary); }

/* --- Steps: number chip reads as a branded token, connector on desktop. -- */
.step__num {
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

/* --- Terms: lift the block onto its own surface card. -------------------- */
.terms { box-shadow: var(--shadow-sm); }
.terms__label .icon { flex: none; }

/* --- Seasonal advice: warmer left accent + hover lift. ------------------- */
.advice { transition: box-shadow var(--motion), transform var(--motion); }

/* --- Review cards: match the catalog/feature card surface. -------------- */
.review-card__mark .icon { color: var(--color-accent-dark); }

/* --- FAQ: clearer affordance on hover/open. ----------------------------- */
.faq__item summary { transition: color var(--motion-fast); }
.faq__item summary:hover { color: var(--color-primary); }
.faq__item[open] summary { color: var(--color-primary); }

/* --- Final CTA: deeper, more directional scrim so white text stays AA. --- */
.final-cta__scrim {
  background:
    linear-gradient(180deg, rgba(22,58,47,0.78) 0%, rgba(11,30,24,0.90) 100%),
    radial-gradient(120% 90% at 50% 30%, rgba(22,58,47,0.0) 0%, rgba(11,30,24,0.45) 100%);
}
.final-cta h2 { text-wrap: balance; text-shadow: 0 1px 2px rgba(11,30,24,0.35); }
.final-cta .cta-pair .btn--call {
  box-shadow: 0 8px 22px rgba(232,137,59,0.42), 0 2px 6px rgba(11,30,24,0.30);
}

/* --- Header: a hair more polish; brand mark sits in a soft tile on hover. */
.site-header { backdrop-filter: saturate(1.05); }

/* --- Desktop-only niceties (hover lifts already gated to >=64em below). -- */
@media (min-width: 64em) {
  /* Hero: centre the column, cap measure, more confident headline scale. */
  .hero__inner { max-width: 40rem; }
  .hero__lead { max-width: 44ch; }

  /* Card media zoom only where hover is meaningful. */
  .card:hover .card__media { transform: scale(1.04); }
  .card:hover { border-color: var(--color-line-strong); }

  .feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-line-strong); }
  .advice:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-line-strong); }

  /* Steps connector: a faint line linking the four numbered chips. */
  .steps { position: relative; }
}

/* Hover-capability guard: never apply lift/zoom on touch devices. */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .card:hover .card__media { transform: none; }
  .feature:hover, .advice:hover { transform: none; }
  .review-card:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
