/* Витрина «Дом Рукоделия»: палитра логотипа — шоколадно-коричневый на кремовом.
   Имена переменных остались от макета (--violet = основной цвет, --yellow = акцент). */
:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --ink: #2b1d12;
  --muted: #7d6e60;
  --line: #ebe2d4;
  --violet: #4a2c14;
  --violet-dark: #33200d;
  --violet-soft: #f3eadc;
  --yellow: #d6b27a;
  --yellow-soft: #f5ead7;
  --ok: #2f7d4f;
  --bad: #b3372f;
  --radius: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Шапка */
.topbar { background: var(--violet); color: #fff; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px; text-align: center; }
.subbar { display: flex; justify-content: flex-end; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.subbar__link { display: inline-flex; gap: 6px; align-items: center; color: var(--violet); }
.header { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--violet); }
.logo__img { height: 52px; width: auto; }
.logo__word { height: 30px; width: auto; }
.footer .logo__img { height: 64px; }
.footer .logo__word { height: 34px; }
@media (max-width: 420px) { .logo__img { height: 42px; } .logo__word { height: 22px; } }
.logo__mark { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; color: var(--ink); }
.logo__text { font-family: var(--display); font-size: 15px; line-height: 1.15; letter-spacing: .01em; }
.logo__dot { color: var(--yellow); }
.logo--light { color: #fff; }
.nav { display: flex; gap: 32px; margin: 0 auto; font-weight: 500; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--violet-soft); }
.search { display: flex; align-items: center; }
.search input { width: 0; opacity: 0; border: 0; padding: 0; transition: width .2s, opacity .2s; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search:focus-within input, .search--open input { width: 190px; opacity: 1; border-bottom: 1px solid var(--line); padding: 4px; outline: none; }
.header { position: relative; }
.catalog-search { display: flex; gap: 8px; align-items: center; margin: 0 0 20px; max-width: 640px; }
.catalog-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.catalog-search .btn { flex: none; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.badge { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--yellow); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }
.burger { display: none; }

/* Кнопки и элементы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.btn:hover { border-color: var(--violet); color: var(--violet); }
.btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-dark); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.chip { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.chip--accent { background: var(--yellow); }
.chip--light { background: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--violet); display: flex; align-items: center; gap: 10px; }
.eyebrow--small { font-size: 11px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.flash { padding: 14px 18px; border-radius: 12px; margin: 16px 0; background: var(--violet-soft); }
.flash--error { background: #fbe9e7; color: var(--bad); }
.flash--success { background: #e7f4ec; color: var(--ok); }
.flash--warning { background: var(--yellow-soft); color: var(--violet-dark); }

/* Типографика */
.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 8px 0 16px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 32px); margin: 0 0 20px; }
.h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.lead { font-size: 18px; }
.section { padding: 40px 24px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.link-arrow { color: var(--violet); font-weight: 600; }
.crumbs { color: var(--muted); font-size: 14px; }

/* Главный экран */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 32px; align-items: center; }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.08; margin: 24px 0; letter-spacing: -.01em; }
.accent-word { color: var(--violet); background: linear-gradient(transparent 88%, var(--yellow) 88%); }
.hero__lead { color: var(--muted); font-size: 16px; margin: 0 0 32px; }
.hero__people { display: flex; align-items: center; margin-top: 40px; gap: 4px; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); background: #e8d9cf; display: grid; place-items: center; font-size: 11px; margin-right: -10px; }
.avatar--2 { background: #cdbfe2; } .avatar--3 { background: #cfd7c2; margin-right: 10px; }
.hero__media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1.07; background: var(--violet-soft); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(170deg, #d6b27a 0 40px, #e8d5bd 40px 80px, #b99878 80px 120px, #4a2c14 120px 160px, #8c6a4a 160px 200px); }
.hero__chip { top: 24px; left: 24px; padding: 8px 16px; }
.stamp { position: absolute; top: 30px; right: 22px; width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; transform: rotate(14deg); padding: 10px; }
.hero__card { position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(255,255,255,.95); border-radius: 14px; padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.hero__card-title { font-size: 19px; font-weight: 500; grid-column: 1; }
.round-arrow { grid-column: 2; grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1081px) { .catalog .grid--3 { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1300px) { .catalog .grid--3 { grid-template-columns: repeat(5, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }
.card__fav { position: absolute; top: 12px; right: 12px; }
.heart { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--violet); display: grid; place-items: center; cursor: pointer; }
.heart--on svg { fill: var(--violet); }
.card__meta { margin-top: 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 19px; font-weight: 500; margin: 6px 0 14px; }
.card__bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 18px; font-weight: 600; }
.price__unit { font-size: 13px; font-weight: 400; color: var(--muted); }
.plus { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--violet); }
.plus:hover { border-color: var(--violet); background: var(--violet-soft); }

.cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.cat-pill { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; }
.cat-pill--on, .cat-pill:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefits > div { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.benefits h3 { margin: 0 0 8px; }

/* Каталог */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.filters legend { font-weight: 700; margin-bottom: 6px; }
.filters__row { display: grid; gap: 6px; font-weight: 600; }
.filters select { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); }
.check small { margin-left: auto; }
.range__inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range__inputs input { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; }
.facet .facet__more { display: none; }
.facet--open .facet__more { display: flex; }
.facet__hide, .facet--open .facet__show { display: none; }
.facet--open .facet__hide { display: inline; }
.facet__toggle { justify-self: start; padding: 4px 0; font: inherit; }
.catalog__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.fchip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-dark); font-size: 14px; text-decoration: none; }
.fchip b { font-weight: 700; }
.fchip:hover { background: var(--yellow-soft); }
/* Листалка страниц каталога: номера, «…» с вводом номера. */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 32px; }
.pager__num, .pager__step { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pager__step { padding: 0 18px; gap: 6px; }
a.pager__num:hover, .pager__step:hover, .pager__gap:hover { border-color: var(--violet); color: var(--violet); }
.pager__num.is-on { background: var(--violet); border-color: var(--violet); color: #fff; cursor: default; }
.pager__gap { border-style: dashed; }
.pager__jump { width: 76px; height: 44px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--violet); font: inherit; font-weight: 600; text-align: center; }
@media (max-width: 560px) { .pager { gap: 6px; } .pager__num { min-width: 40px; height: 40px; padding: 0 8px; } .pager__step { height: 40px; padding: 0 14px; } .pager__word { display: none; } }

/* Страница товара */
.pdp { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; margin-top: 16px; }
.gallery__main { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: #fff; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 80px; height: 80px; flex: none; cursor: pointer; background: none; }
.gallery__thumbs button:hover { border-color: var(--violet); }
.gallery__thumbs button.is-on { border-color: var(--violet); }
.gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--violet); box-shadow: 0 2px 8px rgba(43,29,18,.18); pointer-events: none; }

