/* =========================================================
   Kanape Happy — стили
   ========================================================= */
:root {
  --pink: #FF2D7A;
  --pink-dark: #E01563;
  --pink-soft: #FFF0F5;
  --pink-100: #FFE1EC;
  --yellow: #FFC93C;
  --yellow-soft: #FFF6DC;
  --orange: #FF8A3D;
  --mint: #7FD6C2;
  --ink: #17151A;
  --text: #2B2830;
  --muted: #7A7480;
  --line: #EFE9EE;
  --bg: #FFFFFF;
  --bg-soft: #FFF9FB;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(40, 10, 30, .07);
  --shadow-lg: 0 24px 60px rgba(40, 10, 30, .14);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(255, 45, 122, .45); outline-offset: 2px; border-radius: 8px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }
.script { font-family: var(--script); font-weight: 700; color: var(--pink); font-size: 26px; line-height: 1.1; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 22px rgba(255, 45, 122, .32); }
.btn--primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 45, 122, .4); }
.btn--ghost { border: 2px solid var(--pink); color: var(--pink); background: #fff; }
.btn--ghost:hover { background: var(--pink-soft); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: background .2s; }
.icon-btn:hover { background: var(--pink-100); }
.icon-btn svg { width: 22px; height: 22px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; transition: .2s; }
.round-btn:hover { border-color: var(--pink); color: var(--pink); }
.round-btn svg { width: 20px; height: 20px; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 12px; }
.topbar b { color: var(--yellow); }
.topbar__phone { font-weight: 700; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(40, 10, 30, .08); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo__tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--ink); border-radius: 16px; padding: 12px 16px 8px; line-height: .9;
}
.logo__crown { position: absolute; width: 22px; top: -9px; left: 46px; transform: rotate(8deg); }
.logo__happy { font-weight: 900; font-size: 22px; color: var(--pink); letter-spacing: -.5px; font-style: italic; margin-left: 12px; }
.logo__kanape { font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -.5px; }
.logo__tagline { font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.nav__link { position: relative; font-size: 14px; font-weight: 600; padding: 6px 0; transition: color .2s; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--pink); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
.nav__link:hover, .nav__link.is-active { color: var(--pink); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: background .2s; }
.cart-btn:hover { background: var(--pink-100); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-soft); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Декор: конфетти, ленты, подарки ---------- */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: var(--c); border-radius: 50%;
  animation: float 6s ease-in-out var(--d) infinite;
}
.confetti i:nth-child(3n) { border-radius: 3px; transform: rotate(25deg); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(40deg); } }

.ribbon { position: absolute; pointer-events: none; }
.ribbon path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease forwards .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.gift { position: absolute; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(255, 45, 122, .25)); animation: wobble 5s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }

