/*
  Layout wrapper shared by every header/section/footer:
  <header|section|footer> > .container > .header|section|footer-inner > content
*/
.container {
  width: 100%;
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Topographic "concentric rings" motif — Caravanza's brand decoration,
   evoking a map/navigation. Reused on every dark section's background. */
.rings-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ==========================================================================
   HEADER
   Sticky + frosted (CONVENTIONS.md §19). The blur lives on ::before, not on
   .site-header itself, so it doesn't become the containing block for the
   mobile drawer's position:fixed (§19 gotcha).
   ========================================================================== */

/* Sticky header still overlays whatever scrolls to the very top of the
   viewport, so an in-page anchor (#partners, or a deeper anchor like
   #partner-territory) needs this to land below it instead of hidden
   underneath. --header-height is measured live by setHeaderHeightVar() in
   main.js; 88px only covers the instant before that first runs. */
html {
  scroll-padding-top: var(--header-height, 88px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  flex: 1;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-main-1);
}

/* Pushes the become-partner link + CTA pill to the header's right edge,
   while the plain nav links stay grouped close to the logo. */
.nav .become-partner-link {
  margin-left: auto;
}

.become-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-pine-2);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--color-line-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.become-partner-link i {
  font-size: 15px;
  line-height: 1;
}

.become-partner-link:hover {
  border-color: var(--color-pine-2);
  background: rgba(47, 91, 69, 0.07);
}

.nav-cta {
  background: var(--color-main-1);
  color: var(--color-cream) !important;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: var(--color-pine-2);
  transform: translateY(-1px);
}

/* Out of flow on desktop too — otherwise, even empty, it's still a flex
   item in .header-inner and throws off the layout. */
.nav-overlay,
.nav-close {
  display: none;
}

/* Mobile nav: a full-height side drawer, not a top dropdown */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    /* .nav carries the flex:1 that pushes the header's right-hand content
       to the edge on desktop, but .nav leaves the flex flow entirely below
       this breakpoint (position: fixed, for the drawer) — nothing is left
       to push .nav-toggle over, so it has to push itself. */
    margin-left: auto;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    background: rgba(22, 40, 31, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(360px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 28px;
    background: var(--color-background);
    box-shadow: -12px 0 36px rgba(22, 40, 31, 0.18);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-close {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 17px;
  }

  .nav .become-partner-link {
    display: flex;
    margin-left: 0;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
  }

  .nav .become-partner-link:hover {
    background: none;
  }

  .nav .become-partner-link i {
    font-size: 18px;
  }

  .nav-cta {
    margin-top: 20px;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

section {
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 44px;
}

.section-head .head-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}

.section-head .head-aside {
  margin-left: auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-ink-2);
  max-width: 320px;
}

.section-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-main-2);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--color-pine-2);
}

/* ── HERO ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 740px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-pine-3);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 20s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img { animation: none; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(102deg, rgba(22, 40, 31, 0.95) 0%, rgba(22, 40, 31, 0.84) 38%, rgba(22, 40, 31, 0.32) 74%, rgba(22, 40, 31, 0.52) 100%);
}

.hero-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-radial-gradient(circle at 80% 74%, rgba(233, 226, 211, 0.3) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 30px);
}

.hero-line {
  position: absolute;
  left: -4%;
  right: -4%;
  height: 1px;
  pointer-events: none;
  z-index: 1;
}

.hero-line--rust {
  top: 58%;
  background: rgba(196, 105, 59, 0.55);
  transform: rotate(-3.5deg);
}

.hero-line--cream {
  top: 66%;
  background: rgba(233, 226, 211, 0.22);
  transform: rotate(-2.5deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 90px 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7FB394;
  flex: none;
  animation: eyebrow-dot-blink 2.2s ease-in-out infinite;
}

.hero-eyebrow .dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid #7FB394;
  animation: eyebrow-dot-ping 2.2s ease-out infinite;
}

@keyframes eyebrow-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes eyebrow-dot-ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow .dot,
  .hero-eyebrow .dot::after {
    animation: none;
  }
}

.hero-eyebrow span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--color-sage);
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 78px;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: #F6F2E8;
  max-width: 840px;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-rust-2);
}

.hero-lede {
  font-size: 18px;
  line-height: 1.62;
  color: #CFDBD1;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.hero-ctas .button.btn-ghost {
  color: #E9E2D3;
  border-color: rgba(233, 226, 211, 0.4);
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-stats div {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--color-sage);
}

/* ── REASSURANCE BAR ──────────────────────────────────────────────────── */

