/* ─────────────────────────────────────────────────────────────────
   Токени
   ───────────────────────────────────────────────────────────────── */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f2f5;
  --text: #1d1d1f;
  --text-2: #5f5f66;
  --text-3: #8a8a91;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.18);
  --accent: #4038e0;
  --accent-soft: rgba(64, 56, 224, 0.1);
  --good: #14804a;
  --warn: #b25c00;
  --bad: #c2271d;
  --solid: #1d1d1f;          /* основен бутон */
  --on-solid: #ffffff;
  --material: rgba(251, 251, 253, 0.72);
  --material-thick: rgba(255, 255, 255, 0.82);
  --material-edge: rgba(255, 255, 255, 0.6);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 48px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.1), 0 32px 80px rgba(0, 0, 0, 0.22);
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --nav-h: 3.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #000000;
    --surface: #131316;
    --surface-2: #1c1c21;
    --text: #f5f5f7;
    --text-2: #a9a9b2;
    --text-3: #7d7d86;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #9d97ff;
    --accent-soft: rgba(157, 151, 255, 0.16);
    --good: #45c486;
    --warn: #f0a23c;
    --bad: #ff6a5e;
    --solid: #f5f5f7;
    --on-solid: #0b0b0d;
    --material: rgba(10, 10, 12, 0.7);
    --material-thick: rgba(24, 24, 28, 0.8);
    --material-edge: rgba(255, 255, 255, 0.1);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 48px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.5), 0 32px 80px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #131316;
  --surface-2: #1c1c21;
  --text: #f5f5f7;
  --text-2: #a9a9b2;
  --text-3: #7d7d86;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #9d97ff;
  --accent-soft: rgba(157, 151, 255, 0.16);
  --good: #45c486;
  --warn: #f0a23c;
  --bad: #ff6a5e;
  --solid: #f5f5f7;
  --on-solid: #0b0b0d;
  --material: rgba(10, 10, 12, 0.7);
  --material-thick: rgba(24, 24, 28, 0.8);
  --material-edge: rgba(255, 255, 255, 0.1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.5), 0 32px 80px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ─────────────────────────────────────────────────────────────────
   Основа
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 100%/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 300ms ease, color 300ms ease;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; }
code { font: 0.875em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--solid); color: var(--on-solid); padding: 0.6rem 1rem; border-radius: 999px; }
.skip:focus { top: 0.6rem; }
.ic { flex: none; }