/* ---------- Главный экран ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; background: radial-gradient(1000px 500px at 85% 20%, var(--pink-soft), transparent 60%), radial-gradient(600px 400px at 0% 100%, var(--yellow-soft), transparent 60%); }
.ribbon--hero-a { width: 80px; left: -10px; top: 30px; }
.ribbon--hero-b { width: 90px; right: -20px; bottom: 0; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--pink-100); color: var(--pink); font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.hero__title { font-size: clamp(40px, 5.6vw, 72px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.02; }
.hl { position: relative; color: var(--pink); white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .2em; background: var(--yellow); opacity: .55; z-index: -1; border-radius: 6px; }
.hero__text { margin-top: 22px; font-size: 18px; max-width: 520px; color: var(--text); }
.hero__perks { display: flex; gap: 34px; margin-top: 30px; }
.hero__perks li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.perk-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--pink); }
.perk-icon svg { width: 24px; height: 24px; }
.hero__buttons { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero__visual { position: relative; min-height: 540px; }
.hero__photo { position: absolute; right: 30px; top: 0; width: 78%; aspect-ratio: 4/5; border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero__visual:hover .hero__photo img { transform: scale(1.06); }
.hero__photo--small { right: auto; left: 0; top: auto; bottom: -10px; width: 38%; aspect-ratio: 1; border-radius: 28px; border: 6px solid #fff; transform: rotate(-6deg); }
.sticker {
  position: absolute; right: -6px; top: -14px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--script); font-size: 21px; font-weight: 700; line-height: 1; text-align: center; transform: rotate(10deg);
  box-shadow: 0 14px 30px rgba(255, 180, 0, .35); animation: spin-wobble 7s ease-in-out infinite;
}
.sticker svg { width: 20px; height: 20px; margin-top: 4px; }
@keyframes spin-wobble { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-4deg) scale(1.04); } }
.hero__badge { position: absolute; right: 0; bottom: 40px; background: #fff; border-radius: 18px; padding: 14px 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.hero__badge b { font-size: 22px; color: var(--pink); font-weight: 900; }
.hero__badge span { font-size: 12px; color: var(--muted); font-weight: 600; }
.gift--hero { width: 90px; left: 30%; top: -10px; }

/* ---------- Преимущества ---------- */
.features { position: relative; margin-top: -24px; z-index: 2; }
.features__card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 26px 10px; }
.feature { display: flex; gap: 14px; align-items: center; padding: 4px 22px; font-size: 14px; line-height: 1.4; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature b { display: block; color: var(--ink); }
.feature__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; }
.feature__icon svg { width: 26px; height: 26px; }

/* ---------- Секции ---------- */
.section { padding: 96px 0 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.section__title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.8px; }
.section__sub { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 620px; }

