:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --text: #1d1d1b;
  --muted: #8a8782;
  --line: #ebe8e4;
  --accent: #b0785a;
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.15; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: .02em; }
.logo span { color: var(--accent); font-style: italic; }
.nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav { align-items: center; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 14px; font-weight: 500; color: #4a4744;
  transition: color .2s; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--text); }
.nav__sep { width: 1px; height: 18px; background: var(--line); flex: none; }
.cart-btn { position: relative; background: none; border: 0; padding: 8px; margin-left: auto; }

/* Меню-«гамбургер» для телефона */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 9px; margin-right: -9px; background: none; border: 0; }
.burger span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mnav { display: grid; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 60px); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav a { padding: 14px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav a.active { color: var(--accent); }
.mnav .nav__sep { width: auto; height: 12px; background: none; }
@media (min-width: 1001px) { .mnav { display: none !important; } }
.cart-btn__count {
  position: absolute; top: 0; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--text); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
}

/* ---------- Banner ---------- */
.hero { background: var(--bg-soft); }
.hero__row { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; min-height: 520px; }
.hero__text h1 { font-size: clamp(40px, 5vw, 64px); }
.hero__text p { color: var(--muted); max-width: 420px; margin: 20px 0 32px; font-size: 16px; }
.hero__slides { position: relative; aspect-ratio: 4 / 3; }
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0; transition: opacity 1s ease;
}
.hero__slide.active { opacity: 1; }
.hero__dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hero__dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: #d6d2cc; }
.hero__dots button.active { background: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px;
  border: 1px solid var(--text); border-radius: var(--radius);
  background: var(--text); color: #fff;
  font-size: 14px; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding-top: 72px; }
