/* ============================================================
   SharKot — redesign stylesheet
   Light neutral (cream) base + festive pastel accents.
   Drinkit-inspired: big radii, pill buttons, soft shadows,
   rounded geometric type.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* neutral base */
  --bg: #FAF6F0;
  --bg-2: #F3ECE2;
  --surface: #FFFFFF;
  --ink: #211C19;
  --ink-2: #5C544D;
  --muted: #948A80;
  --line: #ECE4D9;

  /* festive pastels (shared across themes) */
  --c-mint: #D2EFE0;
  --c-butter: #FFE9AE;
  --c-lilac: #EADBFA;
  --c-sky: #D6EAFB;
  --c-peach: #FFDFC9;
  --c-rose: #FFD7E3;

  /* accent (overridden per theme) */
  --primary: #18BFB0;
  --primary-press: #0FA89A;
  --on-primary: #FFFFFF;
  --primary-soft: #C8F2EC;
  --primary-ink: #0A7A70;

  /* radii */
  --rscale: 1;
  --r-card: calc(26px * var(--rscale));
  --r-tile: calc(28px * var(--rscale));
  --r-sm: calc(16px * var(--rscale));
  --r-pill: 999px;

  /* fonts */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* shadows */
  --sh-sm: 0 2px 8px rgba(60, 40, 25, .06);
  --sh-md: 0 12px 30px -12px rgba(60, 40, 25, .18);
  --sh-lg: 0 30px 60px -24px rgba(60, 40, 25, .28);

  --balloon-1: var(--primary);
  --balloon-2: var(--c-sky);
  --balloon-3: var(--c-butter);
}

/* ---------- Themes ---------- */
[data-theme="tiffany"] {
  --primary: #18BFB0;
  --primary-press: #0FA89A;
  --primary-soft: #C8F2EC;
  --primary-ink: #0A7A70;
  --bg: #F4FAF8;
  --bg-2: #E5F3EF;
  --line: #DBEDE7;
  --balloon-1: #18BFB0;
  --balloon-2: #BFECE4;
  --balloon-3: #FFD9A8;
}
[data-theme="konfetti"] {
  --primary: #FF3D7F;
  --primary-press: #E92668;
  --primary-soft: #FFDCEA;
  --primary-ink: #C81A57;
  --bg: #FBF6F4;
  --balloon-1: #FF3D7F;
  --balloon-2: #8FD3FF;
  --balloon-3: #FFD45E;
}
[data-theme="karamel"] {
  --primary: #F47B1B;
  --primary-press: #DD6A0E;
  --primary-soft: #FFE6C8;
  --primary-ink: #B85B05;
  --bg: #FAF3E8;
  --bg-2: #F1E6D3;
  --balloon-1: #F47B1B;
  --balloon-2: #BFE3C8;
  --balloon-3: #FFD17A;
}

[data-balloons="off"] .balloon-field { display: none; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.04; }
[data-display="onest"] h1,
[data-display="onest"] h2,
[data-display="onest"] h3,
[data-display="onest"] .wordmark { font-family: "Onest", system-ui, sans-serif; letter-spacing: -.02em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 7vw, 86px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--primary) 75%, transparent); }
.btn-primary:hover { background: var(--primary-press); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary-soft) 80%, var(--primary)); }

/* ---------- Header ---------- */
.topbar {
  font-size: 14px; color: var(--ink-2);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 42px; }
.topbar a:hover { color: var(--ink); }
.topbar .spacer { flex: 1; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #46c07b; display: inline-block; margin-right: 7px; vertical-align: middle; }
.topbar-hide { }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 76px; }

.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 27px;
  letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 2px;
  line-height: 1;
}
.wordmark b { color: var(--primary); font-weight: 700; }
.wordmark .balloon {
  width: 13px; height: 16px; border-radius: 50% 50% 50% 50%/55% 55% 45% 45%;
  background: var(--primary); display: inline-block; margin-left: 4px;
  position: relative; transform: translateY(-7px);
}
.wordmark .balloon::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 1.5px; height: 6px; background: var(--primary); transform: translateX(-50%); }

