/* ===== Токены ===== */
:root {
  --night: #0a1430;
  --night-2: #14275a;
  --red: #d81f26;
  --red-d: #a3121a;
  --gold: #f5c344;
  --gold-d: #d39a14;
  --snow: #fffaf1;
  --ice: #eaf1ff;
  --spruce: #0f5a37;
  --ink: #1a1d3a;
  --muted: #565a7a;

  --f-head: 'Unbounded', 'Arial Black', sans-serif;
  --f-text: 'Nunito', 'Segoe UI', sans-serif;
  --f-script: 'Marck Script', cursive;
  --f-h1: 'Yeseva One', Georgia, 'Times New Roman', serif;

  --wrap: 1280px;
  --m: clamp(16px, 3vw, 40px);
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font-family: var(--f-text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button, .btn, .chip { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(28px, 1.2rem + 2vw, 52px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); }
.script { font-family: var(--f-script); font-weight: 400; color: var(--gold); font-size: 1.5em; line-height: 1; }
.num { font-variant-numeric: tabular-nums; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  box-shadow: 0 6px 0 var(--red-d), 0 12px 24px rgba(216, 31, 38, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-d), 0 16px 30px rgba(216, 31, 38, .45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-d), 0 6px 12px rgba(216, 31, 38, .3); }
.btn--gold { background: var(--gold); color: var(--night); box-shadow: 0 6px 0 var(--gold-d), 0 12px 24px rgba(245, 195, 68, .35); }
.btn--gold:hover { box-shadow: 0 8px 0 var(--gold-d), 0 16px 30px rgba(245, 195, 68, .45); }
.btn--gold:active { box-shadow: 0 2px 0 var(--gold-d); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 2px #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; box-shadow: 0 4px 0 var(--red-d); }
.btn--sm:hover { box-shadow: 0 6px 0 var(--red-d); }
.btn--sm:active { box-shadow: 0 1px 0 var(--red-d); transform: translateY(3px); }
.btn--block { width: 100%; }

/* ===== Верхняя полоса и шапка ===== */
.topbar { background: var(--night); color: #c9d4f5; font-size: 14px; position: relative; z-index: 41; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; font-weight: 700; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__cd b { color: var(--gold); }
.header { position: sticky; top: 0; z-index: 40; background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(10, 20, 48, .25); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 46px; height: 46px; flex: none; }
.logo b { font-family: var(--f-head); font-weight: 800; font-size: 16px; line-height: 1.05; display: block; }
.logo small { display: block; font-size: 13px; opacity: .85; }
.menu { display: flex; gap: 2px; }
.menu a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.menu a:hover { background: rgba(255, 255, 255, .16); }
.header__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--night); font-weight: 800; font-size: 15px;
  transition: transform .2s var(--ease);
}
.cart-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn b { background: var(--red); color: #fff; min-width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(.96); } }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; }

/* ===== Гирлянда ===== */
.garland { position: relative; height: 44px; margin-bottom: -44px; overflow: hidden; pointer-events: none; z-index: 6; }
.garland svg { position: absolute; left: 0; top: 0; width: 100%; height: 30px; }
.garland__bulbs { position: absolute; inset: 0; display: flex; justify-content: space-around; }
.bulb { width: 14px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: 12px; position: relative; animation: blink 2.4s infinite; }
.bulb::before { content: ''; position: absolute; top: -5px; left: 3px; width: 8px; height: 7px; background: #3b3f55; border-radius: 2px; }
.bulb:nth-child(4n+1) { background: var(--red); color: var(--red); }
.bulb:nth-child(4n+2) { background: var(--gold); color: var(--gold); animation-delay: .6s; }
.bulb:nth-child(4n+3) { background: #2ecc71; color: #2ecc71; animation-delay: 1.2s; }
.bulb:nth-child(4n+4) { background: #4aa3ff; color: #4aa3ff; animation-delay: 1.8s; }
.bulb:nth-child(odd) { margin-top: 16px; }
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 14px 4px currentColor; } 50% { opacity: .5; box-shadow: 0 0 2px 0 currentColor; } }

/* ===== Снег ===== */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 30; }

/* ===== Герой ===== */
.hero { position: relative; min-height: min(86svh, 800px); color: #fff; display: flex; align-items: center; overflow: hidden; background: var(--night); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 48, .94) 0%, rgba(10, 20, 48, .72) 36%, rgba(10, 20, 48, 0) 68%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 150px; }
.hero__box { max-width: 840px; }
.hero__hi { display: block; margin-bottom: 12px; font-size: clamp(30px, 3vw, 44px); }
.hero h1 { font-family: var(--f-h1); font-size: clamp(30px, 1rem + 2.6vw, 56px); font-weight: 400; line-height: 1.08; letter-spacing: 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.hero h1 span { color: var(--gold); }
.hero__lead { margin-top: 20px; font-size: clamp(17px, 1rem + .4vw, 21px); max-width: 36ch; color: #e6ecff; }
.hero__ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__ticks li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.hero__ticks li::before { content: '❄ '; color: var(--gold); }
.hero__act { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* сугроб-разделитель */
.drift { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 3; color: var(--snow); pointer-events: none; }
.drift svg { width: 100%; height: 100%; display: block; }
.drift--top { top: -1px; bottom: auto; transform: rotate(180deg); }

/* ===== Секции ===== */
.sec { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.sec--night { background: var(--night); color: #fff; }
.sec--night .sec__sub { color: #c4cdee; }
.sec--ice { background: var(--ice); }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec__head .script { display: block; margin-bottom: 8px; color: var(--red); }
.sec--night .sec__head .script { color: var(--gold); }
.sec__sub { max-width: 52ch; margin-top: 12px; font-size: 18px; color: var(--muted); }
.link { font-weight: 800; color: var(--red); text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.sec--night .link { color: var(--gold); }

/* ===== Быстрый подбор ===== */
.picker { position: relative; z-index: 4; margin-top: -90px; }
.picker__card { background: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px rgba(10, 20, 48, .18); border: 3px solid var(--gold); position: relative; }
.picker__card::before {
  content: ''; position: absolute; top: -24px; left: 50%; width: 120px; height: 44px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'%3E%3Cpath d='M60 24 C40 0 12 4 16 20 C20 34 48 30 60 24Z M60 24 C80 0 108 4 104 20 C100 34 72 30 60 24Z' fill='%23d81f26'/%3E%3Cpath d='M56 26 L44 44 L52 42 L56 30Z M64 26 L76 44 L68 42 L64 30Z' fill='%23a3121a'/%3E%3Ccircle cx='60' cy='24' r='8' fill='%23a3121a'/%3E%3C/svg%3E") no-repeat center / contain;
}
.picker__top { display: flex; justify-content: space-between; align-items: end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.picker__top h2 { font-size: clamp(24px, 1.1rem + 1.4vw, 38px); }
.picker__top p { color: var(--muted); font-weight: 700; margin-top: 6px; }
.picker__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 32px; }
.picker__grid .wide { grid-column: 1 / -1; }
.fgroup h3 { font-size: 15px; font-family: var(--f-text); font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #e2e6f3; background: #fff; font-weight: 700; font-size: 15px; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), scale .15s var(--ease); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-pressed='true'] { background: var(--red); border-color: var(--red); color: #fff; }
.packs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pack { border: 3px solid transparent; border-radius: 18px; background: var(--ice); padding: 0 4px 10px; overflow: hidden; font-weight: 800; font-size: 14px; text-align: center; transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease); line-height: 1.2; }
.pack img { aspect-ratio: 1; height: auto; max-width: none; width: calc(100% + 8px); margin: 0 -4px 8px; object-fit: cover; transition: transform .4s var(--ease); }
.pack:hover img { transform: scale(1.06); }
.pack[aria-pressed='true'] { border-color: var(--red); background: #fff1f1; transform: translateY(-3px); }
.picker__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 2px dashed #e2e6f3; }
.picker__kids { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 800; }
.picker__found { font-family: var(--f-head); font-weight: 800; font-size: 22px; }
.picker__found b { color: var(--red); }
.picker__sum { color: var(--muted); font-weight: 700; display: block; font-family: var(--f-text); font-size: 15px; }
.picker__res { margin-top: 28px; }
.picker__more { text-align: center; margin-top: 28px; }
.picker__reset { background: none; border: 0; font-weight: 800; color: var(--muted); text-decoration: underline; padding: 8px 0; }

.qty { display: inline-flex; align-items: center; background: var(--ice); border-radius: 999px; padding: 3px; }
.qty button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; font-weight: 800; font-size: 18px; color: var(--red); transition: transform .15s; }
.qty button:active { transform: scale(.9); }
.qty input { width: 56px; text-align: center; border: 0; background: transparent; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== Карточки товаров ===== */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product { color: var(--ink); background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 4px 0 #e5e9f5, 0 12px 28px rgba(10, 20, 48, .08); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product:hover { transform: translateY(-6px); box-shadow: 0 4px 0 #e5e9f5, 0 22px 40px rgba(10, 20, 48, .16); }
.product__img { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; background: var(--night); width: 100%; display: block; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product__img img { transform: scale(1.07); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.product__w { position: absolute; bottom: 12px; right: 12px; z-index: 2; background: rgba(10, 20, 48, .82); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__name { font-family: var(--f-head); font-weight: 700; font-size: 16px; line-height: 1.25; }
.product__meta { color: var(--muted); font-size: 14px; font-weight: 700; }
.product__inside { align-self: start; background: none; border: 0; padding: 4px 0; color: var(--red); font-weight: 800; font-size: 14px; text-decoration: underline dotted; text-underline-offset: 4px; }
.product__price { font-family: var(--f-head); font-weight: 800; font-size: 23px; margin-top: auto; padding-top: 6px; color: var(--red); }
.product__price small { font-family: var(--f-text); font-size: 13px; color: var(--muted); font-weight: 700; }
.product__act { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.product__act .btn { flex: 1; min-width: 104px; }

/* ===== Категории упаковки ===== */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; display: block; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.4; text-decoration: none; color: #fff; box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.08) rotate(.5deg); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 20, 48, .92) 0%, rgba(10, 20, 48, 0) 55%); }
.cat__txt { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.cat__txt h3 { font-size: 22px; font-weight: 800; }
.cat__txt p { margin-top: 4px; color: #dfe6ff; font-weight: 700; }
.cat__txt p b { color: var(--gold); }
.cat__go { position: absolute; top: 16px; right: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; font-weight: 900; font-size: 20px; transition: transform .3s var(--ease); }
.cat:hover .cat__go { transform: rotate(-45deg) scale(1.1); }

/* ===== Для кого ===== */
.who { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.who__img { border-radius: 30px; overflow: hidden; box-shadow: 0 24px 50px rgba(10, 20, 48, .25); transform: rotate(-1.5deg); border: 8px solid #fff; }
.who__img img { width: 100%; }
.who__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.who__list a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: #fff; text-decoration: none; box-shadow: 0 4px 0 #dfe5f5; font-weight: 700; transition: transform .2s var(--ease); }
.who__list a:hover { transform: translateX(6px); }
.who__list .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; flex: none; background: var(--ice); }
.who__list b { display: block; font-family: var(--f-head); font-size: 16px; }
.who__list span { color: var(--muted); font-size: 15px; }

/* ===== Почему мы ===== */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { background: var(--night-2); border-radius: 24px; padding: 28px 24px; position: relative; overflow: hidden; }
.perk::after { content: '❄'; position: absolute; right: -10px; bottom: -34px; font-size: 120px; color: rgba(255, 255, 255, .06); }
.perk__ico { font-size: 40px; display: block; margin-bottom: 14px; }
.perk h3 { color: var(--gold); margin-bottom: 8px; font-size: 18px; }
.perk p { color: #d3dbf7; font-size: 16px; }

/* ===== Шаги ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border-radius: 24px; padding: 28px 24px; position: relative; box-shadow: 0 4px 0 #e2e7f4; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 6px #ffe0e0; }
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { color: var(--muted); }
.step small { display: inline-block; margin-top: 12px; background: var(--ice); padding: 4px 12px; border-radius: 999px; font-weight: 800; color: var(--night-2); font-size: 14px; }

/* ===== Вопросы ===== */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: 0 4px 0 #e2e7f4; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--f-head); font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 22px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); max-width: 66ch; }

/* ===== Финальный призыв ===== */
.cta { position: relative; overflow: hidden; border-radius: 34px; color: #fff; padding: clamp(32px, 5vw, 72px); background: var(--night); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: .6; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 48, .96) 32%, rgba(10, 20, 48, .15)); }
.cta > *:not(img) { position: relative; z-index: 2; }
.cta h2 { max-width: 15ch; }
.cta p { margin-top: 14px; max-width: 44ch; color: #dbe3ff; font-size: 18px; }
.callform { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: 640px; }
.callform input { flex: 1 1 200px; min-height: 54px; border-radius: 999px; border: 0; padding: 0 22px; background: #fff; color: var(--ink); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.callform__err { margin-top: 14px; font-weight: 700; color: #ffb4b4; }
.callform__ok { margin-top: 24px; font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--gold); }
.agree { display: block; margin-top: 12px; font-size: 13px; color: #aeb9e0; }

/* ===== Подвал ===== */
.footer { background: var(--night); color: #c4cdee; padding: 100px 0 32px; position: relative; margin-top: 90px; }
.footer .drift { top: -89px; bottom: auto; color: var(--night); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--gold); }
.footer__big { font-family: var(--f-head); font-weight: 800; font-size: 20px; color: #fff; }
.footer__legal { 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, .12); font-size: 14px; }

/* ===== Каталог ===== */
.page-hero { position: relative; background: var(--night); color: #fff; padding: 90px 0 140px; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; object-position: 50% 30%; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 48, .9) 20%, rgba(10, 20, 48, .2)); }
.page-hero .wrap { position: relative; z-index: 2; }
.crumbs { font-size: 14px; color: #c4cdee; margin-bottom: 14px; }
.crumbs a { color: #fff; }
.page-hero h1 { font-size: clamp(32px, 1.4rem + 3vw, 58px); font-weight: 800; }
.page-hero p { margin-top: 12px; color: #dbe3ff; font-size: 18px; max-width: 48ch; }
.shop { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.filters { position: sticky; top: 96px; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 12px 30px rgba(10, 20, 48, .1); display: grid; gap: 22px; }
.filters h2 { font-size: 20px; }
.filters .chip { min-height: 40px; font-size: 14px; padding: 0 14px; }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input { width: 100%; min-height: 44px; border-radius: 12px; border: 2px solid #e2e6f3; padding: 0 12px; font-weight: 700; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bar__count { font-family: var(--f-head); font-weight: 800; font-size: 20px; }
.bar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.bar select { min-height: 44px; border-radius: 999px; border: 2px solid #e2e6f3; background: #fff; padding: 0 16px; font-weight: 700; }
.budget { background: var(--gold); color: var(--night); border-radius: 18px; padding: 14px 20px; font-weight: 800; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.budget button { background: var(--night); color: #fff; border: 0; border-radius: 999px; min-height: 38px; padding: 0 16px; font-weight: 800; }
.empty { padding: 48px; text-align: center; background: #fff; border-radius: 24px; font-family: var(--f-head); font-weight: 700; font-size: 20px; }
.filters-toggle { display: none; min-height: 44px; border-radius: 999px; border: 0; background: var(--night); color: #fff; padding: 0 18px; font-weight: 800; }

/* ===== Окно «Что внутри» ===== */
dialog.detail { border: 0; padding: 0; border-radius: 28px; max-width: min(900px, calc(100% - 24px)); width: 100%; overflow: hidden; color: var(--ink); }
dialog.detail::backdrop { background: rgba(10, 20, 48, .72); }
dialog.detail[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.detail__grid > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.detail__body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.detail__body h2 { font-size: 24px; padding-right: 40px; }
.detail__price { font-family: var(--f-head); font-weight: 800; font-size: 28px; color: var(--red); }
.detail__list { list-style: none; margin: 0; padding: 0; }
.detail__list li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #dfe4f2; }
.detail__list li span:first-child { flex: 1; }
.detail__note { font-size: 14px; color: var(--muted); }
.detail__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 24px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); z-index: 3; }

/* ===== Заявка ===== */
.drawer__shade { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 48, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer__shade[data-open='true'] { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--snow); display: flex; flex-direction: column; transform: translateX(104%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; box-shadow: -20px 0 50px rgba(10, 20, 48, .3); }
.drawer[data-open='true'] { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { background: var(--red); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.drawer__head h2 { font-size: 20px; }
.drawer__head button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 22px; }
.drawer__list { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed #dfe4f2; }
.line img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.line__name { font-weight: 800; line-height: 1.25; }
.line__meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.line__sum { font-family: var(--f-head); font-weight: 800; color: var(--red); text-align: right; white-space: nowrap; font-size: 15px; }
.line .qty button { width: 32px; height: 32px; font-size: 16px; }
.line .qty input { width: 46px; }
.drawer__empty { padding: 48px 22px; text-align: center; }
.drawer__empty .big { font-size: 56px; }
.drawer__empty b { display: block; font-family: var(--f-head); font-size: 20px; margin: 10px 0 18px; }
.drawer__form { background: #fff; padding: 18px 22px 22px; display: grid; gap: 10px; box-shadow: 0 -10px 30px rgba(10, 20, 48, .08); }
.drawer__sum { display: flex; justify-content: space-between; font-family: var(--f-head); font-weight: 800; font-size: 20px; }
.drawer__sum span:last-child { color: var(--red); }
.drawer__warn { font-size: 14px; color: var(--red-d); font-weight: 700; }
.drawer__form input[type='text'], .drawer__form input[type='tel'], .drawer__form input[type='email'] { min-height: 50px; border-radius: 14px; border: 2px solid #e2e6f3; padding: 0 14px; font-weight: 700; }
.drawer__form label { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.drawer__form input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; flex: none; }
.drawer__msg { font-size: 14px; font-weight: 700; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--night); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: transform .4s var(--ease); white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); }

/* ===== Появление ===== */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .snow { display: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 1150px) {
  .menu { display: none; }
  .header__phone { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--red-d); padding: 12px var(--m) 20px; }
  .picker__grid { grid-template-columns: 1fr 1fr; }
  .packs { grid-template-columns: repeat(3, 1fr); }
  .perks, .steps { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; align-items: center; }
  .filters.closed { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar__info .hide-m { display: none; }
  .logo small { display: none; }
  .logo b { font-size: 13px; }
  .logo__mark { width: 40px; height: 40px; }
  .cart-btn span { display: none; }
  .header .wrap { gap: 10px; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 20, 48, .96) 45%, rgba(10, 20, 48, .2) 100%); }
  .hero__bg { object-position: 72% 0; height: 62%; }
  .hero .wrap { padding-top: 250px; padding-bottom: 130px; }
  .hero__act .btn { flex: 1 1 100%; }
  .picker__grid { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pack { font-size: 13px; }
  .cats, .perks, .steps, .footer__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product__body { padding: 12px; }
  .product__name { font-size: 14px; }
  .product__price { font-size: 19px; }
  .product__act .qty { width: 100%; justify-content: space-between; }
  .product__act .btn { width: 100%; padding: 0 12px; }
  .detail__grid { grid-template-columns: 1fr; }
  .detail__grid > img { min-height: 0; max-height: 280px; }
  .drift { height: 50px; }
  .footer .drift { top: -49px; }
}
