/* =====================================================================
   AFD Consulting — theme override on top of the Casho template engine
   Loaded AFTER css/casho.css. Re-skins to brand palette + Muller/Montserrat
   and styles the blocks our structure adds (process, pricing, payment,
   FAQ, contact form, sticky CTA, popup, language switcher, nav behaviour).
   ===================================================================== */

/* ---------- Muller (local webfonts; fallback to Montserrat) ---------- */
@font-face { font-family:"Muller"; src:url("/fonts/MullerRegular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Muller"; src:url("/fonts/MullerMedium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Muller"; src:url("/fonts/MullerBold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }

/* --------------------------- BRAND TOKENS --------------------------- */
:root {
  --bg: #F7F5F2;
  --graphite: #1F1F1F;
  --burgundy: #6E1F2A;
  --burgundy-hover: #8A2B38;
  --milk: #FFFCF7;
  --beige: #E8DED2;
  --line: #D8D0C7;
  --muted: #6F6A65;
  --soft-burgundy-bg: #F4E9E7;

  --display: "Muller", "Montserrat", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;

  /* remap Casho variables to the warm AFD palette */
  --body-font: "Montserrat", "Muller", Arial, sans-serif;
  --primary: #1F1F1F;
  --dark-grey: #4d4844;
  --grey: #8A847C;
  --border: #D8D0C7;
  --border-dark: #C7BEB2;
  --light-blue: #F1ECE6;   /* warm neutral section tint */
  --light-green: #ECE1D6;  /* warm beige accent tint   */
  --img-background: #E8DED2;/* premium empty-image state */
  --review-icon: #EFEAE3;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--graphite);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

/* --------------------------- TYPOGRAPHY ----------------------------- */
h1, h2, h3, h4, h5, h6,
.hero-heading, .hero-count, .about-count, .price-card__from, .step__num {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.16; }
h5 { font-size: 1.2rem; line-height: 1.3; }
p { font-family: var(--body-font); }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--graphite); color: var(--milk);
  padding: 10px 18px; border-radius: 8px; z-index: 300;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* accents */
.caption { color: var(--burgundy); font-weight: 500; }
.subtitle { border-bottom-color: var(--burgundy); color: var(--burgundy); }
.hero-count { color: var(--burgundy); border-bottom-color: var(--border-dark); }

/* ----------------------------- BUTTONS ------------------------------ */
.primary-button {
  background-color: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--milk);
  font-family: var(--display);
  font-weight: 500;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.primary-button:hover { background-color: var(--burgundy-hover); color: var(--milk); transform: translateY(-2px); }
.primary-button:active { transform: translateY(0) scale(0.99); }
.secondary-button {
  border-color: var(--graphite);
  color: var(--graphite);
  font-family: var(--display); font-weight: 500;
  background-color: var(--milk);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.secondary-button:hover { background-color: var(--graphite); color: var(--milk); transform: translateY(-2px); }

/* image cover graceful fallback (warm beige shows if a photo is absent) */
.cover-image { background-color: var(--img-background); }

/* ============================== NAV ================================= */
.afd-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background-color: rgba(31,31,31,0.18);
  transition: transform .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.afd-nav.is-hidden { transform: translateY(-100%); }
.afd-nav.is-solid {
  background-color: rgba(247,245,242,0.88);
  border-bottom-color: var(--line);
}
.afd-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.afd-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.afd-logo__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--burgundy); position: relative; flex-shrink: 0; }
.afd-logo__mark::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--milk), var(--milk)) center/2px 11px no-repeat,
    linear-gradient(var(--milk), var(--milk)) center/11px 2px no-repeat;
  opacity: 0.92;
}
.afd-logo__text { font-family: var(--display); font-weight: 500; font-size: 1.12rem; color: var(--milk); transition: color .45s var(--ease); }
.afd-logo__text strong { font-weight: 700; }
.is-solid .afd-logo__text { color: var(--graphite); }

.afd-navlinks { display: flex; gap: clamp(0.7rem, 1.5vw, 1.7rem); }
.afd-navlinks a {
  font-family: var(--display); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--milk); padding: 0.4rem 0; position: relative;
  transition: color .25s var(--ease);
}
.is-solid .afd-navlinks a { color: var(--graphite); }
.afd-navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--burgundy); transition: width .3s var(--ease);
}
.afd-navlinks a:hover { color: var(--burgundy); }
.afd-navlinks a:hover::after { width: 100%; }

.afd-nav__right { display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; align-items: center; gap: 0.15rem; }
.lang a {
  font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em;
  color: rgba(255,252,247,0.7); padding: 0.3rem 0.5rem; border-radius: 7px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.is-solid .lang a { color: var(--muted); }
.lang a:hover { color: var(--milk); }
.is-solid .lang a:hover { color: var(--graphite); }
.lang a.is-active { color: var(--milk); background: rgba(255,252,247,0.16); }
.is-solid .lang a.is-active { color: var(--burgundy); background: var(--soft-burgundy-bg); }

.afd-nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--burgundy); color: var(--milk);
  font-family: var(--display); font-weight: 500; font-size: 0.85rem;
  padding: 0.6rem 1.1rem; border-radius: 8px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.afd-nav__cta:hover { background: var(--burgundy-hover); transform: translateY(-1px); }
.afd-nav__cta svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.afd-burger { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.afd-burger span { width: 24px; height: 2px; background: var(--milk); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease), background-color .45s var(--ease); }
.is-solid .afd-burger span { background: var(--graphite); }
.afd-burger[aria-expanded="true"] span { background: var(--graphite); }
.afd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.afd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.afd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.afd-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: var(--bg); padding: clamp(1.4rem,6vw,2.4rem);
  display: flex; flex-direction: column; gap: 1.6rem; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.afd-mobile[hidden] { display: none; }
.afd-mobile.is-open { opacity: 1; transform: translateY(0); }
.afd-mobile__nav { display: flex; flex-direction: column; }
.afd-mobile__nav a { font-family: var(--display); font-weight: 500; font-size: 1.45rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--graphite); }
.afd-mobile__lang { display: flex; gap: 0.4rem; }
.afd-mobile__lang a { font-family: var(--display); font-weight: 500; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.afd-mobile__lang a.is-active { color: var(--burgundy); border-color: var(--burgundy); }
.afd-mobile__social { display: flex; gap: 1.3rem; }
.afd-mobile__social a { color: var(--muted); font-weight: 500; }
.afd-mobile__cta { margin-top: auto; }

/* ===== HERO (template layout kept; only typography softened) ===== */
.hero-heading { text-transform: none; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 500; }
.hero-card p { color: var(--muted); font-size: 0.92rem; }
.hero-count { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* brand wordmark replaces template logo (white over dark nav + footer) */
.afd-wordmark { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--white); white-space: nowrap; }
.afd-wordmark strong { font-weight: 700; }

/* keyword marquee (replaces client-logo strip) */
.afd-marquee { overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.afd-marquee__track { display: flex; width: max-content; animation: afdscroll 32s linear infinite; }
.afd-marquee__row { display: flex; gap: 16px; padding-right: 16px; }
.afd-marquee__chip { display: inline-flex; align-items: center; background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: 18px 28px; font-family: var(--display); font-weight: 500; font-size: 1.05rem; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
@keyframes afdscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* honest promise block (replaces fake testimonial slider) */
.review-promise { flex: 1; background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.review-promise .quote-image { width: 44px; height: auto; }
.review-promise__text { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--graphite); }
.review-promise__by { display: flex; flex-direction: column; gap: 2px; }
.review-promise__by span:first-child { font-family: var(--display); font-weight: 700; color: var(--burgundy); }
.review-promise__by span:last-child { font-size: 0.9rem; color: var(--muted); }

/* anchor offset under (non-sticky) nav */
[id] { scroll-margin-top: 90px; }

/* ============================ SECTIONS ============================= */
.title-section-wrap h2, .section-title h2 { margin-top: 6px; }

/* about overlay: qualitative label instead of a fake metric */
.about-data .about-count { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.6rem; margin-top: 0.4rem; }
.approach li { display: flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 500; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.approach li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--burgundy); flex-shrink: 0; }

/* audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience-card { background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: 32px; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.audience-card:hover { transform: translateY(-4px); border-color: var(--burgundy); box-shadow: 0 14px 40px -26px rgba(31,31,31,0.2); }
.audience-card h5 { color: var(--burgundy); }
.audience-card p { color: var(--muted); margin-top: 8px; }
.audience-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 30px; }
.audience-extra div { padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); position: relative; }
.audience-extra div::before { content: ""; position: absolute; left: 4px; top: 26px; width: 9px; height: 6px; border-left: 1.5px solid var(--burgundy); border-bottom: 1.5px solid var(--burgundy); transform: rotate(-45deg); }

/* generic CTA bar */
.cta-bar { background: var(--soft-burgundy-bg); border-radius: 8px; padding: clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.6rem); display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; margin-top: 40px; }
.cta-bar p { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem,1.7vw,1.3rem); max-width: 46ch; }

/* service card: keep Casho look, add a small note line under desc */
.service-list.col-2 { grid-template-columns: 1fr 1fr; }
.service-content .service-note { color: var(--burgundy); font-size: 0.82rem; font-weight: 500; }
.services-foot { display: flex; justify-content: center; margin-top: 10px; }

/* process / timeline */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: 1.6rem; color: var(--burgundy); font-weight: 700; line-height: 1; }
.step h5 { line-height: 1.25; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: 36px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px -26px rgba(31,31,31,0.2); }
.price-card--featured { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }
.price-card__badge { align-self: flex-start; font-family: var(--display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--milk); background: var(--burgundy); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 14px; }
.price-card__from { font-size: 1.6rem; color: var(--burgundy); margin: 6px 0 0; }
.price-card--featured .price-card__from { color: #E9A6AE; }
.price-card p.price-card__desc { color: var(--muted); margin-top: 12px; }
.price-card--featured p.price-card__desc { color: rgba(255,252,247,0.78); }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; flex-grow: 1; }
.price-card ul li { position: relative; padding-left: 24px; font-size: 0.93rem; }
.price-card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 6px; border-left: 1.5px solid var(--burgundy); border-bottom: 1.5px solid var(--burgundy); transform: rotate(-45deg); }
.price-card--featured ul li::before { border-color: #E9A6AE; }
.price-card .primary-button, .price-card .secondary-button { margin-top: 24px; align-self: flex-start; }

/* payment */
.payment-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.pay-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; font-family: var(--display); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.pay-chip svg { width: 22px; height: 22px; color: var(--burgundy); fill: none; }
.payment-media { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; max-width: 420px; margin-inline: auto; width: 100%; }

/* proof (honest, no fake reviews) */
.proof-inner { max-width: 820px; }
.proof-inner h2 { line-height: 1.16; }
.proof-inner p { color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem,1.7vw,1.25rem); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--burgundy); }
.faq-ic { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--burgundy); border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.faq-ic::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-ic::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item[open] .faq-ic::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding-bottom: 1.4rem; max-width: 72ch; color: var(--muted); }