nav.main { display: flex; gap: 4px; margin-left: 8px; }
nav.main a { padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .18s, color .18s; }
nav.main a:hover { background: var(--surface); color: var(--ink); }
nav.main a.active { color: var(--ink); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
  transition: box-shadow .18s, transform .1s; position: relative;
}
.icon-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  background: var(--primary); color: var(--on-primary); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--bg); line-height: 1;
}
.phone-head { display: flex; flex-direction: column; line-height: 1.1; margin-right: 4px; }
.phone-head a { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.phone-head span { font-size: 12px; color: var(--muted); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 52px); }
.balloon-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.balloon-field i {
  position: absolute; border-radius: 50%/55% 55% 45% 45%; filter: blur(.3px);
  opacity: .5;
}
.bf1 { width: 220px; height: 260px; background: var(--balloon-1); left: -60px; top: 40px; opacity: .14; }
.bf2 { width: 150px; height: 180px; background: var(--balloon-2); right: 6%; top: 220px; opacity: .5; }
.bf3 { width: 90px; height: 108px; background: var(--balloon-3); right: 38%; top: -10px; opacity: .55; }
.bf4 { width: 120px; height: 140px; background: var(--c-lilac); left: 30%; bottom: -40px; opacity: .55; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); box-shadow: var(--sh-sm);
  padding: 8px 16px 8px 10px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px;
}
.eyebrow b { color: var(--primary-ink); }
.eyebrow-text { line-height: 1.3; }
.eyebrow .nb { white-space: nowrap; }
.eyebrow .pill-emoji { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.eyebrow .pill-emoji svg { width: 14px; height: 14px; color: var(--primary); }

.hero h1 { font-size: clamp(38px, 6vw, 70px); }
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .28em; color: var(--primary); opacity: .35; }
.hero p.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 30em; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* Обе hero-кнопки одинаковы в покое (ghost), при наведении заливаются цветом. */
.hero-cta .btn-ghost:hover { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .s b { font-family: var(--font-display); font-size: 26px; display: block; line-height: 1; }
.hero-stats .s span { font-size: 13.5px; color: var(--muted); }

/* hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border-radius: var(--r-tile);
  box-shadow: var(--sh-lg); padding: 16px; position: relative;
  rotate: 1.5deg;
}
.hero-card img { width: 100%; height: auto; aspect-ratio: 4/3.4; object-fit: cover; border-radius: calc(var(--r-tile) - 12px); background: var(--bg-2); }
.hero-banner img { aspect-ratio: 4/3; }
.hero-card .tag {
  position: absolute; left: 26px; bottom: 26px;
  background: var(--surface); border-radius: var(--r-pill);
  padding: 9px 16px; font-weight: 700; font-size: 14px; box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 8px;
}
.hero-card .tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.promo-chip {
  position: absolute; top: -18px; right: -10px; z-index: 3;
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-sm); padding: 12px 18px; box-shadow: var(--sh-md);
  rotate: -5deg; text-align: center;
}
.promo-chip b { font-family: var(--font-display); font-size: 19px; display: block; line-height: 1.1; }
.promo-chip span { font-size: 12px; opacity: .92; font-weight: 600; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 42px); }
.sec-head p { color: var(--ink-2); margin: 10px 0 0; font-size: 16px; }
.sec-head .link { font-weight: 700; color: var(--primary-ink); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sec-head .link:hover { gap: 10px; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat {
  position: relative; border-radius: var(--r-tile); padding: 20px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 12px;
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--sh-sm);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.cat h3 { position: relative; z-index: 2; font-size: 19px; font-family: var(--font-body); font-weight: 800; letter-spacing: -.01em; max-width: 7em; }
.cat .go { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; color: var(--ink); }
.cat img { position: absolute; right: -12px; bottom: -12px; width: 100px; height: 100px; object-fit: cover; border-radius: 22px; rotate: -6deg; box-shadow: var(--sh-md); z-index: 1; }
.cat-1 { background: var(--c-rose); }
.cat-2 { background: var(--c-sky); }
.cat-3 { background: var(--c-butter); }
.cat-4 { background: var(--c-mint); }
.cat-5 { background: var(--c-lilac); }
.cat-6 { background: var(--c-peach); }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--r-card); padding: 12px;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--sh-sm); min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.card .ph { position: relative; border-radius: calc(var(--r-card) - 8px); overflow: hidden; background: var(--bg-2); aspect-ratio: 1; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .ph img { transform: scale(1.05); }
.badge-hit {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--primary); color: var(--on-primary);
  font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: .04em;
}
[data-hits="off"] .badge-hit { display: none; }
.card .body { padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .title { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; text-wrap: pretty; }
.card .title:hover { color: var(--primary-ink); }
/* Цена и контрол «в корзину» — всегда в столбик: на одной строке широкий
   счётчик «− N +» наезжает на цену (особенно при цене 2 990 ₽). Отдельная
   строка фиксированной высоты держит габариты карточки неизменными при
   переключении «+» ↔ счётчик. */
.card .foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.card .foot .buy-control { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: flex-end; }
.card .foot .qty { width: 100%; justify-content: space-between; }
.card .price { font-family: var(--font-display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.add {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink);
  display: grid; place-items: center; flex-shrink: 0; transition: .18s; font-weight: 700;
  touch-action: manipulation;
}
.add:hover { background: var(--primary); color: var(--on-primary); transform: rotate(90deg); }
.add svg { width: 20px; height: 20px; }

/* контрол «в корзину / количество» на карточке */
.buy-control { display: inline-flex; flex-shrink: 0; }
.card .foot .qty { padding: 3px; background: var(--primary-soft); }
.card .foot .qty button { width: 40px; height: 40px; color: var(--primary-ink); }
.card .foot .qty span { min-width: 22px; color: var(--primary-ink); }
/* широкий вариант на странице товара */
.buy-control.buy-wide { display: block; }
.qty-wide { padding: 6px; justify-content: space-between; width: 100%; max-width: 220px; background: var(--primary-soft); }
.qty-wide button { width: 46px; height: 46px; font-size: 22px; color: var(--primary-ink); }
.qty-wide span { font-size: 18px; min-width: 40px; color: var(--primary-ink); }

/* ---------- USP strip ---------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp .u { background: var(--surface); border-radius: var(--r-card); padding: 26px 24px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 14px; }
.usp .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; }
.usp .ic svg { width: 26px; height: 26px; }
.usp b { font-size: 17px; font-weight: 800; }
.usp p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-single { max-width: 760px; }
.about-copy h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 8px; }
.about-copy .since { color: var(--primary-ink); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; display: block; }
.about-copy p { color: var(--ink-2); margin: 0 0 16px; max-width: 34em; }
.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: var(--r-tile); aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--sh-md); background: var(--surface); }
.about-badge {
  position: absolute; left: -16px; bottom: -16px; background: var(--surface);
  border-radius: var(--r-card); box-shadow: var(--sh-md); padding: 18px 22px; text-align: center;
}
.about-badge b { font-family: var(--font-display); font-size: 32px; color: var(--primary); display: block; line-height: 1; }
.about-badge span { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: var(--surface); border-radius: var(--r-card); padding: 26px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.post .meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.post h3 { font-family: var(--font-body); font-weight: 800; font-size: 18px; line-height: 1.32; text-wrap: pretty; }
.post:hover h3 { color: var(--primary-ink); }
.post p { margin: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.post .tag { align-self: flex-start; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: var(--r-pill); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--primary); color: var(--on-primary); border-radius: calc(var(--r-tile) + 6px); padding: clamp(34px, 5vw, 64px); }
.cta-banner h2 { font-size: clamp(26px, 3.6vw, 44px); color: var(--on-primary); max-width: 14em; }
.cta-banner p { margin: 14px 0 26px; opacity: .92; max-width: 32em; font-size: 16px; }
/* Обе CTA-кнопки одинаковы в покое (прозрачные с обводкой), при наведении заливаются белым. */
.cta-banner .btn-ghost { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.cta-banner .btn-ghost:hover { background: var(--on-primary); color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.cta-banner .b { position: absolute; border-radius: 50%/55% 55% 45% 45%; background: rgba(255,255,255,.13); }
.cta-banner .b1 { width: 220px; height: 260px; right: -40px; top: -60px; }
.cta-banner .b2 { width: 140px; height: 168px; right: 180px; bottom: -80px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #E9E1D8; padding-block: 56px 30px; margin-top: 10px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
footer.site .wordmark { color: #fff; margin-bottom: 16px; }
footer.site .wordmark b { color: var(--primary); }
footer.site p.desc { color: #B7ADA2; font-size: 14.5px; max-width: 24em; }
footer.site h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #9A8F84; margin: 0 0 16px; font-weight: 700; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
footer.site a { color: #D8CFC5; font-size: 15px; }
footer.site a:hover { color: #fff; }
footer.site .fphone { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
footer.site .hours { color: #B7ADA2; font-size: 14px; margin-top: 6px; }
footer.site .contact-icons a { color: #fff; }
footer.site .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; color: #8E8378; font-size: 13px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .scrim { position: absolute; inset: 0; background: rgba(33,28,25,.4); backdrop-filter: blur(2px); }
.mobile-menu .panel { position: absolute; top: 0; right: 0; width: min(86vw, 360px); height: 100%; background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh-lg); overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.mobile-menu.open .panel { transform: none; }
.mobile-menu .panel a.m { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 18px; }
.mobile-menu .panel a.m:hover { background: var(--surface); }
.mobile-menu .mclose { align-self: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  nav.main, .phone-head, .topbar { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .usp { grid-template-columns: 1fr; }
  .cat { min-height: 168px; }
  .cat img { width: 92px; height: 92px; }
  .card .price { font-size: 17px; }
  .add { width: 42px; height: 42px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-stats { gap: 20px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .cols { grid-template-columns: 1fr; }
}

/* ---------- Горизонтальные плашки (Доставка / Оплата) ---------- */
.info-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.info-row { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border-radius: var(--r-card); padding: 20px 24px; box-shadow: var(--sh-sm); }
.info-row .ir-title { flex: 0 0 210px; font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.35; }
.info-row p { margin: 0; flex: 1; color: var(--ink-2); line-height: 1.6; }

.pay-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pay-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r-card); padding: 18px 24px; box-shadow: var(--sh-sm); font-weight: 700; font-size: 17px; color: var(--ink); }
.pay-row .pay-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; }
.pay-row .pay-ic svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .info-row { flex-direction: column; gap: 6px; }
  .info-row .ir-title { flex-basis: auto; }
}

/* ---------- Юридические страницы (политика, согласие) ---------- */
.legal-doc { max-width: 760px; color: var(--ink-2); }
.legal-doc .doc-date { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.legal-doc h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.legal-doc p { margin: 0 0 14px; line-height: 1.65; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.65; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--primary-ink); text-decoration: underline; }
.legal-doc .doc-req { background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; box-shadow: var(--sh-sm); margin: 0 0 14px; }
.legal-doc .doc-req p { margin: 4px 0; }

/* На сенсорных экранах (iPhone и др.) :hover «залипает» после тапа —
   из-за этого карточки приподнимались, а кнопка «+» оставалась повёрнутой,
   и вёрстка визуально «ехала». Отключаем hover-трансформации для тача. */
@media (hover: none) {
  .cat:hover,
  .card:hover,
  .post:hover { transform: none; box-shadow: var(--sh-sm); }
  .card:hover .ph img { transform: none; }
  .add:hover { transform: none; background: var(--primary-soft); color: var(--primary-ink); }
  .icon-msg:hover { transform: none; filter: none; }
}

/* ============================================================
   Дополнения пересборки: крошки, страница товара, корзина,
   мессенджеры
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.crumbs a:hover { color: var(--primary-ink); }
.crumbs b { color: var(--ink); font-weight: 700; }
.crumbs span { opacity: .5; }

/* ---------- Messenger buttons ---------- */
.btn-tg { background: #2AABEE; color: #fff; }
.btn-tg:hover { background: #1f97d6; }
.btn-wa { background: #25D366; color: #0a3d20; }
.btn-wa:hover { background: #1fbe5a; }

/* ---------- Product page ---------- */
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-media { position: relative; background: var(--surface); border-radius: var(--r-tile); padding: 16px; box-shadow: var(--sh-md); }
.product-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: calc(var(--r-tile) - 12px); background: var(--bg-2); }
.product-media .badge-hit { position: absolute; top: 26px; left: 26px; z-index: 2; }
.product-buy h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--primary-ink); margin-bottom: 18px; }
.product-desc { color: var(--ink-2); margin: 0 0 24px; max-width: 36em; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.product-messengers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.product-messengers .pm-label { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.product-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.product-perks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.product-perks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft); box-shadow: inset 0 0 0 4px var(--primary); }
.related { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Cart page ---------- */
/* Атрибут hidden должен перекрывать display из правил ниже */
[hidden] { display: none !important; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart-empty { background: var(--surface); border-radius: var(--r-card); padding: 40px; text-align: center; box-shadow: var(--sh-sm); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cart-col { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 14px; box-shadow: var(--sh-sm); }
.cart-row img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-2); }
.cart-row-name { font-weight: 700; font-size: 15px; line-height: 1.3; display: block; }
.cart-row-name:hover { color: var(--primary-ink); }
.cart-row-price { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border-radius: var(--r-pill); padding: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font-size: 18px; font-weight: 700; color: var(--ink); display: grid; place-items: center; line-height: 1; box-shadow: var(--sh-sm); touch-action: manipulation; }
.qty button:hover { color: var(--primary); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; line-height: 1; }
.cart-row-sum { font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.cart-row-del { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 22px; line-height: 1; }
.cart-row-del:hover { color: var(--primary); background: var(--primary-soft); }

.cart-summary { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-md); position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total span { color: var(--ink-2); font-weight: 600; }
.cart-total b { font-family: var(--font-display); font-size: 28px; }
.order-form { display: flex; flex-direction: column; gap: 12px; }
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.order-form input, .order-form textarea, .order-form select { font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.order-form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2399a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.order-form input:focus, .order-form textarea:focus, .order-form select:focus { outline: none; border-color: var(--primary); }
/* Единый стиль подсказок (placeholder + предзаполненный «@» в Telegram). */
.order-form input::placeholder, .order-form textarea::placeholder { color: var(--muted); opacity: 1; }
.order-form input.is-hint { color: var(--muted); }
.order-hint { font-size: 13px; color: var(--muted); margin: 0; }
.order-submit { justify-content: center; font-size: 17px; padding: 16px 26px; }

/* Чек-бокс согласия на обработку персональных данных */
.consent { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.consent span { line-height: 1.4; }
.consent a { color: var(--primary-ink); text-decoration: underline; }

/* Прикрепление фото к заявке */
.lead-photo { gap: 8px; }
.lead-photo-text { font-weight: 600; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.lead-photo-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 10px 16px; border-radius: var(--r-sm); border: 1.5px dashed var(--line);
  background: var(--bg); color: var(--primary-ink); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: border-color .18s, background .18s; max-width: 100%;
}
.lead-photo-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.lead-photo-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.lead-photo-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Выключенная кнопка/ссылка (нет согласия) */
.btn:disabled,
.btn.is-disabled,
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; cursor: not-allowed; }
.order-channels { display: flex; gap: 10px; }
.order-channels .btn { flex: 1; justify-content: center; }
.cart-clear { align-self: flex-start; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; }
.cart-clear:hover { color: var(--primary); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: "img main del" "img qty sum"; gap: 10px 12px; }
  .cart-row img { width: 64px; height: 64px; grid-area: img; }
  .cart-row-main { grid-area: main; }
  .qty { grid-area: qty; justify-self: start; }
  .cart-row-sum { grid-area: sum; text-align: right; }
  .cart-row-del { grid-area: del; justify-self: end; }
}

/* ---------- Contacts ---------- */
.contact-card { background: var(--surface); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-md); }
.contact-card h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.contact-card > p { color: var(--ink-2); margin: 0 0 22px; }
.callback-form { max-width: 420px; }
.callback-form .btn { margin-top: 4px; }
.contact-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; margin: 26px 0; }
.contact-or::before, .contact-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-msg { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .15s ease, filter .2s ease; }
.icon-msg:hover { transform: translateY(-2px); filter: brightness(1.05); }
.icon-msg svg { width: 26px; height: 26px; }
.icon-call { background: var(--primary); }
.icon-tg { background: #2AABEE; }
.icon-wa { background: #25D366; }

/* ---------- Order success / loading ---------- */
.cart-success .cart-success-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--c-mint); color: #1f8a52; display: grid; place-items: center; }
.cart-success .cart-success-ic svg { width: 32px; height: 32px; }
.cart-success h3 { font-size: 24px; }
.callback-done { margin: 14px 0 0; padding: 16px 18px; border-radius: var(--r-sm); background: var(--c-mint); color: #1f6b43; font-weight: 600; }
.btn.is-loading { opacity: .7; pointer-events: none; position: relative; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; margin-left: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: sk-spin .7s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
