/* =========================================================
   СТРОЙ — design system
   Motion follows Emil Kowalski's principles:
   custom ease-out curves, transform/opacity only,
   sub-300ms UI, asymmetric enter/exit, reduced-motion aware.
   ========================================================= */

:root {
  /* colour */
  --bg:            #ffffff;
  --bg-soft:       #f6f5f2;
  --bg-mist:       #eeece7;
  --ink:           #1a1a1a;
  --ink-2:         #5f5f5c;
  --ink-3:         #8a8a86;
  --line:          #e5e2dc;
  --line-soft:     #edeae4;
  --dark:          #1e1e1c;
  --dark-2:        #191917;
  --dark-line:     rgba(255, 255, 255, .12);
  --gold:          #3a7d52;
  --gold-soft:     #56a06f;

  /* motion */
  --ease-out:      cubic-bezier(.23, 1, .32, 1);
  --ease-in-out:   cubic-bezier(.77, 0, .175, 1);
  --ease-drawer:   cubic-bezier(.32, .72, 0, 1);

  /* metrics */
  --container:     1240px;
  --gutter:        40px;
  --radius:        4px;
  --header-h:      82px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }
svg { flex: none; }

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

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

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--gold { color: var(--gold); }

.section-title {
  margin-top: 10px;
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section-title--light { color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

/* =========================================================
   BUTTONS & LINKS
   ========================================================= */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  /* only transform + opacity + colour — never `all` */
  transition:
    transform 160ms var(--ease-out),
    background-color 180ms ease,
    box-shadow 180ms ease;
}
.btn--dark { --btn-bg: var(--ink); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }

.btn__arrow {
  width: 18px; height: 18px;
  transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #000; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .55); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
/* press feedback — the smallest detail users feel the most */
.btn:active { transform: scale(.97); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 180ms ease, transform 160ms var(--ease-out);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 220ms var(--ease-out); }
.link-arrow--sm { font-size: 13px; color: var(--ink-2); }
.link-arrow--sm svg { width: 15px; height: 15px; }

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--gold); }
  .link-arrow:hover svg { transform: translateX(5px); }
}
.link-arrow:active { transform: scale(.98); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}
.header.is-stuck {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .07), 0 10px 30px -22px rgba(0, 0, 0, .45);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.logo__text { display: flex; flex-direction: column; }
.logo__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.1;
}
.logo__tag {
  font-size: 8.5px;
  letter-spacing: .055em;
  color: var(--ink-3);
  text-transform: lowercase;
}
.logo--light .logo__mark {
  padding: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
}
.logo--light .logo__name { color: #fff; }
.logo--light .logo__tag { color: rgba(255, 255, 255, .5); }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 180ms ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--ink); }
  .nav__link:hover::after { transform: scaleX(1); }
}

.header__aside { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; }
.header__phone-num {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color 180ms ease;
}
.header__phone-hours { font-size: 10.5px; white-space: nowrap; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .header__phone:hover .header__phone-num { color: var(--gold); }
}

.burger { display: none; width: 42px; height: 42px; margin-right: -8px; }
.burger span {
  display: block;
  width: 20px; height: 1.6px;
  margin: 4.4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 260ms var(--ease-out), opacity 160ms ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(74vh, 660px);
  padding-block: 90px;
  overflow: hidden;
  background: var(--bg-mist);
}

.hero__media { position: absolute; inset: 0; z-index: -1; }

/* blurred copy fills the frame so the misty left side never goes flat */
.hero__mist {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(26px) saturate(.75) brightness(1.18);
  opacity: .5;
}
.hero__photo {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: center;
  /* soften the photo's own edge so it dissolves into the mist
     instead of showing a hard vertical seam */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--bg-mist) 0%,
      rgba(238, 236, 231, .96) 20%,
      rgba(238, 236, 231, .55) 38%,
      rgba(238, 236, 231, 0) 56%),
    linear-gradient(180deg, rgba(238, 236, 231, .5) 0%, rgba(238, 236, 231, 0) 22%);
}