.reassure-bar {
  padding: 0;
}

.reassure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.reassure-item {
  background: var(--color-background);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.reassure-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-main-2);
  flex: none;
}

.reassure-item span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-ink-2);
}

/* ── PROBLEM ("why") ──────────────────────────────────────────────────── */

.problem-section {
  padding: 100px 0;
}

.bi-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.problem-copy h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.problem-copy > p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--color-ink-2);
  max-width: 520px;
}

.pains-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.pain-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
}

.pain-card .icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--color-background);
  border: 1px solid var(--color-line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--color-main-2);
  font-size: 15px;
}

.pain-card .pain-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pain-card .pain-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.pain-card .pain-copy span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-ink-2);
}

.problem-media {
  position: relative;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-line-2);
}

.problem-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-stat-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(253, 250, 243, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.problem-stat-card .eyebrow {
  color: var(--color-ink-3);
}

.problem-stat-card p {
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
}

.problem-stat-card .before {
  color: var(--color-main-2);
  font-weight: 700;
}

.problem-stat-card .after {
  color: var(--color-pine-2);
  font-weight: 700;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────── */

.how-section {
  padding: 20px 0 100px;
}

.how-section .head-copy h2,
.services-section .head-copy h2,
.map-panel-copy h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
  border-color: var(--color-line-2);
  transform: translateY(-3px);
}

.step-card .step-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.step-card .step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--color-main-1);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step-card .step-rule {
  flex: 1;
  height: 1px;
  background: var(--color-line-2);
}

.step-card h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.step-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-ink-2);
}

/* ── SERVICES ─────────────────────────────────────────────────────────── */

.services-section {
  padding: 0 0 100px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--color-line-2);
  transform: translateY(-3px);
}

.service-card .service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.service-card h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.service-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-ink-2);
}

/* ── LIVE MAP ─────────────────────────────────────────────────────────── */

.map-section {
  padding: 0 0 100px;
}

.map-panel {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-line-2);
}

.map-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
}

.map-panel-copy {
  padding: 46px 42px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  background: var(--color-card);
}

.map-panel-copy h2 {
  font-size: 38px;
}

.map-panel-copy > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink-2);
}

.map-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.map-points .map-point {
  display: flex;
  align-items: center;
  gap: 11px;
}

.map-points .swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: none;
}

.map-points span:last-child {
  font-size: 14px;
  color: var(--color-ink-2);
}

.map-visual {
  position: relative;
  border-left: 1px solid var(--color-line);
  min-height: 520px;
  background: var(--color-pine-3);
}

#coverageMap {
  width: 100%;
  height: 100%;
  background: var(--color-pine-3);
  font-family: var(--font-main);
}

/* Warm the default OSM tile colors slightly so the map reads as part of
   Caravanza's palette rather than a generic embed. */
#coverageMap .leaflet-tile-pane {
  filter: sepia(12%) saturate(85%) brightness(1.02);
}

#coverageMap .leaflet-control-attribution {
  background: rgba(253, 250, 243, 0.85);
  font-size: 10.5px;
}

#coverageMap .leaflet-tooltip {
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: none;
}

/* ── PARTNERS (dark, B2B) ─────────────────────────────────────────────── */

.partners-section {
  position: relative;
  width: 100%;
  background: var(--color-pine-3);
  overflow: hidden;
}

.partners-section .rings-bg {
  background:
    repeating-radial-gradient(circle at 18% 34%, rgba(233, 226, 211, 0.16) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 34px),
    repeating-radial-gradient(circle at 86% 70%, rgba(196, 105, 59, 0.34) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 42px);
}

.partners-grid {
  position: relative;
  z-index: 1;
  padding: 96px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partners-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.partners-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partners-tag-row .eyebrow {
  color: var(--color-rust-2);
}

.partners-tag-row .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--color-sage);
  border: 1px solid rgba(233, 226, 211, 0.24);
  border-radius: 5px;
  padding: 3px 7px;
}

.partners-copy h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #F6F2E8;
}

.partners-copy > p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #C3D2C6;
  max-width: 520px;
}

.partner-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.partner-point {
  display: flex;
  gap: 13px;
  padding: 16px 18px;
  border-radius: 13px;
  background: rgba(233, 226, 211, 0.07);
  border: 1px solid rgba(233, 226, 211, 0.16);
}

.partner-point i {
  font-size: 16px;
  color: var(--color-rust-2);
  margin-top: 2px;
  flex: none;
}

