/* =====================================================================
   AFD Consulting — premium minimal landing
   Fonts: Muller (display / headings / CTA), Montserrat (body)
   ===================================================================== */

/* ---------- Muller @font-face (локальні webfont-файли) ----------
   Покладіть файли у /fonts/. Якщо їх немає — спрацює fallback на 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;
}

/* ----------------------------- TOKENS ----------------------------- */
:root {
  --bg: #F7F5F2;
  --graphite: #1F1F1F;
  --burgundy: #6E1F2A;

  --milk: #FFFCF7;
  --beige: #E8DED2;
  --line: #D8D0C7;
  --muted: #6F6A65;
  --burgundy-hover: #8A2B38;
  --soft-burgundy-bg: #F4E9E7;

  --display: "Muller", "Montserrat", Arial, sans-serif;
  --body: "Montserrat", "Muller", Arial, sans-serif;

  --container: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --shadow-soft: 0 18px 50px -28px rgba(31, 31, 31, 0.22);
  --shadow-card: 0 14px 40px -26px rgba(31, 31, 31, 0.20);
  --shadow-burgundy: 0 18px 46px -24px rgba(110, 31, 42, 0.30);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 78px;
}

/* ----------------------------- RESET ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--graphite);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

: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: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------- LAYOUT BASE --------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 4rem);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section__head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.1rem;
}

.section__label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.section__label span {
  color: var(--burgundy);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section__lead {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 60ch;
}

/* ----------------------------- BUTTONS ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid transparent;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--burgundy);
  color: var(--milk);
  box-shadow: var(--shadow-burgundy);
}
.btn--primary:hover { background: var(--burgundy-hover); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn--ghost:hover { background: var(--soft-burgundy-bg); transform: translateY(-2px); }

.btn--sm { padding: 0.66rem 1.2rem; font-size: 0.9rem; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: currentColor; }

/* ----------------------------- HEADER ----------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 242, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--burgundy);
  position: relative;
  flex-shrink: 0;
}
.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;
}
.logo__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.logo__text strong { font-weight: 700; }
.logo--light .logo__text { color: var(--milk); }

.nav { display: flex; gap: clamp(0.8rem, 1.6vw, 1.8rem); }
.nav__link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--graphite);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--burgundy);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--burgundy); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.lang { display: inline-flex; align-items: center; gap: 0.2rem; }
.lang__item {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  border-radius: 7px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lang__item:hover { color: var(--graphite); }
.lang__item.is-active { color: var(--burgundy); background: var(--soft-burgundy-bg); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------- MOBILE MENU --------------------------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: clamp(1.5rem, 6vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__lang { display: flex; gap: 0.4rem; }
.mobile-menu__social { display: flex; gap: 1.4rem; }
.mobile-menu__social a { color: var(--muted); font-weight: 500; }
.mobile-menu__cta { margin-top: auto; }

/* ------------------------------ HERO ------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -8%;
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(110, 31, 42, 0.06), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: 0.4rem;
}
.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 56ch;
}
.hero__actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero__trust {
  margin-top: 1.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero__media { position: relative; }

/* media frames + graceful placeholder fallback */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--milk), var(--beige));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 5 / 6;
}
.media--portrait { aspect-ratio: 5 / 6; }
.media--soft { aspect-ratio: 8 / 9; }
.media--mobile { aspect-ratio: 4 / 5; max-width: 420px; }
.media__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
}
.media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1.5rem;
}
.media__fallback svg { width: 46px; height: 46px; color: var(--burgundy); opacity: 0.5; }
/* When image is present it covers the fallback; if it fails to load JS adds this class */
.media__img--missing { opacity: 0; }

.service__media .media { aspect-ratio: 4 / 3; }

.hero__chips {
  position: absolute;
  left: -8%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}
.chip {
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
}

.hero__float {
  position: absolute;
  right: -4%;
  top: 8%;
  z-index: 2;
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  max-width: 220px;
  box-shadow: var(--shadow-card);
}
.hero__float-title {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}
.hero__float-text { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

/* ----------------------------- TRUST ------------------------------ */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
}
.trust__item { display: flex; flex-direction: column; gap: 0.7rem; }
.trust__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--burgundy);
}
.trust__text { font-size: 0.96rem; color: var(--graphite); line-height: 1.5; }

/* ------------------------------ ABOUT ----------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.approach { margin-top: 2.4rem; }
.approach__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.approach__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.6rem;
}
.approach__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.approach__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--burgundy); flex-shrink: 0; }

/* ---------------------------- AUDIENCE ---------------------------- */
.audience__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
}
.audience__primary { display: flex; flex-direction: column; gap: 1rem; }
.audience__primary li {
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.audience__primary li:hover {
  transform: translateY(-3px);
  border-color: var(--burgundy);
  box-shadow: var(--shadow-card);
}
.audience__tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}
.audience__primary p { color: var(--muted); font-size: 0.96rem; }