.hero__inner { position: relative; }
.hero__title {
  margin-top: 18px;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.028em;
  text-transform: uppercase;
}
.hero__lead {
  margin-top: 26px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.62;
  color: #40403d;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px;
  transition: transform 160ms var(--ease-out);
}
.video-link__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 2px 14px -6px rgba(0, 0, 0, .4);
  transition: transform 260ms var(--ease-out), background-color 200ms ease;
}
.video-link__play svg { width: 15px; height: 15px; color: var(--ink); margin-left: 2px; }
.video-link__play::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, .35);
  transform: scale(1);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out);
}
.video-link__label {
  font-size: 13px;
  line-height: 1.35;
  color: #3a3a37;
  text-align: left;
}
@media (hover: hover) and (pointer: fine) {
  .video-link:hover .video-link__play { background: #fff; transform: scale(1.06); }
  .video-link:hover .video-link__play::before { transform: scale(1.28); opacity: 1; }
}
.video-link:active { transform: scale(.97); }

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits { padding-block: 54px; background: var(--bg); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.benefit { padding: 4px 20px; }
.benefit + .benefit { border-left: 1px solid var(--line-soft); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; }

.benefit__icon { width: 27px; height: 27px; color: var(--gold); }
.benefit__title {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.benefit__text { margin-top: 8px; font-size: 12px; line-height: 1.58; color: var(--ink-2); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  padding-block: 56px 72px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

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

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 306 / 178;
  overflow: hidden;
  background: var(--bg-mist);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}
.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(20, 20, 20, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 0; }
.card__title { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.card__text { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

.specs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 18px;
  padding-top: 4px;
}
.specs li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.specs li + li { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.specs svg { width: 17px; height: 17px; color: var(--gold); }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.card__price { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .55);
  }
  .card:hover .card__media img { transform: scale(1.045); }
}

/* =========================================================
   PROCESS (dark)
   ========================================================= */
.process {
  position: relative;
  padding-block: 62px 56px;
  background: var(--dark);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 76% 6%, rgba(181, 140, 86, .16) 0%, transparent 58%),
    radial-gradient(80% 70% at 10% 100%, rgba(255, 255, 255, .05) 0%, transparent 60%);
  pointer-events: none;
}
.process > .container { position: relative; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step { position: relative; padding-right: 18px; }
/* dashed connector — pure CSS, no extra markup */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 46px;
  right: -4px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 4px,
    transparent 4px 10px
  );
  opacity: .45;
}
/* arrowhead closing each connector */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -10px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: .55;
}
.step__icon { width: 30px; height: 30px; color: var(--gold); }
.step__title {
  margin-top: 22px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}
.step__text { margin-top: 9px; font-size: 12.5px; line-height: 1.58; color: rgba(255, 255, 255, .6); }

/* ---------- CTA card ---------- */
.cta {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 52px;
  padding: 34px 34px 34px 38px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--ink);
}
.cta__title {
  flex: 1;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.28;
}
.cta__list { display: flex; gap: 34px; }
.cta__list li { display: flex; align-items: flex-start; gap: 11px; }
.cta__list svg { width: 21px; height: 21px; margin-top: 2px; color: var(--gold); }
.cta__list span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); }
.cta__list strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cta__btn { flex: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding-block: 46px 26px; background: var(--dark-2); color: rgba(255, 255, 255, .62); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1.15fr 1fr 1.35fr;
  gap: 34px;
}
.footer__about { margin-top: 22px; font-size: 12.5px; line-height: 1.62; color: rgba(255, 255, 255, .5); }

.footer__title {
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer__col a,
.footer__addr {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .58);
  transition: color 180ms ease, transform 180ms var(--ease-out);
}
.footer__col svg { width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: #fff; transform: translateX(2px); }
}

.socials { display: flex; gap: 10px; margin-top: 16px; }
.social {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  transition: transform 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.social svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .72); margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .social:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
  .social:hover svg { color: #fff; }
}
.social:active { transform: scale(.94); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[data-state="closed"] { pointer-events: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 17, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  /* exit is faster than enter */
  transition: opacity 160ms var(--ease-out);
}
.modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px 34px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  /* never scale from 0 — nothing in the real world appears from nothing */
  transform: scale(.96) translateY(8px);
  opacity: 0;
  transform-origin: center; /* modals stay centred, unlike popovers */
  transition:
    transform 180ms var(--ease-out),
    opacity 140ms var(--ease-out);
}
.modal[data-state="open"] .modal__overlay { opacity: 1; transition-duration: 220ms; }
.modal[data-state="open"] .modal__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-duration: 260ms, 200ms;
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.modal__close svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
  .modal__close:hover { background: var(--bg-soft); color: var(--ink); }
}
.modal__close:active { transform: scale(.92); }