/* contacts + form */
.contacts-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contacts-channels { margin-top: 10px; }
.contacts-channels li { display: flex; align-items: baseline; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contacts-channels .lbl { font-family: var(--display); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-width: 92px; }
.contacts-channels a { font-size: 1.05rem; }
.contacts-channels a:hover { color: var(--burgundy); }

.form { background: var(--milk); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.6rem,3vw,2.6rem); display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 18px 50px -28px rgba(31,31,31,0.22); }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label, .field > span.lbl { font-family: var(--display); font-weight: 500; font-size: 0.85rem; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.85rem 1rem; width: 100%; font-size: 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px var(--soft-burgundy-bg); }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236E1F2A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field-error { font-size: 0.8rem; color: var(--burgundy); display: none; }
.field.has-error input, .field.has-error select { border-color: var(--burgundy); }
.field.has-error .field-error { display: block; }
.radios { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio, .checkbox { display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; font-size: 0.92rem; }
.checkbox { align-items: flex-start; }
.radio input, .checkbox input { accent-color: var(--burgundy); width: 18px; height: 18px; }
.checkbox a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.form-success { background: var(--soft-burgundy-bg); border: 1px solid var(--burgundy); border-radius: 8px; padding: 0.95rem 1.1rem; color: var(--burgundy); font-weight: 500; font-size: 0.95rem; }

/* footer brand wordmark (instead of template logo) */
.footer__brandtext { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: var(--milk); }
.footer__brandtext strong { font-weight: 700; }

/* sticky mobile CTA + desktop FAB + popup */
.sticky-cta { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 180; display: none; align-items: center; justify-content: center; gap: 0.55rem; background: var(--burgundy); color: var(--milk); font-family: var(--display); font-weight: 500; padding: 1rem; border-radius: 999px; box-shadow: 0 18px 46px -24px rgba(110,31,42,0.5); }
.sticky-cta svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.fab { position: fixed; right: 1.8rem; bottom: 1.8rem; z-index: 180; width: 60px; height: 60px; border-radius: 50%; background: var(--burgundy); color: var(--milk); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 46px -24px rgba(110,31,42,0.55); transition: transform .35s var(--ease), background-color .3s var(--ease); }
.fab:hover { transform: translateY(-3px) scale(1.04); background: var(--burgundy-hover); }
.fab svg { width: 26px; height: 26px; }

.popup { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.popup[hidden] { display: none; }
.popup__overlay { position: absolute; inset: 0; background: rgba(31,31,31,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.popup__panel { position: relative; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 12px; padding: clamp(1.6rem,4vw,2.4rem); box-shadow: 0 40px 90px -30px rgba(31,31,31,0.45); animation: popIn .4s var(--ease); }
.popup__panel .form { box-shadow: none; border: none; padding: 0; background: transparent; margin-top: 1.2rem; }
.popup__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem,3vw,1.7rem); line-height: 1.18; }
.popup__eyebrow { font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); }
.popup__close { position: absolute; top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--milk); border: 1px solid var(--line); cursor: pointer; }
.popup__close:hover { background: var(--soft-burgundy-bg); }
.popup__close svg { width: 20px; height: 20px; color: var(--graphite); }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE =========================== */
@media (max-width: 991px) {
  .afd-navlinks, .afd-nav__cta, .lang { display: none; }
  .afd-burger { display: flex; }
  .audience-grid { grid-template-columns: 1fr; max-width: 520px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .payment-grid, .contacts-grid { grid-template-columns: 1fr; }
  .service-list.col-2 { grid-template-columns: 1fr; }
  .fab { display: none; }
  .approach { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { padding-bottom: 84px; }
  .sticky-cta { display: flex; }
  .hero-cards { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .audience-extra, .approach, .form-two { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; align-items: stretch; }
  .cta-bar .primary-button { justify-content: center; }
  /* drop the hard-coded line breaks in stat labels on phones — let the text
     wrap naturally to the card width instead of forcing an awkward 2-line split */
  .afd-stat__label br { display: none; }
}

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

/* =====================================================================
   ITERATION: light header + language dropdown + light hero with CTA form
   ===================================================================== */

/* ----- header: light theme, dark text, no burger/dots on desktop ----- */
.hero { background: var(--bg) !important; }            /* remove template dark hero image */
.navbar { background-color: rgba(247,245,242,0.92) !important; border-bottom: 1px solid var(--line) !important;
          -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-link { color: var(--graphite); }
.nav-link:hover { color: var(--burgundy); background-color: transparent; }
.afd-wordmark { color: var(--graphite); }
.afd-wordmark strong { color: var(--burgundy); }
.nav-top-line, .nav-middle-line, .nav-bottom-line { background-color: var(--graphite) !important; }
.dot-menu { display: none !important; }                /* remove the three-dots "burger" */
.nav-button { background-color: #fff !important; border: 1px solid var(--burgundy) !important; color: var(--burgundy) !important; }
.nav-button:hover { background-color: var(--burgundy) !important; color: #fff !important; }
.nav-button img { display: none; }
.footer .afd-wordmark { color: var(--milk); }
.footer .afd-wordmark strong { color: #E9A6AE; }

/* ----- language icon dropdown ----- */
.lang-select { position: relative; }
.lang-select__btn { display: inline-flex; align-items: center; gap: 6px; color: var(--graphite);
  font-family: var(--display); font-weight: 500; font-size: 0.85rem; padding: 8px 10px; border-radius: 8px;
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: background-color .2s var(--ease); }
.lang-select__btn:hover { background: rgba(31,31,31,0.05); }
.lang-select__btn > svg:first-child { width: 18px; height: 18px; }
.lang-select__chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang-select.is-open .lang-select__chev { transform: rotate(180deg); }
.lang-select__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: var(--milk);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 22px 50px -28px rgba(31,31,31,0.32);
  padding: 6px; display: none; flex-direction: column; z-index: 60; }
.lang-select.is-open .lang-select__menu { display: flex; }
.lang-select__menu a { font-family: var(--display); font-weight: 500; font-size: 0.92rem; color: var(--graphite);
  padding: 9px 12px; border-radius: 8px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang-select__menu a:hover { background: var(--soft-burgundy-bg); color: var(--burgundy); }
.lang-select__menu a.is-active { color: var(--burgundy); }

/* ----- light hero with CTA form ----- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.afd-hero { background: transparent; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.afd-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.afd-hero__eyebrow { font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--burgundy); margin-bottom: 16px; }
.afd-hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--graphite); }
.afd-hero__title .accent { color: var(--burgundy); }
.afd-hero__lead { margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 52ch; line-height: 1.6; }
.afd-hero__lead strong { color: var(--graphite); font-weight: 600; }
.afd-hero__lead .accent { color: var(--burgundy); }
.afd-hero__dash { color: var(--burgundy); margin-right: 6px; }
.afd-hero__form { margin-top: 30px; background: var(--milk); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.3rem); max-width: 440px; box-shadow: 0 36px 70px -44px rgba(31,31,31,0.28);
  display: flex; flex-direction: column; gap: 14px; }
.afd-hero__form-title { font-family: var(--display); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; text-align: center; }
.afd-hero__form-sub { color: var(--muted); font-size: 0.92rem; text-align: center; margin-top: -8px; }
.afd-hero__form .field input { padding: 1.05rem 1.1rem; font-size: 1.1rem; text-align: center; border-radius: 12px; background: var(--bg); }
.afd-hero__submit { justify-content: center; border: none; padding: 1.05rem; font-size: 1rem; border-radius: 12px; }
.afd-hero__consent { font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.5; }
.afd-hero__consent a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.afd-hero__right { position: relative; }
.afd-hero__photo { position: relative; aspect-ratio: 4/5; margin: 0; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--milk), var(--beige)); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -46px rgba(31,31,31,0.3); }
.afd-hero__photo .cover-image { position: absolute; inset: 0; }
.afd-hero__seal { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,252,247,0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; font-family: var(--display); font-weight: 500; font-size: 0.82rem; color: var(--graphite); }

@media (max-width: 991px) {
  .afd-hero__grid { grid-template-columns: 1fr; }
  .afd-hero__right { order: -1; max-width: 460px; }
  .afd-hero__form { max-width: 480px; }
}
@media (max-width: 600px) {
  .afd-hero__photo { aspect-ratio: 5/4; }
}

/* =====================================================================
   ITERATION 2: glassmorphism header + niche hero (offer left / form right)
   ===================================================================== */

/* ----- glassmorphism fixed header ----- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  background: rgba(255, 252, 247, 0.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(165%); backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 34px -20px rgba(31, 31, 31, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.afd-wordmark { color: var(--graphite); }
.afd-wordmark strong { color: var(--burgundy); }

/* ----- hero: clears fixed header, layered niche backdrop ----- */
.afd-hero { position: relative; overflow: hidden; padding-top: clamp(7rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); background: transparent; }
.afd-hero .container { position: relative; z-index: 2; }
.afd-hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.afd-hero__bg { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 18% 22%, rgba(110,31,42,0.05), transparent 60%),
    radial-gradient(50% 60% at 88% 80%, rgba(232,222,210,0.55), transparent 62%),
    linear-gradient(180deg, #FFFCF7 0%, #F7F5F2 100%); }
.afd-hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.afd-hero__blob--1 { width: 380px; height: 380px; top: -90px; right: -60px; background: radial-gradient(circle, rgba(244,233,231,0.9), transparent 70%); }
.afd-hero__blob--2 { width: 320px; height: 320px; bottom: -110px; left: -80px; background: radial-gradient(circle, rgba(232,222,210,0.8), transparent 70%); }
.afd-hero__doc { position: absolute; left: 3%; top: 16%; width: clamp(120px, 16vw, 230px); height: auto; color: var(--burgundy); opacity: 0.07; transform: rotate(-7deg); }
.afd-hero__seal { position: absolute; right: 40%; bottom: 8%; width: clamp(150px, 20vw, 260px); height: auto; color: var(--burgundy); opacity: 0.12; }

/* ----- left: offer + buttons ----- */
.afd-hero__eyebrow { font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 16px; }
.afd-hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--graphite); }
.afd-hero__title .accent { color: var(--burgundy); }
.afd-hero__lead { margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 52ch; line-height: 1.6; }
.afd-hero__lead strong { color: var(--graphite); font-weight: 600; }
.afd-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.afd-hero__trust { margin-top: 22px; color: var(--muted); font-size: 0.9rem; }

/* ----- right: CTA form ----- */
.afd-hero__right { display: flex; justify-content: flex-end; }
.afd-hero__form { width: 100%; max-width: 420px; background: rgba(255, 252, 247, 0.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: 0 40px 80px -46px rgba(31, 31, 31, 0.3); display: flex; flex-direction: column; gap: 14px; }
.afd-hero__form-title { font-family: var(--display); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; text-align: center; }
.afd-hero__form-sub { color: var(--muted); font-size: 0.92rem; text-align: center; margin-top: -8px; }
.afd-hero__form .field input { padding: 1.05rem 1.1rem; font-size: 1.1rem; text-align: center; border-radius: 12px; background: var(--bg); }
.afd-hero__submit { justify-content: center; border: none; padding: 1.05rem; font-size: 1rem; border-radius: 12px; }
.afd-hero__consent { font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.5; }
.afd-hero__consent a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 991px) {
  .afd-hero__grid { grid-template-columns: 1fr; }
  .afd-hero__right { justify-content: flex-start; }
  .afd-hero__form { max-width: 480px; }
  .afd-hero__seal { right: 4%; bottom: 4%; }
}
@media (max-width: 600px) {
  .afd-hero__btns .primary-button, .afd-hero__btns .secondary-button { width: 100%; justify-content: center; }
  .afd-hero__doc { display: none; }
}

/* =====================================================================
   ITERATION 3: фон.png hero backdrop, burgundy WhatsApp button, block fix
   ===================================================================== */

/* hero background = client niche image (light, finance motifs) */
.afd-hero__bg {
  background:
    linear-gradient(90deg, rgba(247,245,242,0.88) 0%, rgba(247,245,242,0.45) 42%, rgba(247,245,242,0.05) 100%),
    url("/images/afd-hero-bg.png") center/cover no-repeat !important;
}
.afd-hero__blob, .afd-hero__doc, .afd-hero__seal { display: none !important; }
.afd-hero { min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center; }
.afd-hero .container { width: 100%; }

/* header WhatsApp button: accent fill + icon */
.nav-button { background-color: var(--burgundy) !important; border: 1px solid var(--burgundy) !important; color: var(--milk) !important; display: inline-flex; align-items: center; gap: 8px; }
.nav-button:hover { background-color: var(--burgundy-hover) !important; border-color: var(--burgundy-hover) !important; color: var(--milk) !important; }
.nav-button img { display: none; }
.nav-wa-ic { width: 18px; height: 18px; fill: currentColor; }

/* fix "Підхід" (reviews) block — remove stray grey band, clean 2-col layout */
.review-wrap { display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.review-left { display: flex; flex-direction: column; gap: 22px; }
.review-data { background: transparent !important; padding: 0 !important; position: static !important; inset: auto !important; border-radius: 0 !important; }
.review-data .about-count { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.review-data .color-primary { color: var(--muted) !important; }
@media (max-width: 991px) { .review-wrap { grid-template-columns: 1fr; } }

/* =====================================================================
   ITERATION 4: About block (text + button + stat row left, image right)
   ===================================================================== */
.afd-about__grid { display: grid; grid-template-columns: 1fr 0.86fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.afd-about__content { max-width: 620px; }
.afd-about__eyebrow { display: inline-block; font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite); padding-bottom: 8px; border-bottom: 2px solid var(--graphite); margin-bottom: 28px; }
.afd-about__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--graphite); }
.afd-about__text { margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.7; max-width: 58ch; }
.afd-about__btn { margin-top: 30px; }
.afd-about__divider { height: 1px; background: var(--line); margin: 40px 0 34px; }
.afd-about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.afd-stat { background: var(--light-blue); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; }
.afd-stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.1; color: var(--graphite); letter-spacing: -0.01em; }
.afd-stat__line { height: 1px; background: var(--border-dark); margin: 16px 0 14px; }
.afd-stat__label { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.afd-about__media { width: 100%; }
.afd-about__photo { margin: 0; position: relative; aspect-ratio: 5/6; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(31,31,31,0.32); }
.afd-about__photo .cover-image { position: absolute; inset: 0; }

@media (max-width: 991px) {
  .afd-about__grid { grid-template-columns: 1fr; }
  .afd-about__media { order: -1; max-width: 520px; }
}
@media (max-width: 600px) {
  .afd-about__stats { grid-template-columns: 1fr; }
}

/* =====================================================================
   ITERATION 5: 3-line offer, wider left-aligned hero form, directions strip
   ===================================================================== */
.afd-hero__grid { grid-template-columns: 1.04fr 0.96fr; }
.afd-hero__title { font-size: clamp(1.85rem, 3.9vw, 3rem); }
.afd-hero__title .ln { display: block; white-space: nowrap; }

/* wider form, content stretched & left-aligned */
.afd-hero__form { max-width: 520px; }
.afd-hero__form-title { text-align: left; }
.afd-hero__form-sub { text-align: left; }
.afd-hero__form .field { width: 100%; }
.afd-hero__form .field input { text-align: left; width: 100%; }
.afd-hero__consent { text-align: left; }

/* directions marquee between hero and about */
.afd-strip { padding-block: clamp(1.2rem, 2.4vw, 1.8rem); background: var(--milk);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.afd-strip .afd-marquee { margin-top: 0; }

@media (max-width: 600px) {
  .afd-hero__title .ln { white-space: normal; }
}

/* ITERATION 6: About stat-card headings on a single line */
.afd-stat__num { white-space: nowrap; font-size: clamp(1rem, 1.4vw, 1.25rem); }
@media (max-width: 600px) { .afd-stat__num { font-size: 1.25rem; } }

/* =====================================================================
   ITERATION 7: marquee-as-hero-continuation, About equal-height,
   Services gap, glass "Чому AFD" badge
   ===================================================================== */

/* 1. directions marquee = continuation of hero (lighter, semi-transparent, tighter) */
.afd-strip { background: rgba(255, 252, 247, 0.4); border-top: none !important;
  border-bottom: 1px solid rgba(216, 208, 199, 0.5) !important; padding-block: clamp(0.6rem, 1.4vw, 1rem); }
.afd-marquee__chip { background: rgba(255, 252, 247, 0.65); border-color: rgba(216, 208, 199, 0.7);
  padding: 11px 20px; font-size: 0.98rem; box-shadow: none; }

/* 2. About — left content same height as image, cards equal & bottom-aligned */
.afd-about__grid { align-items: stretch; }
.afd-about__content { display: flex; flex-direction: column; }
.afd-about__divider { margin-top: auto; }
.afd-about__stats { align-items: stretch; }
.afd-stat { height: 100%; }
.afd-about__media { position: relative; }
.afd-about__photo { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; margin: 0; }
@media (max-width: 991px) {
  .afd-about__media { position: relative; aspect-ratio: 5/6; }
  .afd-about__photo { position: absolute; inset: 0; height: 100%; }
}

/* 3. Services — raise "Обрати послугу" closer to the offer */
.service-left { grid-row-gap: 24px !important; }

/* 4. "Чому AFD" — glass badge, single-line title, tighter text/button gap */
.challenges-content { grid-row-gap: 28px !important; }
.challengers-data { background: rgba(255, 252, 247, 0.5) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.55); max-width: 270px;
  box-shadow: 0 18px 40px -26px rgba(31,31,31,0.25); }
.challengers-data h3 { font-size: clamp(0.95rem, 1.4vw, 1.15rem); white-space: nowrap; }
.challengers-data .color-primary { font-size: 0.82rem; color: var(--muted); }

/* =====================================================================
   ITERATION 8
   ===================================================================== */

/* 1. remove injected "Made in Webflow" badge (bottom-right) */
.w-webflow-badge { display: none !important; }

/* 2. hero: lighter eyebrow, 18px lead */
.afd-hero__eyebrow { opacity: 0.62; }
.afd-hero__lead { font-size: 18px; }

/* 3. directions marquee without its band/container (chips only) */
.afd-strip { background: transparent !important; border: none !important; padding-block: clamp(0.4rem, 1vw, 0.8rem); }

/* 4. About: caption-style short underline (like Services), compact button, image */
.afd-about__eyebrow { border-bottom: 1px solid var(--burgundy); color: var(--burgundy); padding-bottom: 4px; margin-bottom: 24px; font-size: 0.75rem; }
.afd-about__btn { align-self: flex-start; padding: 0.72rem 1.4rem; font-size: 0.9rem; }
.afd-stat__label { font-size: 0.84rem; }

/* 5. "Чому AFD" badge: tighter line-height, container hugs text */
.challengers-data { max-width: 232px !important; grid-row-gap: 5px !important; padding: 16px 18px !important; }
.challengers-data .color-primary { line-height: 1.25; font-size: 0.8rem; }

/* 6. "Для кого" — structured, lighter, more visual */
.aud-group { display: flex; flex-direction: column; }
.aud-group__label { font-family: var(--display); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.aud-sit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aud-sit { display: flex; align-items: center; gap: 14px; background: var(--milk); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.aud-sit:hover { transform: translateY(-2px); border-color: var(--burgundy); }
.aud-sit img { width: 22px; height: 22px; flex-shrink: 0; }
.aud-sit span { font-size: 0.96rem; color: var(--graphite); line-height: 1.35; }
@media (max-width: 768px) { .aud-sit-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ITERATION 9: gentler marquee + About refinements
   ===================================================================== */

/* 1. marquee — no boxes, words split by translucent burgundy dividers */
.afd-marquee__row { gap: 0; padding-right: 0; }
.afd-marquee__chip {
  background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 4px 30px; border-right: 1px solid rgba(110, 31, 42, 0.25) !important;
  font-family: var(--display); font-weight: 500; font-size: 0.95rem; color: var(--graphite);
}

/* 2. About — short underline only under the words, equal cards, lighter divider line,
      remove the rule under the "Залишити запит" button */
.afd-about__eyebrow { align-self: flex-start; }
.afd-about__divider { display: none; }
.afd-about__stats { margin-top: auto; align-items: stretch; }
.afd-stat { height: 100%; }
.afd-stat__line { background: rgba(31, 31, 31, 0.1); }

/* ITERATION 10: bigger gap between "Залишити запит" button and the 3 cards */
.afd-about__stats { margin-top: clamp(2.4rem, 4.5vw, 4rem) !important; }

/* ITERATION 11: force the "Повний цикл" label to exactly three lines */
.afd-stat__label { font-size: 0.82rem; line-height: 1.5; }
.afd-stat__label .ln3 { display: block; white-space: nowrap; }

/* ITERATION 12: marquee — short, delicate, more transparent dividers */
.afd-marquee__chip { position: relative; border-right: none !important; padding: 4px 26px; }
.afd-marquee__chip::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 11px; background: rgba(110, 31, 42, 0.12); }

/* =====================================================================
   ITERATION 13: "Для кого" — icon cards, tick circles, styled CTA
   ===================================================================== */
.aud-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud-card { background: var(--milk); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(2rem, 3vw, 2.8rem) 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 22px 52px -40px rgba(31,31,31,0.22); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.aud-card:hover { transform: translateY(-4px); box-shadow: 0 28px 58px -36px rgba(31,31,31,0.26); }
.aud-card__ic { width: 74px; height: 74px; border-radius: 50%; background: var(--soft-burgundy-bg); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.aud-card__ic svg { width: 32px; height: 32px; }
.aud-card__title { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: var(--burgundy); letter-spacing: -0.01em; }
.aud-card__line { width: 34px; height: 2px; background: rgba(110,31,42,0.3); border-radius: 2px; margin: 14px 0 16px; }
.aud-card__desc { color: var(--muted); font-size: 0.96rem; line-height: 1.55; max-width: 30ch; }

.aud-sit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aud-sit { display: flex; align-items: center; gap: 16px; background: var(--milk); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.aud-sit:hover { border-color: rgba(110,31,42,0.4); transform: translateY(-2px); }
.aud-sit__ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--soft-burgundy-bg);
  color: var(--burgundy); display: flex; align-items: center; justify-content: center; }
.aud-sit__ic svg { width: 18px; height: 18px; }
.aud-sit > span:last-child { font-size: 0.96rem; color: var(--graphite); line-height: 1.4; }

.aud-cta { background: var(--soft-burgundy-bg); border: 1px solid rgba(110,31,42,0.12); border-radius: 22px;
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.8rem, 3vw, 3rem); display: flex; align-items: center; justify-content: space-between;
  gap: 1.6rem; flex-wrap: wrap; }
.aud-cta__text { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--graphite); max-width: 48ch; letter-spacing: -0.01em; line-height: 1.3; }

@media (max-width: 991px) { .aud-cards { grid-template-columns: 1fr; max-width: 460px; } }
@media (max-width: 768px) { .aud-sit-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .aud-cta { flex-direction: column; align-items: stretch; text-align: center; } .aud-cta .primary-button { justify-content: center; } }

/* =====================================================================
   ITERATION 14: FAQ — left CTA card + right question cards with "+"
   ===================================================================== */
.faq2 { display: grid; grid-template-columns: 0.82fr 1.6fr; gap: clamp(1.6rem, 3vw, 3rem); align-items: start; }

.faq-cta__label { font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--graphite); margin-bottom: 16px; }
.faq-cta__card { background: var(--milk); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 22px 52px -40px rgba(31,31,31,0.22); position: sticky; top: 96px; }
.faq-cta__photo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; margin-bottom: 18px; display: block; }
.faq-cta__name { font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--graphite); line-height: 1.32; }
.faq-cta__sub { color: var(--muted); font-size: 0.92rem; margin-top: 8px; margin-bottom: 22px; line-height: 1.5; }
.faq-cta__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--burgundy); color: var(--milk); font-family: var(--display); font-weight: 500; font-size: 0.95rem; padding: 0.85rem 1.4rem; border-radius: 999px; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.faq-cta__btn:hover { background: var(--burgundy-hover); transform: translateY(-2px); }
.faq-cta__btn svg { width: 16px; height: 16px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; border-top: none !important; }
.faq-item { background: var(--milk); border: 1px solid var(--line) !important; border-radius: 16px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq-item[open] { border-color: rgba(110,31,42,0.4) !important; box-shadow: 0 16px 40px -30px rgba(31,31,31,0.2); }
.faq-item summary { padding: 22px 24px; gap: 1.5rem; }
.faq-q { font-family: var(--display); font-weight: 500; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--graphite); line-height: 1.35; }
.faq-ic { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0; position: relative; transition: border-color .3s var(--ease); }
.faq-item summary:hover .faq-ic { border-color: var(--burgundy); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--burgundy); border-radius: 2px; }
.faq-ic::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-ic::after { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.faq-item[open] .faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 24px 22px; max-width: none; }

@media (max-width: 860px) {
  .faq2 { grid-template-columns: 1fr; }
  .faq-cta__card { position: static; }
}

/* =====================================================================
   ITERATION 15: "Як проходить робота" — scroll-animated vertical timeline
   ===================================================================== */
.afd-process .proc2 { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.proc-intro { position: sticky; top: 104px; }
.proc-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 0.9rem; color: var(--burgundy); margin-bottom: 18px; }
.proc-eyebrow svg { width: 18px; height: 18px; }
.proc-title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--graphite); }
.proc-lead { margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.6; max-width: 42ch; }