.audience__secondary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.audience__secondary li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
  font-size: 1rem;
  position: relative;
  padding-left: 1.4rem;
}
.audience__secondary li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.55rem;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--burgundy);
  border-bottom: 1.5px solid var(--burgundy);
  transform: rotate(-45deg);
}
.audience__secondary li:first-child { padding-top: 0; }
.audience__secondary li:first-child::before { top: 0.5rem; }

/* ----------------------------- CTA BAR ---------------------------- */
.cta-bar {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  background: var(--soft-burgundy-bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.cta-bar__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  max-width: 46ch;
}

/* ---------------------------- SERVICES ---------------------------- */
.services .service {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.4rem, 4vw, 3.6rem);
  border-bottom: 1px solid var(--line);
}
.services .service:first-of-type { border-top: 1px solid var(--line); }
.service--reverse .service__media { order: 2; }
.service__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.9rem;
}
.service__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.service__desc { margin-top: 0.9rem; color: var(--muted); max-width: 52ch; }
.service__points {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.4rem;
}
.service__points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
}
.service__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 9px; height: 6px;
  border-left: 1.5px solid var(--burgundy);
  border-bottom: 1.5px solid var(--burgundy);
  transform: rotate(-45deg);
}
.service__body .btn { margin-top: 1.6rem; }

.services__note {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------------------------- PROCESS ----------------------------- */
.process { background: var(--milk); }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.timeline__step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1.5px solid var(--line);
  position: relative;
}
.timeline__step::before {
  content: "";
  position: absolute;
  top: -1.5px; left: 0;
  width: 38px; height: 1.5px;
  background: var(--burgundy);
}
.timeline__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--burgundy);
  line-height: 1;
}
.timeline__step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.25;
}
.timeline__step p { font-size: 0.9rem; color: var(--muted); }

/* ----------------------------- PRICING ---------------------------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
.price-card {
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--beige); }
.price-card--featured {
  background: var(--graphite);
  color: var(--milk);
  border-color: var(--graphite);
  box-shadow: var(--shadow-soft);
}
.price-card--featured .price-card__desc,
.price-card--featured .price-card__list li { color: rgba(255, 252, 247, 0.78); }
.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: 1rem;
}
.price-card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.price-card__from {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--burgundy);
  margin-top: 0.5rem;
}
.price-card--featured .price-card__from { color: #E9A6AE; }
.price-card__desc { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }
.price-card__list {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}
.price-card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  color: var(--graphite);
}
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 9px; height: 6px;
  border-left: 1.5px solid var(--burgundy);
  border-bottom: 1.5px solid var(--burgundy);
  transform: rotate(-45deg);
}
.price-card--featured .price-card__list li::before { border-color: #E9A6AE; }
.price-card .btn { margin-top: 1.8rem; }

/* ----------------------------- PAYMENT ---------------------------- */
.payment__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.payment__methods {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1.3rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  box-shadow: var(--shadow-card);
}
.pay-chip__mark { font-weight: 700; letter-spacing: 0.02em; }
.pay-chip .icon { width: 1.4rem; height: 1.4rem; color: var(--burgundy); fill: none; }
.payment .media--mobile { margin-inline: auto; }

/* ---------------------------- EXPERTISE --------------------------- */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.expertise__grid li {
  padding: 1.3rem 0.4rem 1.3rem 2.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  letter-spacing: -0.01em;
  position: relative;
}
.expertise__grid li::before {
  content: "";
  position: absolute;
  left: 0.4rem; top: 1.7rem;
  width: 11px; height: 7px;
  border-left: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  transform: rotate(-45deg);
}
.expertise__grid li:nth-child(odd) { padding-right: 2rem; }

/* --------------------------- SOCIAL PROOF ------------------------- */
.proof { background: var(--milk); }
.proof__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.proof__label { justify-content: center; }
.proof__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.proof__note { margin-top: 1.3rem; color: var(--muted); }