.modal__title { margin-top: 10px; font-size: 25px; font-weight: 700; letter-spacing: -.022em; }
.modal__lead { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field__input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field__input::placeholder { color: #b6b3ad; }
.field__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 140, 86, .14);
}
.field__input[aria-invalid="true"] { border-color: #c0533f; box-shadow: 0 0 0 3px rgba(192, 83, 63, .12); }
.form__note { font-size: 11px; line-height: 1.5; color: var(--ink-3); text-align: center; }

/* nudge on invalid submit — motion as feedback, not decoration */
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.field--error .field__input { animation: nudge 180ms var(--ease-out); }

/* =========================================================
   TOAST
   ========================================================= */
.toaster {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
  /* transitions, not keyframes — a toast may be interrupted mid-flight */
  transform: translateY(120%) scale(.98);
  opacity: 0;
  transition:
    transform 320ms var(--ease-out),
    opacity 220ms var(--ease-out);
}
.toast.is-visible { transform: translateY(0) scale(1); opacity: 1; }
.toast__icon {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(181, 140, 86, .22);
  color: var(--gold-soft);
}
.toast__icon svg { width: 13px; height: 13px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms var(--ease-out) var(--d, 0ms),
    transform 520ms var(--ease-out) var(--d, 0ms);
  will-change: transform, opacity;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .nav { gap: 18px; }
  .nav__link { font-size: 13px; }
  .header__aside { gap: 14px; }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 28px 22px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .6);
    /* drawer curve: decisive out, soft landing */
    transform: translateY(-8px) scale(.99);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 260ms var(--ease-drawer),
      opacity 180ms var(--ease-out),
      visibility 0s linear 260ms;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition:
      transform 300ms var(--ease-drawer),
      opacity 200ms var(--ease-out),
      visibility 0s;
  }
  .nav__link { width: 100%; padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
  .nav__link::after { display: none; }
  .burger { display: block; }
  .header__phone { display: none; }
  /* nav leaves the flow when it becomes a drawer — keep the aside pinned right */
  .header__aside { margin-left: auto; }

  .benefits__grid { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .benefit { padding-inline: 24px; }
  .benefit:nth-child(3n+1) { padding-left: 0; border-left: 0; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .step:not(:last-child)::after { display: none; }

  .cta { flex-wrap: wrap; gap: 26px; }
  .cta__title { flex-basis: 100%; }

  .footer__inner { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 68px; }

  .header__cta { display: none; }
  /* photo drops to a band under the copy — text never fights the image */
  .hero { min-height: auto; padding-block: 42px 250px; }
  .hero__photo {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 235px;
    object-position: 62% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .hero__veil {
    background: linear-gradient(180deg,
      var(--bg-mist) 0%,
      rgba(238, 236, 231, .92) 46%,
      rgba(238, 236, 231, .3) 70%,
      rgba(238, 236, 231, 0) 86%);
  }
  .hero__lead br { display: none; }
  .hero__actions { flex-wrap: wrap; gap: 18px; }

  .benefits { padding-block: 38px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .benefit { padding-inline: 18px; border-left: 1px solid var(--line-soft); }
  .benefit:nth-child(3n+1) { padding-left: 18px; border-left: 1px solid var(--line-soft); }
  .benefit:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .benefit__text br { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 26px 22px; }
  .cta__list { flex-direction: column; gap: 16px; }
  .cta__btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .toaster { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* =========================================================
   REDUCED MOTION — fewer and gentler, never zero
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    transform: none;
    transition: opacity 240ms ease var(--d, 0ms);
  }
  .btn:active,
  .video-link:active,
  .link-arrow:active,
  .social:active,
  .modal__close:active { transform: none; }
  .btn:hover .btn__arrow,
  .link-arrow:hover svg,
  .card:hover,
  .card:hover .card__media img,
  .video-link:hover .video-link__play,
  .social:hover { transform: none; }
  .modal__panel { transform: none; transition: opacity 200ms ease; }
  .toast { transform: none; transition: opacity 200ms ease; }
  .field--error .field__input { animation: none; }
}
