/* Lashopt - светлый про-бьюти. Один файл, mobile-first, без фреймворков.
   Шрифты локальные, внешних запросов на страницах нет. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/ui/fonts/onest-400-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  /* U+20BD - знак рубля в ценниках, глиф досабсечен в этот же файл */
  src: url(/ui/fonts/onest-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20BD, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/ui/fonts/cormorant-500-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/ui/fonts/cormorant-500-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20BD, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* Акцент вынесен в переменные: до утверждения макета живут два варианта,
   переключение - ?accent=powder|bordo, класс ставится на body. */
:root,
body.accent-powder {
  --accent: #c08a83;
  --accent-strong: #a3665e;
  --accent-ink: #8a4f47;
  --accent-soft: #faefec;
  --accent-line: #eed8d3;
}
body.accent-bordo {
  --accent: #7d2233;
  --accent-strong: #631a28;
  --accent-ink: #6e1e2d;
  --accent-soft: #f8ecef;
  --accent-line: #e7ccd3;
}

:root {
  --ink: #1d1a1b;
  --ink-soft: #4c4548;
  --muted: #7b7175;
  --line: #ece6e5;
  --line-soft: #f5f0ef;
  --bg: #fff;
  --surface: #fdfbfa;
  --ok: #2f7a52;
  --warn: #b03b3b;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 10px 30px rgba(45, 30, 32, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .4em; font-weight: 600; }
/* У Cormorant по умолчанию старостильные цифры: в названиях товаров
   ("D 0.10") они читаются как строчные буквы, поэтому везде включаем
   маюскульные - в заголовках, плитках и опт-сетке. */
h1, h2, .brand-name, .foot-brand, .tile-name, .curl-letter, .post-title,
.hero-grid-head, .opt-percent {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}
h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  letter-spacing: -.01em;
}
h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}
h3 { font-size: 1.05rem; font-weight: 600; }
p, ul, ol, dl { margin: 0 0 .8em; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
s { color: var(--muted); }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 3px;
}

.shell { max-width: 1180px; margin: 0 auto; padding: 0 18px; width: 100%; }
.muted { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 70ch; }
.narrow { max-width: 68ch; }
.hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 0; }

/* Цены: табличные цифры Onest, чтобы разряды стояли столбиком */
.money { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--accent-strong); background: var(--accent-strong); color: #fff;
  font: inherit; font-weight: 500; line-height: 1.2;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-line { background: transparent; color: var(--accent-ink); border-color: var(--accent-line); }
.btn-line:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- Шапка: полоса УТП, строка с поиском по центру, полоса категорий */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.usp { background: var(--accent-soft); color: var(--accent-ink); font-size: .84rem; }
.usp-in { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 8px; padding-bottom: 8px; }
.usp-item { position: relative; padding-left: 14px; }
.usp-item::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--accent);
}

.top-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--accent); flex: none; }
.brand-name {
  font-family: 'Cormorant', Georgia, serif; font-size: 1.75rem; font-weight: 600;
  letter-spacing: .01em; line-height: 1;
}
.brand-dot { color: var(--accent); }