/* Типография: проследяването и междуредието зависят от размера */
.display { font-size: clamp(2.5rem, 7.2vw, 5.25rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
.headline { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 650; text-wrap: balance; }
.title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.022em; font-weight: 650; }
.title-sm { font-size: 1.375rem; letter-spacing: -0.014em; margin-block: 2.5rem 1rem; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.42; letter-spacing: -0.008em; color: var(--text-2); max-width: 36rem; text-wrap: pretty; }
.eyebrow { font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.02em; font-weight: 600; color: var(--accent); }
.sub { color: var(--text-2); margin-top: 0.35rem; }
.fine { font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0.004em; color: var(--text-3); }
.muted { color: var(--text-3); }

/* ─────────────────────────────────────────────────────────────────
   Бутони: реагират при натискане, не при пускане
   ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 1.25rem;
  border-radius: 999px; font-weight: 550; font-size: 0.9375rem; letter-spacing: -0.006em;
  white-space: nowrap; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-lg { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--solid); color: var(--on-solid); }
.btn-quiet { background: var(--surface-2); color: var(--text); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
@media (hover: hover) {
  .btn-primary:not([disabled]):hover { opacity: 0.86; }
  .btn-quiet:not([disabled]):hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--text) 8%); }
}

/* ─────────────────────────────────────────────────────────────────
   Навигация: полупрозрачен слой, съдържанието минава под него
   ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav::after {  /* ръб, който се появява само когато под лентата има съдържание */
  content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line);
  opacity: 0; transition: opacity 200ms ease;
}
.nav.scrolled::after { opacity: 1; }
.nav-in { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 650; letter-spacing: -0.015em; font-size: 1.0625rem; }
.brand-mark {
  width: 1.375rem; height: 1.375rem; border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ff7ac8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.nav-links { display: none; gap: 1.75rem; margin-inline: auto; font-size: 0.875rem; color: var(--text-2); }
.nav-links a { padding: 0.5rem 0; transition: color 120ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
@media (min-width: 46rem) { .nav-links { display: flex; } .nav-tools { margin-left: 0; } }
.tool {
  position: relative; display: inline-grid; place-items: center;
  min-width: 2.75rem; height: 2.75rem; border-radius: 999px; color: var(--text);
  transition: transform 160ms var(--ease-out), background-color 120ms ease;
}
.tool:active { transform: scale(0.92); transition-duration: 80ms; }
@media (hover: hover) { .tool:hover { background: var(--surface-2); } }
.tool-text { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text-2); }
.count {
  position: absolute; top: 0.3rem; right: 0.2rem;
  min-width: 1.1rem; height: 1.1rem; padding-inline: 0.28rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 1.1rem; text-align: center;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .count { color: #0b0b0d; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .count { color: #0b0b0d; } }

/* ─────────────────────────────────────────────────────────────────
   Начало
   ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 46rem; pointer-events: none;
  background:
    radial-gradient(38rem 24rem at 22% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(34rem 22rem at 78% 18%, color-mix(in srgb, #ff7ac8 16%, transparent), transparent 70%);
  filter: blur(8px);
}
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero-in { display: grid; gap: 1.25rem; justify-items: start; }
.hero-stack { display: none; }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero-stack { display: block; position: relative; height: 25rem; }
  .stack-card {
    position: absolute; width: 15rem; border-radius: var(--r-l); overflow: hidden;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  }
  .stack-card .art { aspect-ratio: 16 / 11; }
  .stack-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1rem 0.95rem; font-size: 0.9375rem; }
  .stack-meta strong { font-weight: 600; letter-spacing: -0.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stack-meta span { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.8125rem; }
  .stack-card.s0 { left: 2%; top: 9%; transform: rotate(-7deg); }
  .stack-card.s1 { right: 0; top: 0; transform: rotate(5deg); }
  .stack-card.s2 { left: 24%; bottom: 0; transform: rotate(-1.5deg); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); }
}
.hero .display { max-width: 15ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }

.trust { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding-block: 2rem; border-block: 1px solid var(--line); }
.trust-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.trust-ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.trust-item h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.006em; }
.trust-item p { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); margin-top: 0.15rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section:last-child, #faq { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.search {
  display: flex; align-items: center; gap: 0.5rem; width: min(100%, 19rem);
  padding: 0 0.9rem; height: 2.75rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  transition: box-shadow 120ms ease;
}
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); color: var(--text); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 1rem; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.25rem 1.5rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); font-size: 0.875rem; font-weight: 550;
  transition: transform 160ms var(--ease-out), background-color 120ms ease, color 120ms ease;
}
.chip:active { transform: scale(0.95); transition-duration: 80ms; }
.chip[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }

/* Карти с продукти */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-l); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, opacity 200ms ease;
}
.card:active { transform: scale(0.98); transition-duration: 90ms; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
  .card:hover:active { transform: translateY(-1px) scale(0.985); }
  .card:hover .go { transform: translateX(3px); color: var(--text); }
}
.card[hidden] { display: none; }
.card.is-out .art { filter: saturate(0.25); opacity: 0.7; }
.card-body { display: grid; gap: 0.3rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.card h3 { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.price { font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.go { color: var(--text-3); transition: transform 260ms var(--ease-out), color 160ms ease; }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); color: #1d1d1f; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* Визия на продукта. Без снимка се показва собствената плочка на сайта:
   име, етикет и голям инициал. Размерите са в cqw (спрямо ширината на
   плочката), за да изглежда еднакво в карта, продуктова страница и количка. */
.art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size;
  display: grid; align-content: end; justify-items: start; color: #fff;
  background:
    radial-gradient(95% 120% at 100% 110%, hsl(var(--h) 92% 58% / 0.62), transparent 62%),
    radial-gradient(70% 90% at 0% 0%, hsl(calc(var(--h) + 42) 88% 62% / 0.42), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 46% 17%), hsl(calc(var(--h) + 24) 52% 8%));
}
.art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-glyph {
  position: absolute; right: -3cqw; bottom: -16cqw; line-height: 1; user-select: none;
  font-size: 9rem; font-size: 62cqw; font-weight: 800; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.1);
}
.art-name {
  position: relative; margin: 0 6cqw 6cqw; max-width: 82%;
  font-size: 1.5rem; font-size: 9.5cqw; font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}
