/* ============================================================
   Завод Красоты — zavodbeauty.com
   Контрактное производство натуральной косметики под ключ
   ============================================================ */

:root {
  --green-950: #0c241b;
  --green-900: #123326;
  --green-800: #17452f;
  --green-700: #1e5c43;
  --green-600: #26744f;
  --green-500: #2b8a6c;
  --mint-200: #bfe8d6;
  --mint-100: #e3f3ea;
  --mint-50: #f0f8f3;
  --cream: #f7f5f0;
  --sand: #efece4;
  --ink: #1a2420;
  --muted: #5f6f67;
  --line: #e3e0d7;
  --white: #ffffff;
  --accent: #d6ffef;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 51, 38, .06), 0 4px 12px rgba(18, 51, 38, .05);
  --shadow-md: 0 2px 6px rgba(18, 51, 38, .07), 0 14px 34px rgba(18, 51, 38, .10);
  --shadow-lg: 0 6px 16px rgba(18, 51, 38, .10), 0 28px 64px rgba(18, 51, 38, .14);
  --container: 1180px;
  --font: "Manrope", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: 20px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.icon { flex: none; vertical-align: -3px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--green-500); border-radius: 2px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--cream); }
.section__lead { max-width: 720px; margin: 0 0 44px; font-size: 18px; color: var(--muted); }
.section__note {
  margin-top: 40px; padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--mint-50); border: 1px solid var(--mint-200); border-radius: var(--radius-md);
}
.section__note p { margin: 0; font-weight: 600; }
.accent {
  background: linear-gradient(92deg, var(--green-600), var(--green-500) 55%, #4fb08c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(38, 116, 79, .35);
}
.btn--primary:hover { color: var(--white); box-shadow: 0 10px 28px rgba(38, 116, 79, .48); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--green-700);
  box-shadow: inset 0 0 0 1.5px var(--mint-200);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); background: var(--mint-50); color: var(--green-700); }
.btn--light { background: var(--white); color: var(--green-800); box-shadow: var(--shadow-md); }
.btn--light:hover { color: var(--green-700); transform: translateY(-1px); }
.btn--lg { padding: 17px 34px; font-size: 17px; }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ header */

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.header__logo { flex: none; display: flex; }
.header__logo img { width: 205px; height: auto; }
.header__nav { margin-left: auto; }
.header__nav ul {
  display: flex; gap: 26px; margin: 0; padding: 0; list-style: none;
}
.header__nav ul a {
  font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.header__nav ul a:hover { color: var(--green-600); border-color: var(--green-500); }
.header__nav-cta { display: none; margin-top: 18px; gap: 12px; }
.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__nav + .header__actions { margin-left: 0; }
.header__phone { font-weight: 800; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--green-600); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: var(--mint-50); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--green-900); transition: transform .25s, opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ hero */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__lead { margin: 0 0 34px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__points { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 42px; flex-wrap: wrap; }
.hero__point { display: grid; gap: 2px; }
.hero__point b { font-size: 22px; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.hero__point span { font-size: 14px; color: var(--muted); }

.hero__media { position: relative; }
.hero__media > img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 1000 / 700; object-fit: cover; object-position: center 68%;
}
.hero__float {
  position: absolute; left: -18px; bottom: 26px;
  display: grid; gap: 2px; padding: 16px 22px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  border: 1px solid var(--mint-100);
  animation: float-in .7s ease both;
}
.hero__float b { font-size: 20px; color: var(--green-700); }
.hero__float span { font-size: 13.5px; color: var(--muted); }
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ stats */

.stats { padding-bottom: clamp(40px, 6vw, 72px); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--green-900); color: var(--white);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3vw, 48px);
  gap: 24px;
}
.stat { display: grid; gap: 4px; text-align: center; padding: 6px; }
.stat b { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat span { font-size: 14.5px; color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------ cards */

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__emoji {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 26px; background: var(--mint-50); border-radius: 14px; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* product cards */
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pcard__img { aspect-ratio: 580 / 300; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__img img { transform: scale(1.045); }
.pcard h3, .pcard p { padding: 0 22px; }
.pcard h3 { margin: 18px 0 6px; }
.pcard p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

/* tariffs */
.cards--tariff { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.tariff {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tariff--featured {
  background: linear-gradient(180deg, var(--mint-50), var(--white));
  border: 2px solid var(--green-500); box-shadow: var(--shadow-md);
}
.tariff__img { border-radius: var(--radius-sm); margin-bottom: 18px; aspect-ratio: 2 / 1; object-fit: cover; }
.tariff h3 { margin-bottom: 6px; }
.tariff__desc { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.tariff__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; flex: 1; align-content: start; }
.tariff__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.tariff__list li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--green-600); }
.tariff__list li.no { color: var(--muted); opacity: .72; }
.tariff__list li.no span { flex: none; }
.pcard__badge {
  position: absolute; top: -14px; right: 20px;
  background: var(--green-700); color: var(--white);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
}
.step__num {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 19px; font-weight: 800; color: var(--green-700);
  background: var(--mint-50); border: 1px solid var(--mint-200); border-radius: 16px;
}
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* manufacturing */
.mfg__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.mfg__bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mfg__bullets li {
  display: grid; gap: 3px; padding: 16px 20px;
  background: var(--mint-50); border-left: 3px solid var(--green-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.mfg__bullets b { font-size: 16px; }
.mfg__bullets span { color: var(--muted); font-size: 14.5px; }
.mfg__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* cases */
.case {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case__photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 3px solid var(--mint-100); margin-bottom: 16px;
}
.case h3 { margin: 0 0 2px; font-size: 17.5px; }
.case__role { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: .06em; }
.case__text { margin: 0; color: var(--muted); font-size: 14.8px; }

/* partners */
.section--partners { padding: clamp(48px, 6vw, 72px) 0; }
.partners__title { text-align: center; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 52px; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track img {
  height: 58px; width: auto; opacity: .78;
  transition: opacity .2s;
}
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 0; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 24px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 16.5px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { color: var(--green-700); }
.faq__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-50); color: var(--green-700); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding: 0 24px 20px; }
.faq__body p { margin: 0; color: var(--muted); }

/* cta band */
.ctaband {
  background-size: cover; background-position: center;
  color: var(--white); padding: clamp(56px, 8vw, 96px) 0;
}
.ctaband__in { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.ctaband h2 { color: var(--white); margin-bottom: 10px; }
.ctaband p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .85); font-size: 17.5px; }

/* contacts */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contacts__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; }
.contacts__list li { display: flex; gap: 16px; align-items: flex-start; }
.contacts__icn {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--mint-50); color: var(--green-700); border-radius: 14px;
}
.contacts__list b { display: block; font-size: 14px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contacts__list a { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.contacts__list a:hover { color: var(--green-600); }
.contacts__msgrs { display: flex; gap: 16px; }
.contacts__msgrs a { font-size: 16px; color: var(--green-700); }

.contacts__form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-md);
}
.contacts__form h3 { margin-bottom: 18px; font-size: 22px; }
.form__note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* forms */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field--full { grid-column: 1 / -1; }
.field span { font-weight: 700; color: var(--green-950); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  font-family: var(--font); font-size: 15.5px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(43, 138, 108, .12);
}
.field input.is-error, .field select.is-error { border-color: #d5455b; box-shadow: 0 0 0 4px rgba(213, 69, 91, .10); }
.field input[name="phone"] { letter-spacing: .02em; }

.consent {
  grid-column: 1 / -1;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--muted); line-height: 1.45;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-600); flex: none; }
.consent a { text-decoration: underline; }
.form__hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.form__hint, form .btn--block { grid-column: 1 / -1; }

.form__success { text-align: center; padding: 26px 10px 10px; display: grid; gap: 10px; justify-items: center; }
.form__success[hidden] { display: none; }
.form__success-icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--green-600); border-radius: 50%;
}
.form__success-icon .icon { width: 30px; height: 30px; }
.form__success h4 { margin: 6px 0 0; font-size: 21px; }
.form__success p { margin: 0 0 8px; color: var(--muted); }

