/* ===========================================================
   МИСТЕРБОБР.РФ — стили
   Палитра: природа у реки — вода + зелень (спокойствие),
   янтарь (резцы бобра) как тёплый акцент CTA
   Шрифты: Unbounded (дисплей), Manrope (текст)
   =========================================================== */

:root {
  --ink:    #1E2A24;   /* тёмный лесной текст */
  --ink-2:  #48604F;   /* приглушённый зелёно-серый */
  --paper:  #F0F8F2;   /* светлая зелень у воды — фон */
  --card:   #FDFFFB;   /* поверхность карточек */
  --sand:   #CBDFD0;   /* границы, разделители */
  --amber:  #E8821E;   /* акцент / CTA (резцы бобра) */
  --amber-d:#C96A0E;
  --bark:   #6B4A2B;   /* дерево */
  --river:  #1F6F6B;   /* речная хвоя / ссылки */
  --river-d:#155350;
  --water:  #BFE0E8;   /* вода */
  --good:   #2E7D32;
  --bad:    #B3261E;

  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(24, 52, 43, .12);
  --shadow-s: 0 4px 14px rgba(24, 52, 43, .09);
  --maxw: 1180px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* Природная декорация: река + деревья (фиксированный слой под контентом) */
.scenery { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.scenery svg { width: 100%; height: 100%; display: block; }

/* Живая река: бегущие штрихи течения + покачивание ряби */
@keyframes bobr-flow { to { stroke-dashoffset: -212; } }
.scenery .flow path { animation: bobr-flow 7s linear infinite; }
.scenery .flow path:nth-child(2) { animation-duration: 9.5s; }
@keyframes bobr-ripple { 0%,100% { transform: translateX(0); opacity:.6; } 50% { transform: translateX(10px); opacity:.35; } }
.scenery .ripples path { animation: bobr-ripple 4.5s ease-in-out infinite; }
.scenery .ripples path:nth-child(2n) { animation-delay: 1.4s; }
.scenery .ripples path:nth-child(3n) { animation-delay: 2.6s; }

/* Птички: стайка пролетает через экран, потом пауза */
@keyframes bobr-birds1 {
  0%   { transform: translate(-120px, 40px); }
  55%  { transform: translate(115vw, -30px); }
  100% { transform: translate(115vw, -30px); }
}
@keyframes bobr-birds2 {
  0%, 30% { transform: translate(-140px, 0); }
  85%  { transform: translate(118vw, 50px); }
  100% { transform: translate(118vw, 50px); }
}
.scenery .birds--1 { animation: bobr-birds1 38s linear infinite; }
.scenery .birds--2 { animation: bobr-birds2 52s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .scenery .flow path, .scenery .ripples path, .scenery .birds--1, .scenery .birds--2 { animation: none; }
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); text-wrap: balance; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: var(--river); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-d);
  display: inline-flex; align-items: center; gap: .5em;
  margin-bottom: .8em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); display: inline-block; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(191,224,232,.30)); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s; 
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: #fff; box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--amber-d); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--sand); }
.btn--ghost:hover { border-color: var(--bark); }
.btn--river { background: var(--river); color: #fff; }
.btn--river:hover { background: var(--river-d); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(240, 249, 243, .85);
  border-bottom: 1px solid var(--sand);
}
.header__row { display: flex; align-items: center; gap: 18px; min-height: 68px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand canvas { width: 44px; height: 44px; display: block; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .14em; color: var(--ink-2); text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; column-gap: 18px; margin-left: auto; justify-content: flex-end; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; letter-spacing: .01em; padding: 2px 0; border-bottom: 2px solid transparent; transition: .15s; }
.nav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--amber); }
@media (max-width: 1240px) { .nav { column-gap: 14px; } .nav a { font-size: .85rem; } }
.header .btn { padding: .6em 1.2em; white-space: nowrap; flex-shrink: 0; }
.cart-btn { flex-shrink: 0; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 .accent { color: var(--amber); }
.hero__subtitle { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.chip svg { color: var(--river); flex: none; }
.hero__stage {
  aspect-ratio: 1 / 1; border-radius: 28px;
  background:
    radial-gradient(120% 120% at 50% 10%, #fff 0%, var(--card) 45%, #efe3cd 100%);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero__stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.hero__stage canvas:active { cursor: grabbing; }
.hero__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,253,248,.9); border: 1px solid var(--sand);
  border-radius: 999px; padding: .5em 1em; font-size: .82rem; font-weight: 700;
  font-family: var(--font-display); color: var(--bark); display: flex; align-items: center; gap: 8px;
}
.hero__badge::before { content:""; width:8px;height:8px;border-radius:50%;background:var(--amber); }

/* ---------- Кастомайзер (примерочная) ---------- */
.tryon__grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #fff, #efe3cd);
  border: 1px solid var(--sand); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; min-height: 360px;
}
.stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.stage canvas:active { cursor: grabbing; }
.stage__hint {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,253,248,.85); border: 1px solid var(--sand);
  border-radius: 999px; padding: .4em .9em; font-size: .78rem; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; pointer-events: none;
}
.stage__price {
  position: absolute; right: 14px; bottom: 14px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: .55em .95em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.stage__price small { display:block; font-family: var(--font-body); font-weight:600; font-size:.62rem; opacity:.7; letter-spacing:.1em; text-transform:uppercase; }
.stage__msg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:24px; pointer-events:none; }
.stage__msg span { max-width:32ch; color:var(--ink-2); font-weight:600; font-size:.95rem; line-height:1.5; background:rgba(240,249,243,.88); padding:12px 16px; border-radius:14px; }

