:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6862;
  --line: #e4e0d8;
  --dark: #121212;
  --accent: #12a6e0;
  --accent-ink: #0b84b5;
  --pink: #ee4f7d;
  --violet: #7f3fb0;
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 76px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-logo: "Pacifico", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* ---------- missing-photo placeholder ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(18,166,224,.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(238,79,125,.3), transparent 45%),
    radial-gradient(circle at 45% 80%, rgba(127,63,176,.28), transparent 45%),
    #2a2a2a;
}
.ph img { opacity: 0; }
.ph::after {
  content: attr(data-file);
  position: absolute; inset: auto 0 12px 0;
  text-align: center;
  font: 600 12px/1 var(--f-body);
  color: rgba(255,255,255,.65);
}
.gallery__thumbs .ph::after { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(18,166,224,.7); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--wide { width: 100%; }
.btn--link { min-height: auto; padding: 0; font-size: 14px; color: var(--accent-ink); border-radius: 0; }
.btn--link:hover { text-decoration: underline; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: #7fd3f5; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled {
  background: rgba(18,18,18,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header__inner { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.nav { display: flex; gap: 30px; margin-left: clamp(24px, 4vw, 56px); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a { position: relative; opacity: .78; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: none; }
.logo { display: block; }
.logo img { height: 34px; width: auto; }
.logo--lg img { height: 56px; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }
/* фирменные значки мессенджеров: цветная иконка во весь размер кнопки */
.social--brand { background: none; border-radius: 0; }
.social--brand svg { width: 100%; height: 100%; }
.social--brand:hover { background: none; transform: translateY(-2px) scale(1.06); }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.cart-btn svg { width: 28px; height: 28px; }
.cart-btn__count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-btn__count.has-items { transform: scale(1); }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.2); } }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(55% 60% at 85% 35%, rgba(18,166,224,.12), transparent 70%),
    var(--dark);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.hero__content { position: relative; z-index: 1; }
.hero__media {
  position: relative; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--header-h) - 120px);
  justify-self: end; width: 100%;
  border-radius: 32px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__title {
  margin-top: 22px;
  font-size: clamp(30px, 2.9vw, 46px);
  font-weight: 700;
  line-height: 1.12;
}
.hero__line { display: block; }
@media (min-width: 901px) { .hero__line { white-space: nowrap; } } /* на компьютере — каждое предложение в одну строку */
.hero__accent {
  background: linear-gradient(90deg, #4cc9f5, #ee4f7d 60%, #a46ad6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; max-width: 520px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,.82); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero__facts li {
  padding: 16px 22px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; line-height: 1.25;
}
.hero__facts b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.hero__facts span { font-size: 13px; color: rgba(255,255,255,.65); }
@media (min-width: 901px) {
  .hero__facts { margin-top: 48px; gap: 0; }
  .hero__facts li { padding: 0 28px; border: 0; border-left: 1px solid rgba(255,255,255,.16); border-radius: 0; background: none; backdrop-filter: none; }
  .hero__facts li:first-child { padding-left: 0; border-left: 0; }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; animation: float 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 34px; height: 34px; }
@keyframes float { 50% { transform: translateY(8px); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section__head { margin-bottom: clamp(32px, 4.5vw, 56px); }
/* мочалки → мешки → шпагат идут на одном фоне: между ними отступ поменьше, чтобы не было «дыр» */
.catalog, .bags { padding-bottom: clamp(28px, 3.5vw, 48px); }
.bags, .twine { padding-top: clamp(28px, 3.5vw, 48px); }
.section__title { margin-top: 14px; font-size: clamp(34px, 5vw, 64px); }
.section__title--light { color: #fff; }

/* ---------- catalog ---------- */
.products { display: grid; gap: 28px; }
.product {
  /* высота фото подгоняется под экран, чтобы карточка влезала целиком */
  --gh: clamp(340px, calc(100svh - var(--header-h) - 200px), 580px);
  display: grid; grid-template-columns: calc(var(--gh) * .8) 1fr; gap: clamp(24px, 4vw, 56px);
  padding: 24px;
  background: var(--surface); border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(20,20,20,.25);
}
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery__main { position: relative; height: var(--gh); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .6s var(--ease); }
.gallery__main:hover img { transform: scale(1.03); }
.gallery__main img.is-fading { opacity: 0; }
.gallery__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.88); color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
  pointer-events: none;
}
.gallery__zoom svg { width: 20px; height: 20px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.gallery__thumbs button {
  flex: 0 0 64px; height: 64px; border-radius: 12px; overflow: hidden;
  outline: 2px solid transparent; outline-offset: 2px; opacity: .6;
  transition: opacity .2s, outline-color .2s;
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { opacity: 1; outline-color: var(--accent); }

.product__info { display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 0 0; }
.product__type { color: var(--muted); font-weight: 600; font-size: 14px; }
.product__name { margin-top: 4px; font-size: clamp(30px, 3vw, 40px); }
.product__price { margin-top: 12px; display: flex; align-items: baseline; gap: 12px; }
.product__price b { font-family: var(--f-display); font-size: 30px; font-weight: 600; }
.product__price s { color: #a9a49b; font-size: 18px; }
.price-request { font-size: 24px !important; color: var(--accent-ink); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #e9dfcc; color: #6d5626; font-size: 12px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.product__desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.product__care { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product__care b { color: var(--ink); }
.chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 14px; font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--muted); }

/* «гармошка» с характеристиками */
.more { margin-top: 16px; }
.more > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 500; transition: transform .3s var(--ease); }
.more[open] > summary::after { transform: rotate(45deg); }
.more[open] > summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.more .specs { margin-top: 10px; }
.specs div { background: var(--surface); padding: 9px 14px; }
.specs dt { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 1px 0 0; font-weight: 700; font-size: 14px; line-height: 1.4; }

.colors { margin-top: 16px; }
.colors__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.colors__label span { color: var(--ink); }
.colors__list { margin-top: 8px; display: flex; gap: 10px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px var(--surface), 0 0 0 4px transparent;
  transition: box-shadow .2s, transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }

.buy { margin: 16px 0 14px; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.qty__btn { width: 40px; height: 40px; border-radius: 50%; font-size: 20px; transition: background .2s; }
.qty__btn:hover { background: var(--bg); }
.qty__input {
  width: 64px; text-align: center; border: 0; background: none;
  font: 700 18px var(--f-body); color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.buy__total { margin-left: auto; text-align: right; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.3; }
.buy__total b { display: block; color: var(--ink); font-size: 22px; font-family: var(--f-display); font-weight: 600; }
.product__info .add-to-cart { margin-top: auto; }
.add-sum { display: none; }

/* на компьютере характеристики всегда видны — заголовок «гармошки» не нужен */
@media (min-width: 901px) {
  .more > summary { display: none; }
}

/* ---------- bags ---------- */
.section__lead { margin-top: 20px; max-width: 60ch; color: var(--muted); font-size: 18px; }
.bags__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.bags__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.bags__main { height: auto; aspect-ratio: 1 / 1; background: #fff; border-radius: calc(var(--radius) + 8px); }
.bags__main img { object-fit: contain; }
.bags__gallery .gallery__thumbs button { background: #fff; }
.bags__gallery .gallery__thumbs button img { object-fit: contain; }
.bags__info { display: flex; flex-direction: column; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 20px; background: var(--surface); border-radius: var(--radius-sm); }
.stat b { display: block; white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.specs--plain { margin: 0; }
.bag-calc { padding: clamp(18px, 2.4vw, 28px); background: var(--surface); border-radius: calc(var(--radius) + 4px); display: grid; gap: 18px; }
.bag-calc__title { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.bag-calc__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bag-calc .chips { margin-top: 8px; }
.bag-calc__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-field { display: grid; gap: 6px; }
.mini-field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.mini-field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg);
  font: 700 16px var(--f-body); color: var(--ink);
}
.mini-field input:focus { outline: none; border-color: var(--accent); }


.perks { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { padding: 26px; background: var(--surface); border-radius: var(--radius); }
.perk__num { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.perk h3 { margin-top: 12px; font-size: 20px; }
.perk p { margin-top: 8px; color: var(--muted); }
.tip { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(18,166,224,.07); border-radius: 0 12px 12px 0; color: var(--muted); }
.tip b { color: var(--ink); }

/* ---------- шпагат и канат: те же карточки, что у мочалок ---------- */
.product--rope { grid-template-columns: var(--gh) 1fr; }          /* фото квадратное — инфографика целиком */
.product--rope .gallery__main { height: var(--gh); }
.rope__order { margin: 16px 0 14px; display: grid; grid-template-columns: 1fr 120px; gap: 12px; max-width: 420px; }
.rope__order--3 { grid-template-columns: 1fr 1fr 110px; max-width: 480px; }
.mini-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg);
  font: 700 16px var(--f-body); color: var(--ink);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.mini-field select:focus { outline: none; border-color: var(--accent); }

/* ---------- benefits ---------- */
.benefits { background: var(--surface); }
.benefit {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  gap: clamp(28px, 6vw, 96px);
}
.benefit + .benefit { margin-top: clamp(56px, 8vw, 110px); }
.benefit--reverse .benefit__text { order: 2; }
.benefit__num {
  font-family: var(--f-display); font-size: 15px; font-weight: 600;
  color: var(--accent-ink);
}
.benefit h3 { margin-top: 14px; font-size: clamp(26px, 3vw, 40px); }
.benefit p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.benefit__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.benefit__img img { width: 100%; height: 100%; object-fit: cover; }
.benefit__img--light { background: #f1f1f0; }
.benefit__img--square { aspect-ratio: 1 / 1; max-width: 560px; justify-self: start; width: 100%; } /* картинка с надписью — показываем целиком */
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--radius); }
.collage > div { border-radius: 16px; overflow: hidden; min-height: 0; }
.collage img { transition: transform .6s var(--ease); }
.collage > div:hover img { transform: scale(1.05); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative;
  padding: 30px 26px 34px;
  background: var(--surface); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(20,20,20,.35); }
/* монохром: крупные цифры 01–04 и короткая черта-акцент */
.step__num {
  display: block;
  font: 600 44px/1 var(--f-display); letter-spacing: -.03em;
  color: var(--ink);
}
.step__num::after {
  content: ""; display: block;
  width: 32px; height: 3px; margin-top: 18px;
  background: var(--accent); border-radius: 2px;
  transition: width .3s var(--ease);
}
.step:hover .step__num::after { width: 56px; }
.step h3 { margin-top: 20px; font-size: 21px; }
.step p { margin-top: 10px; color: var(--muted); }
.step a { color: var(--accent-ink); font-weight: 700; }

/* ---------- order ---------- */
.order { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.order__glow {
  /* подсветка, которая плавно идёт за мышкой (позицию задаёт script.js) */
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,166,224,.34), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  will-change: transform;
}
.order::after {
  content: ""; position: absolute; z-index: 0; width: 520px; height: 520px; left: -200px; bottom: -260px;
  background: radial-gradient(circle, rgba(238,79,125,.28), transparent 65%);
  filter: blur(20px);
}
.order__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.order__text p { margin-top: 20px; color: rgba(255,255,255,.7); font-size: 18px; max-width: 42ch; }
.order__phone { display: inline-block; margin-top: 30px; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.order__phone:hover { color: #7fd3f5; }

.form {
  display: grid; gap: 14px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(24,24,26,.92); border: 1px solid rgba(255,255,255,.1);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.field { display: grid; gap: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* ловушка для спам-ботов */
.field span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.field input, .field textarea {
  width: 100%; padding: 15px 18px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff;
  font: 500 16px var(--f-body); resize: vertical;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); }
.field.is-invalid input { border-color: var(--pink); }
.form__cart {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(18,166,224,.12); border: 1px solid rgba(18,166,224,.35);
  font-size: 14px; line-height: 1.5;
}
.form__cart b { display: block; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255,255,255,.6); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check a { text-decoration: underline; }
.form__status { min-height: 1em; font-size: 14px; font-weight: 600; }
.form__status.ok { color: #7fe3a8; }
.form__status.err { color: #ff8fae; }

/* ---------- footer ---------- */
.footer { background: #0a0a0a; color: #fff; padding: clamp(64px, 8vw, 100px) 0 36px; }
.footer__top { display: grid; justify-items: center; text-align: center; gap: 44px; }
.footer__contacts { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(24px, 6vw, 80px); }
.footer__contacts span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.footer__contacts a, .footer__contacts p { font-size: 18px; font-weight: 600; }
.footer__contacts a:hover { color: #7fd3f5; }
.socials--footer .social { width: 44px; height: 44px; }
.footer__bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  font-size: 14px; color: rgba(255,255,255,.6);
}
.footer__legal { line-height: 1.55; }
.footer__legal p:first-child { color: #fff; font-weight: 700; }
.footer__legal a { display: inline-block; margin-top: 6px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__nav { display: flex; gap: 28px; font-weight: 600; color: #fff; }
.footer__nav a:hover, .footer__doc:hover { color: #7fd3f5; }
.footer__doc { justify-self: end; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10,10,10,.5); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 22px; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; font-size: 28px; line-height: 1; background: var(--bg); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 800; }
.cart-item__meta { font-size: 14px; color: var(--muted); }
.cart-item__sum { font-weight: 800; text-align: right; }
.cart-item__remove { display: block; margin-left: auto; margin-top: 4px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; font-weight: 600; }
.drawer__total b { font-family: var(--f-display); font-size: 22px; }
.drawer__note { font-size: 13px; color: var(--muted); margin-top: -6px; }

/* ---------- checkout popup ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal__panel {
  position: relative; width: min(480px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(80% 60% at 100% 0%, rgba(18,166,224,.25), transparent 70%), var(--dark);
  color: #fff;
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .3s, transform .4s var(--ease);
}
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 28px; line-height: 1; background: rgba(255,255,255,.1); color: #fff; }
.modal__title { margin-top: 10px; font-size: clamp(24px, 4vw, 30px); }
.modal__lead { margin-top: 8px; color: rgba(255,255,255,.65); }
.form--modal { margin-top: 20px; padding: 0; background: none; border: 0; backdrop-filter: none; }

/* ---------- photo viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 130;
  display: grid; place-items: center;
  background: rgba(8,8,8,.96);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 100vw; max-height: 100svh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; font-size: 30px; line-height: 1; }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) {
  .lightbox__nav { top: auto; bottom: 10px; translate: none; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__count { bottom: 22px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
  transition: opacity .3s, translate .3s var(--ease);
}
.toast.is-shown { opacity: 1; translate: -50% 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.section__head.reveal { filter: blur(8px); transform: translateY(24px); }
.section__head.reveal.is-visible { filter: none; transform: none; }
.section__head.reveal .eyebrow::before { width: 0; transition: width .8s var(--ease) .35s; }
.section__head.reveal.is-visible .eyebrow::before { width: 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .nav { gap: 20px; margin-left: 28px; font-size: 14px; } /* шесть пунктов меню влезают на ноутбуках */
}

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header .socials { display: none; }
  .burger { display: block; }
  /* меню уходит в выпадающую панель — в шапке остаются только лого и кнопки */
  .header__inner { grid-template-columns: auto 1fr; }
  .header__actions { gap: 4px; }
  .burger { margin-right: -10px; } /* полоски ровно по краю, как лого слева */
  .nav {
    margin-left: 0;
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    padding: 8px 20px 24px; background: rgba(18,18,18,.96); backdrop-filter: blur(14px);
    font-family: var(--f-display); font-size: 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); opacity: 1; }
  .nav a::after { display: none; }
  .bags__grid { grid-template-columns: 1fr; }
  .bags__gallery { position: static; }
  .perks { grid-template-columns: 1fr; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .header.menu-open { background: rgba(18,18,18,.96); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo img { height: 28px; }

  .hero__grid { position: static; grid-template-columns: 1fr; padding: calc(var(--header-h) + 56px) 0 96px; }
  .hero__media { position: absolute; inset: 0; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.72) 50%, rgba(10,10,10,.94) 100%);
  }
  /* на фоне фото градиентный «оптом» делаем светлее и с тенью, чтобы читался */
  .hero__accent {
    background-image: linear-gradient(90deg, #7fdcff, #ff7fab 55%, #d3a6ff);
    filter: drop-shadow(0 2px 14px rgba(0,0,0,.65));
  }

  .product, .benefit, .order__inner, .product--rope { grid-template-columns: 1fr; }
  .product--rope .gallery__main { height: auto; aspect-ratio: 4 / 3; }
  .product--rope .gallery__main img { object-position: center top; }   /* видна шапка инфографики */
  .rope__order, .rope__order--3 { max-width: none; margin: 12px 0; }
  .rope__sizes .chip { flex: 1 1 auto; padding: 8px 4px; text-align: center; }
  .benefit--reverse .benefit__text { order: 0; }
  .product { gap: 16px; padding: 14px; }
  .product__info { padding: 2px; }
  .gallery__main { height: auto; aspect-ratio: 4 / 3; }
  .gallery__thumbs button { flex-basis: 54px; height: 54px; }
  /* на телефоне сумма — прямо в кнопке, чтобы карточка влезала в экран */
  .product .buy__total { display: none; }
  .product .chips { flex-wrap: nowrap; gap: 6px; }
  .product .chip { flex: 1 1 auto; padding: 8px 6px; font-size: 13px; text-align: center; white-space: nowrap; }
  .add-sum { display: inline; white-space: nowrap; }
  .buy { margin: 14px 0 12px; }
  .product__price { margin-top: 8px; }
  .more, .colors { margin-top: 12px; }

  .footer__contacts { grid-template-columns: 1fr; gap: 22px; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__doc { justify-self: center; }
}

@media (max-width: 560px) {
  .hero__title { font-size: min(7.4vw, 30px); } /* «От производителя.» целиком в строку даже на узких телефонах */
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stat span { margin-top: 0; text-align: right; }
  .bag-calc__fields { grid-template-columns: 1fr 1fr; }
  .bag-calc__fields .mini-field:last-child { grid-column: 1 / -1; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { gap: 10px; }
  .hero__facts li { flex: 1 1 calc(50% - 10px); padding: 14px 16px; }
  .hero__facts b { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .product { padding: 12px; }
  .product__name { font-size: 28px; }
  .product__price b { font-size: 26px; }
  .footer__nav { gap: 20px; }
}