.section:last-of-type { padding-bottom: 96px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { font-size: 38px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; transition: transform .3s; }
.cat:hover { transform: translateY(-4px); }
.cat img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; width: 100%; }
.cat h3 { font-size: 22px; margin-top: 12px; }
.cat span { font-size: 13px; color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 13px; transition: all .2s;
}
.chip:hover { border-color: var(--text); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.card { display: block; }
.card__img { background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__name { font-family: var(--serif); font-size: 20px; margin-top: 14px; line-height: 1.2; }
.card__price { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Product page ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 28px 0 0; }
.crumbs a:hover { color: var(--text); }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding: 24px 0 96px; align-items: start; }
.gallery__main { position: relative; background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; touch-action: pan-y; }
.gallery__track { display: flex; height: 100%; transition: transform .4s ease; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; user-select: none; -webkit-user-drag: none; }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); font-size: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 80px; height: 80px; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: var(--bg-soft); }
.gallery__thumbs button.active { border-color: var(--text); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
.gallery__track video { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery__thumbs button { position: relative; overflow: hidden; }
.gallery__thumbs button.is-video img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.gallery__thumbs button.is-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent rgba(255,255,255,.95);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}

.info h1 { font-size: 40px; }
.info__cat { color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.info__price { font-size: 26px; margin: 20px 0 28px; }
.info__desc { margin: -12px 0 28px; font-size: 15px; color: #4a4744; white-space: pre-line; }
.info__label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.size {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 10px 16px; font-size: 14px; transition: border-color .2s;
}
.size:hover { border-color: var(--muted); }
.size.active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.buy { display: flex; gap: 12px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); height: 48px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; }
.info__note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Drawer (cart) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(440px, 100%); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 28px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.icon-btn { background: none; border: 0; font-size: 18px; padding: 6px; }

.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 72px; height: 72px; object-fit: contain; background: var(--bg-soft); mix-blend-mode: multiply; padding: 4px; border-radius: var(--radius); }
.line__name { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.line__meta { font-size: 13px; color: var(--muted); }
.line .qty { height: 32px; margin-top: 6px; }
.line .qty button { width: 30px; font-size: 15px; }
.line__right { text-align: right; }
.line__remove { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 4px 0; text-decoration: underline; }
.total { display: flex; justify-content: space-between; font-size: 18px; margin: 20px 0; }

.form { display: grid; gap: 14px; margin-top: 8px; }
.form label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.form input, .form textarea {
  font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; outline: none; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--text); }
.form textarea { resize: vertical; min-height: 70px; }
.form input:disabled { background: var(--bg-soft); cursor: not-allowed; }
.form__group { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.form__group-title { font-size: 14px; font-weight: 600; }
.ac { position: relative; display: grid; }
.ac__list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5;
  margin: 0; padding: 4px 0; list-style: none;
  max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.ac__list li { padding: 9px 14px; font-size: 14px; color: var(--text); cursor: pointer; line-height: 1.35; }
.ac__list li:hover, .ac__list li.active { background: var(--bg-soft); }
.ac__list li.ac__msg { color: var(--muted); cursor: default; background: none; }
.form__error { color: #b3261e; font-size: 13px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.success { text-align: center; padding: 48px 0; }
.success h3 { font-size: 30px; margin-bottom: 10px; }

/* ---------- Доставка (у стилі Нової Пошти) ---------- */
.np { --np-red: #da291c; --np-red-dark: #b8200f; font-family: "Inter", var(--sans); margin-bottom: 96px; }
.np h1, .np h2, .np h3 { font-family: "Unbounded", "Inter", sans-serif; font-weight: 600; letter-spacing: -.01em; }
.np-hero {
  margin-top: 20px; padding: 56px; border-radius: 28px;
  background: linear-gradient(120deg, #f6e3e1 0%, #e9c3c0 55%, #d99c97 100%);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
}
.np-hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; color: #fff; text-shadow: 0 2px 18px rgba(120,30,20,.18); }
.np-hero p { font-size: 17px; color: #4a2b28; max-width: 480px; margin: 18px 0 30px; }
.np-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.np-hero__badge {
  width: 210px; aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--np-red);
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 20px 50px rgba(160,40,30,.18);
}
.np-hero__badge span { font-family: "Unbounded", sans-serif; font-size: 56px; font-weight: 700; line-height: 1; }
.np-hero__badge small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; color: #1d1d1b; }

.np-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 12px;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  transition: background .2s, transform .2s;
}
.np-btn:hover { transform: translateY(-1px); }
.np-btn--red { background: var(--np-red); color: #fff; }
.np-btn--red:hover { background: var(--np-red-dark); }
.np-btn--white { background: #fff; color: var(--np-red); }

.np-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.np-card { border-radius: 24px; padding: 32px; }
.np-card--mint { background: #d4ebe2; }
.np-card--lilac { background: #e3e1f4; }
.np-card--peach { background: #f8e4d4; }
.np-card__icon {
  width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--np-red);
  display: grid; place-items: center; margin-bottom: 22px;
}
.np-card__icon svg { width: 28px; height: 28px; }
.np-card h3 { font-size: 20px; line-height: 1.25; }
.np-card p { margin: 12px 0 0; font-size: 15px; color: #475569; }

.np-steps { margin-top: 20px; background: #f6f6f9; border-radius: 24px; padding: 40px; }
.np-steps h2 { font-size: 28px; margin-bottom: 28px; }
.np-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.np-steps li { counter-increment: step; display: grid; gap: 6px; }
.np-steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  background: var(--np-red); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: 8px;
}
.np-steps b { font-size: 16px; }
.np-steps span { font-size: 14px; color: #475569; }

/* ---------- Контакти ---------- */
.contacts { padding: 24px 0 96px; }
.contacts h1 { font-size: 48px; }
.contacts__lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 12px 0 36px; }
.contacts__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.contact-card__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.contact-card__phone { display: block; font-family: var(--sans); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.contact-card__phone:hover { color: var(--accent); }
.contact-card__name { font-size: 16px; margin-top: 8px; }
.contact-card__value { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.contact-card p { margin: 12px 0 0; font-size: 14px; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-card__actions .btn { padding: 0 22px; }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Соцмережі ---------- */
.socials { display: flex; gap: 6px; align-items: center; }
.socials:empty { display: none; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text); transition: background .2s, color .2s; }
.socials a:hover { background: var(--bg-soft); color: var(--accent); }
.socials svg { width: 19px; height: 19px; }
.socials--header { margin-left: auto; }
.socials--header + .cart-btn { margin-left: 0; }
.mnav__socials { padding-top: 16px; gap: 10px; }
.mnav__socials a { border: 1px solid var(--line); width: 42px; height: 42px; }

/* ---------- Відгуки ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.review-card { background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.review-card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.review-card__body { padding: 22px; display: grid; gap: 12px; }
.review-card__text { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.35; white-space: pre-line; }
.review-card__meta { font-size: 13px; color: var(--muted); }
.review-card__meta b { color: var(--text); font-weight: 600; }
.review-card__product { font-size: 13px; color: var(--accent); }
.review-card__product:hover { text-decoration: underline; }
.product-reviews { border-top: 1px solid var(--line); padding: 48px 0 96px; }
.product-reviews h2, .section__title { font-size: 38px; }
.product .info + * { min-width: 0; }
.reviews-page { padding: 24px 0 96px; }
.review-form { max-width: 560px; margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.review-form h2 { font-size: 30px; }
.review-form select { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.file-field input { padding: 10px 0 0; border: 0 !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 404 та сторінка до завантаження скриптів ---------- */
.notfound { padding: 96px 0; }
.notfound__code { font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--accent); }
.notfound h1 { font-size: 36px; margin: 12px 0; color: var(--text); }
.notfound .btn { margin: 4px; }
.seo-h1 { font-size: 30px; margin-bottom: 24px; }
.product-seo { padding: 32px 0 64px; }
.product-seo img { max-width: 480px; width: 100%; background: var(--bg-soft); mix-blend-mode: multiply; margin: 16px 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 4px 0 0; font-size: 14px; }
.footer__links { display: grid; gap: 6px; justify-items: end; font-size: 14px; }
.footer__links a:hover { color: var(--accent); }

/* ---------- Заставка ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at center, #fff 0%, #fbf8f5 60%, #f6efe9 100%);
  cursor: pointer;
  transition: opacity .7s ease, visibility .7s;
}
.intro--out { opacity: 0; visibility: hidden; }
.no-intro .intro { display: none; }
.intro__center { display: grid; justify-items: center; text-align: center; }
.intro__rings { width: min(220px, 52vw); overflow: visible; }

.ring { stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 1.1s cubic-bezier(.6,0,.3,1) forwards; }
.ring--copper { stroke: var(--accent); animation-delay: .15s; }
.ring--gold { stroke: #c9a24c; animation-delay: .45s; }
.weave { opacity: 0; animation: intro-fade .3s ease 1.45s forwards; }
.weave--gap { stroke: #fcfaf7; stroke-width: 7; }
.weave--line { stroke: var(--accent); stroke-width: 2.2; }
.gem path { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .6s ease 1.35s forwards; }
.gem path + path { stroke-width: 1; animation-delay: 1.6s; }
.spark path { stroke: #c9a24c; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: intro-spark .9s ease 1.9s both; }
.spark path + path { animation-delay: 2.05s; }

.intro__logo {
  font-family: var(--serif); font-size: clamp(38px, 6vw, 56px); letter-spacing: .02em; margin-top: 18px;
  opacity: 0; transform: translateY(10px); animation: intro-rise .8s ease 1.7s forwards;
}
.intro__logo span { color: var(--accent); font-style: italic; }
.intro__tagline {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 8px;
  opacity: 0; animation: intro-fade .8s ease 2s forwards;
}

.intro__petals i {
  position: absolute; top: -40px; left: var(--x);
  width: 14px; height: 18px; border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #f3d6d0, #e7b7ae);
  opacity: 0; animation: intro-petal var(--t) linear var(--d) forwards;
}
.intro__petals i:nth-child(3n) { width: 10px; height: 13px; background: linear-gradient(135deg, #fbe9e4, #eccac2); }
.intro__petals i:nth-child(4n) { background: linear-gradient(135deg, #f6e7c8, #e4c890); }

@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-spark {
  0% { opacity: 0; transform: scale(.3) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  100% { opacity: 0; transform: scale(.6) rotate(90deg); }
}
@keyframes intro-petal {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--r)); }
  10% { opacity: .9; }
  50% { transform: translate(30px, 50vh) rotate(calc(var(--r) + 180deg)); }
  90% { opacity: .8; }
  100% { opacity: 0; transform: translate(-20px, 105vh) rotate(calc(var(--r) + 360deg)); }
}
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--text); color: #fff; padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; opacity: 0; transition: all .3s; z-index: 60; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
}
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .burger { display: flex; }
  .header__row { gap: 8px; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .np-cards { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .socials--header { display: none; }
  .socials--header + .cart-btn { margin-left: auto; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .contact-card--main { grid-column: 1 / -1; }
  .np-steps ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .mnav { padding: 4px 16px 16px; }
  .header__row { height: 60px; }
  .logo { font-size: 24px; }
  .hero__row { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-top: 28px; padding-bottom: 32px; }
  .hero__media { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .cats { gap: 12px; }
  .cat { padding: 12px; }
  .cat h3 { font-size: 18px; }
  .section { padding-top: 48px; }
  .section__head h2 { font-size: 30px; }
  .card__name { font-size: 17px; }
  .info h1 { font-size: 32px; }
  .np-hero { padding: 32px 24px; grid-template-columns: 1fr; border-radius: 22px; }
  .np-hero__badge { width: 150px; justify-self: start; order: -1; }
  .np-hero__badge span { font-size: 40px; }
  .np-hero__badge small { font-size: 11px; }
  .np-btn { width: 100%; justify-content: center; }
  .np-steps { padding: 28px 22px; }
  .np-steps h2 { font-size: 22px; }
  .np-steps ol { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .product-reviews h2, .section__title { font-size: 30px; }
  .review-form { padding: 20px; }
  .contacts h1 { font-size: 38px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .contact-card__actions .btn { flex: 1; }
  .footer__links { justify-items: start; }
  .buy { flex-direction: column; }
  .buy .btn { flex: none; }
  .gallery__thumbs button { flex-basis: 64px; height: 64px; }
}
