/* ============================================================
   Ювента 66 — дизайн-система
   Самостоятельный статический сайт, без CMS и сборщиков.
   ============================================================ */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #26201b;
  --ink-2: #54493f;
  --muted: #8a7c6f;
  --accent: #bc4030;
  --accent-dark: #9c3527;
  --accent-soft: #f8ebe7;
  --gold: #c19a3f;
  --gold-soft: #f6eedd;
  --green: #3d7a4f;
  --line: #eee4d8;
  --line-2: #e2d5c4;
  --radius: 18px;
  --radius-s: 12px;
  --shadow-1: 0 1px 2px rgba(64, 44, 29, .05), 0 10px 28px -14px rgba(64, 44, 29, .22);
  --shadow-2: 0 2px 6px rgba(64, 44, 29, .07), 0 28px 56px -20px rgba(64, 44, 29, .3);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(188, 64, 48, .55); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 12px 26px -10px rgba(156, 53, 39, .6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: #f2ddd6; color: var(--accent-dark); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Шапка ---------- */
.topbar { background: #2b241f; color: #cfc4b8; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #f3ece3; }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; gap: 22px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 242, .96);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 42px; height: 42px; border-radius: 13px; background: var(--accent);
  display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px rgba(188, 64, 48, .7);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.logo__name em { font-style: normal; color: var(--accent); }
.logo__tag { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: #f1e9de; color: var(--ink); }
.nav a.is-active { background: var(--accent-soft); color: var(--accent-dark); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 600 14.5px var(--font-body); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.97); }
.icon-btn__badge {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font: 700 12px/21px var(--font-body); text-align: center;
  box-shadow: 0 3px 8px rgba(188, 64, 48, .45);
  transform: scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.icon-btn__badge.is-visible { transform: scale(1); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }

.mobile-nav { display: none; }

/* ---------- Герой ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 44% at 82% 30%, rgba(193, 154, 63, .16), transparent 70%),
    radial-gradient(46% 40% at 12% 78%, rgba(188, 64, 48, .1), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 84px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font: 600 13.5px var(--font-body); box-shadow: var(--shadow-1); margin-bottom: 22px;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero__lead { font-size: 1.13rem; color: var(--ink-2); max-width: 520px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 38px; flex-wrap: wrap; }
.stat__num { font: 700 1.7rem var(--font-display); color: var(--ink); }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.hero__visual { position: relative; min-height: 480px; }
.hero__blob { position: absolute; inset: 6% 2% 4% 8%; background: linear-gradient(140deg, #f4e3d0, #f8ebe7 55%, #f6eedd); border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%; }
.hero__img {
  position: absolute; border-radius: 20px; object-fit: cover; background: #fff;
  box-shadow: var(--shadow-2); border: 6px solid #fff;
}
.hero__img--1 { width: 58%; aspect-ratio: .86; object-fit: contain; left: 0; top: 10%; transform: rotate(-4deg); }
.hero__img--2 { width: 44%; aspect-ratio: .8; right: 2%; top: 0; transform: rotate(3.5deg); }
.hero__img--3 { width: 46%; aspect-ratio: .92; right: 10%; bottom: 0; transform: rotate(-2deg); }
.hero__chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-2);
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center; white-space: nowrap;
}
.hero__chip--a { left: 46%; top: 42%; }
.hero__chip--b { left: 2%; bottom: 10%; }
.hero__chip .price { color: var(--accent); font-weight: 700; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero__chip--a { animation: float 5.5s ease-in-out infinite; }
  .hero__chip--b { animation: float 6.5s .8s ease-in-out infinite; }
  html { scroll-behavior: smooth; }
}

/* ---------- Секции ---------- */
.section { padding: 76px 0; }
.section--tight { padding: 54px 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head p { color: var(--muted); margin: 6px 0 0; max-width: 560px; }
.section__link { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow { display: inline-block; font: 700 12.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ---------- USP ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.usp__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 16px;
}
.usp__icon svg { width: 24px; height: 24px; }
.usp h3 { font-size: 1.08rem; margin-bottom: 6px; }
.usp p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Категории ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.cat-card__img { aspect-ratio: 1.15; background: #fff; overflow: hidden; padding: 14px; }
.cat-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.cat-card:hover .cat-card__img img { transform: scale(1.06); }
.cat-card__body { padding: 14px 16px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-card__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.cat-card__count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cat-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.cat-card:hover::after { transform: scaleX(1); }

/* ---------- Товары ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.card__imgwrap { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.card__imgwrap img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; cursor: pointer; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { padding: 5px 11px; border-radius: 999px; font: 700 11.5px var(--font-body); letter-spacing: .03em; }
.badge--sale { background: var(--accent); color: #fff; }
.badge--hit { background: var(--gold); color: #fff; }
.card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__name { font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--ink); min-height: 2.8em; }
.card__name a { color: inherit; }
.card__sku { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.card__desc {
  font-size: 13px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: 2.9em; margin: -2px 0 0;
}
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font: 700 1.12rem var(--font-body); color: var(--ink); }
.card__price s { color: var(--muted); font-weight: 500; font-size: .85rem; margin-right: 6px; }
.add-btn {
  width: 42px; height: 42px; border-radius: 13px; border: none; background: var(--accent-soft);
  color: var(--accent-dark); display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s, transform .15s;
}
.add-btn svg { width: 20px; height: 20px; }
.add-btn:hover { background: var(--accent); color: #fff; }
.add-btn:active { transform: scale(.92); }
.add-btn.is-added { background: var(--green); color: #fff; }

/* ---------- Баннеры ---------- */
.banner {
  position: relative; overflow: hidden; border-radius: 24px; background: #33291f; color: #f4ece2;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 300px;
}
.banner__content { padding: 48px 56px; position: relative; z-index: 2; }
.banner h2 { color: #fff; }
.banner p { color: #cbbfb1; max-width: 480px; }
.banner .btn-primary { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.banner__img { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; }
.banner__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .85; }
.banner__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #33291f 0%, rgba(51, 41, 31, .25) 45%, rgba(51, 41, 31, 0) 100%); z-index: 1; }

/* ---------- О магазине ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-split__media { position: relative; }
.about-split__media img { border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow-2); object-fit: cover; width: 100%; aspect-ratio: 1.05; }
.about-split__media--wide { align-self: center; }
.about-split__media--wide img { aspect-ratio: 1.62; }
.about-split__media .float-card {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-2); padding: 16px 22px; border: 1px solid var(--line);
}
.float-card__num { font: 700 1.6rem var(--font-display); color: var(--accent); }
.float-card__label { font-size: 13px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist .tick {
  width: 24px; height: 24px; border-radius: 50%; background: #e8f1ea; color: var(--green);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.checklist .tick svg { width: 13px; height: 13px; }

/* ---------- Доставка (полоса) ---------- */
.delivery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.delivery-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.delivery-card__icon { font-size: 30px; margin-bottom: 12px; }
.delivery-card h3 { font-size: 1.1rem; }
.delivery-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.delivery-card b { color: var(--ink); }

/* ---------- CTA ---------- */
.cta-band {
  border-radius: 24px; background: linear-gradient(120deg, var(--accent) 0%, #a63c2d 60%, #8f3224 100%);
  color: #fff; padding: 46px 54px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  box-shadow: 0 24px 50px -20px rgba(156, 53, 39, .55);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #f3d5cd; margin: 0; }
.cta-band__phone { font: 700 1.5rem var(--font-display); color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.cta-band__phone:hover { color: #fff; opacity: .9; }

/* ---------- Каталог ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-head p { color: var(--muted); max-width: 640px; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 7px; color: var(--line-2); }

.toolbar { display: flex; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field input {
  width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); padding: 0 20px 0 48px; font: 400 15px var(--font-body); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(188, 64, 48, .12); }
.search-field svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); }
.select-field select {
  height: 50px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  padding: 0 18px; font: 500 14.5px var(--font-body); color: var(--ink); outline: none; cursor: pointer;
}

.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font: 500 14px var(--font-body); cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip small { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active small { color: #b9aea2; }

.catalog-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.catalog-meta b { color: var(--ink); }

.show-more-wrap { text-align: center; margin-top: 40px; }
.empty-note { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-note h3 { color: var(--ink); }
.empty-note .btn { margin-top: 18px; }

/* ---------- Модальное окно товара ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(38, 32, 27, .55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 2; max-width: 880px; margin: 5vh auto; background: var(--surface);
  border-radius: 24px; box-shadow: var(--shadow-2); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; max-height: 90vh;
  animation: modalIn .25s cubic-bezier(.22, 1, .36, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__media { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border-right: 1px solid var(--line); }
.modal__media img { max-height: 52vh; object-fit: contain; }
.modal__media video { max-height: 52vh; max-width: 100%; width: 100%; border-radius: 12px; background: #000; }
.modal__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px; }
.modal__thumb {
  position: relative; width: 58px; height: 58px; border-radius: 10px; border: 2px solid var(--line);
  background: #fff; padding: 0; cursor: pointer; flex-shrink: 0; overflow: hidden;
  transition: border-color .15s;
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumb:hover { border-color: var(--line-2); }
.modal__thumb.is-active { border-color: var(--accent); }
.modal__thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 18px; background: rgba(38, 32, 27, .35); text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.modal__info { padding: 34px 34px 30px; overflow-y: auto; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal__badges { display: flex; gap: 8px; margin-bottom: 12px; }
.modal__name { font-size: 1.55rem; margin-bottom: 6px; }
.modal__sku { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal__desc { color: var(--ink-2); font-size: 14.8px; margin-bottom: 20px; white-space: pre-line; }
.modal__price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.modal__price { font: 700 1.7rem var(--font-body); }
.modal__price s { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: none; background: transparent; font-size: 19px; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: #f4ede3; }
.qty span { min-width: 38px; text-align: center; font-weight: 600; }
.modal__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.modal__note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.modal__note a { font-weight: 600; }

/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; margin: 34px 0 80px; }
.cart-list { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 14px;
}
.cart-item__img { width: 92px; height: 92px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__name { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.cart-item__sku { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-item__price { font-size: 14px; color: var(--muted); margin-top: 6px; }
.cart-item__price b { color: var(--ink); font-size: 15.5px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item__remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; }
.cart-item__remove:hover { color: var(--accent); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); padding: 7px 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; margin-bottom: 22px; }
.summary__total b { font: 700 1.5rem var(--font-body); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  padding: 12px 14px; font: 400 15px var(--font-body); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(188, 64, 48, .12); }
.field textarea { resize: vertical; min-height: 84px; }
.field .err { color: var(--accent); font-size: 12.5px; margin-top: 5px; display: none; }
.field.has-error input { border-color: var(--accent); }
.field.has-error .err { display: block; }
.radio-cards { display: grid; gap: 9px; }
.radio-card { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: var(--accent); }
.radio-card input { accent-color: var(--accent); margin-top: 3px; }
.radio-card.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.radio-card b { font-size: 14px; display: block; }
.radio-card span { font-size: 12.5px; color: var(--muted); }

.order-done { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 44px; max-width: 720px; margin: 40px auto 80px; text-align: center; box-shadow: var(--shadow-1); }
.order-done__icon { width: 72px; height: 72px; border-radius: 50%; background: #e8f1ea; color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.order-done__icon svg { width: 34px; height: 34px; }
.order-done h2 { margin-bottom: 10px; }
.order-done p { color: var(--ink-2); max-width: 520px; margin-inline: auto; }
.order-done__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
.order-done textarea { width: 100%; margin-top: 20px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--bg); padding: 16px; font: 400 13px/1.6 var(--font-body); color: var(--ink-2); min-height: 150px; resize: vertical; }

/* ---------- Инфо-страницы ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.12rem; margin: 1.4em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose .note { background: var(--gold-soft); border: 1px solid #eadfc2; border-radius: 14px; padding: 16px 20px; font-size: 14.5px; }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact-card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 15px; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 5px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--ink-2); word-break: break-word; }
.contact-card a { font-weight: 600; }

.map-embed { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: #efe8dd; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

.faq { max-width: 800px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 19px 24px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-2); font-size: 15px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table.requisites { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
table.requisites td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.requisites tr:last-child td { border-bottom: none; }
table.requisites td:first-child { color: var(--muted); width: 44%; }
table.requisites td:last-child { font-weight: 600; color: var(--ink); }

/* ---------- Подвал ---------- */
.footer { background: #2b241f; color: #b6a99b; margin-top: 40px; }
.footer a { color: #e8dfd4; }
.footer a:hover { color: #fff; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 58px 0 44px; }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: #8d8175; }
.footer h4 { color: #fff; font: 600 14px var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer__about { font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer__contacts { display: grid; gap: 10px; font-size: 14.5px; }
.footer__contacts .topbar__item svg { width: 16px; height: 16px; opacity: .7; }
.footer__bottom { border-top: 1px solid #41382f; padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__bottom a { color: #9a8d7f; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px); z-index: 120;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 24px;
  font: 600 14px var(--font-body); box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px; opacity: 0; transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s;
  pointer-events: none; max-width: min(92vw, 480px);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: #8fd6a4; flex-shrink: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .mobile-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
    background: rgba(250, 247, 242, .98); backdrop-filter: blur(14px);
    padding: 26px 22px; overflow-y: auto;
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a {
    display: flex; align-items: center; justify-content: space-between; padding: 17px 6px;
    font: 600 18px var(--font-body); color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .mobile-nav a svg { width: 18px; height: 18px; color: var(--muted); }
  .topbar__hide-m { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 22px; }
  .hero__visual { min-height: 360px; order: -1; }
  .hero__img--1 { width: 52%; }
  .hero__img--3 { right: 4%; }
  .banner { grid-template-columns: 1fr; }
  .banner__img { display: none; }
  .banner__content { padding: 38px 30px; }
  .about-split { grid-template-columns: 1fr; gap: 34px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cta-band { flex-direction: column; text-align: center; padding: 38px 26px; }
  .modal__dialog { grid-template-columns: 1fr; margin: 3vh 12px; max-height: 94vh; }
  .modal__media { border-right: none; border-bottom: 1px solid var(--line); padding: 18px; }
  .modal__media img, .modal__media video { max-height: 34vh; }
  .modal__info { padding: 24px; }
  .delivery-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__name { font-size: 13.5px; }
  .usp-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__img { width: 72px; height: 72px; }
  .cart-item__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 30px; }
  .order-done { padding: 30px 20px; }
  /* компактная шапка — чтобы не было горизонтального переполнения */
  .header .container { gap: 10px; }
  .logo { gap: 8px; }
  .logo__mark { width: 36px; height: 36px; border-radius: 11px; }
  .logo__mark svg { width: 19px; height: 19px; }
  .logo__name { font-size: 1.2rem; }
  .logo__tag { display: none; }
  .icon-btn { padding: 0 13px; height: 40px; }
  .hero__chip { font-size: 11.5px; padding: 8px 11px; border-radius: 11px; }
  .hero__chip--a { left: 34%; top: 48%; }
  .hero__chip--b { left: 1%; bottom: 6%; }
  .hero__visual { min-height: 300px; }
}

/* фокус с клавиатуры */
:focus-visible { outline: 3px solid rgba(188, 64, 48, .5); outline-offset: 2px; border-radius: 6px; }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(188, 64, 48, .6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); }
.to-top:active { transform: scale(.94); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------- Личный кабинет: вход, регистрация, профиль ---------- */
.auth-wrap { max-width: 520px; margin: 30px auto 80px; }
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 30px 32px; text-align: center;
}
.auth-card h1 { font-size: 1.5rem; margin: 14px 0 8px; }
.auth-note { color: var(--muted); font-size: 13.5px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: #f3ece2; border-radius: 999px; padding: 5px;
}
.auth-tabs a {
  padding: 10px; border-radius: 999px; text-align: center;
  font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.auth-tabs a.is-active { background: var(--accent); color: #fff; }
.auth-tabs a:hover { color: var(--ink); }
.auth-tabs a.is-active:hover { color: #fff; }
.auth-msg { padding: 11px 14px; border-radius: var(--radius-s); margin: 14px 0 4px; font-size: 14px; }
.auth-msg--err { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #efd2cb; }
.auth-big-icon {
  width: 64px; height: 64px; margin: 6px auto 4px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
  font-size: 30px; font-weight: 700;
}
.auth-big-icon--warn { background: var(--gold-soft); color: #8a6b23; }
.auth-back { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.header__login {
  font: 600 14px/1 var(--font-body); color: var(--ink-2);
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  white-space: nowrap;
}
.header__login:hover { border-color: var(--ink); color: var(--ink); }
.header__login.is-logged { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
.header__login.is-logged:hover { background: #f2ddd6; color: var(--accent-dark); }

.account-flash { padding: 13px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-weight: 500; }
.account-flash--ok { background: var(--green-soft); color: var(--green); border: 1px solid #cfe3d6; }
.account-flash--err { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #efd2cb; }
.confirm-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--gold-soft); border: 1px solid #e8d9b5;
  border-radius: var(--radius-s); padding: 16px 18px; margin-bottom: 20px;
}
.acc-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; padding-bottom: 70px; }
.acc-profile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 20px 22px;
  position: sticky; top: calc(var(--header-h) + 14px);
}
.acc-profile h2 { margin-top: 0; }
.acc-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.acc-row:last-of-type { border-bottom: 0; }
.acc-row span { color: var(--muted); }
.acc-yes { color: var(--green); }
.acc-no { color: var(--accent); }
.acc-orders h2 { display: flex; align-items: baseline; gap: 8px; }
.acc-empty {
  background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted);
}
.muted { color: var(--muted); font-weight: 400; font-size: .8em; }
@media (max-width: 900px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-profile { position: static; }
  .confirm-banner { flex-direction: column; align-items: flex-start; }
  .header__login { display: none; }
}

/* доступ к личному кабинету на экране «заказ принят» */
.order-account {
  margin: 18px auto 0;
  max-width: 460px;
  background: var(--gold-soft);
  border: 1px solid #e8d9b5;
  border-radius: var(--radius-s);
  padding: 16px 20px;
  display: grid; gap: 10px; justify-items: center;
}
.order-account b { color: var(--ink); }
.order-account p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Личный кабинет: карточки заказов, статусы, таблицы ---------- */
.order-list { display: grid; gap: 10px; }
.order {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow-1);
  overflow: hidden;
}
.order--new { border-left: 4px solid var(--accent); }
.order summary {
  display: grid;
  grid-template-columns: 130px 110px 1fr auto auto;
  gap: 6px 14px; align-items: center;
  padding: 14px 18px; cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.order summary::-webkit-details-marker { display: none; }
.order summary:hover { background: #fdfaf5; }
.order__num { font-weight: 700; }
.order__date { color: var(--muted); font-size: 12.5px; }
.order__customer { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.order__customer small { display: block; color: var(--muted); }
.order__total { text-align: right; }
.order__total small { display: block; color: var(--muted); font-weight: 400; }
.order__body { border-top: 1px solid var(--line); padding: 18px; background: #fdfbf7; }
.order__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }

.status {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font: 600 12px/1.3 var(--font-body); white-space: nowrap;
}
.status--new { background: var(--accent-soft); color: var(--accent-dark); }
.status--inwork { background: var(--gold-soft); color: #8a6b23; }
.status--done { background: var(--green-soft); color: var(--green); }
.status--cancel { background: #f1ece5; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font: 600 11.5px/1.2 var(--font-body);
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 8px 10px; border-bottom: 2px solid var(--line);
}
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #fdfaf5; }
.table tfoot td { border-bottom: 0; font-weight: 600; }
.table--tight { font-size: 13.5px; }
.table--tight th, .table--tight td { padding: 7px 8px; }

@media (max-width: 900px) {
  .order summary { grid-template-columns: 1fr auto; }
  .order__date, .order summary .status { display: none; }
}

/* превью товара в таблицах заказа (ЛК) */
.cell-thumb { width: 76px; }
.cell-thumb img, .thumb-fallback {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  display: block;
}
.thumb-fallback {
  background: var(--gold-soft);
  text-align: center; line-height: 54px; font-size: 26px;
}
