:root {
  --primary: #18222e;
  --ink: #020912;
  --accent: #2d4b95;
  --white: #fff;
  --gray-bg: #f4f6f9;
  --gray-mid: #dde2ea;
  --muted: #6b7a8d;
  --text: rgba(2, 9, 18, .75);
  --page: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", sans-serif;
  font-size: 16.8px; letter-spacing: .63px; line-height: 1.6;
  color: var(--text); background: #fff;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
svg { display: block; }
.page-width { max-width: var(--page); margin: 0 auto; padding: 0 20px; }
@media (min-width: 750px) { .page-width { padding: 0 50px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: 0; border-radius: 8px;
  padding: 15px 30px; font-weight: 600; letter-spacing: 1px; font-size: 15px;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .9; }
.btn-wide { width: 100%; }
.btn-outline-light {
  display: inline-block; margin-top: 28px; padding: 14px 32px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.75); color: #fff; text-decoration: none; font-size: 15.75px;
  transition: background .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.icon-btn { background: none; border: 0; color: var(--ink); width: 44px; height: 44px; display: grid; place-items: center; position: relative; text-decoration: none; }

/* ---------- Announcement ---------- */
.announcement {
  background: var(--primary); color: #fff; text-align: center;
  font-size: 15px; letter-spacing: 1.5px; font-weight: 500; padding: 9px 16px;
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid rgba(2,9,18,.08); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 86px; }
.header__burger { visibility: hidden; }
.logo { text-decoration: none; color: #111; display: flex; align-items: flex-start; gap: 2px; }
.logo__main { font-size: 30px; font-weight: 400; letter-spacing: 6px; line-height: 1; }
.logo__tm { font-size: 10px; font-weight: 500; line-height: 1; }
.header__icons { justify-self: end; display: flex; gap: 0; }
.cart-count {
  position: absolute; bottom: 6px; right: 6px; background: var(--primary); color: #fff;
  font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; letter-spacing: 0;
}
.search-bar { border-top: 1px solid var(--gray-mid); background: #fff; }
.search-bar__inner { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.search-bar input { flex: 1; padding: 12px 16px; border: 1px solid var(--ink); font: inherit; border-radius: 4px; }
@media (max-width: 749px) {
  .header__inner { height: 64px; }
  .header__burger { visibility: visible; }
  .logo { white-space: nowrap; }
  .logo__main { font-size: 22px; letter-spacing: 4px; }
  .header__burger, .header__icons .icon-btn { width: 38px; }
  .icon-btn--account { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: #6d747c; }
.hero__art { position: absolute; inset: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.05) 70%);
}
.hero__content { position: relative; z-index: 2; max-width: 520px; padding: 60px; color: #fff; }
.hero__heading { font-size: 48px; font-weight: 600; line-height: 1.15; margin-bottom: 20px; color: var(--ink); }
.hero__text { font-size: 18px; line-height: 1.6; margin-bottom: 30px; opacity: .95; }
.hero__button {
  display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--primary);
  color: #fff; text-decoration: none; font-weight: 500; letter-spacing: 1px;
}
@media (max-width: 749px) {
  .hero { min-height: 640px; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 20%, rgba(0,0,0,.1) 30%); }
  .hero__content { padding: 28px 20px 320px; text-align: center; margin: 0 auto; }
  .hero__heading { font-size: 34px; }
  .hero__text { font-size: 16px; }
}

/* ---------- Product photos ---------- */
.photo { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.featured__main .photo { transition: opacity .25s; }
.hero__product {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: auto; height: 92%; aspect-ratio: 1; background: none;
  mix-blend-mode: multiply; /* белый фон фото сливается с градиентом */
}
@media (max-width: 749px) {
  .hero__product { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%); height: auto; width: 92%; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: #fcfcfc; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; }
.marquee__text { font-size: 20px; font-weight: 500; white-space: nowrap; text-transform: uppercase; padding: 12px 0; margin-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 768px) { .marquee__text { font-size: 16px; margin-right: 32px; } }

/* ---------- Featured product ---------- */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; padding-top: 48px; padding-bottom: 48px; }
.featured__main { aspect-ratio: 1; background: var(--gray-bg); border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.featured__main > svg { width: 100%; height: 100%; }
.media-hero { display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; height: 100%; }
.media-hero > svg { height: 82%; width: auto; }
.badges { display: flex; flex-direction: column; gap: 16px; }
.badge-round {
  width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--primary); display: grid; place-items: center;
  text-align: center; font-size: 9.5px; font-weight: 800; color: var(--primary); letter-spacing: .5px; line-height: 1.3; background: #fff;
}
.badge-round--dark { background: var(--primary); color: #fff; }
.featured__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumb { aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; overflow: hidden; background: var(--gray-bg); padding: 0; }
.thumb svg { width: 100%; height: 100%; }
.thumb.is-active { border-color: var(--ink); }
.stars-mini { color: var(--accent); font-size: 13px; letter-spacing: 3px; background: #eef1f7; display: inline-block; padding: 2px 8px; border-radius: 4px; }
.featured__title { font-size: 36px; font-weight: 500; color: var(--ink); line-height: 1.2; margin: 10px 0 20px; letter-spacing: .5px; }
.bundle-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 11.5px; font-weight: 700; color: var(--ink); letter-spacing: .8px; }
.bundle-label::before, .bundle-label::after { content: ""; flex: 1; height: 1px; background: var(--ink); opacity: .6; }
.bundles { display: flex; flex-direction: column; gap: 14px; }
.bundle {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1.5px solid #c9d0d9; border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s;
}
.bundle input { position: absolute; opacity: 0; pointer-events: none; }
.bundle__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #8b95a1; flex-shrink: 0; display: grid; place-items: center; }
.bundle.is-selected { border: 2px solid var(--primary); background: #eef2f8; }
.bundle.is-selected .bundle__radio { border-color: var(--primary); }
.bundle.is-selected .bundle__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.bundle__main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bundle__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); font-size: 15px; }
.bundle__row b { font-weight: 600; }
.bundle__tag { background: #e5e9ef; font-size: 12px; padding: 2px 8px; border-radius: 4px; color: #3c4653; }
.bundle__per { font-size: 12px; color: var(--muted); }
.bundle__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.bundle__price b { font-size: 18px; color: var(--ink); font-weight: 600; }
.bundle__price s { font-size: 12px; color: var(--muted); }
.bundle__badge {
  position: absolute; top: -10px; right: 14px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .8px; padding: 3px 9px; border-radius: 3px;
}
.gift {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 22px; padding: 8px 14px;
  background: var(--gray-bg); border-radius: 8px; font-size: 13px; color: var(--ink); font-weight: 600;
}
.gift__img { width: 38px; height: 26px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.gift__img svg { width: 100%; height: 100%; }
.gift__text { flex: 1; }
.gift__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.gift__price s { font-size: 11px; color: var(--muted); font-weight: 500; }
.details-link { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--ink); text-decoration: none; }
.details-link span { display: inline-block; transition: transform .2s; }
.details-link:hover span { transform: translateX(4px); }
@media (max-width: 899px) {
  .featured { grid-template-columns: 1fr; gap: 28px; }
  .featured__title { font-size: 28px; }
}

/* ---------- Best sellers ---------- */
.collection { padding-top: 36px; padding-bottom: 36px; }
.section-title { font-size: 31.2px; font-weight: 700; color: var(--ink); margin-bottom: 32px; letter-spacing: .78px; line-height: 1.3; }
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border-radius: 12.6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(2,9,18,.06); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 10px 28px rgba(15,23,42,.1); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 1; overflow: hidden; }
.card__media svg { width: 100%; height: 100%; transition: transform .5s; }
.card:hover .card__media svg { transform: scale(1.04); }
.card__content { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__heading { font-size: 16.9px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.card__heading a { text-decoration: none; }
.card__heading a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price { color: var(--ink); font-size: 16.8px; }
.card__add { margin-top: auto; background: none; border: 1px solid var(--ink); border-radius: 8px; padding: 10px; font-size: 14px; color: var(--ink); opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.card:hover .card__add, .card__add:focus { opacity: 1; }
.card__add:hover { background: var(--ink); color: #fff; }
@media (max-width: 989px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .card__add { opacity: 1; } }
@media (max-width: 749px) { .section-title { font-size: 24px; } .card__heading { font-size: 14.5px; } }

/* ---------- Image with text ---------- */
.iwt { background: #17222e; color: rgba(255,255,255,.75); padding: 36px 0; }
.iwt__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.iwt__media { aspect-ratio: 4 / 3; overflow: hidden; }
.iwt__media svg { width: 100%; height: 100%; }
.iwt__content { padding: 40px 60px; }
.iwt__heading { font-size: 52px; color: #fff; font-weight: 700; line-height: 1.15; margin-bottom: 22px; }
.iwt__text { font-size: 16.9px; color: #fff; font-weight: 400; line-height: 1.7; }
@media (max-width: 749px) {
  .iwt__grid { grid-template-columns: 1fr; }
  .iwt__content { padding: 32px 16px 8px; }
  .iwt__heading { font-size: 36px; }
}

/* ---------- Why people love ---------- */
.love { padding: 48px 0 32px; background: #fff; }
.love__title { text-align: center; font-size: 34px; font-weight: 800; color: var(--ink); margin: 0 20px 26px; line-height: 1.25; }
.af-carousel { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.af-viewport { overflow: hidden; padding: 6px 0 30px; }
.af-track { display: flex; gap: 18px; transition: transform .45s ease; }
.af-slide { flex: 0 0 320px; }
.af-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(15,23,42,.08); display: flex; flex-direction: column; height: 100%; }
.af-img { aspect-ratio: 9 / 10; overflow: hidden; }
.af-img svg { width: 100%; height: 100%; }
.af-body { padding: 18px 18px 20px; text-align: center; }
.af-body h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.af-body p { font-size: 14px; line-height: 1.55; color: #2b2f36; }
.af-nav { position: absolute; top: 45%; transform: translateY(-50%); width: 42px; height: 42px; border: none; background: transparent; color: #000; font-size: 34px; z-index: 5; display: grid; place-items: center; }
.af-prev { left: 8px; } .af-next { right: 8px; }
.art-tile { width: 100%; height: 100%; display: grid; place-items: center; background: var(--gray-bg); }
.art-tile--tall svg { height: 80%; width: auto; }
@media (min-width: 990px) {
  .af-carousel { padding: 0; }
  .af-nav { display: none; }
  .af-viewport { overflow: visible; }
  .af-track { transform: none !important; justify-content: center; transition: none; }
}
@media (max-width: 749px) { .love__title { font-size: 26px; } .af-carousel { padding: 0 40px; } .af-slide { flex: 0 0 260px; } }

/* ---------- Rich text / steps ---------- */
.rich { text-align: center; padding-bottom: 28px; padding-top: 24px; max-width: 900px; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.step h5 { font-size: 16.9px; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink); line-height: 1.7; }
.rich__note { margin-top: 22px; font-size: 14px; color: var(--ink); font-weight: 600; }

/* ---------- Reviews ---------- */
.rvs { max-width: 1080px; margin: 0 auto; padding: 40px 20px 60px; color: var(--primary); }
.rvh { text-align: center; margin-bottom: 28px; }
.overline { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); }
.agb { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 24px 32px; background: var(--gray-bg); border-radius: 16px; margin-bottom: 48px; }
.ags { display: flex; flex-direction: column; align-items: center; }
.bnum { font-size: 52px; font-weight: 900; line-height: 1; color: var(--primary); }
.str { display: flex; gap: 3px; margin: 6px 0 4px; }
.star { color: var(--accent); font-size: 18px; }
.rvc { font-size: 12px; color: var(--muted); font-weight: 500; }
.agd { width: 1px; height: 72px; background: var(--gray-mid); }
.rbs { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.rbr { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rbr > span:first-child { width: 26px; }
.btr { flex: 1; height: 6px; background: var(--gray-mid); border-radius: 3px; display: block; overflow: hidden; }
.bfi { display: block; height: 6px; background: var(--accent); border-radius: 3px; }
.rpc { width: 32px; text-align: right; }
.agb2s { display: flex; flex-direction: column; gap: 8px; }
.agb2 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--primary); }
.agbi { width: 28px; height: 28px; background: var(--primary); border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.rvtabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tbn { padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--gray-mid); background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); transition: all .2s; letter-spacing: 0; }
.tbn.active, .tbn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.rvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; margin-bottom: 40px; }
.rvc2 { background: #fff; border: 1.5px solid var(--gray-mid); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s; }
.rvc2:hover { box-shadow: 0 8px 24px rgba(24,34,46,.08); }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-av { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; letter-spacing: 0; }
.rv-name { font-weight: 700; font-size: 14px; color: var(--primary); }
.rv-meta { font-size: 11.5px; color: var(--muted); }
.rv-ver { color: #1f8a4c; font-weight: 600; }
.rv-stars { color: var(--accent); letter-spacing: 2px; }
.rv-title { font-size: 15px; font-weight: 800; color: var(--primary); line-height: 1.35; }
.rv-text { font-size: 13.5px; line-height: 1.65; color: #3c4653; letter-spacing: .2px; }
.rv-photos { display: flex; gap: 8px; }
.rv-photos span { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.rv-photos svg { width: 100%; height: 100%; }
.rv-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--gray-mid); font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-help { background: var(--gray-bg); border: 0; border-radius: 100px; padding: 5px 12px; font-size: 12px; color: var(--primary); font-weight: 600; letter-spacing: 0; }
.rv-help:disabled { background: var(--gray-mid); cursor: default; }
.rv-more { text-align: center; }
.rv-showing { margin-top: 12px; font-size: 12px; color: var(--muted); }
.rv-empty { color: var(--muted); }
@media (max-width: 749px) { .agd { display: none; } .agb { padding: 22px 18px; } .rvg { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(2,9,18,.08); padding: 48px 0 28px; font-size: 15px; }
.footer__heading { font-size: 18px; color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.footer__top a { color: var(--text); }
.footer__bottom { margin-top: 48px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; color: var(--text); }
.footer__policies { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.footer__policies a { text-decoration: none; }
.footer__policies a:hover { text-decoration: underline; }

/* ---------- Floating cart ---------- */
.float-cart { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); border: 0; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.float-cart__count { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center; border: 2px solid #fff; letter-spacing: 0; }

/* ---------- Drawers ---------- */
.overlay { position: fixed; inset: 0; background: rgba(2,9,18,.45); z-index: 50; }
.drawer, .menu {
  position: fixed; top: 0; bottom: 0; z-index: 60; width: min(420px, 100%); background: #fff;
  display: flex; flex-direction: column; transition: transform .35s ease;
}
.drawer { right: 0; transform: translateX(100%); width: min(520px, 100%); }
.menu { left: 0; transform: translateX(-100%); }
.drawer.is-open, .menu.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--gray-mid); }
.drawer__head h2 { font-size: 20px; color: var(--ink); font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--gray-mid); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--ink); }
.cart-empty { text-align: center; margin-top: 40px; color: var(--ink); font-size: 18px; }
.ci { display: flex; gap: 14px; }
.ci__img { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.ci__img svg { width: 100%; height: 100%; }
.ci__name { font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.35; }
.ci__price { font-size: 13px; margin: 2px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 6px; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 16px; color: var(--ink); }
.qty span { min-width: 24px; text-align: center; color: var(--ink); }
.menu__nav { display: flex; flex-direction: column; padding: 12px 24px; }
.menu__nav a { padding: 14px 0; font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gray-mid); }

/* ---------- Cart drawer (как на скрине оригинала) ---------- */
.cd-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--gray-mid); }
.cd-head h2 { font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: .5px; }
.cd-empty { flex: 1; display: grid; place-content: center; gap: 18px; text-align: center; color: var(--ink); font-size: 18px; }
.cd-empty .btn-primary { text-decoration: none; }

.cd-ship { padding: 12px 24px 8px; text-align: center; font-size: 13px; color: var(--ink); letter-spacing: .2px; }
.cd-bar { position: relative; height: 12px; background: #e9ebef; border-radius: 99px; margin: 10px 8px 0 0; }
.cd-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s ease; }
.cd-bar i { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #b8bec7; }
.cd-bar i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #b8bec7; }
.cd-bar i.is-done { border-color: var(--primary); }
.cd-bar i.is-done::after { background: var(--primary); }
.cd-goal { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 6px; color: #8a929c; font-size: 12.5px; font-weight: 600; }

.cd-body { flex: 1; overflow-y: auto; padding: 8px 24px 16px; display: flex; flex-direction: column; gap: 18px; }
.cl { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: start; }
.cl__img { width: 74px; height: 74px; border: 1px solid var(--gray-mid); border-radius: 8px; overflow: hidden; background: #fff; }
.cl__img > svg, .cl__img > img { width: 100%; height: 100%; }
.cl__name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: .3px; }
.cl__tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 8px; border-radius: 4px; background: #e3f6e8; color: #17924a; font-size: 11.5px; font-weight: 600; letter-spacing: .6px; }
.cl__tag--gift { background: #fff3d6; color: #9a6400; }
.cl__qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--gray-mid); border-radius: 6px; }
.cl__qty button { width: 34px; height: 32px; border: 0; background: none; font-size: 17px; color: var(--ink); }
.cl__qty button:hover { background: var(--gray-bg); }
.cl__qty span { min-width: 30px; text-align: center; font-size: 14px; color: var(--ink); border-left: 1px solid var(--gray-mid); border-right: 1px solid var(--gray-mid); line-height: 32px; }
.cl__nudge { display: block; margin-top: 8px; border: 0; border-radius: 3px; background: #17924a; color: #fff; font-size: 12.5px; font-weight: 500; padding: 5px 9px; letter-spacing: .2px; text-align: left; }
.cl__nudge:hover { background: #127a3d; }
.cl__right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.cl__right s { font-size: 14px; color: #9aa1aa; }
.cl__right b { font-size: 16px; color: var(--ink); }
.cl__save { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; background: #e3f6e8; color: #17924a; font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: .2px; }
.cl__del { margin-top: 8px; border: 0; background: none; color: var(--ink); padding: 4px; }
.cl__del:hover { color: #c0392b; }

.cd-up { padding: 12px 24px 16px; }
.cd-up h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: .3px; }
.up { display: flex; gap: 12px; padding: 12px; border-radius: 10px; background: #f1f2f5; }
.up__img { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; background: #fff; flex-shrink: 0; border: 1px solid var(--gray-mid); }
.up__img > svg, .up__img > img { width: 100%; height: 100%; }
.up__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.up__price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; font-size: 13.5px; }
.up__price b { color: var(--ink); }
.up__price s { color: #9aa1aa; }
.up__price span { background: #e3f6e8; color: #17924a; font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.up__add { border: 0; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 4px; }

.cd-foot { border-top: 1px solid var(--gray-mid); padding: 14px 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.prot { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px 12px; align-items: center; cursor: pointer; }
.prot__txt { display: flex; flex-direction: column; color: var(--ink); line-height: 1.3; }
.prot__txt b { font-size: 14.5px; }
.prot__txt small { font-size: 11.5px; color: #4b5563; letter-spacing: .1px; }
.prot__price { font-weight: 700; color: var(--ink); font-size: 14.5px; align-self: start; }
.switch { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: #c4c8ce; position: relative; cursor: pointer; transition: background .2s; align-self: start; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(16px); }
.cd-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.cd-chip { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: #eef0f3; border-radius: 4px; color: #6b7280; font-size: 11.5px; letter-spacing: .5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-row__v { font-weight: 500; }
.cd-total { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.cd-checkout { padding: 16px; border-radius: 6px; font-weight: 700; font-size: 14.5px; }
.cd-note { font-size: 12px; color: var(--muted); text-align: center; }
.cd-pay { display: flex; justify-content: center; gap: 6px; }
.cd-pay svg { width: 40px; height: 26px; }
@media (max-width: 480px) {
  .cd-head, .cd-ship, .cd-body, .cd-up, .cd-foot { padding-left: 16px; padding-right: 16px; }
  .cl { grid-template-columns: 62px 1fr auto; gap: 10px; }
  .cl__img { width: 62px; height: 62px; }
  .cl__name { font-size: 14px; }
}

/* Подарок на странице товара: неактивен, пока не выбран нужный набор */
.gift { transition: opacity .2s; }
.gift.is-locked { opacity: .55; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  width: min(560px, calc(100% - 32px)); background: #fff; padding: 22px 26px; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2); color: var(--ink); font-size: 13.5px; line-height: 1.45;
}
.cookie h3 { font-size: 17px; margin-bottom: 8px; }
.cookie__actions { display: flex; gap: 14px; margin-top: 18px; align-items: center; }
.link-btn { background: none; border: 0; text-decoration: underline; color: var(--ink); font-size: 13.5px; flex: 1; }
.btn-ghost { flex: 1; background: #fff; border: 1px solid var(--ink); padding: 12px; color: var(--ink); font-size: 14px; }
.btn-ghost:hover { background: var(--gray-bg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}