.proc-steps { position: relative; display: flex; flex-direction: column; gap: 26px; }
.proc-line { position: absolute; left: 20.5px; top: 22px; bottom: 22px; width: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.proc-line__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--burgundy); border-radius: 3px; transition: height 0.12s linear; }

.proc-step { display: grid; grid-template-columns: 44px 1fr; gap: 24px; align-items: start; }
.proc-step__dot { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--milk);
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease); }
.proc-step.is-done .proc-step__dot { background: var(--burgundy); border-color: var(--burgundy); color: var(--milk); }
.proc-step__num { transition: opacity 0.3s var(--ease); }
.proc-step.is-done .proc-step__num { opacity: 0; }
.proc-step__check { position: absolute; width: 20px; height: 20px; color: var(--milk); opacity: 0; transition: opacity 0.35s var(--ease); }
.proc-step.is-done .proc-step__check { opacity: 1; }

.proc-step__card { background: var(--milk); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: 0 18px 46px -36px rgba(31,31,31,0.2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.proc-step.is-done .proc-step__card { border-color: rgba(110,31,42,0.22); }
.proc-step__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 12px; }
.proc-step__head h3 { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--burgundy); }
.proc-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--soft-burgundy-bg); color: var(--burgundy);
  font-size: 0.8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.proc-badge svg { width: 14px; height: 14px; }