.partner-point .partner-point-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.partner-point strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-cream);
}

.partner-point span {
  font-size: 13.5px;
  line-height: 1.55;
  color: #AFC2B4;
}

.partners-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.partners-ctas .btn-primary {
  background: var(--color-rust-2);
  border-color: var(--color-rust-2);
  box-shadow: none;
}

.partner-terms-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-cream-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 226, 211, 0.4);
}

.partner-terms-link:hover {
  color: var(--color-rust-2);
}

.partner-visual {
  position: relative;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(233, 226, 211, 0.2);
}

.partner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.partner-stat-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 16px 18px;
  border-radius: 13px;
  background: rgba(22, 40, 31, 0.92);
  border: 1px solid rgba(233, 226, 211, 0.18);
  display: flex;
  align-items: center;
  gap: 16px;
}

.partner-stat-card .stat-figure {
  display: flex;
  flex-direction: column;
}

.partner-stat-card .stat-figure strong {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-cream);
}

.partner-stat-card .stat-figure span {
  font-size: 11px;
  color: var(--color-sage);
  letter-spacing: 0.06em;
}

.partner-stat-card .divider {
  width: 1px;
  height: 34px;
  background: rgba(233, 226, 211, 0.2);
  flex: none;
}

.partner-stat-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #AFC2B4;
}

/* ── TRUST ────────────────────────────────────────────────────────────── */

.trust-section {
  padding: 96px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--color-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card .stat-value {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-pine-2);
}

.stat-card strong {
  font-size: 13.5px;
  font-weight: 600;
}

.stat-card small {
  font-size: 12.5px;
  color: var(--color-ink-3);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quote-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-card blockquote {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.quote-attribution {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-cream);
}

.quote-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.quote-who strong {
  font-size: 13px;
  font-weight: 600;
}

.quote-who span {
  font-size: 12px;
  color: var(--color-ink-3);
}

.logos-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  flex-wrap: wrap;
}

.logos-row .logos-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-2);
  max-width: 260px;
  flex: none;
}

.logos-strip {
  display: flex;
  gap: 14px;
  flex: 1;
  flex-wrap: wrap;
}

.logos-strip .logo-chip {
  flex: 1 1 100px;
  height: 64px;
  border-radius: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-ink-3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.logos-strip .logo-chip:hover {
  color: var(--color-pine-2);
  border-color: var(--color-line-2);
}

/* ── CTA ──────────────────────────────────────────────────────────────── */

.cta-wrap {
  padding: 0 0 96px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-main-1);
  padding: 60px 52px;
}

.cta-panel .rings-bg {
  background:
    repeating-radial-gradient(circle at 84% 30%, rgba(196, 105, 59, 0.4) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 40px),
    repeating-radial-gradient(circle at 12% 78%, rgba(233, 226, 211, 0.16) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 30px);
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 600px;
}

.cta-copy h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: #F6F2E8;
}

.cta-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: #C3D2C6;
  max-width: 480px;
}

.cta-copy-divider {
  width: 100%;
  height: 1px;
  margin-top: 24px;
  background: rgba(233, 226, 211, 0.24);
}

.cta-copy p.cta-copy-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-sage);
  max-width: 440px;
}

.cta-copy-note a {
  color: var(--color-rust-2);
  font-weight: 600;
  text-decoration: none;
}

.cta-copy-note a:hover {
  text-decoration: underline;
}

.cta-form-wrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 440px;
  flex: 1 1 440px;
  max-width: 480px;
}

.cta-form-wrap .row {
  gap: 14px;
}

.cta-form-wrap .access-input {
  height: 52px;
  border: 1px solid rgba(233, 226, 211, 0.3);
  background: rgba(233, 226, 211, 0.08);
  color: var(--color-cream);
  font-size: 14.5px;
}

.cta-form-wrap textarea.access-input {
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
}

.cta-form-wrap .access-input::placeholder {
  color: var(--color-sage);
}

.cta-form-wrap .access-input:focus-visible {
  border-color: var(--color-rust-2);
}

.cta-form-wrap select.access-input option {
  color: var(--color-text);
}

.cta-form-wrap .select-caret {
  color: var(--color-sage);
}

.cta-form-wrap .field-error {
  color: #F0A98B;
}

.cta-form-wrap .cta-submit {
  width: 100%;
  justify-content: center;
}

.cta-form-wrap .form-sent,
.cta-form-wrap .form-error-msg {
  padding: 12px 16px;
  font-size: 13px;
}