/* Фото на весь экран */
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: #140d08; color: #fff; animation: lb-in .18s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox__img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; cursor: zoom-in; transform-origin: center; will-change: transform; }
.lightbox.is-zoomed .lightbox__img { cursor: grab; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; line-height: 1; z-index: 1; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; font-size: 34px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 40px; padding-bottom: 4px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; z-index: 1; }
.lightbox.is-zoomed .lightbox__nav, .lightbox.is-zoomed .lightbox__count { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .lightbox__nav { width: 42px; height: 42px; font-size: 32px; background: rgba(0,0,0,.35); } .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; } }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__price { font-size: 28px; font-weight: 700; margin: 8px 0 20px; display: flex; gap: 12px; align-items: baseline; }
.label { font-weight: 600; margin-bottom: 8px; display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 12px; }
.swatch--on { box-shadow: 0 0 0 2px var(--violet); }
.swatch--out { opacity: .4; }
.buy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.stepper { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 52px; border: 0; background: none; font-size: 22px; cursor: pointer; }
.stepper button:hover { background: var(--violet-soft); }
.stepper input { width: 90px; text-align: center; border: 0; font-size: 20px; font-weight: 600; padding: 10px 0; }
.hint { font-size: 14px; margin: 8px 0; }
.stock { font-weight: 600; margin: 12px 0 16px; }
.stock--ok { color: var(--ok); }
.stock--out { color: var(--bad); font-weight: 500; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 24px 0; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.specs-more { margin: -8px 0 24px; }
.specs-more summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--brown, #4A2C14); }
.specs-more .specs { margin-top: 8px; }
.gallery__video { width: 100%; margin-top: 12px; border-radius: var(--radius); background: #000; }
.prose p, .prose li { max-width: 68ch; }

/* Корзина и оформление */
.lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 18px; align-items: center; background: #fff; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.line__img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #efebe4; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__title { font-weight: 600; font-size: 17px; }
.line__qty input { width: 72px; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); text-align: center; font-size: 17px; }
.line__sum { font-weight: 700; min-width: 100px; text-align: right; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }
.cart-total__sum { font-size: 20px; }
.note { background: var(--yellow-soft); padding: 18px 20px; border-radius: 14px; margin: 20px 0; }
.note--accent { background: var(--violet-soft); }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; }
.field input, .field textarea, .field select { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 17px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--violet); border-color: transparent; }
.field--error input, .field--error textarea { border-color: var(--bad); }
.error { color: var(--bad); font-size: 14px; }
.radios { display: grid; gap: 10px; margin-bottom: 16px; }
.radio { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); }
.radio input { width: 20px; height: 20px; accent-color: var(--violet); }
.summary, .card-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.summary { position: sticky; top: 16px; }
.summary .h3, .card-box .h3 { margin-top: 0; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary__total { font-size: 19px; border-bottom: 0; }

/* Статус заказа */
.success { background: var(--violet-soft); border-radius: 20px; padding: 28px; margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: s; }
.steps li { position: relative; padding-top: 34px; font-size: 14px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 3px; background: var(--line); }
.steps__dot { position: absolute; top: 2px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { background: var(--violet); }
.steps li.is-done .steps__dot { border-color: var(--violet); background: var(--violet); }
.steps li.is-current { font-weight: 700; }
.steps li.is-current .steps__dot { background: var(--yellow); }
.timeline { list-style: none; padding: 0; display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; align-items: center; }
.status { padding: 4px 12px; border-radius: 999px; background: var(--violet-soft); font-size: 14px; }
.status--cancelled { background: #fbe9e7; color: var(--bad); }
.status--delivered { background: #e7f4ec; color: var(--ok); }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; }

/* Подвал */
.footer { background: var(--violet-dark); color: #f3eadc; margin-top: 64px; padding: 48px 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; }
.footer a, .footer span { display: block; margin-bottom: 6px; }
.footer .muted { color: #c9b8a3; }

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .section { padding: 28px 16px; }
  .hero, .pdp, .checkout { grid-template-columns: 1fr; gap: 28px; }
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .benefits, .footer__grid { grid-template-columns: 1fr; }
  .burger { display: inline-grid; }
  .nav { display: none; position: absolute; top: 150px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; z-index: 10; border-bottom: 1px solid var(--line); }
  .nav--open { display: flex; }
  .cart-link span:not(.badge) { display: none; }
  .header { gap: 12px; }
  .search:focus-within input, .search--open input { position: absolute; left: 0; right: 0; top: 100%; width: 100%; box-sizing: border-box; z-index: 12; padding: 12px 16px; font-size: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(43,29,18,.12); }
  .line { grid-template-columns: 72px 1fr; }
  .line__img { width: 72px; height: 72px; }
  .line__qty, .line__sum, .line .link-btn { grid-column: 2; text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 34px; }
  .steps li::before { display: none; }
  .summary { position: static; }
}
@media (max-width: 420px) {
  .card__title { font-size: 16px; }
  .price { font-size: 16px; }
}

/* Вход покупателя */
.auth { max-width: 560px; }
.auth__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-top: 8px; }
.auth__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.auth__links form { margin: 0; }
.code-input { font-size: 28px !important; letter-spacing: 12px; text-align: center; }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.profile-head form { margin: 0; }
.filters, .filters * { box-sizing: border-box; min-width: 0; }
.filters select, .filters .btn { width: 100%; }
@media (min-width: 1081px) { .filters { max-height: calc(100vh - 32px); overflow-y: auto; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.plus--none { opacity: .5; cursor: not-allowed; }

/* Баннер на главной: монограмма и надпись по центру, по краям — немного аксессуаров. */
.banner { position: relative; overflow: hidden; min-height: clamp(360px, 52vw, 560px); display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 20% 20%, #f8ddd3 0, transparent 55%), radial-gradient(ellipse at 85% 80%, #f6dcc4 0, transparent 55%),
              linear-gradient(135deg, #f7e1d7 0%, #f9e8da 45%, #f3e3cf 100%);
  background-size: cover; background-position: center; margin-bottom: 8px; }
.banner__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner__inner { position: relative; padding: 48px 16px; display: grid; justify-items: center; gap: 10px; }
.banner--photo .banner__inner { background: radial-gradient(closest-side, rgba(251,248,241,.85), rgba(251,248,241,0)); padding: 64px 72px; }
.banner__mark { width: clamp(96px, 12vw, 150px); height: auto; }
.banner__title { font-family: var(--display); font-weight: 600; color: var(--violet); font-size: clamp(40px, 6.4vw, 76px); line-height: 1; margin: 6px 0 0; }
.banner__ornament { width: clamp(180px, 22vw, 260px); height: auto; opacity: .9; }
.banner__lead { color: var(--violet-dark); font-size: clamp(16px, 1.6vw, 19px); margin: 4px 0 18px; }
@media (max-width: 520px) { .header .logo__word { display: none; } }
.auth__switch { margin-top: 18px; text-align: center; font-size: 17px; color: var(--muted); }
.auth__switch a { color: var(--violet); font-weight: 700; text-decoration: underline; margin-left: 6px; }
.auth__links { align-items: center; }

/* Баннер-картинка на главной */
.hero-banner { max-width: 1240px; margin: 16px auto 8px; padding: 0 16px; }
.hero-banner__link { display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(74,44,20,.12); }
.hero-banner img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .hero-banner { padding: 0 8px; } .hero-banner__link { border-radius: 12px; } }

/* Артикул */
.sku { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sku__code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); user-select: all; }
.sku--pdp { display: inline-block; margin: 6px 0 4px; padding: 6px 14px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 20px; font-weight: 700; }
.sku--pdp .sku__code { font-family: inherit; letter-spacing: .02em; }
/* Артикул прямо на фото: попадает в любой скриншот карточки или страницы товара */
.sku-badge { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(43,29,18,.88); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; pointer-events: none; }
.sku-badge small { font-size: 12px; font-weight: 600; opacity: .85; }
.sku-badge--lg { left: 12px; bottom: 12px; font-size: 20px; padding: 6px 14px; border-radius: 10px; }
.catalog > * { min-width: 0; }
.catalog-search .link-btn { flex: none; }
@media (max-width: 520px) { .catalog-search input { padding: 10px 14px; } .catalog-search .btn { padding-left: 16px; padding-right: 16px; } }

/* Выбор пункта выдачи СДЭК */
.pvz { margin: 4px 0 12px; }
.pvz__map { height: 320px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; z-index: 0; }
.pvz__search { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; margin-bottom: 8px; background: #fff; }
.pvz__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pvz__list li { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; line-height: 1.4; }
.pvz__list li:last-child { border-bottom: 0; }
.pvz__list li:hover { background: #faf5ec; }
.pvz__list li.is-active { background: #f1e6d3; }
.pvz__list small { display: block; color: var(--muted); }
.pvz__btn { margin-top: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: 13px; }

/* Отзывы покупателей на странице товара */
.reviews__summary { font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 12px; white-space: nowrap; }
.reviews__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.review__meta { color: var(--muted); font-size: 14px; }
.review__text { margin: 0; line-height: 1.55; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.stars { color: var(--yellow); letter-spacing: 2px; }
.stars__off { color: var(--line); }
@media (max-width: 480px) { .reviews__list { grid-template-columns: 1fr; } }
.review__source { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--violet); }

/* Доска отзывов: главная и /reviews/ */
.rboard { background: var(--violet-soft); padding: clamp(36px, 6vw, 64px) 0; margin: 24px 0; }
.rboard--page { margin-top: 0; }
.rboard__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.rboard__kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--violet); }
.rboard__title { margin: 0; }
.rboard__summary { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 12px 20px; border: 1px solid var(--line); }
.rboard__score { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--violet); }
.stars--lg { font-size: 18px; }
.rboard__grid { columns: 3 300px; column-gap: 20px; }
.rboard__more { text-align: center; margin: 28px 0 0; }
.rcard { break-inside: avoid; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; box-shadow: 0 1px 0 rgba(74, 44, 20, .04); transition: box-shadow .2s, transform .2s; }
.rcard:hover { box-shadow: 0 10px 30px rgba(74, 44, 20, .10); transform: translateY(-2px); }
.rcard__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rcard__date { color: var(--muted); font-size: 13px; }
.rcard__text { margin: 0; position: relative; padding-left: 22px; line-height: 1.6; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__text::before { content: "“"; position: absolute; left: -2px; top: -12px; font-family: var(--display); font-size: 46px; color: var(--yellow); line-height: 1; }
.rcard--full .rcard__text { -webkit-line-clamp: unset; display: block; }
.rcard__photos { display: flex; gap: 8px; flex-wrap: wrap; }
.rcard__photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.rcard__author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.rcard__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow-soft); color: var(--violet); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
.rcard__ozon { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--violet); }
.rcard__product { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -8px -8px; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 13px; }
a.rcard__product:hover { background: var(--yellow-soft); }
.rcard__product img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.rcard__ptitle { flex: 1; line-height: 1.35; }
.rcard__go { color: var(--violet); font-size: 18px; }
.rcard__sold { color: var(--muted); font-size: 12px; white-space: nowrap; }
.rcard__product--off { opacity: .85; }
.rcard__photos img, .rcard__product img { background: var(--yellow-soft); }
.rboard__hint { display: none; }
@media (max-width: 640px) {
  .rboard__grid { columns: 1; }
  /* На главной в телефоне — лента, которую листают пальцем */
  .rboard:not(.rboard--page) .rboard__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .rboard:not(.rboard--page) .rboard__grid::-webkit-scrollbar { display: none; }
  .rboard:not(.rboard--page) .rcard { flex: 0 0 86%; scroll-snap-align: center; margin: 0; }
  .rboard:not(.rboard--page) .rcard__author { margin-top: auto; }
  .rboard:not(.rboard--page) .rboard__hint { display: block; text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
  .rboard__summary { width: 100%; }
  .rcard__text { -webkit-line-clamp: 6; }
}

/* Текст для поисковиков и экранных дикторов, на экране не виден. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Статьи */
.articles { display: grid; gap: 16px; margin-top: 20px; }
.article-card { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.article-card:hover { border-color: var(--violet); }
.article-card img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 12px; }
.article-card .h3 { margin: 0 0 8px; }
.article-card p { margin: 0 0 10px; }
.article__image { width: 100%; height: auto; border-radius: 16px; margin: 12px 0 20px; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.footer__social a { display: block; }
.seo-text { border-top: 1px solid var(--line); padding-top: 24px; }
.seo-text h2 { font-size: 22px; }
@media (min-width: 800px) { .articles--row { grid-template-columns: repeat(3, 1fr); } }