/* ------------------------------- 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.5rem 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--burgundy); }
.faq__icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--burgundy);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__answer {
  overflow: hidden;
  padding-bottom: 1.5rem;
  max-width: 70ch;
  color: var(--muted);
}
.faq__answer p { animation: faqIn 0.4s var(--ease); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------- FINAL CTA --------------------------- */
.final-cta { background: var(--graphite); color: var(--milk); }
.final-cta__inner { max-width: 880px; margin-inline: auto; text-align: center; }
.final-cta__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.final-cta__actions {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.final-cta .btn--ghost { color: var(--milk); border-color: rgba(255, 252, 247, 0.4); }
.final-cta .btn--ghost:hover { background: rgba(255, 252, 247, 0.08); border-color: var(--milk); }

/* ---------------------------- CONTACTS ---------------------------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contacts__channels { margin-top: 2.2rem; display: flex; flex-direction: column; }
.contacts__channels li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contacts__ch-label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 92px;
}
.contacts__channels a { font-size: 1.05rem; transition: color 0.25s var(--ease); }
.contacts__channels a:hover { color: var(--burgundy); }

/* ------------------------------ FORM ------------------------------ */
.form {
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--graphite);
}
.field__input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field__input: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 .field__input { 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; }
.radio input, .checkbox input { accent-color: var(--burgundy); width: 18px; height: 18px; }
.radio span {
  padding: 0.2rem 0;
}
.checkbox { align-items: flex-start; }
.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: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--burgundy);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ----------------------------- FOOTER ----------------------------- */
.footer {
  background: var(--graphite);
  color: rgba(255, 252, 247, 0.75);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.footer__desc { margin-top: 1.1rem; font-size: 0.92rem; max-width: 36ch; line-height: 1.6; }
.footer__col-title {
  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: 1.1rem;
}
.footer__nav, .footer__contacts, .footer__legal { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__nav a, .footer__contacts a, .footer__legal a {
  font-size: 0.92rem;
  color: rgba(255, 252, 247, 0.75);
  transition: color 0.25s var(--ease);
  width: fit-content;
}
.footer__nav a:hover, .footer__contacts a:hover, .footer__legal a:hover { color: var(--milk); }
.footer__address { font-size: 0.85rem; color: rgba(255, 252, 247, 0.5); margin-top: 0.4rem; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  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);
}

/* -------------------------- STICKY / FAB -------------------------- */
.sticky-cta {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--burgundy);
  color: var(--milk);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-burgundy);
}
.sticky-cta .icon { fill: currentColor; }

.fab {
  position: fixed;
  right: 1.8rem; bottom: 1.8rem;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--milk);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-burgundy);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.04); background: var(--burgundy-hover); }
.fab .icon { width: 26px; height: 26px; }

/* ----------------------------- POPUP ------------------------------ */
.popup {
  position: fixed;
  inset: 0;
  z-index: 150;
  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);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s var(--ease);
}
.popup__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 40px 90px -30px rgba(31, 31, 31, 0.45);
  animation: popIn 0.4s var(--ease);
}
.popup__panel .form { box-shadow: none; border: none; padding: 0; background: transparent; margin-top: 1.4rem; }
.popup__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: 0.4rem;
}
.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);
  transition: background-color 0.25s var(--ease);
}
.popup__close:hover { background: var(--soft-burgundy-bg); }
.popup__close svg { width: 20px; height: 20px; color: var(--graphite); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------- REVEAL FX ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

[data-parallax] { will-change: transform; }

/* ============================ RESPONSIVE ========================== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .lang { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .hero__chips { left: auto; right: -2%; bottom: 8%; }

  .about__grid,
  .audience__layout,
  .payment__inner,
  .contacts__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .fab { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }

  body { padding-bottom: 84px; } /* room for sticky CTA */
  .sticky-cta { display: flex; }

  .section { padding-block: clamp(3.4rem, 11vw, 5rem); }

  .hero { padding-top: calc(var(--header-h) + 1.8rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__float { display: none; }
  .hero__chips { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }

  .services .service { grid-template-columns: 1fr; gap: 1.4rem; }
  .service--reverse .service__media { order: 0; }
  .service__media { max-width: 480px; }
  .service__points { grid-template-columns: 1fr; }
  .service__body .btn { width: 100%; }

  .approach__list { grid-template-columns: 1fr; }
  .expertise__grid { grid-template-columns: 1fr; }
  .expertise__grid li:nth-child(odd) { padding-right: 0.4rem; }

  .form__row--two { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .cta-bar .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .trust__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .final-cta__actions { flex-direction: column; }
  .final-cta__actions .btn { width: 100%; }
}

/* ====================== SUBPAGES (legal / 404) ==================== */
.subheader {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 242, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.subheader__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.subheader__actions { display: flex; align-items: center; gap: 0.8rem; }

.legal-hero {
  padding-top: clamp(2.6rem, 6vw, 4.5rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.legal-hero .eyebrow { margin-bottom: 0.9rem; }
.legal-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.legal-hero__meta { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

.legal {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.legal__body { max-width: 760px; }
.legal__body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal__body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.4rem; }
.legal__body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}
.legal__body p { margin-top: 0.9rem; color: var(--graphite); }
.legal__body p.muted { color: var(--muted); }
.legal__body a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--burgundy-hover); }
.legal__body ul { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; }
.legal__body ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--graphite);
}
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--burgundy);
}
.legal__body dl { margin-top: 1rem; display: grid; grid-template-columns: 200px 1fr; gap: 0.7rem 1.4rem; }
.legal__body dt { font-family: var(--display); font-weight: 500; color: var(--muted); }
.legal__body dd { margin: 0; }

.notfound {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
}
.notfound__inner { max-width: 620px; margin-inline: auto; }
.notfound__code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--burgundy);
  letter-spacing: -0.04em;
}
.notfound h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}
.notfound p { margin-top: 1rem; color: var(--muted); }
.notfound__actions {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

@media (max-width: 600px) {
  .legal__body dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .legal__body dt { margin-top: 0.8rem; }
  .notfound__actions { flex-direction: column; }
  .notfound__actions .btn { width: 100%; }
}

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