/* Парфюмотека · опт — стили. Цвета и размеры совпадают с дизайн-макетом. */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* «Мокко и пудра» */
:root {
  --ground: #F2E8DF;
  --surface: #FFFFFF;
  --line: #E8DBD1;
  --line-strong: #DCCABD;
  --ink: #3A2D27;
  --ink-2: #4E3F38;
  --muted: #6F5E55;
  --accent: #A9583F;
  --accent-dark: #8C4530;
  --accent-soft: #EBD3C6;
  --top: #4A3A33;
  --top-line: #6A5850;
  --top-text: #EDE1D8;
  --top-muted: #E3D3C8;
  --powder: #EBC2AE;
  --green: #1E5E38;
  --green-soft: #E6F2EA;
  --red: #B42318;
  --red-soft: #FBE9E7;
  --amber: #6B5300;
  --amber-soft: #FBF1DC;
  --blue: #23446E;
  --blue-soft: #E7EEF8;
  --radius: 14px;
  --serif: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.45 var(--sans); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.mt { margin-top: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Шапка */
.top { background: var(--top); position: sticky; top: 0; z-index: 10; border-radius: 0 0 24px 24px; }
body.has-search .top { border-radius: 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 0.3em; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.logo b { font-weight: 900; }
.logo span { color: var(--accent); }
.top .logo, .side .logo { color: #FBF4EE; }
.top .logo span, .side .logo span { color: var(--powder); }
@media (max-width: 380px) { .logo { font-size: 19px; } }
.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.tagline { color: var(--powder); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.tagline-lg { color: var(--accent); font-size: 14px; font-weight: 700; margin-top: 6px; }
@media (max-width: 380px) { .tagline { font-size: 10px; } }
.chip-balance { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 10px; border-radius: 10px; text-decoration: none; line-height: 1.15; }
.chip-balance small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.chip-balance b { font-size: 14px; }
.chip-balance.debt { background: var(--red-soft); color: var(--red); }
@media (max-width: 480px) { .top .chip-balance { display: none; } }
.chip-balance.credit { background: var(--green-soft); color: var(--green); }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 22px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.cart-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #FBF4EE; color: var(--ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--top); }

.support { background: var(--top); color: var(--top-muted); font-size: 13px; padding: 8px 0 2px; text-align: center; }
.support a { color: #fff; font-weight: 700; }
.rates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 12px; }
.rates { color: var(--top-text); }
.rates .rate { padding: 7px 10px; border-radius: 10px; background: transparent; border: 1px solid var(--top-line); font-size: 12px; cursor: pointer; color: var(--top-text); text-align: left; }
.rates .rate:hover { border-color: var(--powder); }
.rates .rate.mine { background: var(--accent-soft); color: var(--ink); font-weight: 700; border-color: var(--accent-soft); }
.usd { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* Нижнее меню (телефон) */
.nav { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.nav a.on { color: var(--accent); font-weight: 800; }

/* Сообщения */
.flash { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.error { background: var(--red-soft); color: var(--red); }
.flash.info { background: var(--amber-soft); color: var(--amber); }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-family: var(--sans); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.dark { background: var(--top); border-color: var(--top); color: #fff; }
.btn.dark:hover { background: var(--ink); color: #fff; }
.btn.block { width: 100%; min-height: 52px; font-size: 16px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 12px; white-space: nowrap; font-weight: 800; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 16px; }
textarea.input { min-height: 72px; resize: vertical; }
label.lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }

/* Карточки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.card + .card { margin-top: 10px; }
.section-title { font-size: 18px; font-weight: 900; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: -0.01em; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--ground); font-size: 11px; font-weight: 600; }
.tag.mark { background: #FFE14D; color: #1A1A1A; font-weight: 800; font-size: 12px; padding: 4px 9px; border: 1px solid #1A1A1A; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.pill.gray { background: #EADFD6; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.dark { background: var(--ink); color: #fff; }

/* Поиск */
.search-box { background: var(--top); padding: 6px 0 4px; border-radius: 0 0 28px 28px; color: var(--top-text); }
.search-box .muted, .search-box .lbl { color: var(--top-muted) !important; }
.search-box .chip { background: transparent; border-color: var(--top-line); color: var(--top-text); }
.search-box .chip.on { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; background: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 14px; scrollbar-width: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps { list-style: none; margin: 16px 0 0; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.steps b { width: 28px; height: 28px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

.prod { display: flex; gap: 12px; }
.thumb { flex: none; width: 72px; height: 92px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.thumb.photo { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.prod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.brand { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.prod-name { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.25; }
.price { font-size: 19px; font-weight: 900; }
.group-box { border: 1px dashed #D9C6B8; }

/* Подсказки при вводе */
.suggest-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 12px 30px rgba(35,31,28,.14); z-index: 30; overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #F1EBE6; }
.suggest a:last-child { border-bottom: 0; }
.suggest a.on, .suggest a:hover { background: var(--ground); }
.suggest .sthumb { flex: none; width: 40px; height: 50px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.suggest .sthumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.suggest .stext { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.suggest .stext b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .sprice { text-align: right; font-weight: 700; font-size: 14px; white-space: nowrap; }
.suggest .sall { justify-content: center; font-weight: 700; color: var(--accent); font-size: 13px; }

.profit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.profit-cards .card + .card { margin-top: 0; }

/* Карточка аромата в поиске: все объёмы вместе */
.gcard { display: flex; flex-direction: column; gap: 4px; }
.ghead { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 8px; }
.gcard.compact .ghead { align-items: center; padding-bottom: 4px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) 250px 250px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #F1EBE6; }
.vname { text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.3; }
.offers-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 3px 10px; border: 1.5px solid var(--accent);
  border-radius: 999px; color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; background: #fff; vertical-align: middle; }
.offers-pill .arr { font-size: 17px; line-height: 1; margin-top: -2px; }
a:hover .offers-pill, a:active .offers-pill { background: var(--accent); color: #fff; }
.kind-tag { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.gcard .more summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 13px; padding: 8px 0; border-top: 1px solid #F1EBE6; }
@media (max-width: 899px) {
  .vrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vrow .lbuy { grid-template-columns: 90px 1fr 52px 36px; }
}

/* Новинки */
.news-row { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.news-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.news-card:hover { border-color: var(--accent); }
.news-card b { font-size: 14px; line-height: 1.25; }
.news-img { height: 150px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: contain; }
.news-price { margin-top: auto; font-weight: 700; font-size: 15px; }

/* Два вида: карточки и список */
.viewsw { display: inline-flex; padding: 3px; background: #EADFD6; border-radius: 10px; }
.viewsw a { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.viewsw a.on { background: #fff; color: var(--ink); }
.list-box { padding: 0 12px; }
.lrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) 250px 250px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #F1EBE6; }
.lrow:last-child { border-bottom: 0; }
.lthumb { width: 36px; height: 44px; border-radius: 6px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lthumb.photo { background: #fff; }
.lthumb img { width: 100%; height: 100%; object-fit: contain; }
.lname { text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.3; display: flex; flex-direction: column; min-width: 0; }
.lbuy { display: grid; grid-template-columns: 1fr auto 52px 36px; gap: 6px; align-items: center; }
.lbuy .lk { font-size: 11px; color: var(--muted); font-weight: 600; }
.lbuy .lp { font-weight: 700; font-size: 14px; text-align: right; white-space: nowrap; }
.lbuy .usd { font-size: 11px; }
.lbuy .qty { width: 52px; min-height: 36px; }
.lbuy .btn { padding: 0; width: 36px; font-size: 18px; }
.wrap.wide, .wide-page .top .wrap, .wide-page .support .wrap { max-width: 1100px; }
@media (max-width: 899px) {
  .lrow { grid-template-columns: 36px minmax(0, 1fr); }
  .lbuy { grid-column: 1 / -1; grid-template-columns: 90px 1fr 52px 36px; }
}
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast.error { background: var(--red); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.top .icon-btn { border-color: var(--top-line); color: #FBF4EE; }
.top .btn { background: transparent; border-color: var(--top-line); color: #FBF4EE; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--top); }

/* Карточка аромата */
.p-head h1 { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.pyramid { display: grid; grid-template-columns: 56px 1fr; gap: 4px 8px; font-size: 13px; margin: 8px 0 0; }
.pyramid dt { color: var(--muted); }
.pyramid dd { margin: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #EADFD6; border-radius: 14px; }
.tabs a { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.tabs a.on { background: #fff; color: var(--ink); font-weight: 700; }
.offer { display: flex; flex-direction: column; gap: 10px; }
.code { padding: 4px 8px; border-radius: 8px; background: var(--top); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .two-col { grid-template-columns: 1fr; } }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .btn { width: 36px; padding: 0; font-size: 18px; }
.stepper .btn:disabled { opacity: .4; cursor: default; }
.qty { width: 64px; min-height: 40px; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; }

/* Корзина и итог */
.totals { background: var(--top); color: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.totals .muted { color: #D9CFC7; }
.totals .big { font-size: 24px; font-weight: 700; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); }
.radio-card input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { display: flex; }
.seg input { position: absolute; opacity: 0; }
.seg span { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 10px; border: 1.5px dashed #D9C6B8; border-radius: 12px; background: #FBF6F2; text-align: center; cursor: pointer; font-size: 13px; font-weight: 700; }
.upload input { max-width: 100%; font-size: 12px; font-weight: 400; }

/* Объявления */
.announce { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.announce.important { background: #FCEFC9; border: 1px solid #E8C96B; color: #4A3A10; }
.announce.info { background: var(--surface); border: 1px solid var(--line); }
.announce .btn { flex: none; }

/* Шаги заказа */
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.step.done .step-n { background: var(--green-soft); color: var(--green); }

/* Баланс */
.balance { border-radius: 16px; padding: 14px; }
.balance.debt { background: var(--red-soft); border: 1px solid #F2C9C3; }
.balance.credit { background: var(--green-soft); border: 1px solid #C9E3D2; }
.balance.zero { background: var(--surface); border: 1px solid var(--line); }
.balance .amount { font-size: 26px; font-weight: 700; }
.balance.debt .amount { color: var(--red); }
.balance.credit .amount { color: var(--green); }
.hist { display: grid; grid-template-columns: 80px 1fr auto; gap: 6px 10px; font-size: 13px; }

/* Документы и подвал */
.footer { padding: 20px 0 30px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0; }
.doc h1 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; padding: 14px; background: var(--top); color: #fff; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.cookie a { color: #F4C9BE; }
.cookie .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie button { min-height: 44px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* Таблицы (админка) */
.table-box { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 6px; border-bottom: 1px solid #EFE8E2; vertical-align: top; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
table.t tr.link-row:hover td { background: #FBF6F2; cursor: pointer; }
.hint { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.hint.green { background: var(--green-soft); color: var(--green); }
.hint.amber { background: var(--amber-soft); color: var(--amber); }

/* Админка */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 220px; background: var(--top); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.side .logo { font-size: 18px; }
.side h4 { margin: 14px 8px 6px; font-size: 11px; color: #A89D94; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.side a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 10px; color: #E8E1DB; text-decoration: none; font-size: 14px; }
.side a.on { background: #5B4A42; color: #fff; font-weight: 700; }
.side a .n { font-size: 12px; color: #C9BFB7; }
.side a.on .n { background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 10px; }
.main { flex: 999 1 560px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.main h1 { font-size: 24px; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > .wide { flex: 999 1 520px; min-width: 0; }
.cols > .narrow { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.kv span:first-child { color: var(--muted); }
.statusbar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.statusbar li { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.statusbar li.on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) {
  .statusbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 16px; }
}
@media (min-width: 900px) {
  .nav { display: none; }
}


.pickup-info{white-space:pre-line;padding:12px 14px;border-radius:12px;background:var(--accent-soft);color:var(--ink);font-size:14px;line-height:1.45}
.flash-float { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 60; display: flex; flex-direction: column; gap: 6px; max-width: 560px; margin: 0 auto; transition: opacity .6s; cursor: pointer; }
.flash-float .flash { margin: 0; box-shadow: 0 6px 24px rgba(58, 45, 39, .18); }
.flash-float.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .flash-float { transition: none; } }

.doc h2 { font-size: 17px; font-weight: 800; margin: 18px 0 6px; }
.doc p, .doc li { line-height: 1.55; margin: 0 0 8px; }
.doc ul { padding-left: 20px; margin: 0 0 8px; }
mark.fill { background: #FCE7A8; color: inherit; padding: 0 3px; border-radius: 4px; }

.doc ul.terms { padding-left: 18px; }
.doc ul.terms li { margin-bottom: 10px; }
.doc .lead-note { font-weight: 700; }

.yandex-btn { background: #000; color: #fff; border-color: #000; gap: 10px; }
.yandex-btn:hover { background: #222; color: #fff; }
.ya-logo { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #FC3F1D; color: #fff; font-weight: 800; align-items: center; justify-content: center; font-size: 15px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6F5E55); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.shelf-chips { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.shelf-chips .chip { white-space: nowrap; }
.news-img { position: relative; }
.rank { position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

.shelf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Плашка «менеджеры ответят в рабочее время» — выходные, праздники, вечер */
.mgr-off { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--red-soft); color: var(--red);
  border: 1px solid #F1C4BE; font-size: 13.5px; line-height: 1.4; font-weight: 600; }

/* Админка: позиции заказа — крупное название из прайса */
.oi { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.oi:first-child { border-top: 0; }
.oi-added { background: #FDEBE7; margin: 0 -10px; padding: 12px 10px; border-radius: 10px; }
.oi-qty { flex: none; min-width: 52px; padding: 2px 8px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; text-align: center; }
.oi-name { flex: 1; font-size: 17px; line-height: 1.3; color: var(--ink); word-break: break-word; }
.oi-copy { min-height: 28px !important; padding: 0 10px !important; font-size: 12px !important; flex: none; }
.oi-meta { font-size: 13px; color: var(--muted); padding-left: 62px; }
.oi-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.oi-sup { font-size: 24px; font-weight: 900; letter-spacing: .02em; line-height: 1.1; padding: 4px 12px; border-radius: 10px; background: #1A1A1A; color: #fff; }
.oi-price { font-size: 24px; font-weight: 900; line-height: 1.1; color: var(--accent); }
.oi-price small { font-size: 14px; font-weight: 700; color: var(--muted); }
.oi-note { font-size: 14px; padding-left: 62px; }
.oi-edit { padding-left: 62px; font-size: 13px; }
.oi-edit summary { cursor: pointer; color: var(--accent); font-weight: 700; }

/* «Выйти» — в верхней строке на каждой странице */
.support-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.logout-form { margin: 0; }
.logout-btn { background: transparent; border: 1px solid var(--top-line); color: inherit; border-radius: 999px;
  padding: 2px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; min-height: 26px; }
.logout-btn:hover { border-color: currentColor; }

/* Приписка поставщика у варианта: «остаток 80%», «подмятая коробка» — видна сразу в списке */
.note-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--amber-soft, #FBF1DC); color: var(--amber, #6B5300); vertical-align: middle; }
.note-tag.imp { background: var(--red-soft); color: var(--red); }
.live-box { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.live-box a { display: block; background: #2E2622; color: #fff; text-decoration: none; padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; line-height: 1.35; border-left: 4px solid var(--accent); }
.live-box a b { display: block; margin-bottom: 2px; }
.note-tag.mark { background: #FFE14D; color: #1A1A1A; border: 1px solid #1A1A1A; font-weight: 800; }
.note-tag.imp::before { content: "⚠ "; }

/* Помощник */
.ai-fab { position: fixed; right: 16px; bottom: 84px; z-index: 40; border: 0; border-radius: 999px; padding: 12px 16px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; }
.ai-fab.hidden, .ai-panel.hidden, .ai-chips.hidden { display: none; }
.ai-panel { position: fixed; right: 16px; bottom: 84px; z-index: 41; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px)); background: var(--surface, #fff); border-radius: 18px; display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.28); overflow: hidden; border: 1px solid var(--line); }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #3A2D27; color: #FBF4EE; }
.ai-head button { background: transparent; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.ai-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg.bot { background: var(--ground, #F6EFE9); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.wait { opacity: .6; }
.ai-msg a { color: var(--accent); font-weight: 700; }
.ai-item { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; white-space: normal; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.ai-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--ink); }
.ai-form { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai-form .input { flex: 1; min-height: 40px; }
.ai-mgr { display: block; text-align: center; font-size: 12px; padding: 0 12px 10px; color: var(--muted, #8a7d75); }
@media (min-width: 900px) { .ai-fab, .ai-panel { bottom: 24px; } }

/* Публичные страницы (для поисковиков и новых клиентов) */
.pub-head { background: var(--top); border-radius: 0 0 24px 24px; }
.pub-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.pub-logo { color: #fff; }
.pub-logo span { color: var(--powder); }
.pub-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pub-nav > a:not(.btn) { color: var(--top-text); text-decoration: none; font-weight: 700; font-size: 14px; }
.pub { padding-top: 16px; padding-bottom: 24px; }
.crumbs { color: var(--muted); margin: 4px 0 10px; }
.crumbs a { color: var(--muted); }
.hero { padding: 8px 0 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero h1 { font-size: clamp(26px, 6vw, 36px); letter-spacing: -0.01em; }
.hero .lead { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.hero-facts { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-facts span { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.hero-facts b { font-size: 16px; }
.pub-sec { margin-top: 22px; }
.pub-sec h2 { font-size: 20px; margin-bottom: 8px; }
.pub-sec p { margin: 6px 0; max-width: 68ch; }
.pub-sec ul { padding-left: 20px; margin: 6px 0; }
.pub-sec li { margin: 4px 0; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.pub-cta { margin-top: 26px; background: var(--top); color: var(--top-text); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pub-cta b { color: #fff; font-size: 18px; }
.pub-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.pub-links a { color: var(--ink-2); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); padding: 0 6px; }
.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.brand-list a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--line); }
.brand-list a:hover { color: var(--accent); }
.frag-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.frag-list li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 0 !important; }
.frag-list img, .frag-ph { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
.frag-ph { background: var(--ground); }

/* ===== Админка: вид заказа (таблица позиций, другие поставщики, К оплате) ===== */
.ao-posbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ao-sortnote { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.ao-table { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ao-hd, .ao-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 92px 118px 100px 118px; gap: 10px; align-items: center; padding: 12px 14px; }
.ao-hd { background: #F7F0EA; font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 9px; padding-bottom: 9px; }
.ao-row { border-top: 1px solid var(--line); }
.ao-added { background: #FDEBE7; }
.ao-n { color: var(--muted); font-weight: 700; }
.ao-num { text-align: right; white-space: nowrap; font-weight: 700; }
.ao-rsum { font-weight: 800; }
.ao-nm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ao-nmline { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.ao-title { font-size: 16px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.ao-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ao-sup { display: inline-block; font-size: 15px; font-weight: 900; letter-spacing: .03em; padding: 3px 10px; border-radius: 8px; background: #1A1A1A; color: #fff; }
.ao-buy { font-size: 12px; color: var(--muted); }
.ao-copy { border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; cursor: pointer; color: var(--ink-2); }
.ao-qty { display: inline-flex; align-items: center; justify-self: center; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.ao-qty button { width: 34px; height: 36px; border: 0; background: #F7F0EA; font-size: 18px; font-weight: 700; cursor: pointer; }
.ao-qty button:hover { background: var(--accent-soft); }
.ao-qty input { width: 48px; height: 36px; border: 0; text-align: center; font-weight: 800; font-size: 15px; background: #fff; -moz-appearance: textfield; }
.ao-qty input::-webkit-outer-spin-button, .ao-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ao-qty-ro { justify-self: center; font-weight: 800; }
.ao-acts { display: flex; justify-content: flex-end; gap: 2px; }
.ao-acts form { margin: 0; }
.ao-ib { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: var(--ink-2); }
.ao-ib:hover { background: var(--accent-soft); }
.ao-swap { color: var(--green); font-weight: 800; }
.ao-sub { grid-column: 1 / -1; margin-left: 44px; }
.ao-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 8px 10px; background: #F7F0EA; border-radius: 12px; }
.ao-edit.hidden { display: none; }
.ao-cheap { background: var(--green-soft); border: 1px solid #BFDCC8; border-radius: 14px; padding: 6px 12px; }
.ao-cheap summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; list-style: none; font-size: 13px; font-weight: 700; color: var(--green); }
.ao-cheap summary::-webkit-details-marker { display: none; }
.ao-chev { display: inline-block; width: 16px; transition: transform .15s; transform: rotate(-90deg); }
.ao-cheap[open] .ao-chev { transform: none; }
.ao-cnt { display: inline-block; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 10px; background: var(--green); color: #fff; font-size: 12px; }
.ao-csum { margin-left: auto; font-weight: 800; color: var(--ink-2); }
.ao-cheap[open] .ao-csum { display: none; }
.ao-cbody { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 8px; }
.ao-opts { display: flex; flex-direction: column; gap: 6px; }
.ao-opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.ao-opt:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 94, 56, .12); }
.ao-on { font-size: 14px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.ao-on small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.ao-op { font-size: 16px; font-weight: 900; white-space: nowrap; }
.ao-od { font-size: 12px; font-weight: 800; white-space: nowrap; min-width: 96px; text-align: right; color: var(--muted); }
.ao-od.dn { color: var(--green); } .ao-od.up { color: var(--red); }
.ao-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; justify-content: space-between; }
.ao-sum { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-size: 14px; }
.ao-sum .kv { font-size: 14px; }
.ao-adm { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 13px !important; }
.ao-paybox { flex: 1 1 320px; max-width: 520px; background: #FBEBDD; border: 1px solid #EBC2AE; border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.ao-plbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ao-plbl b { font-size: 22px; font-weight: 800; }
.ao-big { font-size: 36px; font-weight: 900; letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.ao-psub { font-size: 12px; color: var(--ink-2); text-align: right; }
.ao-how { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: #fff; border: 1px solid #EBC2AE; }
@media (max-width: 760px) {
  .ao-hd { display: none; }
  .ao-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .ao-row > .ao-pr, .ao-row > .ao-qty, .ao-row > .ao-qty-ro, .ao-row > .ao-rsum { grid-column: 2; }
  .ao-row > .ao-acts { grid-column: 3; grid-row: 1; }
  .ao-pr::before { content: "Цена: "; color: var(--muted); font-weight: 600; }
  .ao-rsum::before { content: "Сумма: "; color: var(--muted); font-weight: 600; }
  .ao-num { text-align: left; }
  .ao-qty { justify-self: start; }
  .ao-sub { margin-left: 0; }
  .ao-opt { grid-template-columns: auto 1fr; }
  .ao-on { grid-column: 1 / -1; grid-row: 2; }
}