.cta-form-wrap .form-sent {
  background: rgba(233, 226, 211, 0.1);
  color: var(--color-cream);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  width: 100%;
  background: var(--color-pine-3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 38px;
  padding: 56px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-brand .logo img {
  height: 26px;
}

.footer-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-sage);
  max-width: 280px;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #7A9385;
  margin-bottom: 18px;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 0;
  list-style: none;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts span {
  font-size: 13.5px;
  color: #C3D2C6;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-rust-2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(233, 226, 211, 0.14);
}

.footer-bottom p {
  font-size: 12.5px;
  color: #7A9385;
}

.footer-bottom p .current-year {
  color: inherit;
  font-size: inherit;
}

.legal-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-nav a {
  font-size: 12.5px;
  color: #C3D2C6;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--color-rust-2);
}

/* Legal pages (privacy policy, cookies policy, terms and conditions) */
.legal-page-section {
  padding: 100px 0;
}

.legal-page .section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 56px;
  margin-bottom: 28px;
}

.legal-page h4 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 20px;
  margin-top: 38px;
  margin-bottom: 12px;
}

.legal-page p {
  color: var(--color-ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-page ul {
  margin: 4px 0 18px;
  padding-left: 22px;
}

.legal-page li {
  color: var(--color-ink-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--color-main-2);
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.accept-cookies-block {
  position: fixed;
  left: 10px;
  bottom: 10px;
  display: flex;
  max-width: 750px;
  border-radius: 20px;
  padding: 26px 28px;
  flex: 1 0 0;
  background: var(--color-main-1);
  box-shadow: 0 12px 36px rgba(22, 40, 31, 0.28);
  z-index: 999;
}

.accept-cookies-block .content-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.accept-cookies-block .content-text p {
  color: var(--color-cream);
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
}

.accept-cookies-block .content-text a {
  color: var(--color-rust-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accept-cookies-block .content-inner .button {
  height: 42px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--color-cream);
  color: var(--color-main-1);
  cursor: pointer;
  transition: 0.3s;
}

.accept-cookies-block .content-inner .button:hover {
  background: #ffffff;
}

@media (max-width: 450px) {
  .accept-cookies-block {
    max-width: calc(100vw - 20px);
  }

  .accept-cookies-block .content-inner {
    flex-direction: column;
  }

  .accept-cookies-block .content-inner p {
    text-align: center;
  }
}

/* ==========================================================================
   BREAKPOINTS
   Tier 2 is derived from this project's own container: 1390 max-width +
   24px left + 24px right padding = 1438px (CONVENTIONS.md §17).
   ========================================================================== */

@media (max-width: 1438px) {
  .hero h1 {
    font-size: 66px;
  }
}

@media (max-width: 1024px) {
  .bi-section,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .problem-media,
  .partner-visual {
    height: 420px;
  }

  .steps-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-panel-grid {
    grid-template-columns: 1fr;
  }

  .map-visual {
    min-height: 360px;
    border-left: none;
    border-top: 1px solid var(--color-line);
  }

  .stats-grid,
  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head .head-aside,
  .section-link {
    margin-left: 0;
  }

  .cta-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-form-wrap {
    margin-left: 0;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-stats {
    gap: 18px;
  }

  .reassure-grid {
    grid-template-columns: 1fr;
  }

  .problem-copy h2,
  .how-section .head-copy h2,
  .services-section .head-copy h2 {
    font-size: 34px;
  }

  .steps-grid,
  .services-grid,
  .stats-grid,
  .quotes-grid {
    grid-template-columns: 1fr;
  }

  /* .logos-label (flex: none, up to 260px) and .logos-strip (flex: 1, basis
     0) never trigger .logos-row's own flex-wrap between them — the label
     claims its full width and the strip is squeezed into whatever's left,
     collapsing the icon chips into a narrow single column. Stack them
     explicitly instead of relying on that wrap. */
  .logos-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .logos-row .logos-label {
    max-width: none;
  }

  .logos-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .logos-strip .logo-chip {
    height: 56px;
    font-size: 26px;
  }

  .map-panel-copy {
    padding: 32px 24px;
  }

  .map-panel-copy h2 {
    font-size: 30px;
  }

  .partners-copy h2 {
    font-size: 36px;
  }

  .partner-stat-card {
    flex-wrap: wrap;
  }

  .cta-panel {
    padding: 40px 26px;
  }

  .cta-copy h2 {
    font-size: 34px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page h1 {
    font-size: 40px;
  }
}