.panel { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s); }
.panel + .panel { margin-top: 18px; }
.panel__label { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }

.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tab {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: .7em .5em; border-radius: var(--radius-s); border: 2px solid var(--sand);
  background: #fff; color: var(--ink-2); cursor: pointer; transition: .15s; text-align: center;
}
.tab:hover { border-color: var(--bark); color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Зоны печати */
.tabs--zones .tab { position: relative; }
.tab--zone small { display: block; font-size: .68rem; font-weight: 600; opacity: .75; margin-top: 2px; }
.tab--zone.has-print::after {
  content: ""; position: absolute; top: 7px; right: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 2px #fff;
}
.tab--zone.is-active.has-print::after { box-shadow: 0 0 0 2px var(--ink); }
.zone-hint { font-size: .8rem; color: var(--ink-2); margin: 10px 0 0; }
.price-breakdown {
  margin-top: 10px; font-size: .86rem; color: var(--ink-2);
  background: rgba(191,224,232,.28); border: 1px dashed var(--sand);
  border-radius: 10px; padding: 8px 12px; line-height: 1.5;
}
.price-breakdown b { color: var(--ink); font-size: .95rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(0,0,0,.12); box-shadow: inset 0 0 0 2px #fff;
  transition: transform .12s; position: relative;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { outline: 3px solid var(--amber); outline-offset: 2px; }
.swatch--custom { display: grid; place-items: center; background: conic-gradient(red, orange, yellow, green, cyan, blue, magenta, red); color:#fff; }
.swatch--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.uploader {
  border: 2px dashed var(--sand); border-radius: var(--radius-s);
  padding: 18px; text-align: center; cursor: pointer; transition: .15s; background: #fff;
}
.uploader:hover, .uploader.is-drag { border-color: var(--amber); background: #fff8ef; }
.uploader input { display: none; }
.uploader__icon { color: var(--amber); margin-bottom: 6px; }
.uploader small { color: var(--ink-2); }
.uploader__file { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; font-size:.85rem; }
.uploader__file button { background:none; border:0; color:var(--bad); cursor:pointer; font-weight:700; }

.control { margin-top: 14px; }
.control label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.control input[type=range] { width: 100%; accent-color: var(--amber); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: .75em .9em; border: 1.5px solid var(--sand); border-radius: var(--radius-s);
  font: inherit; background: #fff; color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); }
.field textarea { resize: vertical; min-height: 72px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Каталог ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4/3; background: linear-gradient(135deg, #efe3cd, #fff); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .placeholder { color: var(--bark); opacity: .5; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; }
.card__desc { color: var(--ink-2); font-size: .92rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-s); }
.svc__num { font-family: var(--font-display); color: var(--amber); font-weight: 700; font-size: .9rem; }
.svc h3 { margin: 10px 0 6px; }
.svc p { color: var(--ink-2); font-size: .92rem; margin-bottom: 12px; }
.svc__price { font-family: var(--font-display); font-weight: 700; color: var(--river); }

/* ---------- Гарантии ---------- */
.guarantees { background: linear-gradient(160deg, #14403C, #0F2E2B); color: #EAF4EE; border-radius: 24px; padding: clamp(28px, 5vw, 52px); }
.guarantees h2 { color: #fff; }
.guarantees .lead { color: #d8c9b0; }
.glist { display: grid; gap: 14px; margin-top: 22px; }
.gitem { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-s); }
.gitem__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.gitem p { margin: 0; font-size: .95rem; color: #ece0cc; }

/* ---------- Контакты / футер ---------- */
.footer { background: var(--bark); color: #f2e7d6; padding: 48px 0 28px; margin-top: 40px; }
.footer a { color: #ffd9a8; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 12px; }
.footer p, .footer li { color: #e2d3bd; font-size: .92rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .82rem; color: #cdb99c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Модалка заказа ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(34,26,18,.55); backdrop-filter: blur(3px); }
.modal__card { position: relative; background: var(--paper); border-radius: 22px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); padding: 26px; }
.modal__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink-2); line-height: 1; }
.modal__summary { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius-s); padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 14px; align-items: center; }
.modal__summary img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background:#fff; border:1px solid var(--sand); }
.modal__summary .t { font-weight: 700; font-family: var(--font-display); }
.modal__summary .s { font-size: .85rem; color: var(--ink-2); }
.modal__total { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.pay-toggle { display: flex; gap: 10px; margin: 16px 0; }
.pay-opt { flex: 1; border: 2px solid var(--sand); border-radius: var(--radius-s); padding: 12px; cursor: pointer; text-align: center; font-weight: 600; font-size: .9rem; transition: .15s; }
.pay-opt.is-active { border-color: var(--amber); background: #fff8ef; }
.pay-opt small { display: block; font-weight: 600; color: var(--ink-2); font-size: .78rem; margin-top: 2px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); color: #fff; padding: .9em 1.4em; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); z-index: 200; transition: transform .3s; max-width: 90vw; text-align: center; }
.toast.is-show { transform: translateX(-50%) translateY(0); }
.toast--bad { background: var(--bad); }
.toast--good { background: var(--good); }

.webgl-fallback { display: grid; place-items: center; height: 100%; color: var(--ink-2); text-align: center; padding: 20px; font-size: .9rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 460px; margin: 0 auto; order: -1; }
  .tryon__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--sand); padding: 14px 22px; gap: 14px; }
  .nav.is-open { display: flex; }
  .burger { display: block; }
  .header .btn--header { display: none; }
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
}

/* ---------- Доступность ---------- */
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ===========================================================
   АДМИН-ПАНЕЛЬ
   =========================================================== */
.admin-body { background: var(--paper); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.admin-login__card { background: var(--card); border: 1px solid var(--sand); border-radius: 22px; padding: 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.admin-login__card h1 { font-size: 1.5rem; }

.admin-top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; }
.admin-top__row { display: flex; align-items: center; gap: 16px; height: 60px; }
.admin-top__row .brand { color: #fff; }
.admin-top__row .brand small { color: #cbb89c; }
.admin-tabs { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.admin-tab { background: rgba(255,255,255,.08); color: #f0e6d6; border: 0; padding: .55em 1em; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; }
.admin-tab.is-active { background: var(--amber); color: #fff; }

.admin-wrap { max-width: 980px; margin: 0 auto; padding: 28px 22px 80px; }
.admin-banner { background: #fff3cd; border: 1px solid #ffe08a; color: #7a5b00; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 20px; font-size: .92rem; }
.admin-section { display: none; }
.admin-section.is-active { display: block; }

.acard { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-s); }
.acard h2 { font-size: 1.25rem; margin-bottom: 4px; }
.acard__hint { color: var(--ink-2); font-size: .88rem; margin-bottom: 16px; }

.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .agrid { grid-template-columns: 1fr; } }

.repeater-item { border: 1px solid var(--sand); border-radius: var(--radius-s); padding: 16px; margin-bottom: 14px; background: #fff; position: relative; }
.repeater-item .del { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--bad); cursor: pointer; font-weight: 700; font-size: .85rem; }

.save-bar { position: sticky; bottom: 0; background: rgba(246,239,226,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--sand); padding: 14px 0; margin-top: 10px; display: flex; gap: 12px; align-items: center; }

.orders-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.orders-table th, .orders-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.orders-table th { font-family: var(--font-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.badge { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge--new { background: #e3f0ff; color: #1c5fb3; }
.badge--paid { background: #def5e2; color: #1d6b2a; }
.badge--in_work { background: #fff0d6; color: #8a5a00; }
.badge--done { background: #e8e8e8; color: #444; }
.badge--cancelled { background: #fde2e0; color: #9c2218; }
.orders-table select { padding: .35em; border: 1px solid var(--sand); border-radius: 8px; font: inherit; }
.orders-table a { font-weight: 600; }

/* ============ Корзина ============ */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--sand); background: #fff; color: var(--ink); cursor: pointer; margin-left: 10px; transition: .15s; }
.cart-btn:hover { border-color: var(--amber); color: var(--amber-d); }
.cart-btn__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--amber); color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.cart-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cart-empty { color: var(--ink-2); font-size: .92rem; background: rgba(191,224,232,.25); border-radius: 10px; padding: 14px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto auto auto; gap: 10px; align-items: center; border: 1px solid var(--sand); border-radius: 12px; padding: 10px; background: #fff; }
.cart-item__thumb img, .cart-item__ph { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.cart-item__title { font-weight: 700; font-size: .92rem; }
.cart-item__meta { font-size: .78rem; color: var(--ink-2); }
.cart-item__qty { display: flex; align-items: center; gap: 4px; }
.cart-item__qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--sand); background: #fff; cursor: pointer; font-weight: 700; }
.cart-item__qty input { width: 52px; text-align: center; border: 1px solid var(--sand); border-radius: 8px; padding: 4px; font: inherit; }
.cart-item__sum { text-align: right; font-weight: 700; font-size: .92rem; min-width: 82px; }
.cart-item__sum small { display: block; font-weight: 600; color: var(--ink-2); font-size: .7rem; }
.cart-item__del { border: none; background: none; color: var(--bad); cursor: pointer; font-size: 1rem; padding: 4px; }
.cart-totals { border-top: 1px dashed var(--sand); padding-top: 10px; }
.cart-line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-2); padding: 3px 0; }
.cart-line--disc { color: var(--good); font-weight: 700; }
.cart-line--hint { font-size: .8rem; }
.cart-line--total { font-weight: 800; color: var(--ink); font-size: 1.08rem; border-top: 1px solid var(--sand); margin-top: 6px; padding-top: 8px; }

/* ============ Размеры / посадка / изделие клиента ============ */
.tabs--sizes .tab { min-width: 46px; padding: .45em .6em; }
.own-item { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 1.5px dashed var(--sand); border-radius: 12px; cursor: pointer; transition: .15s; }
.own-item:hover { border-color: var(--river); }
.own-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); }
.own-item span small { display: block; color: var(--ink-2); font-size: .78rem; }
.tier-hint { display: block; margin-top: 6px; font-size: .74rem; color: var(--river); }
.size-hint { color: var(--river); font-weight: 700; }
.size-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-2); margin-top: 2px; letter-spacing: .04em; }

/* ============ Библиотека принтов ============ */
.print-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1.5px solid var(--sand); background: #fff; border-radius: 999px; padding: .5em 1.1em; font: inherit; font-size: .88rem; font-weight: 700; letter-spacing: .01em; color: var(--ink-2); cursor: pointer; transition: .15s; box-shadow: var(--shadow-s); }
.chip-btn:hover { border-color: var(--river); color: var(--ink); }
.chip-btn.is-active { background: var(--river); border-color: var(--river); color: #fff; }
.prints-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.print-cell { border: 1px solid var(--sand); border-radius: 12px; background: #fff; padding: 8px; cursor: pointer; transition: .15s; }
.print-cell:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.print-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* ============ Отзывы ============ */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s); }
.review__stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-size: .95rem; color: var(--ink); }
.review__name { font-weight: 700; color: var(--ink-2); font-size: .85rem; }

/* ============ О нас ============ */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--sand); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-s); }
.about__facts { display: flex; flex-direction: column; gap: 14px; }
.fact { background: rgba(191,224,232,.25); border-radius: 14px; padding: 14px 18px; }
.fact__num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--river); }
.fact__label { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 780px) { .about { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 44px 1fr; grid-auto-rows: auto; } .cart-item__qty, .cart-item__sum, .cart-item__del { grid-column: 2; justify-self: start; text-align: left; } }

/* Каталог: селектор размера в карточке */
.card__size { border: 1px solid var(--sand); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .85rem; background: #fff; }

/* ===========================================================
   v2: новые элементы примерочной, корзины, статуса, документов
   =========================================================== */

/* Сцена: колонка с кнопками под ней */
.stage-col { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 86px; }
.stage-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stage-actions .btn { padding: .6em 1.1em; font-size: .85rem; }
.stage__views { position: absolute; top: 14px; right: 14px; display: flex; gap: 4px; background: rgba(255,253,248,.88); border: 1px solid var(--sand); border-radius: 999px; padding: 3px; }
.stage__views button { border: 0; background: transparent; font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink-2); padding: .35em .8em; border-radius: 999px; cursor: pointer; }
.stage__views button.is-active { background: var(--ink); color: #fff; }
@media (max-width: 940px) { .stage-col { position: static; } }

/* Переключатель «Картинка / Надпись» */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1.5px solid var(--sand); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg__btn { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .88rem; color: var(--ink-2); padding: .55em; border-radius: 9px; cursor: pointer; }
.seg__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }

.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--amber); flex: none; }
.check-row small { display: block; color: var(--ink-2); font-weight: 500; font-size: .76rem; }
.check-row--consent { font-weight: 500; font-size: .84rem; color: var(--ink-2); margin: 4px 0 14px; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.check-inline input { accent-color: var(--amber); }

.text-row { display: flex; gap: 8px; align-items: center; }
.text-row select { flex: 1; min-width: 0; padding: .6em .7em; border: 1.5px solid var(--sand); border-radius: var(--radius-s); font: inherit; font-size: .88rem; background: #fff; }
.text-row input[type=color] { width: 44px; height: 40px; border: 1.5px solid var(--sand); border-radius: var(--radius-s); padding: 3px; background: #fff; cursor: pointer; }
#textValue { min-height: 56px; }

.uploader__file { flex-wrap: wrap; }
.uploader__file #uploadName { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.quality { font-size: .74rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; }
.quality--good { background: #def5e2; color: #1d6b2a; }
.quality--ok { background: #fff0d6; color: #8a5a00; }
.quality--bad { background: #fde2e0; color: #9c2218; }
.quality:empty { display: none; }

.link-btn { background: none; border: 0; padding: 0; margin-top: 10px; color: var(--river); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Промокод */
.promo { display: flex; gap: 8px; margin: 4px 0 12px; }
.promo input { flex: 1; min-width: 0; padding: .6em .9em; border: 1.5px dashed var(--sand); border-radius: var(--radius-s); font: inherit; text-transform: uppercase; background: #fff; }
.promo input:focus { outline: none; border-color: var(--amber); border-style: solid; }
.promo .btn { padding: .6em 1.1em; font-size: .85rem; }

/* Миниатюра в корзине — макет изделия */
.cart-item__thumb img { background: #F6F3EC; }

/* Статус оплаты */
.modal__card--small { max-width: 420px; text-align: center; }
.status h3 { margin: 12px 0 8px; }
.status p { color: var(--ink-2); font-size: .95rem; }
.status__icon { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 0; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #fff; }
.status__icon--ok { background: var(--good); }
.status__icon--wait { background: var(--river); }
.status__icon--bad { background: var(--bad); }

.footer__pay { font-size: .82rem !important; opacity: .85; }

/* Страница документа (оферта/политика) */
.doc-body { background: var(--paper); }
.doc { max-width: 820px; padding-block: 40px 80px; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 1em; }
.doc p { white-space: normal; }
.doc__meta { margin-top: 2em; font-size: .85rem; color: var(--ink-2); }

/* ---------- Админка v2 ---------- */
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-tools input, .admin-tools select { padding: .55em .8em; border: 1.5px solid var(--sand); border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; }
.admin-tools input { flex: 1; min-width: 180px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat { background: #fff; border: 1px solid var(--sand); border-radius: 12px; padding: 12px 14px; }
.admin-stat b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.admin-stat span { font-size: .8rem; color: var(--ink-2); }
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px dashed var(--sand); }
.upload-row:last-child { border-bottom: 0; }
.upload-row b { min-width: 160px; }
.upload-row .acard__hint { margin: 0; flex: 1; min-width: 200px; }
.upload-row input[type=file] { display: none; }
.thumb-inline { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--sand); background: #fff; }
.img-field { display: flex; gap: 10px; align-items: center; }
.img-field input[type=text] { flex: 1; }
.order-mock { width: 96px; border-radius: 8px; border: 1px solid var(--sand); background: #F6F3EC; display: block; margin-bottom: 4px; }
.order-layout { font-size: .72rem; color: var(--ink-2); display: block; }
.orders-table .del-order { background: none; border: 0; color: var(--bad); cursor: pointer; font-size: .8rem; font-weight: 700; margin-top: 8px; padding: 0; }
.check-result { margin-top: 10px; font-size: .9rem; padding: 10px 12px; border-radius: 10px; display: none; }
.check-result.is-ok { display: block; background: #def5e2; color: #1d6b2a; }
.check-result.is-bad { display: block; background: #fde2e0; color: #9c2218; }
.steps { margin: 0; padding-left: 1.2em; font-size: .9rem; color: var(--ink-2); }
.steps li { margin-bottom: 6px; }

/* Фиксы раскладки v2 */
.tryon__grid > * { min-width: 0; }           /* без этого сетка распирается на телефоне */
.admin-top__row { height: auto; min-height: 60px; padding-block: 8px; flex-wrap: wrap; }
.admin-tabs { row-gap: 6px; }
@media (max-width: 680px) {
  .stage__hint { display: none; }
  .stage { aspect-ratio: 1 / 1; min-height: 0; }
  .stage-actions .btn { flex: 1; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__card { border-radius: 22px 22px 0 0; max-height: 94vh; padding: 22px 18px; }
  .admin-tabs { margin-left: 0; }
}
.admin-top__row { flex-wrap: nowrap; align-items: center; }
.admin-top__row .brand { flex: none; }
.admin-tabs { flex: 1; justify-content: center; }
#logoutBtn { flex: none; }
@media (max-width: 900px) { .admin-top { position: static; } .admin-top__row { flex-wrap: wrap; } }

/* ===========================================================
   v3: МАРКЕТИНГ И ПРИКОЛЮХИ
   =========================================================== */

/* Анонс-полоска */
.announce { background: linear-gradient(90deg, #1F6F6B, #155350); color: #fff; font-size: .9rem; font-weight: 700; position: relative; z-index: 41; }
.announce__row { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; }
.announce__text { color: #fff; text-align: center; }
.announce__text:hover { color: #ffd9a8; text-decoration: none; }
.announce__close { position: absolute; right: 12px; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: .7; line-height: 1; }
.announce__close:hover { opacity: 1; }

.header { transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(24, 52, 43, .10); }

/* Герой */
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--amber); background: linear-gradient(transparent 72%, rgba(232, 130, 30, .22) 72%, rgba(232, 130, 30, .22) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__stats { display: flex; gap: 12px; flex-wrap: wrap; margin: -6px 0 22px; }
.hstat { background: rgba(255,255,255,.75); border: 1px solid var(--sand); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-s); backdrop-filter: blur(4px); }
.hstat b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.hstat span { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.hero__stage { cursor: pointer; }
.hero__stage::before { content: ""; position: absolute; inset: 12% 14% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(232,130,30,.20), transparent 65%); pointer-events: none; }

/* Кнопка с бликом */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.8s ease-in-out infinite; }
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.btn--light { background: #fff; color: var(--ink); border-color: transparent; }
.btn--light:hover { background: #fff8ef; }

/* Пузырь с репликой бобра */
.bubble { position: absolute; top: 9%; left: 50%; transform: translate(-50%, 10px) scale(.9); background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: .6em 1em; font-weight: 800; font-size: .95rem; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transition: .25s cubic-bezier(.3,1.6,.6,1); pointer-events: none; max-width: 80%; text-align: center; z-index: 2; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 16px; height: 16px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.bubble.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Бегущая строка */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: 10px -2% 0; width: 104%; box-shadow: var(--shadow); }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: ticker 32s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.ticker__track i { font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Как это работает */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-s); position: relative; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--amber); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; box-shadow: 0 6px 14px rgba(232,130,30,.35); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 32px; color: var(--amber); font-weight: 800; font-size: 1.3rem; }
@media (max-width: 940px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* Бобро-метр на сцене */
.bobrometer { position: absolute; left: 14px; bottom: 14px; background: rgba(255,253,248,.94); border: 1.5px solid var(--amber); border-radius: 12px; padding: .5em .8em; font-size: .82rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-s); }
.bobrometer b { color: var(--amber-d); font-family: var(--font-display); }
.bobrometer small { display: block; color: var(--ink-2); font-weight: 600; font-size: .72rem; }

/* Идеи надписей */
.text-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.idea { border: 1px dashed var(--sand); background: #fff; border-radius: 999px; padding: .3em .75em; font: inherit; font-size: .74rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.idea:hover { border-color: var(--amber); color: var(--amber-d); }
.link-btn--inline { margin: 0 0 0 8px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: .78rem; }

/* Каталог: бейджи и старая цена */
.card__media { position: relative; }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--amber); color: #fff; font-weight: 800; font-size: .74rem; padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; box-shadow: var(--shadow-s); z-index: 1; }
.price-old { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 600; font-family: var(--font-body); }
.card__foot { gap: 8px; flex-wrap: wrap; }

/* Тост с кнопкой, прыжок корзины */
.toast { display: flex; align-items: center; gap: 12px; }
.toast__btn { background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: .45em 1em; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
@keyframes bump { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }
.is-bump { animation: bump .5s ease; }

/* Полоска «до бесплатной доставки» */
.ship-bar { margin-top: 10px; background: #fff; border: 1px solid var(--sand); border-radius: 12px; padding: 10px 12px; }
.ship-bar__txt { font-size: .84rem; color: var(--ink-2); margin-bottom: 6px; }
.ship-bar__track { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.ship-bar__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), #F4C430); border-radius: 99px; transition: width .4s; }
.field select { appearance: auto; }

/* Отзывы */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.reviews-head h2 { margin: 0; }
.rating-sum { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--sand); border-radius: 14px; padding: 8px 14px; box-shadow: var(--shadow-s); }
.rating-sum b { font-family: var(--font-display); font-size: 1.6rem; }
.rating-sum small { color: var(--ink-2); font-weight: 600; }
.review__top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), #C96A0E); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.review__top .review__stars { margin: 0; font-size: .85rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--card); border: 1px solid var(--sand); border-radius: 14px; padding: 0 18px; box-shadow: var(--shadow-s); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 800; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--amber); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-2); margin: 0 0 16px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 20px; } }

/* Финальный CTA */
.cta-final { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, #E8821E, #C96A0E 60%, #8a4a10); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); padding-right: clamp(28px, 16vw, 220px); box-shadow: var(--shadow); }
.cta-final h2 { color: #fff; margin-bottom: 8px; }
.cta-final p { color: rgba(255,255,255,.88); margin: 0; max-width: 46ch; }
.cta-final__btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-final .btn--primary { background: var(--ink); }
.cta-final .btn--primary:hover { background: #000; }
.cta-final__bobr { position: absolute; right: 18px; bottom: -18px; opacity: .95; transform: rotate(-8deg); }
@media (max-width: 760px) { .cta-final { padding-right: clamp(28px, 5vw, 56px); } .cta-final__bobr { opacity: .18; right: -20px; } }

/* Подвал */
.footer__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer__btns .btn { padding: .55em 1em; font-size: .82rem; }

/* Плавающие мессенджеры */
.fab { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.fab__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.fab__btn:hover { transform: scale(1.08); text-decoration: none; }
.fab__btn--tg { background: #2AABEE; }
.fab__btn--wa { background: #25D366; }

/* Мобильная липкая кнопка */
.mobile-cta { display: none; }
@media (max-width: 680px) {
  .mobile-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(240,248,242,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--sand); }
  .mobile-cta__cart { flex: none; border: 1.5px solid var(--sand); background: #fff; border-radius: 999px; padding: 0 16px; font: inherit; font-weight: 800; }
  .fab { bottom: 84px; }
  .footer { padding-bottom: 90px; }
  .toast { bottom: 84px; }
  .ticker__track { font-size: .85rem; }
  .hero__stats { gap: 8px; }
  .hstat { padding: 8px 12px; }
}

/* Таблица размеров, отслеживание, пасхалка */
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 10px; }
.size-table th, .size-table td { padding: 9px 10px; border-bottom: 1px solid var(--sand); text-align: center; }
.size-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.size-table tr:hover td { background: #fff8ef; }
.track-result { margin-top: 14px; font-size: .92rem; }
.track-result.is-ok { background: #def5e2; color: #1d6b2a; padding: 12px; border-radius: 12px; }
.track-result.is-bad { background: #fde2e0; color: #9c2218; padding: 12px; border-radius: 12px; }
.track-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.track-steps span { font-size: .72rem; font-weight: 700; text-align: center; padding: 6px 2px; border-radius: 8px; background: rgba(0,0,0,.06); color: var(--ink-2); }
.track-steps span.is-done { background: var(--good); color: #fff; }
.egg-code { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; background: #fff8ef; border: 2px dashed var(--amber); border-radius: 14px; padding: 12px; margin: 0 0 16px; color: var(--amber-d); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; width: 100vw; height: 100vh; }

/* Плавное появление */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; } .reveal:nth-child(3) { transition-delay: .16s; } .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .btn--shine::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Админка v3 */
.lead-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--sand); }
.lead-row.is-done { opacity: .5; }
.lead-row b { min-width: 140px; }
.lead-row .acard__hint { margin: 0; flex: 1; }
.model-files { font-size: .85rem; width: 100%; border-collapse: collapse; margin-top: 8px; }
.model-files td { padding: 6px 8px; border-bottom: 1px solid var(--sand); }
.badge-new { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .7rem; margin-left: 4px; }
@media print {
  .admin-body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block !important; }
}
#printSheet { display: none; font-family: var(--font-body); color: #000; }
#printSheet h1 { font-size: 22px; }
#printSheet table { width: 100%; border-collapse: collapse; }
#printSheet td, #printSheet th { border: 1px solid #999; padding: 6px; vertical-align: top; font-size: 13px; text-align: left; }
#printSheet img { max-width: 160px; max-height: 160px; }
/* бегущая строка повёрнута и шире экрана — не даём ей создавать горизонтальную прокрутку */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
/* фикс: shorthand-padding у .hero затирал боковые отступы .container — на телефоне текст прилипал к краю */
.hero.container { padding-inline: 22px; }

/* ===========================================================
   v3.1: мобильная вёрстка с настоящими широкими шрифтами
   (Unbounded очень широкий; на Android ещё и «крупный шрифт» в настройках)
   =========================================================== */
.hero__grid > *, .tryon__grid > *, .cta-final > *, .faq-wrap > *, .about > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.hero__stage { width: 100%; }
@media (max-width: 680px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn--lg { padding: .95em 1.3em; font-size: .98rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.6rem); }
  .hero__stage { max-width: 100%; aspect-ratio: 1 / 1; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hstat { min-width: 0; }
  .hstat b { font-size: 1rem; }
  .hstat span { font-size: .7rem; }
  .cta-final__btns { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-final__btns .btn { width: 100%; }
  .cta-final h2 { font-size: clamp(1.4rem, 7vw, 2rem); }
  .brand { font-size: .95rem; gap: 8px; min-width: 0; }
  .brand > span:last-child { min-width: 0; }
  .hero__badge { right: 12px; left: 12px; bottom: 12px; font-size: .74rem; }
  .stage-actions .btn { flex: 1 1 calc(50% - 10px); }
  .card__foot .btn { flex: 1 1 100%; }
  .footer__btns .btn { flex: 1 1 100%; }
  .announce { font-size: .8rem; }
  .announce__row { padding-right: 34px; }
}
/* шкала размера: деления по реальным сантиметрам */
.size-scale { position: relative; display: block; height: 22px; margin-top: 2px; }
.size-scale span { position: absolute; top: 0; transform: translateX(-50%); font-size: .7rem; font-weight: 700; color: var(--ink-2); }
.size-scale span::before { content: ""; display: block; width: 1px; height: 5px; background: var(--ink-2); margin: 0 auto 2px; opacity: .6; }
.size-scale em { position: absolute; right: 0; bottom: -2px; font-style: normal; font-size: .64rem; color: var(--ink-2); opacity: .8; }
.control input[type=range] { margin: 0; }
@media (max-width: 680px) { .cta-final__bobr { right: 6px; bottom: -30px; } }
@media (max-width: 420px) {
  .header .brand { font-size: .82rem; white-space: nowrap; }
  .header .brand small { font-size: .54rem; letter-spacing: .1em; }
  .header .brand-logo svg { width: 34px; height: 34px; }
  .cart-btn { width: 40px; height: 40px; margin-left: 6px; }
}
.header .brand { white-space: nowrap; flex: none; }
@media (min-width: 681px) { .hero h1 { font-size: clamp(2.2rem, 4.3vw, 3.3rem); } }
