/*
Theme Name: Atlas Poland — Serwis ECM
Theme URI: https://atlas-poland.pl/
Author: goweb.pl
Author URI: https://goweb.pl/
Description: Certyfikowany serwis ECM dla maszyn kolejowych. Jednostronicowy motyw landingowy — granat / niebieski / biel, premium-industrial. Cała treść, zdjęcia i dane są edytowalne przez Advanced Custom Fields (ACF); tokeny designu pochodzą z theme.json.
Version: 1.1.1
Requires at least: 6.1
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlas-poland
Tags: landing, one-page, custom-fields, block-styles, full-width-template
*/

/* Token aliases — values live in theme.json. */
:root {
  /* Brand */
  --navy:        var(--wp--custom--color--navy,        #0A1E3F);
  --navy-2:      var(--wp--custom--color--navy-2,      #0E2A55);
  --navy-3:      var(--wp--custom--color--navy-3,      #122F5E);
  --blue:        var(--wp--custom--color--blue,        #1E63D6);
  --blue-700:    var(--wp--custom--color--blue-700,    #1850B0);
  --blue-accent: var(--wp--custom--color--blue-accent, #4F93FF);
  --blue-soft:   var(--wp--custom--color--blue-soft,   #EAF1FD);

  --ink:    var(--wp--custom--color--ink,    #0A1E3F);
  --body:   var(--wp--custom--color--body,   #34425C);
  --muted:  var(--wp--custom--color--muted,  #6B7A94);
  --white:  var(--wp--custom--color--white,  #FFFFFF);
  --bg-alt: var(--wp--custom--color--bg-alt, #F4F7FB);
  --line:   var(--wp--custom--color--line,   #E3E9F2);
  --line-2: var(--wp--custom--color--line-2, #D6DEEC);
  --footer: var(--wp--custom--color--footer, #06152E);

  --ring: var(--wp--custom--ring, rgba(30, 99, 214, .30));
  --shadow-sm: var(--wp--custom--shadow--sm, 0 1px 2px rgba(10,30,63,.06), 0 1px 3px rgba(10,30,63,.05));
  --shadow-md: var(--wp--custom--shadow--md, 0 8px 24px rgba(10,30,63,.08), 0 2px 6px rgba(10,30,63,.05));
  --shadow-lg: var(--wp--custom--shadow--lg, 0 24px 60px rgba(10,30,63,.14), 0 8px 20px rgba(10,30,63,.08));

  --r-sm: var(--wp--custom--radius--sm, 10px);
  --r-md: var(--wp--custom--radius--md, 14px);
  --r-lg: var(--wp--custom--radius--lg, 20px);
  --r-xl: var(--wp--custom--radius--xl, 28px);

  --container: var(--wp--custom--container, 1200px);
  /* spacing — snapped to Google's 8dp grid (see theme.json spacingSizes) */
  --gutter:    var(--wp--custom--spacing--gutter,   clamp(24px, 5vw, 40px));
  --section-y: var(--wp--custom--spacing--section,  clamp(72px, 9vw, 128px));
  --hero-top:  var(--wp--custom--spacing--hero-top, clamp(40px, 5.5vw, 80px));

  --font-head: var(--wp--custom--font--head, "Archivo", system-ui, sans-serif);
  --font-body: var(--wp--custom--font--body, "Manrope", system-ui, sans-serif);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* accessibility helpers (WordPress) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* keep the sticky header below the WP admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--navy {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #C9D6EC;
}

section[id] { scroll-margin-top: 92px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
}
.eyebrow__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--blue);
}
.eyebrow__line {
  width: 28px;
  height: 2px;
  background: var(--blue-accent);
  border-radius: 2px;
  flex: none;
}
.section--navy .eyebrow { color: var(--blue-accent); }
.section--navy .eyebrow__num { color: var(--blue-accent); }

.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.section-head .lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}
.section--navy .section-head h2 { color: var(--white); }
.section--navy .section-head .lead { color: #A9BBD8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30,99,214,.28);
}
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,99,214,.34); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--lg { padding: 19px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- icon chips ---------- */
.icon-badge {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }
.section--navy .icon-badge { background: rgba(79,147,255,.16); color: var(--blue-accent); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(10,30,63,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo__img {
  height: 34px;
  width: auto;
  display: block;
}
.logo__tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--blue-soft);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--body);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--navy); background: var(--bg-alt); }
/* CTA inside nav is for the mobile dropdown only; desktop uses .header-cta */
.nav .btn { display: none; }
/* keep the primary CTA's label white even though `.nav a` sets a dark color */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #fff; background: var(--blue); }
.nav a.btn--primary:hover { background: var(--blue-700); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-block: var(--hero-top) var(--section-y);
  overflow: hidden;
}
.hero::before {
  /* subtle blueprint glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(79,147,255,.12), transparent 60%),
    radial-gradient(700px 420px at -8% 12%, rgba(30,99,214,.07), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.hero-cred {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.hero-cred__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.hero-cred__icon svg { width: 21px; height: 21px; }
.hero-cred__label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero-cred__sep { width: 1px; height: 20px; background: var(--line-2); }
.hero-cred__muted { font-size: .82rem; font-weight: 600; color: var(--muted); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(1.95rem, 3.1vw, 2.85rem);
  line-height: 1.08;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--body);
  max-width: 42ch;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  margin: 26px 0 0;
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-trust li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
}
.tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  overflow: hidden;
}
.tick svg { width: 20px; height: 18px; }

/* hero media */
.hero-media { position: relative; }
.hero-photo {
  aspect-ratio: 5 / 4.4;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
}
.hero-badge .icon-badge { width: 42px; height: 42px; border-radius: 10px; }
.hero-badge .icon-badge svg { width: 22px; height: 22px; }
.hero-badge b { display: block; color: var(--navy); font-family: var(--font-head); font-size: .98rem; }
.hero-badge small { color: var(--muted); font-size: .82rem; white-space: nowrap; }

/* =========================================================
   QUICK ANSWERS  (Szybkie odpowiedzi)
   ========================================================= */
.qa-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.qa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.qa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.qa-card .icon-badge { margin-bottom: 22px; transition: background .2s ease, color .2s ease; }
.qa-card:hover .icon-badge { background: var(--blue); color: #fff; }
.qa-card .q {
  font-size: .96rem;
  font-weight: 600;
  color: var(--muted);
  min-height: 2.6em;
}
.qa-card .a {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.qa-card .a.is-blue { color: var(--blue); }
.qa-cta { margin-top: 44px; display: flex; justify-content: center; }

/* =========================================================
   WHAT IS ECM
   ========================================================= */
.ecm-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.ecm-def .lead {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  color: var(--body);
  margin-top: 18px;
}
.ecm-resp-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.ecm-resp {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.resp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.resp-item .icon-badge { width: 42px; height: 42px; border-radius: 10px; }
.resp-item .icon-badge svg { width: 22px; height: 22px; }

/* benefits — navy band */
.benefits {
  margin-top: clamp(40px, 5vw, 64px);
}
.benefits-inner {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: clamp(34px, 4vw, 56px);
  color: #C9D6EC;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.benefits-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 320px at 100% 0%, rgba(79,147,255,.18), transparent 60%);
  pointer-events: none;
}
.benefits-inner h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 28px;
  position: relative;
}
.benefits-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 36px;
  list-style: none;
  padding: 0; margin: 0;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 1.05rem;
  color: #DCE6F6;
}
.benefits-list .tick {
  margin-top: 2px;
  background: rgba(79,147,255,.18);
  color: var(--blue-accent);
}

/* audience + machines */
.two-col {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 40px);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.panel li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel li .tick { flex: none; }

/* model showcase cards */
.models {
  margin-top: clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.model-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.model-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.model-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-alt);
}
.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.model-card:hover .model-card__media img { transform: scale(1.04); }
.model-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.model-card__eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.model-card__body h4 {
  font-size: 1.32rem;
  letter-spacing: -.02em;
}

/* =========================================================
   HOW IT WORKS  (Jak to działa)
   ========================================================= */
.steps {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px 32px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--blue-soft);
  line-height: 1;
  letter-spacing: -.04em;
}
.step .icon-badge { margin-bottom: 22px; }
.step h3 { font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }
.steps-cta { margin-top: 46px; display: flex; justify-content: center; }

/* connector line on desktop */
@media (min-width: 861px) {
  .steps { position: relative; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 58px; right: -16px;
    width: 32px; height: 2px;
    background: var(--line-2);
    z-index: 1;
  }
}

/* =========================================================
   CERTIFICATE
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cert-copy .lead {
  margin-top: 18px;
  color: var(--body);
  font-size: 1.15rem;
}
.cert-facts {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.cert-fact {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  color: var(--navy);
}
.cert-fact .tick { flex: none; }
.cert-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.cert-doc {
  position: relative;
  cursor: zoom-in;
}
.cert-doc__frame {
  aspect-ratio: 1 / 1.414;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: transform .25s ease;
}
.cert-doc__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cert-doc:hover .cert-doc__frame { transform: translateY(-4px) scale(1.01); }
.cert-doc .zoom-hint {
  position: absolute;
  right: 16px; bottom: 16px;
  background: rgba(10,30,63,.82);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cert-doc .zoom-hint svg { width: 15px; height: 15px; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,18,38,.86);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  width: auto;
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  background: #fff;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.5rem;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  margin-top: 44px;
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.is-open { border-color: var(--blue-accent); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
}
.faq-icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  transition: transform .25s ease, background .2s ease, color .2s ease;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-icon::before { width: 13px; height: 2px; }
.faq-icon::after { width: 2px; height: 13px; transition: transform .25s ease; }
.is-open .faq-icon { background: var(--blue); color: #fff; }
.is-open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p {
  padding: 0 24px 24px;
  color: var(--body);
  max-width: 64ch;
}
.faq-foot {
  margin-top: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.faq-foot p { color: var(--muted); font-weight: 600; }

/* =========================================================
   FINAL CTA + FORM
   ========================================================= */
.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.cta-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.cta-copy .sub {
  margin-top: 18px;
  font-size: 1.15rem;
  color: #A9BBD8;
  max-width: 40ch;
}
.cta-points {
  margin-top: 30px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.cta-points li {
  display: flex; align-items: center; gap: 13px;
  font-weight: 600; color: #DCE6F6;
}
.cta-points .tick { background: rgba(79,147,255,.18); color: var(--blue-accent); }

/* form card */
.form-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 44px);
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.form-card .form-intro { color: var(--muted); margin-bottom: 26px; font-size: .98rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #9aa6bd; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--ring);
}
.field.has-error input { border-color: #E0483D; }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(224,72,61,.18); }
.field .err {
  display: none;
  margin-top: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: #D23A2E;
}
.field.has-error .err { display: block; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
}
.consent input {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--blue);
}
.consent label { font-size: .85rem; color: var(--muted); font-weight: 500; line-height: 1.5; }
.consent.has-error label { color: #D23A2E; }
.consent a { color: var(--blue); text-decoration: underline; }

.form-micro {
  margin-top: 18px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.form-micro span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
/* ticks here use the same sizing as the panel lists (.tick / .tick svg) */

/* server-side form notice */
.form-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  display: none;
}
.form-note.is-shown { display: block; }
.form-note.is-error { display: block; background: rgba(224,72,61,.1); color: #C0392B; }

/* success state */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 8px 8px;
}
.form-success.is-shown { display: block; animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.form-success .check-ring {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(31,174,99,.12);
  color: #1FAE63;
  display: grid; place-items: center;
}
.form-success .check-ring svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 36ch; margin: 0 auto; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--footer);
  color: #8DA2C4;
  padding-block: 54px 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .logo__img { filter: brightness(0) invert(1); height: 36px; }
.site-footer .logo__tag { color: var(--blue-accent); background: rgba(79,147,255,.16); }
.footer-tag { margin-top: 16px; max-width: 38ch; font-size: .95rem; color: #7E93B8; }
.footer-meta { text-align: right; font-size: .85rem; line-height: 1.8; }
.footer-meta a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #61769B;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
  .ecm-top { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cta-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px var(--gutter) 22px;
  }
  .nav-open .nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-open .nav .btn { display: inline-flex; margin-top: 10px; }
  .two-col { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  /* footer columns stack on mobile — left-align the link list */
  .footer-meta { text-align: left; }
}
@media (max-width: 600px) {
  .logo__tag { display: none; }
  .qa-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { left: 0; }
  .form-micro { gap: 14px; }
}