.find { display: flex; align-items: stretch; }
.find input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-right: 0; background: var(--surface);
  padding: 11px 18px; border-radius: 999px 0 0 999px;
}
.find input::placeholder { color: var(--muted); }
.find input:focus { outline: none; border-color: var(--accent-line); background: #fff; }
.find-go {
  font: inherit; font-weight: 500; cursor: pointer; color: #fff;
  border: 1px solid var(--accent-strong); background: var(--accent-strong);
  padding: 11px 24px; border-radius: 0 999px 999px 0;
}
.find-go:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.find:focus-within input { border-color: var(--accent); }

.top-right { display: flex; align-items: center; gap: 20px; justify-self: end; }
.phone { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.phone:hover { color: var(--accent-ink); }
.is-blank { color: var(--muted); font-weight: 400; }

.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  transition: border-color .15s, background .15s;
}
.cart-icon { flex: none; }
.cart-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.cart-link.is-full { border-color: var(--accent-line); background: var(--accent-soft); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent-strong); color: #fff; font-size: .8rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }

.cats { border-top: 1px solid var(--line-soft); }
/* Двенадцать категорий в одну строку не влезают: на широком экране полоса
   переносится, на телефоне остается лентой с горизонтальной прокруткой. */
.cats-in {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding-top: 11px; padding-bottom: 11px;
}
.cats-in::-webkit-scrollbar { display: none; }
.cats-link, .cats-all {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.cats-all { color: var(--accent-ink); font-weight: 600; }
.cats-link:hover, .cats-all:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ---------- Общая раскладка страниц */
main { display: block; padding-bottom: 56px; }
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs span { padding: 0 6px; }
.page-head { padding: 14px 0 6px; }
.block { margin-top: 48px; } /* только longhand: шорткат margin затирал бы 0 auto от .shell */
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.block-head h2 { margin-bottom: .3em; }
.more { font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.more:hover { border-bottom-color: var(--accent); }
.prose p { max-width: 74ch; }
.prose h2 { margin-top: 1.2em; }
.intro { color: var(--ink-soft); }

/* ---------- Главная: хиро с опт-сеткой */
.hero { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); }
.hero-in {
  display: grid; gap: 28px; padding-top: 44px; padding-bottom: 48px;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  color: var(--accent-ink); margin-bottom: 12px;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 58ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-grid {
  background: #fff; border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.hero-grid-head {
  font-family: 'Cormorant', Georgia, serif; font-size: 1.45rem; font-weight: 600;
  margin-bottom: 12px;
}
.steps { margin: 0; }
.step {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step dt { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.step dd {
  margin: 0; font-weight: 600; color: var(--accent-ink); font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.hero-grid-note { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Плитки категорий */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
  background: var(--bg); position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.tile:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile:hover::before { transform: scaleX(1); }
.tile-name { font-family: 'Cormorant', Georgia, serif; font-size: 1.32rem; font-weight: 600; }
.tile-n { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile-desc { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.tiles-big { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ---------- Изгибы */
.curls { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.curls-row { margin: 18px 0 6px; }
.curl {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px;
  transition: border-color .15s, background .15s;
}
.curl:hover, .curl.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.curl-letter {
  font-family: 'Cormorant', Georgia, serif; font-size: 1.9rem; font-weight: 600;
  color: var(--accent-ink); line-height: 1; width: 34px; text-align: center;
}
.curl-name { font-size: .96rem; }

/* ---------- Сетка карточек товара */
.grid {
  display: grid; gap: 14px; margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg);
  overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-shot {
  position: relative; display: block; background: var(--surface);
  aspect-ratio: 1 / 1; overflow: hidden;
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-hit {
  position: absolute; left: 10px; top: 10px; background: var(--accent-strong); color: #fff;
  font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  letter-spacing: .02em;
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.card-tag { margin: 0; }
.card-name { font-size: .98rem; font-weight: 500; line-height: 1.35; margin: 0; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a:hover { color: var(--accent-ink); }
.card-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: .82rem; color: var(--muted); }
.card-attrs span { background: var(--surface); border-radius: var(--r-sm); padding: 2px 8px; }
.card-foot { margin-top: auto; padding-top: 10px; display: grid; gap: 10px; }
.card-price { margin: 0; line-height: 1.35; }
.price { font-size: 1.18rem; font-weight: 600; }
.price-was { margin-left: 6px; font-size: .9rem; }
.price-opt { font-size: .82rem; color: var(--accent-ink); }
.card-foot .btn { width: 100%; }

/* Бейджи наличия */
.tag { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 999px; }
.tag-in { background: #eaf5ee; color: var(--ok); }
.tag-wait { background: var(--accent-soft); color: var(--accent-ink); }
.tag-out { background: #f4f1f1; color: var(--muted); }

/* ---------- Листинг: фильтры сбоку */
.listing { display: grid; gap: 26px; grid-template-columns: 250px minmax(0, 1fr); margin-top: 22px; }
.sift {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
  align-self: start; background: var(--bg);
}
/* Заголовок-раскрывашка нужен только на узком экране, на десктопе фильтры
   всегда развернуты и подписаны обычным заголовком .sift-head */
.sift-sum { display: none; }
.sift-head { display: flex; align-items: baseline; justify-content: space-between; }
.sift-head h2 { font-family: 'Onest', sans-serif; font-size: 1rem; font-weight: 600; margin: 0; }
.sift-reset { font-size: .84rem; }
.sift-group { border: 0; padding: 14px 0 0; margin: 0; }
.sift-group legend {
  padding: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 6px;
}
.pick { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: .94rem; }
.pick input { accent-color: var(--accent); width: 16px; height: 16px; }
.pick:hover span { color: var(--accent-ink); }
.pick-n { font-style: normal; color: var(--muted); font-size: .82rem; }
.sift-price { display: flex; gap: 8px; }
.sift-price input {
  width: 100%; min-width: 0; font: inherit; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.sift .btn { margin-top: 16px; width: 100%; }

.listing-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
.listing-n { margin: 0; font-weight: 500; }
.sorts { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; }
.sort { color: var(--muted); text-decoration: none; }
.sort:hover { color: var(--accent-ink); }
.sort.is-on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }
.empty { padding: 28px 0; color: var(--ink-soft); }

/* ---------- Карточка товара */
.item-top { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 18px; }
.shot-main {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); aspect-ratio: 1 / 1;
}
.shot-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.shot-row img {
  width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--line); cursor: zoom-in;
}
.shot-note { font-size: .84rem; color: var(--muted); margin-top: 10px; }

.item-buy { display: flex; flex-direction: column; gap: 4px; }
.item-tag { margin: 0 0 6px; }
.item-buy h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.item-lead { color: var(--ink-soft); }
.item-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; font-size: .88rem; }
.item-attrs span {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; color: var(--ink-soft);
}

.picker { margin: 6px 0 16px; }
.picker-head { font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.picker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .94rem; transition: border-color .15s, background .15s, color .15s;
  font-variant-numeric: tabular-nums;
}
.chip:hover span { border-color: var(--accent); color: var(--accent-ink); }
.chip input:checked + span { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.chip.is-off span { color: var(--muted); background: var(--line-soft); cursor: default; text-decoration: line-through; }

.item-price { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.price-now { margin: 0; }
.price-now .price { font-size: 1.9rem; }
.price-hint { margin: 6px 0 0; font-size: .9rem; color: var(--accent-ink); }
.item-act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 6px; }
.item-note { font-size: .88rem; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty-btn {
  width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 1.2rem; color: var(--ink-soft); border-radius: 999px;
}
.qty-btn:hover { color: var(--accent-ink); background: var(--accent-soft); }
.qty-val {
  width: 46px; height: 44px; border: 0; background: transparent; text-align: center;
  font: inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.qty-val::-webkit-outer-spin-button, .qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-val:focus { outline: none; }

.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; font-weight: 500; color: var(--ink-soft); background: var(--surface); }
.ask { border-bottom: 1px solid var(--line); padding: 10px 0; }
.ask summary { cursor: pointer; font-weight: 500; }
.ask summary::marker { color: var(--accent); }
.ask p { margin: 8px 0 4px; color: var(--ink-soft); }

.soon { border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 18px; background: var(--accent-soft); margin-top: 14px; }
.soon h2 { font-family: 'Onest', sans-serif; font-size: 1.05rem; }

/* ---------- Формы */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: .86rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px;
  width: 100%; max-width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field-set { border: 0; padding: 0; margin: 0 0 14px; }
.field-set legend { padding: 0; font-size: .86rem; color: var(--ink-soft); margin-bottom: 6px; }
.pick-line { display: inline-flex; margin-right: 18px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { font-size: .82rem; color: var(--muted); margin-top: 10px; max-width: 60ch; }
.warn {
  border-left: 3px solid var(--warn); background: #fdf2f2; color: #7d2020;
  padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.form-msg { margin-top: 12px; font-size: .94rem; }
.form-msg-ok { color: var(--ok); }
.form-msg-warn { color: var(--warn); }

/* ---------- Корзина */
.checkout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; margin-top: 18px; }
.bag { display: flex; flex-direction: column; gap: 12px; }
.bag-row {
  display: grid; align-items: center; gap: 6px 14px;
  grid-template-columns: 76px minmax(0, 1fr) auto auto auto 32px;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
}
.bag-row.is-off { opacity: .6; }
.bag-shot { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.bag-shot img { width: 76px; height: 76px; object-fit: cover; display: block; }
.bag-info { min-width: 0; }
.bag-name { font-size: .98rem; font-weight: 500; margin: 0 0 3px; line-height: 1.3; }
.bag-name a { color: var(--ink); text-decoration: none; }
.bag-name a:hover { color: var(--accent-ink); }
.bag-variant, .bag-tag { margin: 0; font-size: .86rem; color: var(--muted); }
.bag-warn { margin: 4px 0 0; font-size: .84rem; color: var(--warn); }
.bag-price { margin: 0; color: var(--muted); white-space: nowrap; }
.bag-sum { margin: 0; font-weight: 600; white-space: nowrap; min-width: 90px; text-align: right; }
.bag-drop {
  border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1;
  color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
}
.bag-drop:hover { color: var(--warn); background: var(--line-soft); }

.total {
  border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 18px 20px;
  background: var(--surface); position: sticky; top: 16px;
}
.bar-line { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.bar-hint { margin: 8px 0 16px; font-size: .9rem; color: var(--accent-ink); }
.sums { margin: 0; }
.sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sums dt { color: var(--ink-soft); }
.sums dd { margin: 0; font-variant-numeric: tabular-nums; }
.sums-off dd { color: var(--accent-ink); }
.sums-off.is-hidden { display: none; }
.sums-final { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; font-size: 1.15rem; }
.sums-final dt { color: var(--ink); font-weight: 500; }
.sums-final dd { font-weight: 600; }
.grid-open { margin-top: 14px; font-size: .9rem; }
.grid-open summary { cursor: pointer; color: var(--accent-ink); }
.grid-list { list-style: none; padding: 10px 0 0; margin: 0; }
.grid-list li { padding: 3px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid-list li.is-on { color: var(--ink); font-weight: 500; }

.order { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; }
.order-form { max-width: 640px; }
.hollow { padding: 50px 0; text-align: center; }
.hollow p { max-width: 52ch; margin-left: auto; margin-right: auto; }

.done { padding: 46px 0; max-width: 62ch; }
.done-mark { color: var(--accent); margin: 0 0 10px; }
.done-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Полоса опта и колонки */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 52px; }
.band-in { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 40px 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: center; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.checks li::before {
  content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; }
.steps-list { padding-left: 20px; }
.steps-list li { margin-bottom: 6px; color: var(--ink-soft); }
.block-form { border-top: 1px solid var(--line); padding-top: 24px; }
.contact-line { margin-bottom: 4px; }
.phone-big { font-size: 1.3rem; font-weight: 600; }

.opt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0 12px; }
.opt-cell { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; text-align: center; }
.opt-sum { margin: 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.opt-percent {
  margin: 4px 0 0; font-family: 'Cormorant', Georgia, serif; font-size: 2.1rem;
  font-weight: 600; color: var(--accent-ink); line-height: 1;
}

/* ---------- Статьи */
.posts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 16px; }
.posts-col { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
.post {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.post:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.post-title { font-family: 'Cormorant', Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.post-lead { font-size: .92rem; color: var(--ink-soft); }
.post-date { font-size: .82rem; color: var(--muted); }
.paper { max-width: 74ch; }
.paper-date { color: var(--muted); font-size: .88rem; }
.paper-back { margin-top: 30px; }

/* ---------- Подвал */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 26px; }
.foot-in { display: grid; gap: 26px; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.foot-col a:hover { color: var(--accent-ink); }
.foot-head { font-family: 'Onest', sans-serif; font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.foot-brand { font-family: 'Cormorant', Georgia, serif; font-size: 1.6rem; font-weight: 600; margin: 0 0 6px; }
.foot-text { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.foot-note { color: var(--muted); }
.foot-phone { margin: 0; }
.foot-low { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; }
.foot-low p { font-size: .84rem; color: var(--muted); margin: 0 0 6px; max-width: 90ch; }

/* ---------- Админка: та же палитра, плотнее сетка */
.adm { background: #f7f5f4; }
.adm-top { background: var(--ink); padding: 10px 0; }
.adm-nav { max-width: 1280px; margin: 0 auto; padding: 0 18px; display: flex; flex-wrap: wrap; gap: 18px; }
.adm-nav a { color: #ded8d6; text-decoration: none; font-size: .94rem; }
.adm-nav a:hover { color: #fff; }
.adm-main { max-width: 1280px; margin: 0 auto; padding: 22px 18px 60px; }
.adm-main h1 { font-family: 'Onest', sans-serif; font-size: 1.5rem; font-weight: 600; }
.adm-main h2 { font-family: 'Onest', sans-serif; font-size: 1.15rem; margin-top: 28px; }
.adm-login { max-width: 340px; margin: 12vh auto; }
.adm-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; max-width: 900px; }
.adm-row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.adm-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.adm-msg { background: #eaf5ee; color: var(--ok); padding: 10px 14px; border-radius: var(--r-sm); }
.adm-msg-warn { background: #fdf2f2; color: var(--warn); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.adm-table { font-size: .92rem; min-width: 720px; }
.adm-table th, .adm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.adm-table thead th { background: var(--surface); font-weight: 600; position: sticky; top: 0; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table input, .adm-table select { font: inherit; padding: 5px 7px; border: 1px solid var(--line); border-radius: var(--r-sm); max-width: 100%; }
.adm-group th { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.adm-danger { margin-top: 26px; }

/* ---------- Всплывающее сообщение о добавлении в корзину */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .94rem; box-shadow: var(--shadow); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast.is-warn { background: var(--warn); }

/* ---------- Лайтбокс фото */
.shot-main img, .shot-row img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(29, 26, 27, .88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: var(--r-md); }
.lightbox-x {
  position: absolute; right: 16px; top: 12px; background: transparent; border: 0;
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 6px 12px;
}
body.is-locked { overflow: hidden; }

/* ---------- Планшет */
@media (max-width: 1000px) {
  .listing { grid-template-columns: 1fr; }
  .sift { position: static; padding: 0; }
  .sift-sum {
    display: block; cursor: pointer; padding: 12px 18px; font-weight: 500;
    list-style: none; color: var(--accent-ink);
  }
  .sift-sum::-webkit-details-marker { display: none; }
  .sift-sum::after { content: ' +'; color: var(--muted); }
  .sift[open] .sift-sum::after { content: ' -'; }
  .sift form { padding: 0 18px 18px; }
  .sift .sift-head { display: none; }
  .checkout { grid-template-columns: 1fr; }
  .total { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .top-in { grid-template-columns: auto auto; grid-template-areas: 'brand right' 'find find'; }
  .brand { grid-area: brand; }
  .top-right { grid-area: right; }
  .find { grid-area: find; }
  .hero-in { grid-template-columns: 1fr; }
  .item-top { grid-template-columns: 1fr; gap: 22px; }
  .band-in { grid-template-columns: 1fr; }
}

/* ---------- Телефон: 390px без горизонтальной прокрутки */
@media (max-width: 620px) {
  body { font-size: 15px; }
  .shell { padding: 0 14px; }
  .usp-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .usp-in::-webkit-scrollbar { display: none; }
  .usp-item { white-space: nowrap; }
  .cats-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .cats-in::-webkit-scrollbar { display: none; }
  .top-phone { display: none; }
  .brand-name { font-size: 1.5rem; }
  .cart-link { padding: 8px 14px; }
  .cart-word { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: .9rem; }
  .price { font-size: 1.05rem; }
  .card-foot .btn { padding: 8px 12px; font-size: .86rem; }
  .tiles, .tiles-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 12px 14px; }
  .tile-name { font-size: 1.1rem; }
  .curls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { padding-top: 28px; padding-bottom: 32px; }
  .hero-act .btn { flex: 1; justify-content: center; }
  .bag-row {
    grid-template-columns: 62px minmax(0, 1fr) 30px;
    grid-template-areas: 'shot info drop' 'shot qty sum';
    row-gap: 10px;
  }
  .bag-shot { grid-area: shot; }
  .bag-shot img { width: 62px; height: 62px; }
  .bag-info { grid-area: info; }
  .bag-price { display: none; }
  .bag-row .qty { grid-area: qty; justify-self: start; }
  .bag-sum { grid-area: sum; text-align: right; min-width: 0; }
  .bag-drop { grid-area: drop; justify-self: end; }
  .listing-bar { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
  .adm-main { padding: 16px 12px 40px; }
}