/* ------------------------------------------------------------ modal */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(12, 36, 27, .58); backdrop-filter: blur(4px); animation: fade-in .2s ease; }
.modal__box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-lg); animation: pop-in .25s ease;
}
.modal__box h3 { font-size: 24px; margin-bottom: 6px; }
.modal__lead { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--cream); border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--mint-100); color: var(--green-800); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------ footer */

.footer { background: var(--green-950); color: rgba(255, 255, 255, .82); padding: clamp(48px, 6vw, 72px) 0 0; }
.footer a { color: rgba(255, 255, 255, .82); }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__brand img { background: #fff; border-radius: 10px; padding: 8px 14px; width: 205px; height: auto; margin-bottom: 16px; }
.footer__brand p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .62); max-width: 320px; }
.footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__contacts .footer__contact { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.footer__contacts .icon { color: var(--accent); opacity: .9; }
.footer__messengers { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.messenger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .15s, border-color .15s;
}
.messenger:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: var(--white); }
.messenger .icon { width: 17px; height: 17px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; padding-bottom: 26px;
  font-size: 13.5px; color: rgba(255, 255, 255, .55);
}
.footer__bottom p { margin: 0; }

/* ------------------------------------------------------------ misc */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: #25d366; color: #fff; border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

.breadcrumbs { padding-top: 22px; font-size: 14px; color: var(--muted); }
.breadcrumbs__sep { margin: 0 8px; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.legal h1 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 4px; }
.legal h2 { margin-top: 1.6em; font-size: 21px; }
.legal p { margin: 0 0 12px; color: #3d4a44; font-size: 15.5px; }
.legal__note {
  background: var(--cream); border-left: 3px solid var(--green-500);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================ responsive */

@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .header__nav ul { gap: 18px; }
}

@media (max-width: 960px) {
  .header__in { gap: 16px; }
  .header__nav {
    position: fixed; inset: 0; top: 76px; z-index: 55;
    background: var(--white);
    padding: 28px 24px 40px;
    transform: translateX(100%); transition: transform .28s ease;
    overflow: auto;
  }
  .header__nav.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .header__nav ul { flex-direction: column; gap: 4px; }
  .header__nav ul a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .header__nav-cta { display: flex; flex-wrap: wrap; }
  .header__phone { display: none; }
  .header__actions .btn--sm { display: none; }
  .header__nav + .header__actions { margin-left: auto; }
  .burger { display: flex; margin-left: auto; }
  .header__actions { margin-left: auto; }
  /* backdrop-filter делает .header содержащим блоком для position:fixed —
     на время открытого меню отключаем его, иначе панель схлопывается */
  .header.nav-open {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--white);
  }
  .header__logo { margin-right: 0; }
  .header__logo img { width: 170px; }

  .hero__grid, .mfg__grid, .contacts__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__float { left: 12px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards--3, .cards--tariff { grid-template-columns: 1fr; }
  .ctaband__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .cards--4 { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .hero__points { gap: 18px 26px; }
  .section__note { padding: 20px; }
  .stat b { font-size: 26px; }
  .marquee__track { gap: 34px; }
  .marquee__track img { height: 44px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