/* ---------- Табы ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: .2s; }
.tab:hover { border-color: var(--pink); color: var(--pink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab--sale.is-active { background: var(--pink); border-color: var(--pink); }

/* ---------- Карточки товаров ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s; animation: card-in .5s ease both;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }
/* Фото в «праздничной рамке», как на первом экране: белая окантовка, тень, лёгкий наклон */
.card__media {
  position: relative; aspect-ratio: 1 / .86; padding: 16px 16px 12px; cursor: zoom-in;
  background: radial-gradient(circle at 85% 15%, var(--yellow-soft), transparent 45%), linear-gradient(160deg, var(--pink-soft), #fff 70%);
}
.card__frame {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: 22px; border: 5px solid #fff; background: var(--bg-soft);
  box-shadow: 0 12px 26px rgba(40, 10, 30, .16);
  transform: rotate(-2deg); transition: transform .4s ease;
}
.card:nth-child(even) .card__frame { transform: rotate(2deg); }
.card:hover .card__frame { transform: rotate(0) scale(1.02); }
.card__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s; }
.card__frame img + img { opacity: 0; }
.card:hover .card__frame img { transform: scale(1.05); }
.card:hover .card__frame img + img { opacity: 1; }
.card__badge .badge { top: 8px; left: 10px; transform: rotate(-4deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.card__photos { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.card__photos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.card__photos i:first-child { background: #fff; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; }
.badge--hit { background: var(--ink); }
.badge--new { background: var(--mint); color: var(--ink); }
.badge--sale { background: var(--pink); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.card__title { font-size: 17px; font-weight: 800; }
.card__desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.card__more { align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--pink); }
.card__more:hover { text-decoration: underline; }
.variants { display: flex; gap: 6px; margin-top: 14px; padding: 4px; background: var(--bg-soft); border-radius: 12px; }
.variant { flex: 1; padding: 7px 4px; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; transition: .2s; color: var(--muted); }
.variant small { display: block; font-weight: 500; font-size: 11px; }
.variant.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.variant--single { cursor: default; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.price { font-size: 24px; font-weight: 900; color: var(--ink); }
.price-old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.price-per { font-size: 12px; color: var(--muted); margin-left: auto; }
.card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.qty { display: flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 4px; flex-shrink: 0; }
.qty button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--pink); font-size: 20px; font-weight: 700; transition: background .2s; }
.qty button:hover { background: var(--pink-soft); }
.qty span, .qty input { width: 28px; text-align: center; font-weight: 700; font-size: 15px; border: 0; background: none; }
.add-btn { flex: 1; height: 44px; padding: 0 14px; font-size: 14px; }
.add-btn svg { width: 18px; height: 18px; }
.add-btn.is-added { background: var(--ink); box-shadow: none; }
.products__empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }

/* ---------- Промо ---------- */
.promo { padding-top: 96px; }
.promo__card {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
  border-radius: 32px; overflow: hidden; min-height: 380px;
  background: linear-gradient(120deg, #fff 0%, var(--pink-soft) 55%, var(--yellow-soft) 100%);
  border: 1px solid var(--line);
}
.promo__content { position: relative; z-index: 1; padding: 50px 56px; }
.promo__title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; margin: 8px 0 16px; letter-spacing: -.8px; }
.promo__content p { margin-bottom: 28px; max-width: 440px; }
.promo__code { display: inline-block; padding: 2px 10px; border: 2px dashed var(--pink); border-radius: 8px; color: var(--pink); font-weight: 800; letter-spacing: 1px; transition: background .2s; }
.promo__code:hover { background: #fff; }
.promo__visual { position: relative; height: 100%; min-height: 380px; }
.promo__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.ribbon--promo { width: 260px; left: -30px; bottom: 20px; z-index: 1; }

/* ---------- О нас ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about__photos { position: relative; min-height: 520px; }
.about__img { position: absolute; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__img--a { width: 72%; height: 86%; left: 0; top: 0; }
.about__img--b { width: 48%; height: 54%; right: 0; bottom: 0; border: 6px solid #fff; }
.gift--about { width: 84px; right: 10%; top: 4%; }
.about__lead { font-size: 18px; font-weight: 600; color: var(--ink); margin: 18px 0 14px; }
.about__content > p:not(.script) { color: var(--text); }
.about__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.about__list li { padding: 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.about__list b { display: block; color: var(--ink); font-size: 15px; }
.about__list span { font-size: 13px; color: var(--muted); }
.about__script { margin-top: 26px; font-size: 32px; transform: rotate(-3deg); display: inline-block; }

/* ---------- Отзывы ---------- */
.reviews__nav { display: flex; gap: 10px; }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 16px; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.review__stars { color: var(--yellow); letter-spacing: 3px; font-size: 18px; }
.review__text { font-size: 15px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.review__author b { display: block; color: var(--ink); }
.review__author small { color: var(--muted); }

/* ---------- Доставка ---------- */
.delivery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dcard { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.dcard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--pink-100); opacity: .6; }
.dcard:nth-child(2)::after { background: var(--yellow-soft); opacity: 1; }
.dcard__num { position: relative; z-index: 1; display: block; font-size: 30px; font-weight: 900; color: var(--pink); letter-spacing: -.5px; }
.dcard h3 { margin: 10px 0 8px; font-size: 17px; }
.dcard p { font-size: 14px; color: var(--text); }
.dcard b { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.step { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.step span { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-weight: 900; }
.step b { color: var(--yellow); }

/* ---------- Контакты ---------- */
.contacts { padding-bottom: 96px; }
.contacts__card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 48px; border-radius: 32px; background: linear-gradient(135deg, var(--pink-soft), #fff 60%); border: 1px solid var(--line); }
.contacts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.contacts__list li { display: flex; gap: 14px; align-items: center; }
.contacts__list small { display: block; font-size: 12px; color: var(--muted); }
.contacts__list a, .contacts__list span { font-weight: 700; color: var(--ink); }
.contacts__list a:hover { color: var(--pink); }
.ci { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--pink); display: grid; place-items: center; box-shadow: var(--shadow); }
.ci svg { width: 22px; height: 22px; }
.contacts__messengers { display: flex; flex-direction: column; gap: 14px; }
.contacts__messengers .script { margin-bottom: 4px; }
.messenger { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.messenger:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.messenger b { display: block; color: var(--ink); }
.messenger small { color: var(--muted); font-size: 13px; }
.messenger__logo { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .5px; }
.messenger__logo svg { width: 24px; height: 24px; }
.messenger--max .messenger__logo { background: linear-gradient(135deg, #3B8CFF, #8A3DFF); }
.messenger--vk .messenger__logo { background: #0077FF; }
.messenger--phone .messenger__logo { background: var(--pink); }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--yellow); }
.logo--footer .logo__tile { background: #000; border: 1px solid rgba(255, 255, 255, .12); }
.footer__brand p { margin-top: 18px; max-width: 260px; }
.socials { display: flex; gap: 10px; }
.social { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 900; font-size: 12px; transition: transform .2s; }
.social:hover { transform: translateY(-3px); color: #fff !important; }
.footer__script { margin-top: 16px; font-size: 22px; color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__requisites { flex-basis: 100%; opacity: .6; font-size: 12px; }

/* ---------- Быстрая связь ---------- */
.quick { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.quick__toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(255, 45, 122, .45); transition: transform .25s; }
.quick__toggle::before { content: ''; position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--pink); animation: pulse 2.2s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.quick__toggle svg { width: 26px; height: 26px; }
.quick__icon-close { display: none; }
.quick.is-open .quick__icon-open { display: none; }
.quick.is-open .quick__icon-close { display: block; }
.quick.is-open .quick__toggle::before { display: none; }
.quick__menu { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.quick.is-open .quick__menu { opacity: 1; transform: none; pointer-events: auto; }
.quick__item { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 5px 0 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; color: var(--ink); transition: transform .2s; }
.quick__item:hover { transform: translateX(-4px); }
.quick__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 900; font-size: 11px; }
.quick__ico svg { width: 20px; height: 20px; }
.quick__ico--max { background: linear-gradient(135deg, #3B8CFF, #8A3DFF); }
.quick__ico--vk { background: #0077FF; }
.quick__ico--phone { background: var(--pink); }

/* ---------- Мобильная плашка корзины ---------- */
.mobile-cart { position: fixed; left: 16px; right: 92px; bottom: 16px; z-index: 55; height: 56px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; display: none; justify-content: space-between; align-items: center; font-weight: 600; box-shadow: var(--shadow-lg); }
.mobile-cart__sum { font-weight: 900; color: var(--yellow); }

/* ---------- Оверлей, корзина ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(23, 21, 26, .5); backdrop-filter: blur(3px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .12);
}
.drawer.is-open { 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; font-weight: 900; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }

.citem { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; animation: card-in .3s; }
.citem img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.citem__name { font-weight: 800; font-size: 14px; color: var(--ink); line-height: 1.3; }
.citem__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.citem__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.citem .qty { height: 36px; }
.citem .qty button { width: 28px; height: 28px; font-size: 17px; }
.citem__price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.citem__remove { align-self: start; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: .2s; }
.citem__remove:hover { background: var(--pink-soft); color: var(--pink); }
.citem__remove svg { width: 18px; height: 18px; }

.cart-empty { text-align: center; padding: 60px 10px; }
.cart-empty__icon { font-size: 54px; }
.cart-empty h4 { margin: 12px 0 8px; font-size: 18px; }
.cart-empty p { color: var(--muted); margin-bottom: 22px; }

.free-bar { margin-bottom: 16px; font-size: 13px; }
.free-bar__track { height: 8px; border-radius: 4px; background: var(--pink-100); margin-top: 8px; overflow: hidden; }
.free-bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--pink), var(--orange)); transition: width .4s; }
.free-bar b { color: var(--pink); }
.promo-form { display: flex; gap: 8px; margin-bottom: 16px; }
.promo-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-transform: uppercase; }
.promo-form input:focus { outline: none; border-color: var(--pink); }
.promo-form button { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #E9FBF5; color: #0E7A5A; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.promo-applied button { color: #0E7A5A; text-decoration: underline; font-size: 13px; }
.promo-msg { font-size: 13px; color: var(--pink-dark); margin: -8px 0 12px 8px; }
.totals { display: grid; gap: 6px; font-size: 14px; margin-bottom: 16px; }
.totals div { display: flex; justify-content: space-between; }
.totals .total { font-size: 20px; font-weight: 900; color: var(--ink); padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); }
.totals .discount { color: #0E7A5A; }
.totals .prepay { padding: 8px 12px; margin-top: 4px; border-radius: 10px; background: var(--yellow-soft); font-weight: 700; color: var(--ink); }
.totals small { color: var(--muted); }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal__box { position: relative; width: 100%; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2, .8, .2, 1); margin: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.modal__box--product { max-width: 920px; overflow: hidden; }
.modal__box--checkout { max-width: 1080px; }

.pm { display: grid; grid-template-columns: 1.05fr 1fr; }
.pm__gallery { background: var(--bg-soft); display: flex; flex-direction: column; }
.pm__main { aspect-ratio: 1; overflow: hidden; }
.pm__main img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumbs { display: flex; gap: 8px; padding: 10px; }
.pm__thumbs button { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: .2s; }
.pm__thumbs button.is-active { border-color: var(--pink); opacity: 1; }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm__info { padding: 36px 32px; display: flex; flex-direction: column; }
.pm__info h3 { font-size: 26px; font-weight: 900; padding-right: 40px; }
.pm__info .badge { position: static; display: inline-block; align-self: flex-start; margin-bottom: 12px; }
.pm__label { margin-top: 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pm__comp { margin-top: 8px; display: grid; gap: 8px; font-size: 14px; }
.pm__comp li { position: relative; padding-left: 18px; }
.pm__comp li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.pm__info .card__actions { padding-top: 22px; }

/* ---------- Оформление заказа ---------- */
.checkout { display: grid; grid-template-columns: 1.35fr 1fr; }
.checkout__form { padding: 40px 40px 36px; }
.checkout__title { font-size: 28px; font-weight: 900; }
.checkout__note { margin-top: 6px; color: var(--muted); font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
legend { font-weight: 800; font-size: 16px; color: var(--ink); margin-bottom: 12px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text); }
.field i { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg-soft); transition: border .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23FF2D7A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: #fff; }
.field.has-error input, .field.has-error select { border-color: var(--pink-dark); background: #FFF5F8; }
.field .err { font-size: 12px; color: var(--pink-dark); }
.hint { font-size: 13px; color: var(--muted); margin: -2px 0 12px; }
.hint.is-urgent { color: var(--pink-dark); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; margin-top: 4px; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pink); }
.check a { color: var(--pink); text-decoration: underline; }
.check--consent { margin-top: 18px; font-size: 13px; }
.check--consent.has-error span { color: var(--pink-dark); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: block; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-soft); transition: .2s; }
.radio b { display: block; font-size: 14px; color: var(--ink); }
.radio small { font-size: 12px; color: var(--muted); }
.radio input:checked + span { border-color: var(--pink); background: var(--pink-soft); }
.radio input:focus-visible + span { outline: 3px solid rgba(255, 45, 122, .4); }

.checkout__summary { padding: 40px 32px 32px; background: var(--bg-soft); border-radius: 0 28px 28px 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.checkout__summary h4 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.summary__items { display: grid; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 18px; padding-right: 4px; }
.summary__items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.summary__items img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.summary__items b { color: var(--ink); display: block; line-height: 1.25; }
.summary__items small { color: var(--muted); }
.summary__rows { margin-bottom: 18px; }
.summary__small { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.form-error { font-size: 13px; color: var(--pink-dark); text-align: center; margin-top: 10px; }
.form-error:empty { display: none; }

.success { padding: 56px 40px; text-align: center; max-width: 620px; margin: 0 auto; }
.success__icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; background: var(--pink); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(255, 45, 122, .4); animation: pop .5s; }
.success__icon svg { width: 42px; height: 42px; }
.success h3 { font-size: 28px; font-weight: 900; }
.success > p { margin-top: 12px; color: var(--text); }
.success__details { margin: 24px 0; padding: 18px 20px; text-align: left; border-radius: 16px; background: var(--bg-soft); font-size: 14px; display: grid; gap: 6px; }
.success__details b { color: var(--ink); }
.success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Тост ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .logo__tagline { display: none; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .header__order { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 22px;
    background: #fff; padding: 100px 24px 40px;
    opacity: 0; visibility: hidden; transition: .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 22px; font-weight: 800; }
  .nav__cta { display: inline-flex; margin-top: 10px; }
  .header__actions { margin-left: auto; }
  /* backdrop-filter делает шапку контейнером для fixed-меню — на мобильных отключаем */
  .header { z-index: 70; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 0; aspect-ratio: 1.15; max-width: 640px; width: 100%; margin: 0 auto; }
  .hero__photo { width: 70%; right: 6%; }
  .features__card { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .feature:nth-child(3) { border-left: 0; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__photos { min-height: 0; aspect-ratio: 1.3; max-width: 640px; width: 100%; }
  .delivery__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .contacts__card { grid-template-columns: 1fr; padding: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { border-radius: 0 0 28px 28px; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .promo__card { grid-template-columns: 1fr; }
  .promo__visual { min-height: 260px; order: -1; }
  .promo__visual img { clip-path: none; }
  .promo__content { padding: 32px 28px 36px; }
  .pm { grid-template-columns: 1fr; }
  .pm__main { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar { font-size: 12px; }
  .topbar__phone, .topbar__long { display: none; }
  .topbar__inner { justify-content: center; }
  .logo__tile { padding: 9px 12px 6px; border-radius: 13px; }
  .logo__happy, .logo__kanape { font-size: 18px; }
  .logo__crown { left: 38px; width: 18px; }
  .cart-btn { width: 44px; height: 44px; }

  .hero { padding: 36px 0 56px; }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .hero__title { font-size: 40px; letter-spacing: -1px; }
  .hero__text { font-size: 16px; margin-top: 16px; }
  .hero__perks { gap: 16px; margin-top: 24px; justify-content: space-between; }
  .hero__perks li { font-size: 12px; }
  .hero__buttons { margin-top: 28px; }
  .hero__buttons .btn { flex: 1 1 100%; }
  .sticker { width: 110px; height: 110px; font-size: 16px; right: -4px; top: -10px; }
  .hero__badge { padding: 10px 14px; bottom: 16px; }
  .hero__badge b { font-size: 18px; }
  .gift--hero { width: 60px; }
  .hero__photo { border-radius: 28px; width: 76%; right: 2%; }

  .features__card { grid-template-columns: 1fr; padding: 10px 6px; gap: 0; }
  .feature { padding: 14px 16px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding-top: 72px; }
  .promo { padding-top: 72px; }
  .section__head { margin-bottom: 22px; }
  .section__sub { font-size: 14px; }


  .about__list { grid-template-columns: 1fr; }
  .about__lead { font-size: 16px; }
  .gift--about { width: 60px; }

  .reviews__nav { display: none; }
  .reviews__track { grid-auto-columns: 86%; gap: 14px; }
  .review { padding: 22px; }

  .delivery__grid, .steps { grid-template-columns: 1fr; }
  .steps { padding: 22px; gap: 16px; }

  .contacts { padding-bottom: 72px; }
  .contacts__card { padding: 26px 20px; border-radius: 24px; gap: 30px; }
  .contacts__list { grid-template-columns: 1fr; }

  .footer { padding: 48px 0 100px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }

  .mobile-cart { display: flex; }
  .quick { right: 16px; bottom: 16px; }
  .quick__toggle, .quick__toggle::before { width: 56px; height: 56px; }

  .modal { padding: 0; place-items: end center; }
  .modal__box { border-radius: 24px 24px 0 0; margin: 0; max-height: 100%; }
  .modal__box--checkout, .modal__box--product { overflow-y: auto; max-height: 94vh; }
  .checkout__form { padding: 28px 18px 20px; }
  .checkout__summary { padding: 24px 18px 28px; border-radius: 0; }
  .checkout__title { font-size: 24px; }
  .grid-2, .pay { grid-template-columns: 1fr; gap: 0; }
  .pay { gap: 10px; }
  .grid-3 { gap: 8px; }
  .pm__info { padding: 24px 18px 28px; }
  .pm__info h3 { font-size: 22px; }
  .success { padding: 44px 20px 32px; }
  .drawer__head, .drawer__foot { padding-left: 18px; padding-right: 18px; }
  .drawer__body { padding: 4px 18px; }
}

@media (max-width: 340px) {
  .hero__title { font-size: 34px; }
}

/* Анимация первого экрана при загрузке */
.anim-in { animation: card-in .8s ease both; }
.anim-in--late { animation-delay: .15s; }
@media (max-width: 640px) {
  .toast { bottom: 88px; }
}

/* Скрытое поле-ловушка для спам-ботов */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Меню на телефоне: компактные карточки в 2 колонки */
@media (max-width: 640px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 16px; }
  .card:hover { transform: none; }
  .card__media { aspect-ratio: 1; padding: 8px 8px 6px; }
  .card__frame { border-width: 3px; border-radius: 14px; box-shadow: 0 6px 14px rgba(40, 10, 30, .14); }
  .card__badge .badge { top: 4px; left: 6px; padding: 4px 8px; font-size: 10px; }
  .card__photos { bottom: 6px; }
  .card__body { padding: 10px 10px 12px; }
  .card__title { font-size: 14px; line-height: 1.25; }
  .card__desc { font-size: 12px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__more { font-size: 12px; margin-top: 4px; }
  .variants { margin-top: 8px; padding: 3px; border-radius: 10px; }
  .variant { padding: 4px 2px; font-size: 11px; border-radius: 8px; }
  .variant small { font-size: 10px; }
  .variant--single small { display: inline; margin-left: 4px; }
  .card__price { margin-top: 8px; flex-wrap: wrap; gap: 0 6px; }
  .price { font-size: 18px; }
  .price-old { font-size: 12px; }
  .price-per { display: none; }
  .card__actions { flex-direction: column; gap: 6px; padding-top: 10px; }
  .card__actions .qty { width: 100%; height: 36px; justify-content: space-between; }
  .card__actions .qty button { width: 30px; height: 30px; font-size: 18px; }
  .add-btn { width: 100%; height: 38px; padding: 0 8px; font-size: 13px; gap: 6px; }
  .add-btn svg { width: 16px; height: 16px; }
  .tabs { margin-bottom: 18px; }
  .tab { height: 38px; padding: 0 14px; font-size: 13px; }
}

/* =========================================================
   Слайдер акций на первом экране
   ========================================================= */
.hero__visual { min-height: 0; }
.slider {
  position: relative; overflow: hidden; border-radius: 32px; aspect-ratio: 1 / 1.05;
  background: var(--ink); box-shadow: var(--shadow-lg); isolation: isolate;
}
.slider__track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65, .05, .25, 1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide[aria-hidden="false"] .slide__bg { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 8, 16, 0) 30%, rgba(20, 8, 16, .55) 58%, rgba(20, 8, 16, .9) 100%); }
.slide__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 30px 52px; color: #fff; }
.slide[aria-hidden="false"] .slide__content > * { animation: slide-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.slide[aria-hidden="false"] .slide__content > *:nth-child(2) { animation-delay: .08s; }
.slide[aria-hidden="false"] .slide__content > *:nth-child(3) { animation-delay: .16s; }
.slide[aria-hidden="false"] .slide__content > *:nth-child(4) { animation-delay: .24s; }
@keyframes slide-in { from { opacity: 0; transform: translateY(18px); } }
.slide__tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.slide__title { margin-top: 10px; color: #fff; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.5px; }
.slide__text { margin-top: 8px; font-size: 15px; opacity: .9; max-width: 420px; }
.slide__price { margin-top: 8px; font-size: 16px; }
.slide__price b { font-size: 30px; font-weight: 900; color: var(--yellow); }
.slide__price s { opacity: .65; margin-left: 6px; }
.slide__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.slide__btn { margin-top: 16px; height: 46px; padding: 0 22px; font-size: 14px; }
.slide__btn svg { width: 18px; height: 18px; }
.slide__discount {
  position: absolute; z-index: 1; top: 20px; left: 20px; width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 22px; font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 45, 122, .45); transform: rotate(-10deg); animation: discount-pulse 2.4s ease-in-out infinite;
}
@keyframes discount-pulse { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }
.slider__dots { position: absolute; z-index: 2; left: 30px; bottom: 20px; display: flex; gap: 6px; }
.slider__dots button { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.slider__dots button[aria-selected="true"] { width: 40px; background: var(--pink); }
.slider__arrow {
  position: absolute; z-index: 2; top: 42%; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink);
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s;
}
.slider__arrow svg { width: 20px; height: 20px; }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider:hover .slider__arrow, .slider:focus-within .slider__arrow { opacity: 1; }
.slider__arrow:hover { transform: scale(1.08); }
.slider--single .slider__arrow, .slider--single .slider__dots { display: none; }
.hero__visual .sticker { z-index: 3; }
.hero__visual .gift--hero { z-index: 3; }

/* Цена по запросу (вариант без цены) */
.price--ask { font-size: 16px; font-weight: 800; color: var(--pink); }
.totals .totals__ask { color: var(--pink-dark); }

/* =========================================================
   Условия заказа
   ========================================================= */
.conditions__list { list-style: none; margin: 0; padding: 0; counter-reset: cond; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cond { counter-increment: cond; position: relative; padding: 24px 24px 24px 84px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.cond::before {
  content: counter(cond); position: absolute; left: 24px; top: 22px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 900; font-size: 18px;
}
.cond h3 { font-size: 17px; }
.cond p { margin-top: 6px; font-size: 14px; color: var(--text); }

@media (max-width: 1024px) {
  .hero__visual { order: -1; aspect-ratio: auto; max-width: 640px; }
  .slider { aspect-ratio: 4 / 3.6; }
  .slider__arrow { opacity: 1; }
}
@media (max-width: 640px) {
  .slider { border-radius: 24px; aspect-ratio: 1 / 1.02; }
  .slide__content { padding: 20px 18px 40px; }
  .slide__title { font-size: 24px; }
  .slide__text { font-size: 14px; }
  .slide__price b { font-size: 24px; }
  .slide__btn { margin-top: 12px; height: 42px; padding: 0 16px; font-size: 13px; }
  .slide__discount { width: 62px; height: 62px; font-size: 18px; top: 14px; left: 14px; }
  .slider__dots { left: 18px; bottom: 16px; }
  .slider__arrow { width: 36px; height: 36px; top: 38%; }
  .hero__visual .sticker { width: 92px; height: 92px; font-size: 13px; top: -12px; right: -6px; }
  .conditions__list { grid-template-columns: 1fr; gap: 12px; }
  .cond { padding: 18px 18px 18px 70px; }
  .cond::before { left: 18px; top: 18px; width: 36px; height: 36px; font-size: 16px; }
  .price--ask { font-size: 13px; }
}

/* Слайдер анимируется даже при «уменьшить движение» в системе — просьба заказчика */
@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: transform .8s cubic-bezier(.65, .05, .25, 1) !important; }
  .slide__bg { transition: transform 7s ease-out !important; }
  .slide[aria-hidden="false"] .slide__content > * { animation: slide-in .7s cubic-bezier(.2, .8, .2, 1) both !important; }
}