.proc-step__card p { color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .afd-process .proc2 { grid-template-columns: 1fr; }
  .proc-intro { position: static; }
}
@media (max-width: 520px) {
  .proc-step { grid-template-columns: 38px 1fr; gap: 16px; }
  .proc-step__dot { width: 38px; height: 38px; }
  .proc-line { left: 17.5px; }
}

/* =====================================================================
   ITERATION 16
   ===================================================================== */

/* 1. smaller gap between marquee strip and "Про AFD" */
.afd-about { padding-top: clamp(1.4rem, 3vw, 2.4rem); }

/* 2. About stat cards — equal width & height */
.afd-about__stats { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.afd-stat { height: 100%; width: 100%; min-width: 0; }

/* 5. "Чому AFD" — rounded image corners */
.challenges-img { border-radius: 22px; overflow: hidden; }

/* 6a. "Для кого" group labels — underline only under the text */
.aud-group__label { align-self: flex-start; }

/* 6b. "Для кого" CTA — distinct dark fill so it stands out */
.aud-cta { background: var(--graphite) !important; border-color: transparent !important; }
.aud-cta__text { color: var(--milk); }

/* 7. process title — caption underline like other sections (no icon) */
.proc-sub { display: inline-block; margin-bottom: 18px; }

/* =====================================================================
   ITERATION 17: pricing redesign (icon + badge + checklist + dark card + note)
   ===================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-c { background: var(--milk); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.8rem, 2.6vw, 2.4rem);
  display: flex; flex-direction: column; box-shadow: 0 24px 56px -42px rgba(31,31,31,0.22);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price-c:hover { transform: translateY(-5px); box-shadow: 0 32px 62px -38px rgba(31,31,31,0.28); }
.price-c--dark { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }

.price-c__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.price-c__ic { width: 54px; height: 54px; border-radius: 50%; background: var(--soft-burgundy-bg); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-c--dark .price-c__ic { background: rgba(255,252,247,0.1); color: #E9A6AE; }
.price-c__ic svg { width: 24px; height: 24px; }
.price-c__badge { font-family: var(--display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--burgundy); background: var(--soft-burgundy-bg); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.price-c--dark .price-c__badge { color: #E9A6AE; background: rgba(255,252,247,0.08); }

.price-c__amount { font-family: var(--display); font-weight: 500; font-size: clamp(1.65rem, 2.5vw, 2.1rem); color: var(--burgundy); letter-spacing: -0.01em; line-height: 1.1; }
.price-c--dark .price-c__amount { color: #E9A6AE; }
.price-c__desc { margin-top: 14px; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.price-c--dark .price-c__desc { color: rgba(255,252,247,0.72); }
.price-c__divider { height: 1px; background: rgba(31,31,31,0.1); margin: 24px 0; }
.price-c--dark .price-c__divider { background: rgba(255,252,247,0.14); }
.price-c__list { display: flex; flex-direction: column; gap: 16px; flex-grow: 1; margin: 0; }
.price-c__list li { display: flex; align-items: center; gap: 14px; font-size: 0.96rem; color: var(--graphite); }
.price-c--dark .price-c__list li { color: rgba(255,252,247,0.9); }
.price-c__tick { width: 32px; height: 32px; border-radius: 50%; background: var(--soft-burgundy-bg); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-c--dark .price-c__tick { background: rgba(255,252,247,0.1); color: #E9A6AE; }
.price-c__tick svg { width: 15px; height: 15px; }

.price-c__btn { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500;
  font-size: 0.98rem; padding: 1rem 1.4rem; border-radius: 14px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.price-c__btn--ghost { justify-content: space-between; border: 1px solid var(--burgundy); color: var(--burgundy); background: transparent; }
.price-c__btn--ghost:hover { background: var(--burgundy); color: var(--milk); }
.price-c__btn--fill { justify-content: center; background: var(--burgundy); color: var(--milk); }
.price-c__btn--fill:hover { background: var(--burgundy-hover); }
.price-c__btn svg { width: 18px; height: 18px; }

.price-note { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.price-note__ic { width: 38px; height: 38px; border-radius: 50%; background: var(--soft-burgundy-bg); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-note__ic svg { width: 18px; height: 18px; }
.price-note p { color: var(--muted); font-size: 1rem; }
.price-note strong { color: var(--graphite); font-weight: 600; }

@media (max-width: 991px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* =====================================================================
   ITERATION 18: pricing refinements
   ===================================================================== */
/* 1. bigger gap between intro text and the cards */
.price-grid { margin-top: clamp(2.6rem, 5vw, 4rem); }

/* 5. uniform 20px inner padding; equal size; left-aligned content */
.price-c { padding: 20px; }
.price-c__top { justify-content: flex-start; gap: 12px; }

/* 2. smaller badge container */
.price-c__badge { padding: 5px 11px; font-size: 0.68rem; letter-spacing: 0.08em; }

/* 3. bolder package title */
.price-c__amount { font-weight: 700; }

/* buttons in the site style (like "Чому AFD"): left-aligned, pinned to bottom */
.price-c .primary-button { align-self: flex-start; margin-top: 24px; }

/* 6. "Супровід за обсягом" — white card, white icon/badge/tick wrappers w/ accent content, single-line title */
.price-c--accent { border: 1.5px solid var(--burgundy); }
.price-c--accent .price-c__ic,
.price-c--accent .price-c__badge,
.price-c--accent .price-c__tick {
  background: #fff !important;
  border: 1px solid rgba(110,31,42,0.25);
  color: var(--burgundy) !important;
}
.price-c--accent .price-c__amount { color: var(--burgundy); white-space: nowrap; font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.price-c--accent .price-c__desc { color: var(--muted); }
.price-c--accent .price-c__list li { color: var(--graphite); }
.price-c--accent .price-c__divider { background: rgba(31,31,31,0.1); }

/* =====================================================================
   ITERATION 19
   ===================================================================== */
/* 1. pricing: uniform bold titles, left list, full-width graphite buttons */
.price-c__amount { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; }
.price-c--dark .price-c__amount { color: var(--milk); white-space: nowrap; }
.price-c__top { justify-content: flex-start; }
.price-c__list li { justify-content: flex-start; text-align: left; }
.price-c .primary-button, .price-c .secondary-button { width: 100%; justify-content: center; align-self: stretch; margin-top: 24px; }
.price-c .secondary-button img { display: none; }

/* note: smaller gap, smaller font, no top line */
.price-note { border-top: none; margin-top: clamp(1.3rem, 2.5vw, 1.9rem); padding-top: 0; }
.price-note p { font-size: 0.875rem; }

/* 4. FAQ — pin the left column so it travels with scroll (like Послуги) */
.faq-cta { position: sticky; top: 100px; align-self: start; }
.faq-cta__card { position: static; }

/* 5. "Звернення" — taller container + rounded image */
.cta-section { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.cta-image { border-radius: 26px; aspect-ratio: 16 / 12; }

/* =====================================================================
   ITERATION 20
   ===================================================================== */
/* 1. pricing — checklist hard-left, graphite buttons (white text + white arrow), white dark-card badge */
.price-c__list { align-items: flex-start; }
.price-c__list li { justify-content: flex-start; align-items: flex-start; text-align: left; width: 100%; }
.price-c__list li .price-c__tick { margin-top: 1px; }
.price-grbtn { background: var(--graphite) !important; border-color: var(--graphite) !important; color: var(--milk) !important; }
.price-grbtn:hover { background: #333 !important; }
.price-grbtn img { display: inline-block !important; }
.price-c--dark .price-c__badge { color: var(--milk) !important; }

/* 2. FAQ — standard button look */
.faq-cta__btn2 { margin-top: 4px; }

/* 3. "Звернення" — accent rounded panel (reference layout, brand palette) */
.afd-final { padding-block: clamp(2rem, 5vw, 4rem); }
.afd-final__panel { position: relative; overflow: hidden; background: var(--burgundy); color: var(--milk);
  border-radius: 32px; padding: clamp(2.2rem, 5vw, 4.5rem); display: flex; align-items: center;
  justify-content: space-between; gap: clamp(1.8rem, 4vw, 4rem); flex-wrap: wrap; }
.afd-final__content { max-width: 560px; position: relative; z-index: 2; }
.afd-final__title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--milk); }
.afd-final__sub { margin-top: 18px; color: rgba(255,252,247,0.85); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.6; max-width: 46ch; }
.afd-final__actions { display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 2; }
.afd-final__primary { display: inline-flex; align-items: center; gap: 14px; background: var(--milk); color: var(--graphite);
  font-family: var(--display); font-weight: 500; font-size: 1rem; padding: 0.55rem 0.55rem 0.55rem 1.6rem; border-radius: 999px; transition: transform .3s var(--ease); }
.afd-final__primary:hover { transform: translateY(-2px); }
.afd-final__ic { width: 46px; height: 46px; border-radius: 50%; background: var(--graphite); color: var(--milk); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.afd-final__ic svg { width: 20px; height: 20px; }
.afd-final__ghost { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,252,247,0.45);
  color: var(--milk); font-family: var(--display); font-weight: 500; font-size: 1rem; padding: 1rem 1.6rem; border-radius: 999px; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.afd-final__ghost:hover { background: rgba(255,252,247,0.1); border-color: var(--milk); }
.afd-final__ghost svg { width: 18px; height: 18px; }
.afd-final__deco { position: absolute; right: -16px; top: -10px; width: clamp(300px, 38vw, 540px); height: auto; color: var(--milk); opacity: 0.13; z-index: 1; pointer-events: none; }
@media (max-width: 768px) {
  .afd-final__panel { flex-direction: column; align-items: flex-start; }
  .afd-final__actions { width: 100%; }
  .afd-final__primary { width: 100%; justify-content: space-between; }
  .afd-final__ghost { width: 100%; justify-content: center; }
}

/* =====================================================================
   ITERATION 21
   ===================================================================== */
/* 1. pricing — checklist flush-left (reset ul indent), 30px inner padding */
.price-c { padding: 30px; }
.price-c__list { padding-left: 0; margin: 0; list-style: none; }

/* 2. final CTA — standard site buttons adapted to the accent panel */
.afd-final .primary-button { background: var(--milk) !important; color: var(--burgundy) !important; border-color: var(--milk) !important; }
.afd-final .primary-button:hover { background: #fff !important; transform: translateY(-2px); }
.afd-final .secondary-button { background: transparent !important; border-color: rgba(255,252,247,0.5) !important; color: var(--milk) !important; }
.afd-final .secondary-button:hover { background: rgba(255,252,247,0.1) !important; border-color: var(--milk) !important; }
.afd-final .secondary-button img { filter: brightness(0) invert(1); }

/* 3. contacts — icon rows (reference layout, brand style) */
.contacts-lead { margin-top: 16px; color: var(--muted); max-width: 42ch; line-height: 1.6; }
.contact-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; padding: 0; list-style: none; }
.contact-rows li { display: flex; align-items: center; gap: 16px; }
.contact-row__ic { width: 46px; height: 46px; border-radius: 50%; background: var(--soft-burgundy-bg); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row__ic svg { width: 20px; height: 20px; }
.contact-rows a, .contact-rows li > span:last-child { font-size: 1.05rem; color: var(--graphite); }
.contact-rows a:hover { color: var(--burgundy); }
.contact-social { display: flex; gap: 20px; margin-top: 26px; }
/* socials are icon buttons now (.contact-soc) — keep the text-link colour
   for any non-icon link only, so it no longer steals the icon's hover colour
   (was turning the icon burgundy-on-burgundy = invisible on hover) */
.contact-social a:not(.contact-soc) { color: var(--muted); font-weight: 500; }
.contact-social a:not(.contact-soc):hover { color: var(--burgundy); }

/* 4. uniform vertical spacing between blocks */
.section, .small-section, .bg-light-green, .afd-final { padding-top: clamp(3.6rem, 7vw, 6rem); padding-bottom: clamp(3.6rem, 7vw, 6rem); }
.afd-about { padding-top: clamp(1.4rem, 3vw, 2.4rem); }   /* tight pairing under the marquee */

/* ITERATION 22: widen About text column, narrow image so stat headings fit */
.afd-about__grid { grid-template-columns: 1.32fr 0.68fr; gap: clamp(2rem, 4vw, 4rem); }
.afd-about__stats { gap: 16px; }
.afd-stat__num { white-space: nowrap; font-size: clamp(1rem, 1.25vw, 1.2rem); }

/* ITERATION 23: roomier, equal About stat cards (all content fits) */
.afd-about__grid { grid-template-columns: 1.5fr 0.6fr; }
.afd-about__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.afd-stat { padding: 22px 18px; height: 100%; width: 100%; min-width: 0; }
.afd-stat__num { white-space: nowrap; font-size: clamp(0.98rem, 1.15vw, 1.12rem); }
.afd-stat__label { font-size: 0.82rem; line-height: 1.45; }

/* ITERATION 24: label fills card width; wider image column */
.afd-about__grid { grid-template-columns: 1.2fr 0.8fr; }
.afd-stat__label .ln3 { display: inline; white-space: normal; }
.afd-stat__label { font-size: 0.84rem; line-height: 1.5; }

/* ITERATION 25: widen About image a bit more */
.afd-about__grid { grid-template-columns: 1.05fr 0.95fr; }

/* =====================================================================
   ITERATION 26
   ===================================================================== */
/* 2. "Для кого" cards — shorter, even padding */
.aud-card { padding: 28px; }
.aud-card__ic { width: 60px; height: 60px; margin-bottom: 14px; }
.aud-card__ic svg { width: 26px; height: 26px; }
.aud-card__line { margin: 12px 0; }
.aud-card__desc { font-size: 0.92rem; }

/* 3. final-CTA niche decoration (embossed wordmark, checklist, pen, seal) */
.afd-final__deco { opacity: 1; color: var(--milk); right: -20px; top: -8px; width: clamp(360px, 48vw, 660px); }
.afd-final__deco text { fill: currentColor; }
.afd-final__deco .dwm { opacity: 0.13; }
.afd-final__deco .dls { opacity: 0.16; }
.afd-final__deco .dpen { opacity: 0.20; }
.afd-final__deco .dseal { opacity: 0.15; }

/* 4. contacts — social as icon buttons; thinner consent text */
.contact-social { display: flex; gap: 10px; margin-top: 26px; }
.contact-soc { width: 46px; height: 46px; border-radius: 50%; background: var(--soft-burgundy-bg); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center; transition: background-color .3s var(--ease), color .3s var(--ease); }
.contact-soc:hover { background: var(--burgundy); color: var(--milk); }
.contact-soc svg { width: 20px; height: 20px; }
.checkbox { font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.checkbox span { font-weight: 400; }

/* 5. standard footer */
.afd-footer { background: var(--graphite); color: rgba(255,252,247,0.75); padding-top: clamp(3rem, 6vw, 5rem); }
.afd-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.afd-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.afd-footer .footer__brandtext { color: var(--milk); }
.afd-footer .footer__brandtext strong { color: #E9A6AE; }
.afd-footer__desc { font-size: 0.92rem; max-width: 36ch; line-height: 1.6; }
.afd-footer__social { display: flex; gap: 10px; }
.afd-soc { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,252,247,0.08); color: var(--milk);
  display: flex; align-items: center; justify-content: center; transition: background-color .3s var(--ease); }
.afd-soc:hover { background: var(--burgundy); }
.afd-soc svg { width: 20px; height: 20px; }
.afd-footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.afd-footer__head { font-family: var(--display); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,252,247,0.5); margin-bottom: 0.6rem; }
.afd-footer__col a { color: rgba(255,252,247,0.75); font-size: 0.92rem; transition: color .3s var(--ease); width: fit-content; }
.afd-footer__col a:hover { color: var(--milk); }
.afd-footer__muted { font-size: 0.85rem; color: rgba(255,252,247,0.5); }
.afd-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; padding-block: 1.6rem; border-top: 1px solid rgba(255,252,247,0.12); font-size: 0.85rem; color: rgba(255,252,247,0.55); }
@media (max-width: 860px) { .afd-footer__top { grid-template-columns: 1fr 1fr; } .afd-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .afd-footer__top { grid-template-columns: 1fr; } }

/* =====================================================================
   ITERATION 27
   ===================================================================== */
/* 1. "Повний цикл" — exactly two lines */
.afd-about__grid { grid-template-columns: 1.08fr 0.92fr; }
.afd-stat { padding: 22px 16px; }
.afd-stat__label { font-size: 0.78rem; }
.afd-stat__label .ln2 { display: block; white-space: nowrap; }

/* 4. process heading on two lines (wider intro, slightly smaller title) */
.afd-process .proc2 { grid-template-columns: 1.05fr 1.2fr; }
.proc-title { font-size: clamp(1.7rem, 2.9vw, 2.5rem); }

/* 5. pricing "Повний супровід" badge — accent (burgundy) container */
.price-c--dark .price-c__badge { background: var(--burgundy) !important; color: var(--milk) !important; border-color: var(--burgundy) !important; }

/* 6. final-CTA panel — photographic burgundy background (brand photo) */
.afd-final__panel {
  background-color: var(--burgundy);
  background-image: linear-gradient(105deg, var(--burgundy) 0%, rgba(110,31,42,0.93) 36%, rgba(110,31,42,0.62) 100%), url("/images/afd-final-bg.png");
  background-size: cover, cover;
  background-position: center, right center;
  background-repeat: no-repeat;
}
.afd-final__deco { display: none; }

/* 7. contacts — "Соціальні мережі" label above the icons */
.contact-social-label { font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 28px; margin-bottom: 12px; }
.contact-social { margin-top: 0; }

/* =====================================================================
   ITERATION 28
   ===================================================================== */
/* 1. uniform 120px between blocks (60px top + 60px bottom) */
.section, .small-section, .bg-light-green, .afd-final { padding-top: 60px; padding-bottom: 60px; }
.afd-about { padding-top: clamp(1.4rem, 3vw, 2.4rem); }
@media (max-width: 768px) { .section, .small-section, .bg-light-green, .afd-final { padding-top: 44px; padding-bottom: 44px; } }

/* 2. contacts — widen left so the heading fits in three lines */
.contacts-grid { grid-template-columns: 1.05fr 0.95fr; }
.contacts-info h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

/* 3. logo image */
.afd-logo__img { height: 42px; width: auto; display: block; }
.afd-logo__img--footer { height: 50px; }

/* 4. final-CTA panel — burgundy desk photo background (text/buttons kept) */
.afd-final__panel {
  background-color: #3a1018;
  background-image: linear-gradient(100deg, rgba(48,12,18,0.62) 0%, rgba(48,12,18,0.2) 55%, rgba(48,12,18,0.05) 100%), url("/images/afd-final-bg.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* =====================================================================
   ITERATION 29
   ===================================================================== */
/* 1. larger logo in header and footer */
.afd-logo__img { height: 54px; }
.afd-logo__img--footer { height: 66px; }

/* 2. final-CTA — reveal the "AFD" on the notebook; glass "Залишити заявку" */
.afd-final__panel { background-position: center, right bottom; }
.afd-final .secondary-button { background: rgba(255,252,247,0.14) !important;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.afd-final .secondary-button:hover { background: rgba(255,252,247,0.24) !important; border-color: var(--milk) !important; }

/* 3. contacts — tidy, evenly-aligned heading + lead */
.contacts-info { display: flex; flex-direction: column; }
.contacts-info .title-section-wrap { gap: 10px; margin-bottom: 0; }
.contacts-info h2 { margin-top: 4px; line-height: 1.14; letter-spacing: -0.02em; max-width: 18ch; }
.contacts-lead { margin-top: 18px; margin-bottom: 0; max-width: 40ch; line-height: 1.6; }
.contacts-channels, .contact-rows { margin-top: 32px; }

/* =====================================================================
   ITERATION 30
   ===================================================================== */
/* 1. "Для кого" CTA — identical to the final banner (photo bg + glass white button) */
.aud-cta { background-color: #3a1018 !important; border: none !important; border-radius: 28px; overflow: hidden;
  background-image: linear-gradient(100deg, rgba(48,12,18,0.66) 0%, rgba(48,12,18,0.25) 55%, rgba(48,12,18,0.08) 100%), url("/images/afd-final-bg.png");
  background-size: cover, cover; background-position: center, right bottom; background-repeat: no-repeat;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
.aud-cta__text { color: var(--milk); }
.aud-cta__btn { background: var(--milk) !important; color: var(--burgundy) !important; border-color: var(--milk) !important; gap: 10px; }
.aud-cta__btn:hover { background: #fff !important; }
.aud-cta__waic { display: inline-flex; color: var(--burgundy); }
.aud-cta__waic svg { width: 22px; height: 22px; }
.aud-card__desc { font-size: 0.86rem; line-height: 1.5; }

/* 2. larger, visible logo (tighter navbar padding to fit) */
.navbar { padding-top: 9px; padding-bottom: 9px; }
.afd-logo__img { height: 58px; }
.afd-logo__img--footer { height: 82px; }

/* 3. "Послуги" icons — brand-style circular badge */
.service-icon { width: 66px; min-width: 66px; height: 66px; padding: 16px; background: var(--soft-burgundy-bg);
  border-radius: 50%; box-sizing: border-box; }

/* 4. contacts lead width for two lines */
.contacts-lead { max-width: 56ch; }

/* =====================================================================
   ITERATION 31
   ===================================================================== */
/* 1. "Для кого" cards — two guaranteed lines */
.aud-card__desc { font-size: 0.8rem; line-height: 1.5; }
.aud-card__desc .ln2 { display: block; white-space: nowrap; }

/* 1b. "Для кого" CTA — new banner background; clean WhatsApp button */
.aud-cta {
  background-image: linear-gradient(100deg, rgba(58,16,24,0.6) 0%, rgba(58,16,24,0.18) 58%, rgba(58,16,24,0.04) 100%), url("/images/afd-audcta-bg.png") !important;
  background-size: cover, cover !important; background-position: center, center !important; background-repeat: no-repeat !important;
}
.aud-cta__btn { gap: 12px; padding-left: 1.4rem; padding-right: 1.6rem; }

/* 2. contacts heading — three guaranteed lines */
.contacts-info h2 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); }
.contacts-info h2 .ln { display: block; white-space: nowrap; }

/* =====================================================================
   ITERATION 32
   ===================================================================== */
/* 1. multilanguage icon = provided Globe.svg */
.lang-select__globe { width: 19px; height: 19px; display: block; }

/* 2. larger logo, header + footer */
.afd-logo__img { height: 66px; }
.afd-logo__img--footer { height: 92px; }

/* 4. pull nav anchors closer to the logo */
.nav-menu-inner { margin-left: 30px !important; margin-right: auto !important; }

/* =====================================================================
   ITERATION 33
   ===================================================================== */
/* 1. "Для кого" CTA — position banner so "AFD" stays visible */
.aud-cta { background-position: center, 70% 42% !important; }

/* 2. contacts — wider form, smaller gap from heading */
.contacts-grid { grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 3vw, 2.6rem); }

/* 3. footer logo — twice as large */
.afd-logo__img--footer { height: 184px; }

/* 4. header logo — larger still (tighter navbar padding) */
.navbar { padding-top: 6px; padding-bottom: 6px; }
.afd-logo__img { height: 80px; }

/* =====================================================================
   ITERATION 34
   ===================================================================== */
/* 1. "Для кого" CTA button — icon and text on one aligned line */
.aud-cta__btn { display: inline-flex; align-items: center; white-space: nowrap; }
.aud-cta__btn > div { white-space: nowrap; line-height: 1; }
.aud-cta__waic { display: inline-flex; align-items: center; }
.aud-cta__waic svg { display: block; }

/* 2. footer logo — actually larger (override the generic header-logo rule) */
.afd-footer .afd-logo__img { height: 160px; }

/* =====================================================================
   ITERATION 35 — senior self-review fixes (a11y / responsive / nav / CRO)
   ===================================================================== */
/* fixed nav now ~92px (80px logo + padding); anchored sections must clear it */
:root { --nav-h: 96px; }

/* AA contrast: darken secondary text (#6F6A65 ~4.3:1 -> #635C56 ~5:1 on canvas) */
:root { --muted: #635C56; }

/* mobile menu social icons (corrected set) */
.menu-social svg { width: 22px; height: 22px; color: var(--graphite); }

/* responsive logo: keep desktop sizes, prevent oversized logo eating small screens */
@media (max-width: 991px) { .afd-logo__img { height: 60px; } }
@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .navbar { padding-top: 7px; padding-bottom: 7px; }
  .afd-logo__img { height: 44px; }
  .afd-footer .afd-logo__img { height: 110px; }
}
@media (max-width: 420px) { .afd-footer .afd-logo__img { height: 92px; } }

/* reduced-motion: stop the keyword marquee cleanly instead of freezing mid-scroll */
@media (prefers-reduced-motion: reduce) {
  .afd-marquee__track { animation: none !important; transform: none !important; }
}

/* =====================================================================
   ITERATION 36 — exact 130px side gutters (container + "Чому AFD" block)
   ===================================================================== */
.container, .w-layout-blockcontainer.container, .challenges-outer {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 130px !important;
  padding-right: 130px !important;
}
@media (max-width: 1180px) {
  .container, .w-layout-blockcontainer.container, .challenges-outer { padding-left: 56px !important; padding-right: 56px !important; }
}
@media (max-width: 767px) {
  .container, .w-layout-blockcontainer.container, .challenges-outer { padding-left: 20px !important; padding-right: 20px !important; }
}

/* =====================================================================
   ITERATION 37 — hero offer/lead + About heading/text/stat line counts
   ===================================================================== */
/* hero: wider text column so the offer holds on two lines */
.afd-hero__grid { grid-template-columns: 1.2fr 0.8fr; }
.afd-hero__title { font-size: clamp(1.5rem, 2.6vw, 2.6rem); }
.afd-hero__lead { max-width: 640px; }          /* ~three lines on desktop */

/* About: two-line heading, four-line lead, tidy two-line stat labels */
.afd-about__content { max-width: 660px; }
.afd-about__title { font-size: clamp(1.5rem, 2.9vw, 2.4rem); }
.afd-about__title .ln { display: block; white-space: nowrap; }
.afd-about__text { max-width: none; }
.afd-stat__label { font-size: 0.8rem; line-height: 1.5; }

@media (max-width: 600px) {
  .afd-hero__title .ln, .afd-about__title .ln { white-space: normal; }
}

/* =====================================================================
   ITERATION 38 — hero form width + About text width
   ===================================================================== */
/* 1. hero — give the form column more room (form widens) while keeping 2-line offer */
.afd-hero__grid { grid-template-columns: 1.08fr 0.92fr; }
.afd-hero__title { font-size: clamp(1.4rem, 2.4vw, 2.4rem); }
.afd-hero__form { max-width: 560px; }

/* 2. About — let the text fill its column so the gap to the photo shrinks */
.afd-about__grid { gap: clamp(1.6rem, 3vw, 3rem); }
.afd-about__content { max-width: none; }

/* =====================================================================
   ITERATION 39 — "Чому AFD": larger gap between image and text
   ===================================================================== */
.challenges-outer { column-gap: clamp(3rem, 6vw, 6rem) !important; grid-column-gap: clamp(3rem, 6vw, 6rem) !important; }
@media (max-width: 991px) { .challenges-outer { column-gap: 2rem !important; grid-column-gap: 2rem !important; } }

/* =====================================================================
   ITERATION 40 — MOBILE REPAIR
   Later non-media grid rules (iter 22-38) were overriding the early
   mobile collapses. Re-assert single-column at the very end so it wins.
   ===================================================================== */
@media (max-width: 991px) {
  .afd-hero__grid,
  .afd-about__grid,
  .contacts-grid,
  .price-grid,
  .aud-cards,
  .faq2,
  .afd-process .proc2,
  .review-wrap,
  .payment-grid,
  .service-list.col-2 { grid-template-columns: 1fr !important; }

  .afd-hero__grid { gap: clamp(1.6rem, 5vw, 2.4rem) !important; }
  .afd-hero__right { justify-content: flex-start !important; }
  .afd-hero__form { max-width: 100% !important; }
  .afd-about__content { max-width: 100% !important; }
  .afd-process .proc2 { gap: 2rem !important; }
  .proc-intro { position: static !important; }
}
@media (max-width: 600px) {
  .afd-about__stats,
  .aud-sit-grid,
  .form-two,
  .approach,
  .audience-extra { grid-template-columns: 1fr !important; }
  .afd-hero__btns .primary-button,
  .afd-hero__btns .secondary-button { width: 100% !important; justify-content: center !important; }
}

/* =====================================================================
   ITERATION 41 — mobile reliability: force Webflow-IX blocks visible
   (service cards & reveal buttons stayed faded because IX2 only reveals
   them on scroll). Opacity-only so the nav's transform hide/show survives.
   ===================================================================== */
[data-w-id] { opacity: 1 !important; }

/* hero on mobile: lead with the offer/headline, form below (was form-first) */
@media (max-width: 991px) {
  .afd-hero__right { order: 0 !important; }
}

/* =====================================================================
   Scroll-reveal (custom). Replaces the Webflow-IX behaviour where blocks
   were forced visible by [data-w-id]{opacity:1!important} and then only
   "bounced" up (transform) with no fade. The hidden state uses !important
   so it wins over that rule and IX2's inline opacity; JS toggles .is-rv to
   fade + rise the block in, then strips the class so hover/transitions
   return to their natural values. Classes are added by JS only — with JS
   off (or reduced motion) everything stays visible.
   ===================================================================== */
.afd-rv {
  transition: opacity .7s cubic-bezier(.21, .6, .35, 1),
              transform .8s cubic-bezier(.21, .6, .35, 1);
  will-change: opacity, transform;
}
.afd-rv:not(.is-rv) {
  opacity: 0 !important;
  transform: translateY(26px) !important;
}
@media (prefers-reduced-motion: reduce) {
  .afd-rv, .afd-rv:not(.is-rv) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* hero entrance — pure CSS so it plays from the first paint regardless of the
   heavy Webflow scripts; staggered so the eyebrow → title → lead → buttons
   cascade in, with the form sliding in alongside. */
@keyframes afdHeroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
/* the eyebrow is intentionally semi-transparent (opacity: .62 above), so it
   gets its own keyframe that fades to .62 instead of snapping to fully opaque */
@keyframes afdHeroInEyebrow {
  from { opacity: 0;   transform: translateY(22px); }
  to   { opacity: .62; transform: none; }
}
.afd-hero__eyebrow,
.afd-hero__lead,
.afd-hero__btns,
.afd-hero__form {
  animation: afdHeroIn .85s both cubic-bezier(.21, .6, .35, 1);
}
.afd-hero__eyebrow { animation-name: afdHeroInEyebrow; animation-delay: .05s; }
/* .afd-hero__title is animated by GSAP SplitText (see afd.js) */
.afd-hero__title   { animation-delay: .14s; }
.afd-hero__lead    { animation-delay: .23s; }
.afd-hero__btns    { animation-delay: .32s; }
.afd-hero__form    { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .afd-hero__eyebrow, .afd-hero__title, .afd-hero__lead,
  .afd-hero__btns, .afd-hero__form { animation: none !important; }
}

/* =====================================================================
   ITERATION 42 — MOBILE OVERHAUL (logo, menu, hero, reorders, slider,
   service stack, full-width buttons, aud-cta)
   ===================================================================== */
/* 5. hero eyebrow removed (mobile + desktop); bolder offer */
.afd-hero__eyebrow { display: none !important; }
.afd-hero__title { font-weight: 700; }
/* 5. form — smaller title + shorter inputs (18px text) */
.afd-hero__form-title { font-size: 22px; }
.afd-hero__form-sub { font-size: 14px; }
.afd-hero__form .field input { padding: 0.7rem 1rem; font-size: 18px; }
.afd-hero__submit { padding: 0.95rem; font-size: 16px; }
/* 9. "Для кого" CTA text bigger */
.aud-cta__text { font-size: 20px; }

/* ---- mobile burger -> rich .open-menu panel (readable) ---- */
.w-nav-overlay { display: none !important; }
.open-menu.is-open { display: flex !important; }
.open-menu .menu-left { background: rgba(31,31,31,0.4); }
.menu-right { max-width: min(86%, 460px) !important; padding: clamp(26px, 7vw, 44px) !important; }
.menu-right .body-small { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.open-menu .service-link .body-large { font-size: 1.35rem; font-family: var(--display); font-weight: 500; color: var(--graphite); line-height: 1.5; }
.open-menu .service-link:hover .body-large { color: var(--burgundy); }
.open-menu .lang a { font-size: 1rem; }
.open-menu .contact-link, .open-menu .color-primary { font-size: 1.02rem; color: var(--graphite); }
.nav-top-line, .nav-middle-line, .nav-bottom-line { transition: transform .3s var(--ease), opacity .2s var(--ease); }
.menu-button.is-open .nav-top-line { transform: translateY(7px) rotate(45deg); }
.menu-button.is-open .nav-middle-line { opacity: 0; }
.menu-button.is-open .nav-bottom-line { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-menu { display: none !important; }   /* suppress native collapse menu; use .open-menu */

  /* 6. About — image under heading; stats as a swipe slider */
  .afd-about__grid { display: flex !important; flex-direction: column !important; }
  .afd-about__content { display: contents; }
  .afd-about__eyebrow { order: 1; }
  .afd-about__title { order: 2; }
  .afd-about__media { order: 3 !important; position: relative; aspect-ratio: 5/6; }
  .afd-about__text { order: 4; max-width: 100% !important; }
  .afd-about__btn { order: 5; }
  .afd-about__stats { order: 6; display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; margin-top: 10px !important; scrollbar-width: none; }
  .afd-about__stats::-webkit-scrollbar { display: none; }
  .afd-stat { flex: 0 0 65%; scroll-snap-align: start; }

  /* 8. "Чому AFD" — image under heading */
  .challenges-outer { flex-direction: column !important; }
  .challenges-outer > .fill-block { display: contents; }
  .challenges-content { display: contents; }
  .challenges-detail { display: contents; }
  .challenges-detail .title-section-wrap { order: 1; }
  .challenges-img { order: 2; aspect-ratio: 16/11; }
  .challenges-detail > p { order: 3; }
  .challenges-detail .challenges-lists { order: 4; }
  .challenges-content > div:last-child { order: 5; }

  /* 7. Послуги — button to the end; cards stack on scroll */
  .service-outer { flex-direction: column !important; }
  .service-outer > .fill-block { display: contents; }
  .service-left { display: contents; }
  .service-head { order: 1; }
  .w-dyn-list[data-w-id] { order: 2; }
  .service-left > div[data-w-id] { order: 3; }
  .service-list.col-1 { display: flex !important; flex-direction: column; gap: 16px; }
  .service-list.col-1 .w-dyn-item { position: sticky; }
  .service-list.col-1 .w-dyn-item:nth-child(1) { top: 96px; }
  .service-list.col-1 .w-dyn-item:nth-child(2) { top: 112px; }
  .service-list.col-1 .w-dyn-item:nth-child(3) { top: 128px; }
  .service-list.col-1 .w-dyn-item:nth-child(4) { top: 144px; }
  .service-list.col-1 .w-dyn-item:nth-child(5) { top: 160px; }
  .service-card.home { background: var(--milk) !important; box-shadow: 0 -6px 26px -10px rgba(31,31,31,0.16); }
}

@media (max-width: 767px) {
  /* 4. all buttons full-width, centered, >=16px */
  .primary-button, .secondary-button, .faq-cta__btn, .faq-cta__btn2, .aud-cta__btn,
  .price-c .primary-button, .afd-final .primary-button, .afd-final .secondary-button {
    width: 100% !important; justify-content: center !important; font-size: 16px !important; }
  .primary-button > div, .secondary-button > div, .aud-cta__btn > div, .faq-cta__btn > div { font-size: 16px !important; }

  /* 1. larger logo */
  :root { --nav-h: 76px; }
  .afd-logo__img { height: 56px !important; }
  .navbar { padding-top: 8px !important; padding-bottom: 8px !important; }

  /* 3. mobile hero background */
  .afd-hero__bg { background: linear-gradient(180deg, rgba(247,245,242,0.16) 0%, rgba(247,245,242,0.5) 68%, rgba(247,245,242,0.78) 100%), url("/images/afd-hero-bg-mobile.png") center top / cover no-repeat !important; }

  /* 5. offer 26px */
  .afd-hero__title { font-size: 26px !important; line-height: 1.22; }
  .afd-hero__lead { font-size: 16px; }

  /* 9. aud-cta bg shows AFD */
  .aud-cta { background-size: cover !important; background-position: 62% center !important; }
}

/* ITERATION 42b — fix open-menu panel position (was pushed off-screen by flex) */
.open-menu.is-open { display: block !important; }
.open-menu .menu-left { position: absolute !important; inset: 0 !important; background: rgba(31,31,31,0.45) !important; }
.open-menu .menu-right {
  position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
  width: min(88%, 420px) !important; max-width: none !important; height: 100% !important;
  transform: none !important; padding: clamp(26px, 7vw, 40px) !important; overflow-y: auto; border-radius: 0 !important;
}

/* =====================================================================
   ITERATION 43 — full-screen burger menu + hero/About/Why refinements
   ===================================================================== */
/* 1. burger menu: FULL screen, scrollable, everything visible */
.open-menu .menu-left { display: none !important; }
.open-menu .menu-right {
  position: fixed !important; inset: 0 !important; width: 100% !important; max-width: none !important; height: 100% !important;
  transform: none !important; overflow-y: auto !important; justify-content: flex-start !important; align-items: stretch !important;
  gap: 26px !important; padding: calc(var(--nav-h) + 18px) clamp(24px,7vw,40px) 44px !important; border-radius: 0 !important;
}
.open-menu .close-icon { position: fixed !important; top: 16px; right: 18px; z-index: 3; cursor: pointer; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; }
.open-menu .menu-bottom { display: flex; flex-direction: column; gap: 24px; }
.open-menu .lang { display: flex; gap: 10px; flex-wrap: wrap; }
.open-menu .lang a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; color: var(--graphite); }
.open-menu .lang a.is-active { color: var(--burgundy); border-color: var(--burgundy); }
.open-menu .social-wrap { display: flex; gap: 12px; }
.open-menu .menu-social svg { width: 22px; height: 22px; color: var(--graphite); }

/* 2. hero: lighter offer weight, centered buttons (no arrow), 18px lead */
.afd-hero__title { font-weight: 600; }
@media (max-width: 767px) {
  .afd-hero__lead { font-size: 18px; }
  .afd-hero__btns .primary-button, .afd-hero__btns .secondary-button { justify-content: center !important; }
  .afd-hero__btns .primary-icon { display: none; }
}

/* 3. About spacing (mobile): tight eyebrow->title & photo->text; bigger text->button */
@media (max-width: 991px) {
  .afd-about__grid { gap: 0 !important; }
  .afd-about__eyebrow { margin: 0 0 10px !important; }
  .afd-about__title { margin: 0 !important; }
  .afd-about__media { margin: 16px 0 0 !important; }
  .afd-about__text { margin: 14px 0 0 !important; }
  .afd-about__btn { margin: 26px 0 0 !important; }
  .afd-about__stats { margin: 22px 0 0 !important; }
}

/* 4. "Чому AFD" spacing (mobile): readable rhythm */
@media (max-width: 991px) {
  .challenges-outer { row-gap: 0 !important; }
  .challenges-detail .title-section-wrap { margin: 0 0 24px !important; }
  .challenges-img { margin: 0 0 24px !important; }
  .challenges-detail > p { margin: 0 0 20px !important; }
  .challenges-detail .challenges-lists { margin: 0 0 28px !important; }
  .challenges-content > div:last-child { margin: 0 !important; }
}

/* =====================================================================
   ITERATION 44 — mobile round 3
   ===================================================================== */
/* 4. pricing note — icon + text on one row (not stacked) */
.price-note { flex-wrap: nowrap !important; justify-content: flex-start !important; text-align: left !important; align-items: center !important; }
.price-note__ic { flex-shrink: 0; }

/* 7. checkbox on one line */
.form .checkbox { align-items: center; }
.form .checkbox span { font-size: 0.82rem; line-height: 1.35; }

/* 5. FAQ — owner card AFTER the questions, not sticky on mobile */
@media (max-width: 860px) {
  .faq2 { display: flex !important; flex-direction: column; }
  .faq-list { order: 1; }
  .faq-cta { order: 2; position: static !important; }
}

/* 2. About slider cards — uniform 22px padding */
@media (max-width: 991px) { .afd-stat { padding: 22px !important; } }

@media (max-width: 767px) {
  /* 1. hero — lead 16px; buttons match design (arrow restored) + centered text */
  .afd-hero__lead { font-size: 16px !important; }
  .afd-hero__btns .primary-button, .afd-hero__btns .secondary-button {
    justify-content: space-between !important; position: relative; }
  .afd-hero__btns .primary-button > div, .afd-hero__btns .secondary-button > div { flex: 1; text-align: center; }
  .afd-hero__btns .primary-icon { display: block !important; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); }

  /* 3. "Для кого" CTA — new mobile banner background */
  .aud-cta {
    background-image: linear-gradient(180deg, rgba(58,16,24,0.4) 0%, rgba(58,16,24,0.3) 100%), url("/images/afd-audcta-bg-mobile.jpg") !important;
    background-size: cover, cover !important; background-position: center, center !important; background-repeat: no-repeat !important; }

  /* 4. pricing note smaller on phone */
  .price-note p { font-size: 0.88rem; }

  /* 6. final CTA — center button text */
  .afd-final__b1, .afd-final__b2 { justify-content: center !important; }
  .afd-final__b1 .primary-icon, .afd-final__b2 .primary-icon { display: none !important; }

  /* 7. contacts form — readable spacing + consistent fields */
  .form { gap: 1rem; }
  .form .field label { font-size: 0.88rem; }
  .form .field input, .form .field select, .form .field textarea { font-size: 16px; }
  .form .field select { cursor: pointer; }

  /* 8. footer — 2x logo, centered content */
  .afd-footer__top { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
  .afd-footer__brand { align-items: center; }
  .afd-footer .afd-logo__img { height: 220px !important; }
  .afd-footer__desc { margin-inline: auto; }
  .afd-footer__social { justify-content: center; }
  .afd-footer__col { align-items: center; }
  .afd-footer__bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* ITERATION 44b — checkbox on one line (smaller font + roomier form) */
@media (max-width: 767px) {
  .form { padding: 1.4rem !important; }
  .form .checkbox { align-items: center; }
  .form .checkbox span { font-size: 0.74rem; line-height: 1.3; }
}

/* ITERATION 44c — checkbox guaranteed one line */
@media (max-width: 767px) {
  .form .checkbox { flex-wrap: nowrap; align-items: center; gap: 0.5rem; }
  .form .checkbox input { width: 16px; height: 16px; flex-shrink: 0; }
  .form .checkbox span { font-size: 0.7rem; white-space: nowrap; }
}

/* =====================================================================
   ITERATION 45 — mobile: header gap, slider internals, FAQ gap, footer
   ===================================================================== */
/* 3. FAQ — gap from heading to the question blocks */
#faq .title-section-wrap { margin-bottom: clamp(24px, 5vw, 34px); }

@media (max-width: 991px) {
  /* 2. About slider cards — uniform 22px padding + even internal rhythm */
  .afd-stat { padding: 22px !important; }
  .afd-stat__num { margin: 0 !important; }
  .afd-stat__line { margin: 16px 0 !important; }
  .afd-stat__label { margin: 0 !important; }
}

@media (max-width: 767px) {
  /* 1. bigger gap from the fixed header to the hero offer */
  .afd-hero { padding-top: calc(var(--nav-h) + 60px) !important; }

  /* 4. footer — smaller logo + one-line bottom line */
  .afd-footer .afd-logo__img { height: 130px !important; }
  .afd-footer__bottom { flex-direction: row !important; flex-wrap: wrap; justify-content: center;
    gap: 4px 14px; font-size: 0.78rem; }
  .afd-footer__bottom p:last-child::before { content: "·"; margin-right: 14px; color: rgba(255,252,247,0.4); }
}

/* =====================================================================
   ITERATION 46 — burger menu restyled to the reference (full-screen,
   rows + chevrons + dividers, contact pills, language toggle)
   ===================================================================== */
.open-menu { z-index: 9999; }
.open-menu.is-open { display: block !important; }
.open-menu .menu-right {
  position: fixed !important; inset: 0 !important; width: 100% !important; max-width: none !important; height: 100% !important;
  transform: none !important; background: var(--milk) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
  overflow-y: auto !important; display: flex !important; flex-direction: column; gap: 22px;
  padding: 16px 22px 34px !important; border-radius: 0 !important; }

.afd-menu__head { display: flex; align-items: center; justify-content: space-between; }
.afd-menu__logo { height: 48px; width: auto; display: block; }
.afd-menu__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--milk);
  display: flex; align-items: center; justify-content: center; color: var(--graphite); cursor: pointer;
  transition: background-color .2s var(--ease); }
.afd-menu__close:hover { background: var(--soft-burgundy-bg); }
.afd-menu__close svg { width: 20px; height: 20px; }

.afd-menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.afd-menu__link { display: flex; align-items: center; justify-content: space-between; padding: 17px 2px;
  border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 1.18rem;
  color: var(--graphite); transition: color .2s var(--ease); }
.afd-menu__link:hover { color: var(--burgundy); }
.afd-menu__chev { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.afd-menu__link:hover .afd-menu__chev { color: var(--burgundy); }

.afd-menu__contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.afd-menu__pill { display: flex; align-items: center; gap: 12px; background: #F0EBE4; border-radius: 12px;
  padding: 14px 16px; font-family: var(--display); font-weight: 500; font-size: 0.98rem; color: var(--graphite);
  transition: background-color .2s var(--ease); }
.afd-menu__pill:hover { background: #E8DFD4; }
.afd-menu__pic { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: var(--burgundy); flex-shrink: 0; }
.afd-menu__pic svg { width: 21px; height: 21px; }
.afd-menu__pill--wa .afd-menu__pic { color: #25A95A; }

.afd-menu__lang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.afd-menu__lang-label { font-family: var(--body-font); font-size: 0.9rem; color: var(--muted); margin-right: 6px; }
.afd-menu__lang-btn { min-width: 42px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; font-family: var(--display); font-weight: 500; font-size: 0.92rem;
  color: var(--graphite); transition: all .2s var(--ease); }
.afd-menu__lang-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.afd-menu__lang-btn.is-active { background: var(--graphite); color: var(--milk); border-color: var(--graphite); }

/* =====================================================================
   ITERATION 42 — header hide/show, smooth FAQ, aud-cta parallax,
   mobile sticky-cta redesign, SplitText heading support
   ===================================================================== */

/* --- item 7: header hides on scroll down, shows on scroll up --------- */
.navbar { transition: transform .42s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.navbar.is-hidden { transform: translateY(-115%); }

/* --- item 1: smooth FAQ open/close (height animated in JS) ----------- */
.faq-answer { overflow: hidden; }

/* --- SplitText headings: kill the leftover Webflow-IX bounce on the
       title blocks so only the per-character animation plays ---------- */
.section-title, .title-section-wrap, .challenges-lists { transform: none !important; }
.afd-hero__title .split-char,
.afd-about__title .split-char,
.section-title .split-char,
.title-section-wrap h2 .split-char,
.proc-title .split-char,
.afd-final__title .split-char { display: inline-block; will-change: transform, opacity; }
/* mask the rise so characters slide up from under their own line */
.afd-hero__title .split-line,
.afd-about__title .split-line,
.section-title .split-line,
.title-section-wrap h2 .split-line,
.proc-title .split-line,
.afd-final__title .split-line { overflow: hidden; }

/* --- item 3: light parallax background photo on the audience CTA ----- */
.aud-cta { position: relative; isolation: isolate; }
.aud-cta__bg {
  position: absolute; inset: -14% 0; z-index: 0;
  background: url("../images/afd-audcta-bg.png") center / cover no-repeat;
  opacity: .20; pointer-events: none; will-change: transform;
}
.aud-cta__text, .aud-cta__btn, .aud-cta__waic { position: relative; z-index: 1; }

/* --- item 6: mobile sticky bar — wide "Залишити заявку" + 2 round icons */
.sticky-cta {
  background: transparent !important; box-shadow: none !important; padding: 0 !important;
  gap: 10px; border-radius: 0;
}
.sticky-cta__main {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  background: var(--burgundy); color: var(--milk);
  font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  border: none; border-radius: 999px; padding: 1rem 1.2rem; cursor: pointer;
  box-shadow: 0 18px 46px -24px rgba(110, 31, 42, .55);
}
.sticky-cta__main:active { transform: translateY(1px); }
.sticky-cta__ic {
  flex: 0 0 54px; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--milk); color: var(--burgundy);
  border: 1px solid var(--line); box-shadow: 0 14px 34px -22px rgba(31, 31, 31, .4);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.sticky-cta__ic:hover { background: var(--burgundy); color: var(--milk); }
.sticky-cta__ic svg { width: 24px; height: 24px; fill: currentColor; }
/* honour each icon's own attributes (the legacy .sticky-cta svg{fill}
   rule was filling the Instagram outline into a solid square) */
.sticky-cta__ic svg[fill="none"] { fill: none; }
.sticky-cta__ic svg[fill="none"] [fill="currentColor"] { fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .navbar { transition: none !important; }
  .aud-cta__bg { transform: none !important; }
}

/* =====================================================================
   PRELOADER — branded "inscription" intro: the AFD logo draws itself on
   (SVG stroke), fills solid, a hairline accent underlines it, then the
   panel dissolves upward and hands the entrance over to the hero.
   Everything is tunable via the :root variables below.
   ===================================================================== */
:root {
  --pre-bg: #F7F5F2;        /* backdrop colour            */
  --pre-ink: #1F1F1F;       /* logo colour                */
  --pre-accent: #6E1F2A;    /* underline accent           */
  --pre-logo-w: 248px;      /* logo width (desktop)       */
  --pre-speed: 1;           /* speed multiplier (>1 = faster) */
  --pre-draw: 1.5s;         /* logo focus-in duration     */
  --pre-exit: .85s;         /* dissolve / lift duration   */
}
.afd-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--pre-bg);
  transition: opacity var(--pre-exit) ease,
              transform var(--pre-exit) cubic-bezier(.7, 0, .2, 1),
              visibility 0s linear var(--pre-exit);
}
.afd-preloader.is-leaving {
  opacity: 0; transform: translateY(-2.5%);
  visibility: hidden; pointer-events: none;
}
.afd-preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
/* the AFD seal logo eases into focus (settle + de-blur), like a stamp pressed */
.afd-preloader__logo {
  width: var(--pre-logo-w); max-width: 60vw; height: auto; display: block;
  animation: afdPreLogo calc(var(--pre-draw) / var(--pre-speed)) cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.1s / var(--pre-speed));
}
@keyframes afdPreLogo {
  from { opacity: 0; transform: scale(1.06); filter: blur(7px) drop-shadow(0 26px 54px rgba(31, 31, 31, .12)); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0)   drop-shadow(0 26px 54px rgba(31, 31, 31, .12)); }
}
/* hairline accent draws out from the centre under the logo */
.afd-preloader__line {
  width: min(var(--pre-logo-w), 60vw); height: 1px; background: var(--pre-accent);
  transform: scaleX(0); transform-origin: center;
  animation: afdPreLine calc(.66s / var(--pre-speed)) cubic-bezier(.6, 0, .2, 1) both;
  animation-delay: calc(.66s / var(--pre-speed));
}
@keyframes afdPreLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* brand line fades up */
.afd-preloader__tag {
  font-family: var(--display, "Outfit", sans-serif); font-weight: 500;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted, #635C56); text-align: center; padding: 0 1.2rem;
  animation: afdPreTag calc(.7s / var(--pre-speed)) ease both;
  animation-delay: calc(.82s / var(--pre-speed));
}
@keyframes afdPreTag { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) { :root { --pre-logo-w: 196px; } .afd-preloader__tag { font-size: .64rem; letter-spacing: .18em; } }
@media (max-width: 480px) { :root { --pre-logo-w: 158px; } .afd-preloader__tag { font-size: .56rem; letter-spacing: .16em; } }
@media (prefers-reduced-motion: reduce) {
  .afd-preloader__logo { animation: afdPreTag .3s ease both; }
  .afd-preloader__line { animation: none; transform: scaleX(1); }
  .afd-preloader__tag { animation: afdPreTag .3s ease both; }
  .afd-preloader { transition: opacity .35s ease; }
}

/* hold the hero entrance (CSS cascade) until the preloader hands over */
.afd-loading { overflow: hidden; }
.afd-loading .afd-hero__eyebrow,
.afd-loading .afd-hero__lead,
.afd-loading .afd-hero__btns,
.afd-loading .afd-hero__form { animation-play-state: paused !important; }

/* =====================================================================
   ITERATION 47 — "Послуги": горизонтальна галерея (desktop) /
   sticky-стопка карток (mobile). Клік по картці відкриває попап-форму.
   ===================================================================== */

/* heading row: title left, intro + CTA right */
.afd-svc__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(28px, 4vw, 64px); flex-wrap: wrap;
}
.afd-svc__title { flex: 1 1 520px; min-width: 320px; max-width: 680px; }
.afd-svc__title h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.14; }
.afd-svc__intro { flex: 0 1 360px; min-width: 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.afd-svc__intro p { color: var(--muted); line-height: 1.6; }

/* full-bleed gallery shell */
.afd-svc__gallery {
  margin-top: clamp(34px, 4.4vw, 60px);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.afd-svc__gallery::-webkit-scrollbar { display: none; }
.afd-svc__gallery.svc-pinned { overflow: hidden; }

.afd-svc__track {
  display: flex; flex-wrap: nowrap; align-items: stretch;
  gap: clamp(18px, 1.6vw, 28px);
  padding-left: max(20px, calc((100vw - 1336px) / 2 + 20px));
  padding-right: 0;
  will-change: transform;
}
/* trailing gutter as a real flex item — flex containers drop trailing padding
   from scrollWidth, so without this the last card ends flush against the edge */
.afd-svc__track::after {
  content: ""; align-self: stretch;
  flex: 0 0 max(48px, calc((100vw - 1336px) / 2 + 32px));
}

/* card */
.afd-svc-card {
  flex: 0 0 clamp(284px, 24vw, 364px);
  width: clamp(284px, 24vw, 364px);
  display: flex; flex-direction: column;
  background: var(--milk); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-align: left; cursor: pointer; padding: 0;
  font-family: var(--display); color: var(--graphite);
  -webkit-appearance: none; appearance: none;
  box-shadow: 0 1px 2px rgba(31,31,31,0.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.afd-svc-card:hover { transform: translateY(-6px); border-color: var(--burgundy); box-shadow: 0 26px 52px -28px rgba(31,31,31,0.42); }
.afd-svc-card:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

.afd-svc-card__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--img-background); }
.afd-svc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.afd-svc-card:hover .afd-svc-card__media img { transform: scale(1.06); }

.afd-svc-card__body { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 28px; flex: 1; }
.afd-svc-card__icon { width: 54px; height: 54px; min-width: 54px; padding: 13px; background: var(--soft-burgundy-bg); border-radius: 50%; box-sizing: border-box; display: inline-flex; }
.afd-svc-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.afd-svc-card__text { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.afd-svc-card__title { margin: 0; font-weight: 600; font-size: 1.16rem; line-height: 1.25; color: var(--graphite); }
.afd-svc-card__desc { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; font-family: var(--body-font); font-weight: 400; }
.afd-svc-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--burgundy); font-weight: 600; font-size: 0.9rem; }
.afd-svc-card__arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.afd-svc-card:hover .afd-svc-card__arrow { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .afd-svc-card, .afd-svc-card__media img, .afd-svc-card__arrow { transition: none; }
}

/* ---- mobile / tablet (<=991px): keep the current sticky card stack ---- */
@media (max-width: 991px) {
  /* column head: reset the desktop flex-basis (it was forcing a tall gap
     between the title and the intro on the vertical axis) */
  .afd-svc__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .afd-svc__title, .afd-svc__intro { flex: 0 0 auto; width: 100%; max-width: 100%; min-width: 0; }
  .afd-svc__gallery { overflow: visible; margin-top: 20px; }
  .afd-svc__track {
    flex-direction: column; gap: 16px;
    max-width: 1336px; margin-inline: auto;
    padding: 0 20px;
    transform: none !important; will-change: auto;
  }
  .afd-svc__track::after { display: none; }
  .afd-svc-card {
    flex: 0 0 auto; width: 100%;
    flex-direction: row; align-items: center; gap: 18px;
    border-radius: 14px; padding: 24px;
    min-height: 188px;            /* equal-size cards regardless of text length */
    position: sticky;
    box-shadow: 0 -6px 26px -10px rgba(31,31,31,0.16);
  }
  .afd-svc-card:hover { transform: none; box-shadow: 0 -6px 26px -10px rgba(31,31,31,0.16); }
  .afd-svc-card:nth-child(1) { top: 88px; }
  .afd-svc-card:nth-child(2) { top: 104px; }
  .afd-svc-card:nth-child(3) { top: 120px; }
  .afd-svc-card:nth-child(4) { top: 136px; }
  .afd-svc-card:nth-child(5) { top: 152px; }
  .afd-svc-card__media { display: none; }
  .afd-svc-card__body { flex-direction: row; align-items: center; gap: 18px; padding: 0; flex: 1; }
  .afd-svc-card__icon { width: 66px; height: 66px; min-width: 66px; padding: 17px; }
  .afd-svc-card__text { gap: 7px; }
  .afd-svc-card__title { font-size: 1.2rem; }
  .afd-svc-card__desc { font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .afd-svc-card__cta { display: none; }
}

/* =====================================================================
   ITERATION 48 — FAQ accordion: smooth grid-rows reveal (no jump/bounce).
   Replaces the JS height animation; content is wrapped in .faq-answer__inner
   so the grid track can collapse to a true zero. Padding lives on the inner
   wrapper so there is no leftover gap when closed and no margin-collapse.
   ===================================================================== */
.faq-answer {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  padding: 0;
  max-width: none;
  transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.is-open .faq-answer { grid-template-rows: minmax(0, 1fr); }
/* overflow on the grid item itself is what lets the 0fr track collapse to a
   true zero (its min-content becomes 0) */
.faq-answer__inner { overflow: hidden; min-height: 0; padding: 0 24px 22px; max-width: 72ch; color: var(--muted); }
.faq-answer__inner > * { margin: 0; }
.faq-answer__inner > * + * { margin-top: 0.7rem; }
@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}

/* ---- Етап 2: назва тарифу + фікс заголовка контактів ---- */
.price-c__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--graphite);
  line-height: 1.25;
  margin: 2px 0 8px;
}
.contacts-info h2 { max-width: 26ch; }
.contacts-info h2 .ln { white-space: normal; }

/* cover-image мусить заповнювати контейнер (раніше бракувало object-fit) */
.cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }
/* гарантована висота контейнера фото «Про AFD», щоб воно ніколи не зникало */
.afd-about__media { min-height: 380px; }
.afd-about__photo { min-height: 380px; }

/* =====================================================================
   ITERATION 40
   ===================================================================== */
/* 1. Вартість — виділення тарифів «Разова послуга» та «Повний супровід»
   нашим акцентом (бордо): тонка бордова рамка, тепла бордова заливка,
   акцентний верхній штрих і насичений бейдж. Преміально, без агресії. */
.price-c--featured { position: relative; background: var(--soft-burgundy-bg);
  border: 1.5px solid var(--burgundy); box-shadow: 0 26px 58px -40px rgba(110,31,42,0.45); }
.price-c--featured::before { content: ""; position: absolute; top: -1.5px; left: 24px; right: 24px;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--burgundy); }
.price-c--featured:hover { box-shadow: 0 34px 66px -38px rgba(110,31,42,0.5); }
.price-c--featured .price-c__badge { color: var(--milk); background: var(--burgundy); }
.price-c--featured .price-c__ic,
.price-c--featured .price-c__tick { background: #fff; color: var(--burgundy);
  border: 1px solid rgba(110,31,42,0.2); }
.price-c--featured .price-c__amount { color: var(--burgundy); }
.price-c--featured .price-c__divider { background: rgba(110,31,42,0.18); }
.price-c--featured .price-grbtn { background: var(--burgundy) !important;
  border-color: var(--burgundy) !important; color: var(--milk) !important; }
.price-c--featured .price-grbtn:hover { background: var(--burgundy-hover) !important; }

/* 2. Підвал — юридична інформація (ФОП / Торговий реєстр / UID) */
.afd-footer__legal { padding-block: 1.4rem; border-top: 1px solid rgba(255,252,247,0.12);
  display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; line-height: 1.55;
  color: rgba(255,252,247,0.55); }
.afd-footer__legal-name { color: var(--milk); font-weight: 500; }
.afd-footer__legal + .afd-footer__bottom { border-top: none; }

/* honeypot — приховане поле проти ботів (дублюємо інлайн-стиль на випадок,
   якщо CSS ще не завантажився) */
.afd-hp { position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* інлайн-повідомлення, якщо заявку не вдалося надіслати */
.form-error-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--soft-burgundy-bg); color: var(--burgundy); font-size: 0.9rem; line-height: 1.5; }