.art-name.long { font-size: 1.2rem; font-size: 7.4cqw; }
.art-tag {
  position: absolute; top: 5.5cqw; right: 6cqw; max-width: 70%; padding: 1.2cqw 2.8cqw; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15); font-size: 0.7rem; font-size: 3.3cqw; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* в много малка плочка (количката) остава само инициалът */
@container (max-width: 7.5rem) {
  .art-name, .art-tag { display: none; }
  .art-glyph { inset: 0; display: grid; place-items: center; font-size: 50cqw; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.94); }
}
.art.has-img { background: #0b0b0d; }
.art.has-img::after { display: none; }
.art-lg { aspect-ratio: 1; border-radius: 32px; box-shadow: var(--shadow-2); }
.art-lg.has-img { aspect-ratio: 16 / 10; border-radius: 28px; }
.product-art:has(.has-img) { max-width: 44rem; }

/* Наличност */
.stock { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; letter-spacing: 0.004em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--good); flex: none; }
.stock.low { color: var(--warn); } .stock.low .dot { background: var(--warn); }
.stock.out { color: var(--text-3); } .stock.out .dot { background: var(--text-3); }

.notice { padding: 1rem 1.15rem; border-radius: var(--r-m); background: var(--surface-2); color: var(--text-2); margin-block: 1rem; }
.notice-good { color: var(--good); } .notice-bad { color: var(--bad); }

/* Стъпки */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); margin-top: 1.75rem; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--r-l); padding: 1.4rem; box-shadow: 0 0 0 1px var(--line); }
.step-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); font-size: 0.875rem; font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.step h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.step p { color: var(--text-2); font-size: 0.9375rem; margin-top: 0.3rem; }

/* Въпроси */
.faq { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; font-weight: 550; font-size: 1.0625rem; letter-spacing: -0.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text-3); transition: transform 300ms var(--ease-out); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 1.25rem; max-width: 40rem; }

/* Долна част */
.footer { border-top: 1px solid var(--line); padding-block: 2.25rem 2.75rem; margin-top: 1rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.875rem; color: var(--text-2); }
.footer-links a { padding-block: 0.5rem; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.006em; color: var(--text-3); max-width: 44rem; }

/* ─────────────────────────────────────────────────────────────────
   Продукт
   ───────────────────────────────────────────────────────────────── */
.product-page { padding-block: 1.25rem 0; }
.backlink { display: inline-flex; align-items: center; gap: 0.2rem; min-height: 2.75rem; color: var(--text-2); font-size: 0.9375rem; margin-left: -0.3rem; }
.backlink:hover { color: var(--text); }
.product { display: grid; gap: 2rem 4rem; margin-top: 0.75rem; }
@media (min-width: 54rem) {
  .product { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: start; }
  .product-art { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}
.product-art { max-width: 30rem; width: 100%; justify-self: center; }
.product-info { display: grid; gap: 0.6rem; align-content: start; }
.product-info .headline { margin-block: 0.1rem 0.2rem; }
.single-plan { color: var(--text-2); }

.plans { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.plans legend { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; color: var(--text-2); margin-bottom: 0.6rem; }
.plan {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.1rem; min-height: 4rem; border-radius: var(--r-m); cursor: pointer;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform 160ms var(--ease-out), box-shadow 140ms ease, background-color 140ms ease;
}
.plan:active { transform: scale(0.985); transition-duration: 80ms; }
.plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--surface) 94%, var(--accent)); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan.is-out { cursor: not-allowed; opacity: 0.5; }
.plan.is-out input { cursor: not-allowed; }
.plan-main { display: grid; gap: 0.1rem; }
.plan-name { font-weight: 600; letter-spacing: -0.01em; }
.plan-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price s { color: var(--text-3); font-weight: 400; margin-right: 0.35rem; }

