/* «Старый кожевенник» — демо. Тёплая кожевенная палитра, светлая тема. */
:root {
  --bg: #f5efe6;
  --surface: #fffaf3;
  --surface2: #efe6d8;
  --ink: #2a1d14;
  --ink2: #4a3a2c;
  --muted: #6b5848;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 24px; --fs-2xl: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --line: #e4d7c4;
  --brown: #4a2c1a;
  --dark: #241710;
  --accent: #a8602b;
  --accent-d: #874b1f;
  --accent-l: #f3e2cd;
  --ok: #3d7a49;
  --err: #b0392d;
  --warn: #b5771c;
  --violet: #6a4f8c;
  --blue: #2f5f8a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 29, 20, .06), 0 6px 20px rgba(42, 29, 20, .07);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; margin-top: 1em; }
p { margin: 0 0 .8em; }
code { background: var(--surface2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 96, 43, .15); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(176, 57, 45, .12); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; }
input[type=color] { width: 54px; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.price, .ho-price, .sum-rows, .calc-box, .cline-sum, .ocard-sum, .kpi b, .tbl td, .pay-amount, .formula { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.boot { padding: 80px; text-align: center; color: var(--muted); }

/* ---------- Утилиты ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.between { justify-content: space-between; gap: 10px; }
.end { justify-content: flex-end; }
.center { justify-content: center; }
.wrap-sm { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.block { display: flex; width: 100%; justify-content: center; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.center-t { text-align: center; align-items: center; }
.r { text-align: right; }
.c { text-align: center; }
.narrow { max-width: 760px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.ok { background: var(--ok); } .dot.no { background: var(--err); }
.link { color: var(--accent-d); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.link.xs { font-size: 12px; }
.ic { flex: none; }

/* ---------- Кнопки, бейджи ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; transition: background .15s, transform .05s, border-color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #cdb89c; background: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled=true], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(168, 96, 43, .25); }
.btn.primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn.ghost { background: transparent; }
.btn.light { background: rgba(255, 250, 243, .14); border-color: rgba(255, 250, 243, .45); color: #fff; }
.btn.light:hover { background: rgba(255, 250, 243, .25); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger-ghost { color: var(--err); border-color: #e6c1bc; background: transparent; }
.btn.light-ghost { color: #f3e6d4; border-color: rgba(243, 230, 212, .3); }
.btn.lg { padding: 13px 24px; font-size: 16px; }
.btn.sm { padding: 7px 14px; font-size: 13.5px; }
.btn.xs { padding: 4px 10px; font-size: 12.5px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink2); transition: .15s; flex: none; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.on { background: var(--accent-l); border-color: var(--accent); color: var(--accent-d); }
.icon-btn.on .ic { fill: currentColor; }
.icon-btn.lg { width: 48px; height: 48px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--accent-l); color: var(--accent-d); font-size: 12px; font-weight: 600; }
.chip.warn { background: #fde9c8; color: #8a5a10; }
.chip.on-img { position: absolute; left: 10px; top: 10px; background: rgba(255, 250, 243, .92); color: var(--brown); }
.chip.on-img.right { left: auto; right: 10px; color: var(--err); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-blue { background: #e1ecf6; color: var(--blue); }
.b-amber { background: #fbecd2; color: #8f5c0f; }
.b-violet { background: #ece5f4; color: var(--violet); }
.b-green { background: #e0efe3; color: #2f6a3b; }
.b-red { background: #f6e0dd; color: var(--err); }
.b-gray { background: #ece6dd; color: #6c5e51; }
.cnt-pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11.5px; text-align: center; }

/* ---------- Шапка ---------- */
.strip { background: var(--dark); color: #f0dfc6; text-align: center; font-size: 13px; padding: 7px 16px; letter-spacing: .2px; }
.shop-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 44px; height: 44px; }
.logo b { font-family: var(--serif); font-size: 22px; display: block; line-height: 1; color: var(--brown); }
.logo small { color: var(--muted); font-size: 11.5px; }
.logo.light b { color: #f6ead6; } .logo.light small { color: #c9b69c; }
.head-search { flex: 1; display: flex; position: relative; max-width: 520px; }
.head-search input { border-radius: 999px !important; padding-right: 46px !important; background: var(--bg) !important; }
.head-search .icon-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; }
.head-icons { display: flex; gap: 6px; margin-left: auto; }
.icon-link { position: relative; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink2); }
.icon-link:hover { background: var(--bg); color: var(--accent); }
.icon-link .cnt:not(:empty) { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.burger { display: none; }
.main-nav { display: flex; gap: 4px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.main-nav a:hover, .main-nav a.active { background: var(--bg); color: var(--accent-d); }
.main-nav .accent-link { color: var(--accent-d); background: var(--accent-l); margin-left: auto; }

/* ---------- Главная ---------- */
.hero { background-size: cover; background-position: center; color: #fbf3e8; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; margin: 14px 0 16px; }
.hero p { font-size: 17px; max-width: 560px; color: #ead9c2; }
.hero-badge { display: inline-block; border: 1px solid rgba(243, 226, 205, .45); padding: 5px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .4px; }
.hero-card { background: rgba(255, 250, 243, .96); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: transform .2s; }
.hero-card:hover { transform: translateY(-3px); }
.hero-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.hero-card-body b { font-size: 17px; }
.hero-card .muted-light { color: var(--muted); }
.calc { font-size: 15px; padding: 8px 0; }
.calc span { background: var(--surface2); padding: 2px 8px; border-radius: 6px; }
.calc strong { color: var(--accent-d); font-size: 20px; }
.section { padding: 46px 0 6px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile .pimg { aspect-ratio: 4/3; border-radius: 0; }
.cat-tile div { padding: 10px 14px 14px; }
.cat-tile b { display: block; font-size: 16px; }
.cat-tile small { color: var(--muted); }
.coll-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.coll-tile { min-height: 190px; border-radius: var(--radius); background-size: cover; background-position: center; color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; transition: .2s; }
.coll-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 29, 20, .3); }
.coll-tile b { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.coll-tile small { color: #ead9c2; }
.how { background: var(--surface2); margin-top: 46px; padding-bottom: 46px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.how-grid div { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.how-grid b { display: block; margin: 8px 0 4px; font-size: 16px; }
.how-grid p { color: var(--muted); margin: 0; font-size: 14px; }
.how-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brown); color: #f6ead6; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.assist-promo > div { background: linear-gradient(120deg, #2a1d14, #4a2c1a); color: #f6ead6; border-radius: 20px; padding: 36px; }
.assist-promo .chip { background: rgba(255, 255, 255, .12); color: #f3dcbd; }
.assist-promo h2 { margin-top: 12px; }
.assist-promo p { color: #dcc8ad; max-width: 720px; }
.prompt-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.prompt { background: rgba(255, 250, 243, .1); border: 1px solid rgba(255, 250, 243, .25); color: #fbf3e8; border-radius: 12px; padding: 10px 14px; cursor: pointer; text-align: left; font-size: 14px; transition: .15s; }
.prompt:hover { background: rgba(255, 250, 243, .2); }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding-bottom: 50px; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.about-facts b { display: block; font-family: var(--serif); font-size: 34px; color: var(--accent-d); line-height: 1; }
.about-facts small { color: var(--muted); }

/* ---------- Карточки товаров ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-img { position: relative; display: block; }
.pcard-img .pimg { aspect-ratio: 4/3; border-radius: 0; }
.pcard-body { padding: 12px 14px 4px; flex: 1; }
.pcard-meta { color: var(--muted); font-size: 12px; }
.pcard-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; margin: 3px 0 8px; min-height: 2.6em; }
.pcard-title:hover { color: var(--accent-d); }
.price b { font-size: 20px; color: var(--brown); }
.price span { color: var(--muted); font-size: 13px; margin-left: 2px; }
.sub { font-size: 12.5px; color: var(--ink2); }
.test-mark { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: #9a7b5a; margin-top: 4px; }
.pcard-actions { display: flex; gap: 6px; padding: 10px 14px 14px; align-items: center; }
.pcard-actions .icon-btn { width: 34px; height: 34px; }
.pcard-actions .icon-btn .ic { width: 17px; height: 17px; }
.pimg { background-size: cover; background-position: center; background-color: var(--surface2); border-radius: 10px; }
.pimg.art { background-size: contain; background-repeat: no-repeat; background-color: #efe6d8; }
.pimg.hide-shape { background-size: contain; background-repeat: no-repeat; background-color: #efe6d8; }
.pimg.mini { width: 74px; height: 56px; flex: none; }
.pimg.xs { width: 46px; height: 36px; flex: none; border-radius: 7px; }
.pimg.thumb { width: 96px; height: 72px; flex: none; }
.pimg.big { width: 100%; aspect-ratio: 4/3; }
.pimg.pp-main { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); }
.pimg.hero-hide { aspect-ratio: 16/10; border-radius: 0; background-color: #ece1cf; }

/* ---------- Страницы ---------- */
.page { padding-top: 22px; padding-bottom: 60px; }
.page.narrow { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--accent-d); }
.page-head { margin-bottom: 20px; }
.h-sec { margin: 36px 0 16px; font-size: 26px; }
.h-sm { font-size: 15px; margin: 18px 0 10px; }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.sm { padding: 30px 16px; }
.empty-ic { width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--accent-d); }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 14px; }
.notice { background: #fbf0dc; border: 1px solid #efd9b0; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.notice.err { background: #f8e3e0; border-color: #ecc3bd; color: var(--err); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* Каталог */
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 130px; }
.fbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 16px; }
.fbox summary { font-weight: 700; padding: 10px 0; cursor: pointer; list-style: none; }
.fbox summary::-webkit-details-marker { display: none; }
.fgroup { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.flabel { font-size: 12.5px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .5px; }
.chk { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.chk input { margin-top: 2px; flex: none; }
.chk small { display: block; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sw { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.sw input:checked + span { box-shadow: 0 0 0 2px var(--accent); }
.sw input:focus-visible + span { outline: 2px solid var(--accent); }
.fhint { color: var(--muted); font-size: 12px; }
.sort-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.sort-bar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort-bar select { width: auto; }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; flex-wrap: wrap; }
.coll-hero { border-radius: 20px; padding: 40px; color: #fbf3e8; background-size: cover; background-position: center; margin-bottom: 10px; }
.coll-hero p { color: #ead9c2; max-width: 640px; }
.coll-hero .tip { background: rgba(255, 250, 243, .1); border-radius: 10px; padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start; }

/* Карточка товара */
.pp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
.pp-gallery { position: sticky; top: 130px; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.thumb-note { font-size: 12px; color: var(--muted); }
.pp-meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pp-info h1 { margin-top: 8px; }
.pp-info > .btn.ghost { margin-top: 12px; }
.pp-price { font-size: 16px; margin: 6px 0 6px; }
.pp-price b { font-size: 30px; color: var(--brown); font-family: var(--serif); }
.pp-desc { margin-top: 18px; color: var(--ink2); }
.hide-list { display: flex; flex-direction: column; gap: 8px; }
.hide-opt, .sel-opt { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; transition: .15s; }
.hide-opt:hover { border-color: #cfb391; }
.hide-opt.sel, .sel-opt.chosen, .sel-opt:has(input:checked) { border-color: var(--accent); background: #fdf3e6; box-shadow: 0 0 0 3px rgba(168, 96, 43, .12); }
.hide-opt.static { cursor: default; }
.hide-opt.dim { opacity: .65; }
.ho-body { flex: 1; min-width: 0; font-size: 14px; }
.ho-body small { display: block; color: var(--muted); }
.ho-price { font-weight: 700; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.ho-price small { font-weight: 600; }
.calc-box { display: flex; align-items: center; gap: 14px; background: var(--surface2); border-radius: 12px; padding: 14px 18px; margin: 16px 0; flex-wrap: wrap; }
.calc-box small { display: block; color: var(--muted); font-size: 12px; }
.calc-box b { font-size: 18px; }
.calc-box > span { font-size: 20px; color: var(--muted); }
.calc-box .total b { font-size: 24px; color: var(--accent-d); font-family: var(--serif); }
.specs { display: grid; grid-template-columns: 220px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.specs dt, .specs dd { padding: 10px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); background: #fbf5ec; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 36px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input { width: 52px !important; border: 0 !important; text-align: center; padding: 8px 0 !important; border-radius: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Сравнение */
.table-scroll { overflow-x: auto; }
.cmp-table { border-collapse: collapse; background: var(--surface); border-radius: var(--radius); min-width: 640px; width: 100%; }
.cmp-table th, .cmp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.cmp-table th { color: var(--muted); font-weight: 600; width: 160px; }
.cmp-head { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pimg.cmp-img { width: 100%; max-width: 200px; aspect-ratio: 4/3; }

/* Корзина и оформление */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cline { display: grid; grid-template-columns: 92px 1fr auto 110px 40px; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 10px; }
.cline.has-err { border-color: #e2b4ad; background: #fdf1ef; }
.cline-img .pimg { width: 92px; height: 70px; }
.cline-body .muted { font-size: 13px; }
.formula { font-size: 13.5px; }
.cline-sum { font-weight: 700; text-align: right; font-size: 16px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.summary h3 { font-family: var(--serif); font-size: 24px; margin: 0; }
.promo-form { display: flex; gap: 8px; }
.promo-form input { text-transform: uppercase; }
.promo-st { font-size: 13px; }
.promo-st.ok { color: var(--ok); } .promo-st.err { color: var(--err); }
.sum-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 4px 0; font-size: 14px; }
.sum-rows dt { color: var(--ink2); } .sum-rows dd { margin: 0; text-align: right; font-weight: 600; }
.sum-rows .tot { font-size: 20px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.sum-rows.narrow { max-width: 360px; margin-left: auto; margin-top: 12px; }
.sugg { background: var(--surface2); border-radius: var(--radius); padding: 14px; }
.sugg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sugg-item { background: var(--surface); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sugg-item .pimg { aspect-ratio: 4/3; }
.sugg-item small { display: block; color: var(--muted); }
.co-main { display: flex; flex-direction: column; gap: 16px; }
.co-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
/* Инструменты карточки: карта раскроя и 3D */
.pp-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tool-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: linear-gradient(135deg, #fffaf3, #f3e7d6); cursor: pointer; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; color: var(--ink); }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card .ic { color: var(--accent-d); }
.tool-card b { display: block; font-size: 14px; }
.tool-card small { color: var(--muted); font-size: 12px; }
.hm { display: flex; flex-direction: column; gap: 10px; }
.hm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.hm-canvas { background: #efe6d8; border-radius: 12px; overflow: hidden; }
.hm-canvas svg { display: block; width: 100%; height: auto; }
.hm-result { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hm-result b { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent-d); }
.hm-result span { font-weight: 700; }
.hm-side .kv { grid-template-columns: 130px 1fr; margin-bottom: 10px; }
.v3d-stage { width: 100%; aspect-ratio: 1 / .62; border-radius: 14px; background: radial-gradient(ellipse at 50% 40%, #3a2a1f, #140d08); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #e9d9c2; }
.v3d-stage canvas { display: block; cursor: grab; }
.v3d-stage canvas:active { cursor: grabbing; }
.v3d-load { display: flex; gap: 10px; align-items: center; }
.spin.dark { border-color: rgba(255, 255, 255, .25); border-top-color: #f3dcbd; }
.v3d-ctl { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 12px 0 6px; }
.v3d-ctl label:not(.chk) { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.v3d-ctl input[type=range] { accent-color: var(--accent); width: 160px; }
@media (max-width: 700px) { .pp-tools, .hm-grid { grid-template-columns: 1fr; } }

/* Микровзаимодействия (отключаются при prefers-reduced-motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cart-link.bump .ic { animation: bump .5s var(--ease); }
.cart-link.bump .cnt { animation: bump .5s var(--ease) .05s; }
@keyframes bump { 30% { transform: scale(1.3) rotate(-6deg); } 60% { transform: scale(.94); } }
.swap-in { animation: swapIn .45s var(--ease); }
@keyframes swapIn { from { opacity: .3; transform: scale(.985); } }
.demo-chip { background: #ece5f4; color: var(--violet); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.calc-box .total b { display: inline-block; min-width: 7ch; }
.field-l { display: flex; flex-direction: column; gap: 5px; }
.toast-col { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast.t-error { cursor: default; }
.tbl tr.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.field .flabel { text-transform: none; letter-spacing: 0; font-size: 13px; }
.ferr { color: var(--err); font-size: 12.5px; min-height: 0; }
.ferr:empty { display: none; }
.radio-cards { display: flex; flex-direction: column; gap: 8px; }
.rcard { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; transition: .15s; }
.rcard:has(input:checked) { border-color: var(--accent); background: #fdf3e6; }
.rcard span { flex: 1; } .rcard small { display: block; color: var(--muted); }
.rcard em { font-style: normal; font-weight: 700; }
.co-items { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 8px; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.co-items small { display: block; color: var(--muted); }

/* Оплата и подтверждение */
.pay-box, .done-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; text-align: center; margin-bottom: 18px; }
.pay-box .radio-cards { text-align: left; }
.pay-amount { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--brown); }
.done-ic { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: #e0efe3; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-hint { margin-top: 20px; background: #ece5f4; color: var(--violet); border-radius: 12px; padding: 12px 16px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.demo-hint a { font-weight: 700; text-decoration: underline; }

/* Кабинет */
.acc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.acc-head h1 { margin: 0; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--brown); color: #f6ead6; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; font-weight: 700; flex: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.active { color: var(--accent-d); border-color: var(--accent); }
.olist { display: flex; flex-direction: column; gap: 10px; }
.ocard { display: grid; grid-template-columns: 180px 220px 1fr 120px; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; transition: .15s; }
.ocard:not(.static):hover { border-color: var(--accent); }
.ocard small { display: block; color: var(--muted); }
.ocard-sum { font-weight: 800; text-align: right; font-size: 17px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 10px 0 20px; counter-reset: s; }
.timeline li { position: relative; padding-top: 26px; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 3px; background: var(--line); }
.timeline li.done::before { background: var(--accent); }
.tl-dot { position: absolute; top: 2px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--line); border: 3px solid var(--bg); }
.timeline li.done .tl-dot { background: var(--accent); }
.timeline li.cur .tl-dot { box-shadow: 0 0 0 4px rgba(168, 96, 43, .25); }
.timeline li.done b { color: var(--ink); }
.timeline b, .timeline small { display: block; }
.hist { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.hist li { border-left: 2px solid var(--line); padding-left: 10px; }
.hist small { display: block; color: var(--muted); }
.sel-card { margin-bottom: 14px; }
.sel-opt input { flex: none; }
.mgr-msg { background: var(--surface2); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 8px 0 12px; }
.note { color: var(--accent-d) !important; }
.narrow-form { max-width: 520px; }

/* Мастер подбора */
.pick-form { display: flex; flex-direction: column; gap: 18px; }
.pq { display: flex; flex-direction: column; gap: 8px; }
.pq input { max-width: 220px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-opt span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: .15s; }
.pill-opt input:checked + span { border-color: var(--accent); background: var(--accent-l); color: var(--accent-d); }
.pill-opt input:focus-visible + span { outline: 2px solid var(--accent); }
.pick-res { margin-top: 26px; }
.pick-leathers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pick-l { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.pick-l.best { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 96, 43, .12); }
.pick-l .pimg { aspect-ratio: 16/10; border-radius: 0; }
.pick-l-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.extras { display: flex; flex-direction: column; gap: 8px; }
.extra { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; }
.extra > div { flex: 1; font-size: 14px; } .extra small { display: block; color: var(--muted); }

/* Подвал */
.shop-foot { background: var(--dark); color: #d9c6ab; padding: 44px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.shop-foot h4 { color: #f6ead6; margin-top: 0; }
.shop-foot a:not(.logo) { display: block; padding: 2px 0; }
.shop-foot a:hover { color: #fff; }
.muted-light { color: #b9a68b; font-size: 13.5px; margin-top: 12px; }

/* ---------- Чат ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--brown); color: #f6ead6; border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer; box-shadow: 0 10px 30px rgba(42, 29, 20, .35); font-weight: 700; }
.chat-fab em { font-style: normal; font-size: 10.5px; background: rgba(255, 255, 255, .16); border-radius: 6px; padding: 1px 6px; text-transform: uppercase; }
.chat-fab:hover { background: var(--dark); }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 420px; height: min(680px, calc(100vh - 40px)); background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px rgba(42, 29, 20, .35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-head { background: var(--brown); color: #f6ead6; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-head small { display: block; color: #d6c0a2; font-size: 11.5px; }
.chat-head .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .25); color: #f6ead6; width: 34px; height: 34px; margin-left: 6px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fbf6ee; }
.msg { max-width: 90%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot a { color: var(--accent-d); text-decoration: underline; }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.ccards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ccard { flex: none; width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.pimg.ccard-img { width: 100%; height: 100px; border-radius: 0; }
.ccard-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.ccard-body small { color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1px solid var(--accent); color: var(--accent-d); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-align: left; }
.quick button:hover { background: var(--accent-l); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { border-radius: 999px !important; }
.chat-form .btn { padding: 8px 12px; }

/* ---------- Тосты, модалки ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--dark); color: #fbf3e8; padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; font-weight: 600; animation: tin .2s; max-width: min(520px, calc(100vw - 32px)); }
.toast.t-error { background: var(--err); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.modal-ov { position: fixed; inset: 0; background: rgba(30, 20, 12, .5); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 18px 20px 20px; overflow-y: auto; }
.confirm-text { font-size: 15px; }

/* ---------- Панель презентации ---------- */
.present-fab { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; gap: 6px; align-items: center; background: #6a4f8c; color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 8px 24px rgba(60, 40, 90, .35); opacity: .9; }
.present-fab:hover { opacity: 1; }
.present { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: 260px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(30, 20, 50, .3); padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 2px solid #6a4f8c; }
body.is-admin .present-fab, body.is-admin .present { left: auto; right: 16px; }
.present-head { display: flex; justify-content: space-between; align-items: center; color: #6a4f8c; }
.present-head .icon-btn { width: 30px; height: 30px; }
.p-btn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f3eff8; border: 0; cursor: pointer; font-weight: 600; font-size: 13.5px; text-align: left; color: #3f2f55; }
.p-btn:hover { background: #e6ddf2; }
.p-btn.danger { color: var(--err); background: #f9e9e7; }
.p-row { display: flex; gap: 6px; }
.p-lbl { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.present select { padding: 6px 8px !important; font-size: 13px; }
.scen section { margin-bottom: 14px; }
.scen h4 { margin: 0 0 8px; font-size: 15px; color: var(--brown); }
.scen ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.scen li span { margin-right: 8px; }

/* ---------- Админ-панель ---------- */
body.is-admin { background: #f3eee7; }
.adm { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.adm-side { background: linear-gradient(180deg, #2a1d14, #1d130c); color: #e9d9c2; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.adm-logo { padding: 6px 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.adm-logo b { font-family: var(--serif); font-size: 21px; display: block; color: #f6ead6; }
.adm-logo small { color: #b39d80; }
.adm-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adm-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #d6c4aa; font-weight: 600; font-size: 14px; }
.adm-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-side nav a.active { background: rgba(201, 135, 63, .2); color: #ffd9ae; }
.adm-side nav a span { flex: 1; }
.adm-side nav em { font-style: normal; background: var(--accent); color: #fff; border-radius: 10px; font-size: 11.5px; padding: 0 7px; font-weight: 700; }
.adm-main { min-width: 0; }
.adm-top { display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.adm-role { flex: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-role label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.adm-role select { width: auto; padding: 6px 10px !important; }
.adm-burger { display: none; }
.adm-content { padding: 22px 24px 80px; max-width: 1400px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-head h1 { font-size: 30px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.adm-head p { margin: 2px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis.small { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; transition: .15s; }
a.kpi:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.kpi small { color: var(--muted); font-weight: 600; }
.kpi b { font-size: 24px; font-family: var(--serif); color: var(--brown); line-height: 1.1; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.warn { border-left: 4px solid var(--warn); }
.kpi.danger { border-left: 4px solid var(--err); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash-grid .card:first-child { grid-column: span 2; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { width: 100%; background: linear-gradient(180deg, var(--accent), var(--accent-d)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar small { color: var(--muted); font-size: 11px; }
.bars { position: relative; }
.bar { position: relative; outline-offset: 2px; }
.bar-v { position: absolute; bottom: calc(100% - 6px); font-size: 11px; font-weight: 700; color: var(--brown); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.bar-v.show, .bar:hover .bar-v, .bar:focus-visible .bar-v { opacity: 1; }
.bar:hover i, .bar:focus-visible i { filter: brightness(1.15); }
.avg-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed rgba(106, 79, 140, .55); pointer-events: none; }
.avg-line span { position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--violet); background: var(--surface); padding: 0 4px; }
.kpi .dl { font-style: normal; font-size: 12px; font-weight: 700; }
.kpi .dl.up { color: var(--ok); } .kpi .dl.down { color: var(--err); }
.kpi.main { background: linear-gradient(135deg, #2a1d14, #4a2c1a); border-color: transparent; }
.kpi.main small, .kpi.main span { color: #d6c0a2; }
.kpi.main b { color: #fbf3e8; font-size: 30px; }
.kpi.main .dl.up { color: #9fd6a8; } .kpi.main .dl.down { color: #f2a99f; }
.att-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.att-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.att-list li:last-child { border-bottom: 0; }
.att-list li > a, .att-list li > span { flex: 1; min-width: 0; }
.att-list small { display: block; color: var(--muted); }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.toolbar > input, .toolbar .row input { max-width: 520px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip-btn em { font-style: normal; color: var(--muted); margin-left: 3px; }
.chip-btn.on { background: var(--brown); border-color: var(--brown); color: #f6ead6; }
.chip-btn.on em { color: #d6c0a2; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbf6ef; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #efe5d6; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: #fcf5ea; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl .row-err td { background: #fdf1ef; }
.card .table-wrap { border: 0; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--brown); color: #f6ead6; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.bulk-bar .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.bulk-bar input { width: 70px !important; padding: 4px 8px !important; }
.order-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.prod-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
fieldset { border: 0; margin: 0; min-width: 0; }
fieldset.card { border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.ai-card { background: linear-gradient(180deg, #fbf8fd, #fffaf3 40%); border-color: #ddd0ea; }
.ai-card h3 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--violet); }
.ai-sugg { display: flex; flex-direction: column; gap: 6px; }
.ai-s { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; font-size: 13.5px; }
.ai-s span { flex: 1; min-width: 0; } .ai-s small { display: block; color: var(--muted); }
.transcript { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; margin-top: 8px; background: #fbf6ee; border-radius: 10px; padding: 10px; }
.tmsg { font-size: 13px; padding: 6px 10px; border-radius: 10px; max-width: 92%; }
.tmsg p { margin: 0; }
.tmsg small { font-weight: 700; color: var(--muted); font-size: 11px; }
.tmsg.user { align-self: flex-end; background: var(--accent-l); }
.tmsg.bot { background: #fff; border: 1px solid var(--line); }
.comments { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 10px; }
.comments p { margin: 2px 0 0; font-size: 14px; }
.task-list { list-style: none; padding: 6px 18px; display: flex; flex-direction: column; }
.task-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-list li:last-child { border: 0; }
.done-t { text-decoration: line-through; color: var(--muted); }
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.role-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.role-card.on { border-color: var(--accent); background: #fdf3e6; }
.role-card b { font-size: 16px; } .role-card small, .role-card span { color: var(--muted); font-size: 12.5px; }
.matrix td.c { font-weight: 700; color: var(--ok); }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.int p { margin: 8px 0 0; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d8cbb8; border-radius: 12px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); }
.tone { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: 11.5px; color: var(--muted); }
.tone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tone span { width: 40px; height: 40px; border-radius: 10px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tone input:checked + span { box-shadow: 0 0 0 2px var(--accent); }
.hero-prev { border-radius: 14px; padding: 26px; color: #fbf3e8; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-prev h2 { font-size: 30px; margin: 4px 0; }
.hero-prev p { color: #ead9c2; font-size: 14px; }
.multi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 260px; overflow-y: auto; padding: 10px 0; }
.waybill { font-size: 14px; }
.receive-form { max-width: 720px; }
.hide-modal { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.big-id { font-size: 22px; font-family: var(--serif); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.note-in { margin-top: 6px; padding: 6px 10px !important; font-size: 13px; }

/* ---------- Печать накладной ---------- */
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .int-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .pp-grid, .cart-layout, .order-grid, .prod-grid, .about, .cat-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 40px; padding-bottom: 40px; gap: 24px; }
  .pp-gallery, .summary, .filters { position: static; }
  .coll-grid, .how-grid { grid-template-columns: 1fr 1fr; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .head-row { flex-wrap: wrap; gap: 10px; }
  .burger { display: inline-flex; }
  .main-nav { display: none; flex-direction: column; padding: 0 20px 12px; }
  .main-nav.open { display: flex; }
  .main-nav .accent-link { margin-left: 0; }
  .fbox:not([open]) { padding-bottom: 6px; }
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; z-index: 80; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
  .adm-side.open { transform: none; }
  .adm-burger { display: inline-flex; }
  .adm-content { padding: 16px 14px 90px; }
  .adm-top { padding: 10px 14px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .card:first-child { grid-column: auto; }
  .role-cards { grid-template-columns: 1fr 1fr; }
  .ocard { grid-template-columns: 1fr auto; }
  .ocard > div:nth-child(3) { grid-column: 1 / -1; }
  /* Плотные таблицы → карточки на телефоне */
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .rtable td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .rtable td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .rtable td.r { justify-content: flex-end; }
  .rtable td:first-child { justify-content: flex-start; text-align: left; }
  .hide-modal { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .logo small { display: none; }
  .logo { gap: 6px; min-width: 0; }
  .logo b { font-size: 17px; white-space: nowrap; }
  .logo-mark { width: 32px; height: 32px; }
  .head-row { flex-wrap: wrap; gap: 6px; }
  .burger { width: 34px; height: 34px; }
  .head-icons { gap: 0; }
  .icon-link { width: 32px; height: 36px; }
  .thumb-note { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .coll-grid, .how-grid, .about-facts { grid-template-columns: 1fr; }
  .coll-tile { min-height: 140px; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-body { padding: 10px 10px 2px; }
  .pcard-actions { padding: 8px 10px 10px; flex-wrap: wrap; }
  .pcard-actions .btn { flex-basis: 100%; order: 3; }
  .pcard-title { font-size: 14px; }
  .price b { font-size: 17px; }
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 70px 1fr 36px; grid-template-areas: 'img body rm' 'img qty sum'; gap: 6px 10px; }
  .cline-img { grid-area: img; } .cline-img .pimg { width: 70px; height: 56px; }
  .cline-body { grid-area: body; } .cline-qty { grid-area: qty; } .cline-sum { grid-area: sum; } .cline > .icon-btn { grid-area: rm; }
  .sugg-row { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .specs { grid-template-columns: 1fr 1.3fr; }
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .chat-fab { right: 14px; bottom: 14px; padding: 12px 16px; }
  .chat-fab span { display: none; }
  .kpis, .kpis.small { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 20px; }
  .assist-promo > div { padding: 24px 20px; }
  .coll-hero { padding: 24px 20px; }
  .modal-ov { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .present { width: calc(100vw - 32px); }
  .int-grid { grid-template-columns: 1fr; }
  .multi { grid-template-columns: 1fr; }
  .adm-head h1 { font-size: 24px; }
  .receive-form .btn.lg { position: sticky; bottom: 10px; }
}

.portfolio-demo-note{position:relative;z-index:20;padding:9px 16px;background:#f1e6d4;color:#38271b;text-align:center;font:12px/1.5 system-ui,sans-serif}.portfolio-demo-note a{color:inherit;text-decoration:underline;white-space:nowrap}
