/* ============================================================
   Гардеробная — витрина (дизайн-код как у мульти-бренд стора)
   ============================================================ */
:root {
  --bg: #000000;
  --surface: #101012;
  --surface-2: #151517;
  --card: #121214;
  --card-hover: #171719;
  --line: #232327;
  --line-soft: #1a1a1d;
  --text: #ffffff;
  --muted: #a2a2ab;
  --dim: #6e6e78;
  --accent: #ff3b30;
  --sale: #ff2e93;
  --orange: #f5a200;
  --radius-lg: 28px;
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { min-height: var(--tgvh, 100vh); }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }
body.locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.hdr.scrolled { border-bottom-color: var(--line-soft); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 86px; padding-top: var(--safe-t); }

.logo { display: block; flex: 0 0 auto; }
.logo svg { display: block; height: 46px; width: auto; }
.logo-sub { display: block; font-size: 9.5px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; margin: 0 auto; }
.nav a { font-size: 15px; color: #f2f2f4; position: relative; padding: 4px 0; }
.nav a.active { color: var(--accent); }
.nav a:hover { opacity: .75; }

.hdr-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.acct {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 14px; transition: .16s;
}
.acct:hover { background: rgba(255,255,255,.07); }
.acct svg { width: 16px; height: 16px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); transition: .16s;
}
.icon-btn:hover { background: rgba(255,255,255,.07); }
.icon-btn svg { width: 18px; height: 18px; }
.badge-count {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--sale); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); place-items: center; }
.burger svg { width: 18px; height: 18px; }

/* ---------------- hero carousel ---------------- */
.hero { margin-top: 26px; }
.hero-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-card {
  position: relative; min-height: 216px; background: var(--card); border-radius: var(--radius-lg);
  padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; max-width: 62%; }