.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.qty { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 0.2rem; }
.qty-btn { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; transition: transform 160ms var(--ease-out), background-color 120ms ease; }
.qty-btn:active { transform: scale(0.88); transition-duration: 80ms; background: var(--surface); }
.qty-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.qty input { width: 2.75rem; text-align: center; border: 0; background: none; font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; outline-offset: 0; }
.total { display: grid; justify-items: end; line-height: 1.2; }
.total span { font-size: 0.8125rem; color: var(--text-2); }
.total strong { font-size: 1.625rem; letter-spacing: -0.022em; font-weight: 650; font-variant-numeric: tabular-nums; }
.actions { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 0.75rem; }
.notes { display: grid; gap: 0.7rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.9375rem; }
.notes li { display: flex; gap: 0.7rem; align-items: flex-start; }
.notes .ic { margin-top: 0.15rem; color: var(--text-3); }
.desc { margin-top: 1.25rem; color: var(--text-2); max-width: 38rem; }
.more { padding-bottom: clamp(3rem, 7vw, 5rem); }
.empty-page { display: grid; gap: 1rem; justify-items: start; padding-block: clamp(5rem, 14vw, 10rem); }

/* ─────────────────────────────────────────────────────────────────
   Количка: плаващ лист. Позицията се управлява от JS чрез --off
   ───────────────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.42); opacity: var(--p, 0); touch-action: none; }
.sheet {
  /* --tx/--ty: влачене; --s, --o, --blur: появяване от бутона на количката */
  --tx: 0px; --ty: 0px; --s: 1; --o: 1; --blur: 36px;
  position: fixed; z-index: 60; display: flex; flex-direction: column;
  background: var(--material-thick);
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur));
  backdrop-filter: saturate(180%) blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--material-edge), 0 0 0 1px var(--line), var(--shadow-3);
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--s));
  opacity: var(--o);
  will-change: transform, opacity;
  touch-action: pan-y;
  /* мобилен: лист отдолу */
  inset: auto 0 0 0; max-height: min(88dvh, 44rem); border-radius: 28px 28px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.dragging { user-select: none; cursor: grabbing; }
.sheet[hidden], .scrim[hidden] { display: none; }
@media (min-width: 46rem) {
  .sheet { inset: 0.75rem 0.75rem 0.75rem auto; width: 26rem; max-height: none; border-radius: 28px; padding-bottom: 0; }
  .grabber { display: none; }
}
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0.75rem 0.5rem 1.4rem; touch-action: none; user-select: none; }
.sheet-head h2 { font-size: 1.375rem; letter-spacing: -0.018em; font-weight: 650; }
.grabber { position: absolute; top: 0.5rem; left: 50%; width: 2.25rem; height: 0.3rem; margin-left: -1.125rem; border-radius: 999px; background: var(--line-strong); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1.4rem 1rem; min-height: 9rem; }
.sheet-foot { display: grid; gap: 0.8rem; padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.sum { display: flex; align-items: baseline; justify-content: space-between; color: var(--text-2); }
.sum strong { color: var(--text); font-size: 1.375rem; letter-spacing: -0.018em; font-variant-numeric: tabular-nums; }
.cart-empty, .cart-done { display: grid; gap: 1rem; justify-items: center; text-align: center; padding-block: 2.5rem; color: var(--text-2); }
.cart-empty[hidden], .cart-done[hidden], .sheet-foot[hidden] { display: none; }
.cart-done h3 { color: var(--text); font-size: 1.25rem; letter-spacing: -0.015em; }
.done-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.cart-list { display: grid; }
.cart-item { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 0.25rem 0.9rem; align-items: center; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .art { width: 3.5rem; aspect-ratio: 1; border-radius: 14px; grid-row: span 2; }
.ci-name { font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.ci-name small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--text-2); }
.ci-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ci-tools { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; }
.ci-tools .qty { padding: 0.1rem; }
.ci-tools .qty-btn { width: 2.25rem; height: 2.25rem; }
.ci-tools .qty output { min-width: 1.75rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ci-remove { min-height: 2.75rem; padding-inline: 0.5rem; font-size: 0.8125rem; color: var(--text-2); }
.ci-remove:hover { color: var(--bad); }
.ci-warn { grid-column: 2 / -1; font-size: 0.8125rem; color: var(--bad); }

.toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 70;
  max-width: min(92vw, 30rem); padding: 0.8rem 1.2rem; border-radius: 16px;
  background: var(--solid); color: var(--on-solid); font-size: 0.9375rem; font-weight: 500; text-align: center;
  box-shadow: var(--shadow-2);
  transform: translate(-50%, 0); transition: opacity 220ms ease, transform 320ms var(--ease-out);
}
.toast[hidden] { display: block; opacity: 0; transform: translate(-50%, 1rem) scale(0.96); pointer-events: none; }

/* ─────────────────────────────────────────────────────────────────
   Админ
   ───────────────────────────────────────────────────────────────── */
.admin, .admin-login { padding-block: 2.5rem 5rem; }
.admin-login { max-width: 24rem; }
.login { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.login label { font-size: 0.875rem; font-weight: 600; }
.field { height: 3rem; padding-inline: 1rem; border-radius: var(--r-s); border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 1rem; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-actions { display: flex; gap: 0.6rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stat { display: grid; gap: 0.2rem; padding: 1.25rem; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.stat span { font-size: 0.8125rem; color: var(--text-2); }
.stat strong { font-size: 1.875rem; letter-spacing: -0.024em; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat small { font-size: 0.8125rem; color: var(--text-3); }
.checks { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.checks li { display: flex; gap: 0.6rem; align-items: center; }
.checks .ok .ic { color: var(--good); } .checks .todo { color: var(--text-2); } .checks .todo .ic { color: var(--text-3); }
.mode-form { display: grid; gap: 0.75rem; justify-items: start; margin-bottom: 0.75rem; }
.radio { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.radio input { margin: 0.3rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.radio span { display: grid; }
.radio small { color: var(--text-2); font-size: 0.875rem; }
.img-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin-top: 1rem; }
.img-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); }
.img-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem 1rem 1rem; }
.img-title { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.img-title strong { min-width: 0; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.src { flex: none; font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
.src-own { color: var(--good); }
.img-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; justify-items: start; }
.file { width: 100%; min-width: 0; font-size: 0.8125rem; color: var(--text-2); }
.file::file-selector-button { margin-right: 0.6rem; min-height: 2.25rem; padding: 0 0.9rem; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; }
.btn-sm { min-height: 2.5rem; padding-inline: 1rem; font-size: 0.875rem; }
.table-wrap { overflow-x: auto; border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); background: var(--surface); margin-bottom: 0.6rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .bad { color: var(--bad); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────
   Достъпност
   ───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .sheet { transform: none !important; -webkit-backdrop-filter: saturate(180%) blur(36px) !important; backdrop-filter: saturate(180%) blur(36px) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .sheet, .badge { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { background: var(--bg); }
  .sheet { background: var(--surface); }
  .badge { background: #fff; }
}
@media (prefers-contrast: more) {
  :root { --line: var(--line-strong); --text-2: var(--text); --text-3: var(--text); }
  .nav, .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav::after { opacity: 1; }
  .card, .step, .plan { box-shadow: 0 0 0 1.5px var(--text); }
}