.hero-card p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 60%; line-height: 1.4; }
.hero-cta {
  align-self: flex-start; margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; border-radius: 999px; background: #1e1e21; font-size: 12.5px; color: #e9e9ee;
}
.hero-cta:hover { background: #26262a; }
.hero-tag {
  position: absolute; top: 16px; right: 16px; font-size: 10.5px;
  color: var(--muted); background: #1c1c1f; border-radius: 999px; padding: 3px 9px;
}
.hero-art {
  position: absolute; right: -14px; bottom: -14px; width: 46%; height: 90%;
  background-size: contain; background-repeat: no-repeat; background-position: bottom right;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.7));
}
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: #303035; transition: .2s; }
.hero-dots i.on { background: #fff; width: 16px; border-radius: 4px; }

/* ---------------- navigation tiles ---------------- */
.tiles { margin-top: 34px; }
.tiles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; grid-auto-rows: 1fr; }
.tile {
  text-decoration: none; color: inherit; cursor: pointer;
  position: relative; min-height: 330px; border-radius: 32px; padding: 24px; overflow: hidden;
  background: var(--card); display: flex; flex-direction: column; text-align: left;
}
.tile h3 { margin: 0 0 8px; font-size: 27px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.tile p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 86%; }
.tile.orange { background: var(--orange); color: #14100a; }
.tile.orange p { color: rgba(20,16,10,.72); }
.tile.light { background: #e8e8ea; color: #101012; }
.tile.light p { color: rgba(16,16,18,.62); }
.tile .tile-art { position: absolute; right: -20px; bottom: 46px; width: 74%; opacity: .95; }
.tile .tile-pct {
  position: absolute; right: 10px; bottom: 26px; font-size: 92px; font-weight: 700; line-height: 1;
  color: rgba(0,0,0,.16); letter-spacing: -.04em;
}
.tile .arrow {
  position: absolute; left: 24px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: #0b0b0c; display: grid; place-items: center; transition: transform .16s;
}
.tile.orange .arrow { background: #14100a; color: #f5a200; }
.tile .arrow svg { width: 16px; height: 16px; }
.tile:hover .arrow { transform: translateX(3px); }
.tile-art-img { background-size: contain; background-repeat: no-repeat; background-position: center bottom; height: 150px; }

/* ---------------- brands strip ---------------- */
.brands { margin-top: 40px; }
.brands-in {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 8px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow-x: auto; scrollbar-width: none;
}
.brands-in::-webkit-scrollbar { display: none; }
.brands-in span {
  font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7d7d86; white-space: nowrap; transition: color .2s;
}
.brands-in span:hover { color: #fff; }

/* ---------------- search ---------------- */
.searchbar { margin-top: 34px; position: relative; }
.searchbar input {
  width: 100%; height: 56px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line-soft); color: var(--text); padding: 0 52px 0 20px;
  font-size: 14.5px; outline: none; transition: border-color .16s;
}
.searchbar input::placeholder { color: var(--dim); }
.searchbar input:focus { border-color: #3a3a42; }
.searchbar svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--dim); }

/* ---------------- sections ---------------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: 29px; font-weight: 500; letter-spacing: -.02em; }
.sec-link {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 18px;
  border-radius: 999px; background: #1a1a1c; font-size: 13px; color: #e6e6eb; white-space: nowrap;
}
.sec-link:hover { background: #232326; }
.sec-link .circ { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.sec-link svg { width: 13px; height: 13px; }

.grid-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

/* ---------------- product card ---------------- */
.pcard {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--card); border-radius: var(--radius); padding: 10px 10px 14px;
  transition: background .16s, transform .16s;
}
.pcard:hover { background: var(--card-hover); }
.pcard:active { transform: scale(.99); }
.pcard-media {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1.12;
  background: #0a0a0b; margin-bottom: 12px;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #2c2c33; font-size: 30px; }
.pcard-sale {
  position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--sale); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px;
}
.pcard-video {
  position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(0,0,0,.62); color: #fff;
  font-size: 10px; padding: 3px 7px; border-radius: 7px; backdrop-filter: blur(4px);
}
.pcard-cat { font-size: 11.5px; color: var(--dim); margin-bottom: 3px; }
.pcard-title {
  font-size: 14px; font-weight: 500; line-height: 1.3; color: #f2f2f5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px; margin-bottom: 10px;
}
.pcard-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.pcard-size {
  min-width: 28px; height: 26px; padding: 0 8px; border-radius: 999px; background: #1d1d21;
  color: #cfcfd6; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center;
}
.pcard-price { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pcard-old { font-size: 11.5px; color: #5f5f68; text-decoration: line-through; display: block; text-align: right; }
.pcard-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.mini-circ {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #1c1c20; color: #e7e7ec; transition: .15s;
}
.mini-circ:hover { background: #26262b; }
.mini-circ.white { background: #fff; color: #0b0b0c; }
.mini-circ.white:hover { background: #e9e9ee; }
.mini-circ svg { width: 15px; height: 15px; }
.mini-circ.on { color: var(--sale); }

/* ---------------- duo banners ---------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card {
  position: relative; border-radius: var(--radius-lg); background: var(--card); min-height: 280px;
  padding: 30px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.duo-card h3 { margin: 0 0 10px; font-size: 23px; font-weight: 600; max-width: 70%; letter-spacing: -.01em; }
.duo-card p { margin: 0; font-size: 13px; color: var(--muted); max-width: 62%; line-height: 1.5; }
.duo-card .arrow {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #000;
  display: grid; place-items: center; align-self: flex-start; margin-top: 18px;
}
.duo-card .arrow svg { width: 16px; height: 16px; }
.duo-art { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; background-size: cover; background-position: center; opacity: .9; }
.duo-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--card), transparent 70%); }

/* ---------------- about ---------------- */
.about-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; align-items: center; }
.about-in h2 { margin: 0 0 18px; font-size: 44px; line-height: 1.02; font-weight: 600; letter-spacing: -.03em; }
.about-in p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 92%; }
.about-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px;
  border-radius: 999px; background: #fff; color: #0b0b0c; font-size: 13.5px; font-weight: 600; margin-top: 8px;
}
.about-art { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #0e0e10; }
.about-art img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; }
.stat { padding: 4px 28px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; max-width: 250px; }

/* ---------------- faq ---------------- */
.faq { margin-top: 64px; }
.faq-panel {
  background: var(--surface-2); border-radius: var(--radius-lg); padding: 44px 46px;
  display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 46px;
}
.faq-left h2 { margin: 0 0 12px; font-size: 29px; font-weight: 500; letter-spacing: -.02em; }
.faq-left p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 250px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left; font-size: 16.5px; font-weight: 500;
}
.faq-plus {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000;
  display: grid; place-items: center; transition: transform .2s;
}
.faq-plus svg { width: 13px; height: 13px; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.faq-a > div { padding: 0 46px 22px 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------------- footer ---------------- */
.footer { margin-top: 70px; background: #08080a; border-top: 1px solid var(--line-soft); padding: 46px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand svg { height: 44px; width: auto; margin-bottom: 8px; }
.foot-brand .since { font-size: 10px; color: var(--dim); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 13px; max-width: 260px; line-height: 1.6; }
.foot-col h4 { margin: 0 0 16px; font-size: 14.5px; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a, .foot-col li { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.foot-col a:hover { color: #fff; }
.foot-col .chev svg { width: 11px; height: 11px; color: var(--dim); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: #141416; display: grid; place-items: center; }
.socials a:hover { background: #1e1e22; }
.socials svg { width: 16px; height: 16px; }
.foot-legal {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; color: #7a7a83; font-size: 11.5px; line-height: 1.6;
}
.foot-legal b { color: #a4a4ad; font-weight: 500; display: block; margin-bottom: 3px; }
.foot-bottom {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #6a6a73; font-size: 11.5px; border-top: 1px solid var(--line-soft); padding-top: 16px;
}
.foot-bottom a:hover { color: #fff; }

/* ---------------- mobile bottom nav ---------------- */
.mnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none;
  background: rgba(8,8,10,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-soft);
  padding: 6px 6px calc(6px + var(--safe-b));
}
.mnav-in { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 0; min-height: 46px; color: #7b7b85; font-size: 10.5px; position: relative; touch-action: manipulation; }
.mnav button.on { color: #fff; }
.mnav svg { width: 20px; height: 20px; }
.mnav .badge-count { top: 0; right: 22%; }

/* ---------------- sheet ---------------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.on { display: block; }
.sheet-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.sheet.on .sheet-back { opacity: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0; margin: 0 auto; max-width: 560px;
  background: #0b0b0d; overflow-y: auto; padding-bottom: calc(16px + var(--safe-b));
  transform: translateY(16px); opacity: 0; transition: transform .22s, opacity .22s;
}
.sheet.on .sheet-panel { transform: none; opacity: 1; }
@media (min-width: 720px) {
  .sheet-panel { top: 4vh; bottom: 4vh; border-radius: 24px; border: 1px solid var(--line); }
}
.sheet-close {
  position: sticky; top: 10px; margin: 10px 0 0 10px; z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(16,16,18,.82); border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.sheet-close svg { width: 16px; height: 16px; }
.gallery { position: relative; margin-top: -48px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1.05; background: #08080a; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #2b2b31; font-size: 40px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.32); }
.gallery-dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.gallery-counter {
  position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: #e3e3e9;
  background: rgba(0,0,0,.55); padding: 3px 9px; border-radius: 999px;
}
.sheet-body { padding: 18px 20px 112px; }
.sheet-cat { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.sheet-title { margin: 8px 0 12px; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.sheet-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.sheet-price .now { font-size: 23px; font-weight: 600; }
.sheet-price .old { font-size: 14px; color: #6a6a73; text-decoration: line-through; }
.sheet-price .off { font-size: 12px; background: var(--sale); color: #fff; padding: 3px 8px; border-radius: 7px; font-weight: 700; }
.sheet-block-t { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px; }
.size-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.size-pick button {
  min-width: 48px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: #d8d8de; font-size: 13px; transition: .14s;
}
.size-pick button.on { background: #fff; border-color: #fff; color: #0b0b0c; font-weight: 600; }
.sheet-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; white-space: pre-line; margin-bottom: 18px; }
.sheet-actions {
  position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(11,11,13,0), #0b0b0d 30%);
  padding: 14px 20px calc(14px + var(--safe-b)); display: flex; gap: 10px;
}
.btn-primary {
  flex: 1; height: 52px; border-radius: 14px; background: #fff; color: #0b0b0c;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: #d5d5dc; }
.btn-ghost.on { color: var(--sale); border-color: #3a1d2a; }

/* ---------------- cart drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.on { display: block; }
.drawer-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: #0c0c0e;
  border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head h3 { margin: 0; font-size: 19px; }
.drawer-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; }
.cart-item img { width: 56px; height: 66px; object-fit: cover; border-radius: 8px; background: #08080a; }
.cart-item .ci-t { font-size: 13px; line-height: 1.3; }
.cart-item .ci-m { font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.cart-item .ci-p { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-x { color: var(--dim); font-size: 16px; padding: 4px; }
.cart-empty { color: var(--dim); font-size: 13.5px; text-align: center; padding: 40px 0; }
.drawer-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }

/* ---------------- cookie + to top ---------------- */
.cookie {
  position: fixed; left: 20px; bottom: calc(20px + var(--safe-b)); z-index: 60; max-width: 330px;
  background: rgba(16,16,18,.96); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  backdrop-filter: blur(10px); display: none;
}
.cookie.on { display: block; }
.cookie p { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; }
.cookie-btns .yes { background: #fff; color: #0b0b0c; font-weight: 600; }
.cookie-btns .no { background: #232327; color: #d8d8de; }

.totop {
  position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: 55;
  width: 40px; height: 40px; border-radius: 10px; background: #e8e8ea; color: #0b0b0c;
  display: none; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.totop.on { display: grid; }
.totop svg { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(30px + var(--safe-b)); transform: translate(-50%, 16px);
  background: #1c1c20; border: 1px solid #2c2c33; color: #f2f2f5; padding: 11px 18px; border-radius: 12px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 90; max-width: 88vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; color: var(--dim); padding: 44px 16px; font-size: 13.5px; grid-column: 1 / -1; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles-row { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 260px; }
}

@media (max-width: 860px) {
  .hdr-in { height: 68px; gap: 12px; }
  .nav, .acct { display: none; }
  .burger { display: grid; }
  .logo svg { height: 36px; }
  .wrap { padding: 0 16px; }
  .hero-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .hero-row::-webkit-scrollbar { display: none; }
  .hero-card { flex: 0 0 82%; scroll-snap-align: start; min-height: 200px; }
  .tiles-row { gap: 12px; }
  .tile { min-height: 220px; border-radius: 24px; padding: 18px; }
  .tile h3 { font-size: 21px; }
  .tile .arrow { left: 18px; bottom: 18px; width: 36px; height: 36px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sec { margin-top: 40px; }
  .sec-head h2 { font-size: 22px; }
  .sec-link { height: 34px; font-size: 12px; padding-left: 13px; }
  .duo { grid-template-columns: 1fr; }
  .about-in { grid-template-columns: 1fr; gap: 24px; }
  .about-in h2 { font-size: 32px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding: 16px 0 0; }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat b { font-size: 26px; }
  .faq-panel { grid-template-columns: 1fr; gap: 22px; padding: 26px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-legal { grid-template-columns: 1fr; gap: 12px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mnav { display: block; }
  body { padding-bottom: 62px; }
  .cookie { left: 12px; right: 12px; max-width: none; bottom: calc(76px + var(--safe-b)); }
  .totop { bottom: calc(76px + var(--safe-b)); right: 12px; }
}

@media (max-width: 420px) {
  .hero-card { flex-basis: 88%; }
  .pcard-title { font-size: 13px; }
}

/* ============================================================
   Полировка: контраст, арт в плитках, выравнивание шапки
   ============================================================ */

/* --- шапка: три колонки, меню по центру (только десктоп) --- */
@media (min-width: 861px) {
  .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
  .hdr-in .logo { justify-self: start; align-items: center; }
  .hdr-in .nav { justify-self: center; display: flex; gap: 26px; }
  .hdr-right { justify-self: end; }
}

/* --- hero: фото крупнее и читаемее --- */
.hero-card { position: relative; overflow: hidden; }
.hero-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%;
  background-size: cover; background-position: center;
  filter: brightness(1.22) contrast(1.06) saturate(1.06);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 26%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 26%, #000 62%);
  pointer-events: none;
}
.hero-card > div:first-of-type { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.hero-card { display: flex; align-items: stretch; }
.hero-tag { background: #ececee; color: #111114; font-weight: 600; }
.hero-cta {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); font-weight: 600; width: fit-content; margin-top: auto;
}
.hero-cta:hover { background: #fff; color: #0b0b0c; }

/* --- плитки: арт на фоне, меньше пустоты --- */
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile .tile-art {
  position: absolute; right: -6%; bottom: 0; width: 68%; height: 74%;
  background-size: contain; background-repeat: no-repeat; background-position: right bottom;
  opacity: .92; pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}
.tile.light .tile-art { opacity: .95; mix-blend-mode: multiply; }
.tile h3, .tile p { position: relative; z-index: 2; }

/* --- печенька: контрастные кнопки --- */
.cookie { background: rgba(22,22,26,.97); border-color: #2c2c33; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.cookie-btns .no { background: #2b2b32; color: #f2f2f5; border: 1px solid #3a3a44; }
.cookie-btns .yes { background: #f2f2f5; color: #0b0b0c; }

/* --- карточки: чуть ярче фото --- */
.pcard-media img { filter: brightness(1.06) contrast(1.02); }

/* --- второй проход полировки --- */
.hero-art { filter: brightness(1.42) contrast(1.08) saturate(1.1); }
.hero-card::after {
  content: ""; position: absolute; right: 6%; top: 12%; width: 42%; height: 76%;
  background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent 72%);
  pointer-events: none; z-index: 1;
}
.hero-card > div:first-of-type { z-index: 3; }
.hero-card h3 { min-height: 2.2em; display: flex; align-items: flex-end; }

.tile .tile-art { filter: brightness(1.32) contrast(1.05) drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.tile.light .tile-art { display: none; }
.tile .tile-stars { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 2px; color: #f5a200; position: relative; z-index: 2; }
.tile .tile-wheel {
  position: absolute; right: -8%; bottom: -12%; width: 62%; aspect-ratio: 1; opacity: .92;
  transform: rotate(-12deg); pointer-events: none;
}
.tile .tile-wheel svg { width: 100%; height: 100%; display: block; }
.tile.light .arrow { background: #101012; color: #f2f2f5; }
.tile.light .arrow svg { stroke: #f2f2f5; }
.tile.orange .arrow { background: #14100a; color: #f5a200; }

.hero-dots i { width: 7px; height: 7px; background: #4a4a52; }
.hero-dots i.on { width: 22px; background: #fff; }

/* точки карусели нужны только на мобиле */
@media (min-width: 861px) { .hero-dots { display: none; } }


/* ============================================================
   Telegram Mini App — адаптация
   ============================================================ */

/* приложение живёт внутри вьюпорта Telegram: без отскоков и подсветок */
html, body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body { min-height: var(--tgvh, 100vh); }
button, a, [role="button"] { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
input, textarea, select { -webkit-user-select: auto; user-select: auto; font-size: 16px; }

/* шапка не должна уезжать под системные элементы */
.hdr { top: 0; }
.hdr-in { padding-top: var(--safe-t); }

/* нижняя навигация с учётом safe-area и высоты Telegram */
.mnav { padding-bottom: calc(4px + var(--safe-b)); }
body { padding-bottom: calc(84px + var(--safe-b)); }
@media (max-width: 860px) { body { padding-bottom: calc(84px + var(--safe-b)); } }

/* якоря не ныряют под липкую шапку */
section[id], #catalog, #reviews, #about, #faq { scroll-margin-top: 84px; }
.totop, .cookie { bottom: calc(78px + var(--safe-b)); }

/* карточка товара: полная высота экрана Telegram, скролл только внутри */
.sheet-panel { max-height: calc(var(--tgvh, 100vh) - var(--safe-t)); }
.sheet-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* кнопки не «прыгают» при тапе */
.btn, .acct, .chip, .mnav button, .tile, .pcard { -webkit-transform: translateZ(0); }
.btn:active, .acct:active, .chip:active, .mnav button:active { transform: scale(.985); }
.btn:focus-visible, .acct:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* iOS: панель «поделиться»/клавиатура не ломают раскладку */
@supports (height: 100dvh) {
  :root { --tgvh-fallback: 100dvh; }
  html, body { min-height: var(--tgvh, 100dvh); }
}

/* очень узкий мини-апп: карточки в две колонки, но с меньшим зазором */
@media (max-width: 360px) {
  .grid-products { gap: 10px; }
  .pcard-title { font-size: 12px; }
  .wrap { padding: 0 12px; }
}


/* чипы категорий: не сжимаются, не переносят текст */
.chip {
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 78vw;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  line-height: 1;
  touch-action: manipulation;
}
#chips { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#chips::-webkit-scrollbar { display: none; }

/* баннер куки не должен лезть под нижнее меню и наезжать на контент */
.cookie { z-index: 46; }


/* кнопка «наверх» не должна залезать на карточки и навигацию */
@media (max-width: 860px) {
  .totop { right: 10px; bottom: calc(96px + var(--safe-b)); width: 40px; height: 40px; opacity: .92; }
}

/* ================= мини-апп: корзина, избранное, профиль, рулетка ================= */
.mnav-in { gap: 0; }
.mnav-in button { flex: 1 1 0; position: relative; }
.nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(26px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5c00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cart-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 12px;
  align-items: center;
  background: #171717;
  border-radius: 16px;
  padding: 10px;
}
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #1f1f1f; }
.cart-mid { min-width: 0; }
.cart-t { color: #fff; font-size: 14px; font-weight: 500; line-height: 1.25; }
.cart-s { color: #9a9a9a; font-size: 12px; margin-top: 3px; }
.cart-p { color: #fff; font-size: 14px; font-weight: 600; margin-top: 4px; }
.cart-del {
  width: 28px; height: 28px; border-radius: 50%;
  background: #262626; color: #bbb; border: 0; font-size: 12px; cursor: pointer;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #242424;
  color: #9a9a9a; font-size: 14px;
}
.cart-total-row b { color: #fff; font-size: 18px; }
.empty { color: #8b8b8b; font-size: 14px; padding: 26px 0; text-align: center; }
.btn-primary[disabled] { opacity: .45; }

.fav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }

.prof-box { margin-top: 14px; }
.prof-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.prof-ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #262626; }
.prof-ava.ph { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; }
.prof-name { color: #fff; font-size: 17px; font-weight: 600; }
.prof-id { color: #8b8b8b; font-size: 13px; margin-top: 2px; }
.prof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.prof-stats div { background: #171717; border-radius: 14px; padding: 12px; text-align: center; }
.prof-stats b { display: block; color: #fff; font-size: 20px; }
.prof-stats span { color: #8b8b8b; font-size: 12px; }
.prof-row {
  display: block; width: 100%; text-align: left;
  background: #171717; color: #fff; border: 0; border-radius: 14px;
  padding: 14px 16px; font-size: 15px; margin-bottom: 8px; cursor: pointer;
  text-decoration: none;
}
.prof-row.accent { background: #ff5c00; color: #fff; font-weight: 600; }

.wheel-wrap {
  position: relative; width: 260px; height: 260px; margin: 18px auto 8px;
}
.wheel-disc {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 6px #171717 inset, 0 12px 40px rgba(0,0,0,.6);
  will-change: transform;
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: #0b0b0b; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  border: 2px solid #2a2a2a; z-index: 2;
}
.wheel-pointer {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 16px solid #fff; z-index: 3;
}
.wheel-label {
  position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -12px;
  width: 24px; text-align: center; color: #fff; font-size: 12px; font-weight: 700;
  pointer-events: none;
}
.wheel-result { text-align: center; color: #b9b9b9; font-size: 14px; line-height: 1.4; margin-top: 14px; }
.wheel-result b { color: #ff5c00; font-size: 18px; letter-spacing: .06em; }
