/* ============================================================
   Bomond — стили
   Дизайн-токены и все компоненты сайта (см. README.md)
   ============================================================ */

:root {
  --bg: #f7f6f3;
  --bg-card: #fbfaf8;
  --bg-photo: #e7e5e1;
  --bg-slot: #e8e6e1;
  --ink: #141414;
  --ink-2: #57544e;
  --ink-3: #8a867e;
  --line: #e2dfd9;
  --line-2: #d8d5cf;
  --line-3: #c9c5bd;
  --hover: #6f6c66;
  --btn-hover: #33312d;
  --err: #b45049;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Tenor Sans', sans-serif;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- база ---------- */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--hover); }
::selection { background: var(--ink); color: #fff; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  letter-spacing: inherit;
}

h1, h2, h3, p { margin: 0; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}
/* полноширинные страницы (каталог): без ограничения 1320px */
.container--wide { max-width: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes trackIn { from { opacity: 0; letter-spacing: 0.7em; } to { opacity: 1; letter-spacing: 0.42em; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: none; } }
@keyframes searchDrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes scan { from { background-position: 0 -100%; } to { background-position: 0 200%; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideOutLeft { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes slideOutRight { from { transform: none; } to { transform: translateX(100%); } }

/* блокировка прокрутки фона под открытыми панелями/модалами */
body.no-scroll { overflow: hidden; }

/* анимация закрытия оверлеев (класс вешает closeOverlay в app.js) */
.ov--closing .scrim,
.ov--closing .modal-scrim,
.ov--closing .modal { animation: fadeOut 0.3s ease both; }
.ov--closing .drawer--left { animation: slideOutLeft 0.3s var(--ease) both; }
.ov--closing .drawer--right { animation: slideOutRight 0.3s var(--ease) both; }

/* ---------- общие элементы ---------- */

.tricolor { display: inline-flex; }
.tricolor i { width: 11px; height: 2px; }
.tricolor i:nth-child(1) { background: #3d7a55; }
.tricolor i:nth-child(2) { background: #c9c5bd; }
.tricolor i:nth-child(3) { background: #b45049; }
.tricolor--announce i { width: 12px; }
.tricolor--announce i:nth-child(2) { background: #e9e7e2; }
.tricolor--footer i:nth-child(2) { background: #55534e; }

.made-in {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 17px 40px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: #fff; letter-spacing: 0.2em; }
.btn--dark:hover { background: var(--btn-hover); }
.btn--outline {
  border: 1px solid var(--ink);
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { display: block; width: 100%; }

.link-u {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.link-u:hover { color: var(--hover); }

.link-muted {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 3px;
  align-self: flex-start;
}
.link-muted:hover { color: var(--ink); }

.x { font-size: 24px; line-height: 1; }
.x:hover { color: var(--hover); }

.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.input {
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  outline: none;
}
.input--err { border-color: var(--err); }
.input--slim { padding: 8px 12px; }

.search-input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 2px;
  border: none;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.err-text { font-size: 11px; color: var(--err); }

/* фото товара: белые снимки на серой подложке через multiply */
.ph-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-photo);
  background-blend-mode: multiply;
  transition: transform 0.7s ease;
}

/* ---------- прелоадер ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.preloader--fade { opacity: 0; }
.preloader__logo { height: 72px; width: auto; mix-blend-mode: multiply; animation: fadeIn 0.7s ease both; }
.preloader__name { font-size: 22px; padding-left: 0.42em; animation: trackIn 1.1s var(--ease) both; }
.preloader__line { width: 130px; height: 1px; background: var(--ink); transform-origin: center; animation: lineGrow 1.3s var(--ease) both; }
.preloader__sub { font-size: 9.5px; letter-spacing: 0.32em; color: var(--ink-3); text-transform: uppercase; animation: fadeIn 0.9s ease 0.4s both; }

/* ---------- анонс-полоса и шапка ---------- */

.announce {
  background: var(--ink);
  color: #f5f4f1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.announce__dot { opacity: 0.4; }
.announce .tricolor { margin-left: 6px; }

.hdr {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
/* шапка на всю ширину экрана — элементы прижаты к краям */
.hdr__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  padding: 0 28px;
}
.hdr__left { display: flex; align-items: center; gap: 14px; }
/* лупа стоит в левой группе, после бургера: отделяем её от слова «Меню»,
   чтобы иконка не читалась как часть подписи */
.hdr__icon--search { margin-left: 6px; }

.burger { display: flex; flex-direction: column; gap: 5px; padding: 6px 0; }
.burger span { width: 24px; height: 1.5px; background: var(--ink); }
.burger span:nth-child(3) { width: 16px; }

.hdr__menu-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.hdr__menu-label:hover { color: var(--hover); }

.hdr__logo { display: flex; align-items: center; gap: 16px; cursor: pointer; justify-self: center; }
.hdr__logo img { height: 48px; width: auto; mix-blend-mode: multiply; }
.hdr__logo-text { display: flex; flex-direction: column; gap: 2px; }
.hdr__logo-name { font-size: 19px; letter-spacing: 0.4em; }
.hdr__logo-sub { font-size: 8.5px; letter-spacing: 0.3em; color: var(--ink-3); text-transform: uppercase; }

.hdr__icons { display: flex; align-items: center; gap: 26px; justify-self: end; }
.hdr__icon { display: flex; align-items: center; gap: 8px; }
.hdr__cart-count { font-size: 12px; min-width: 10px; }

.search-drop { border-top: 1px solid var(--line); background: var(--bg); animation: searchDrop 0.35s var(--ease) both; }
.search-drop__inner { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.search-drop__go {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
}
.search-drop__go:hover { color: var(--hover); }
.search-drop__close { font-size: 22px; line-height: 1; color: var(--ink-3); }
.search-drop__close:hover { color: var(--ink); }

/* ---------- оверлеи: меню и корзина ---------- */

.scrim { position: fixed; inset: 0; background: rgba(20, 20, 20, 0.42); z-index: 90; animation: fadeIn 0.3s ease both; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 91;
  display: flex;
  flex-direction: column;
}
.drawer--left { left: 0; width: 380px; padding: 36px 44px; overflow-y: auto; animation: slideInLeft 0.4s var(--ease) both; }
.drawer--right { right: 0; width: 440px; animation: slideInRight 0.4s var(--ease) both; }

.menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.menu__brand { font-size: 15px; letter-spacing: 0.4em; }
.menu__nav { display: flex; flex-direction: column; gap: 20px; }
.menu__nav button { font-family: var(--serif); font-size: 32px; }
.menu__nav button:hover { color: var(--hover); }
.menu__hr { height: 1px; background: var(--line); margin: 34px 0; }
.menu__cats { display: flex; flex-direction: column; gap: 14px; }
.menu__cats-label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.menu__cats button { font-size: 14px; }
.menu__cats button:hover { color: var(--hover); }
.menu__contacts { margin-top: auto; padding-top: 40px; font-size: 12px; color: var(--ink-3); line-height: 1.9; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }

.cart-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-3);
  padding: 0 40px;
  text-align: center;
}
.cart-empty__title { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--ink); }
.cart-empty__note { font-size: 13px; line-height: 1.6; }
.cart-empty__addr { font-size: 12px; color: var(--ink-2); }

.cart-items { flex: 1; overflow-y: auto; padding: 28px 40px; display: flex; flex-direction: column; gap: 26px; }

.cart-item { display: flex; gap: 18px; }
.cart-item__photo { width: 84px; height: 112px; flex-shrink: 0; overflow: hidden; background: var(--bg-slot); }
.cart-item__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-item__top { display: flex; justify-content: space-between; gap: 12px; }
.cart-item__name { font-size: 14px; }
.cart-item__rm { color: var(--ink-3); font-size: 17px; line-height: 1; padding: 6px 8px; margin: -6px -8px; }
.cart-item__rm:hover { color: var(--ink); }
.cart-item__size { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-item__sum { font-size: 14px; }

/* кнопки степпера с touch-зоной ≥32px */
.stepper { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); padding: 0 4px; }
.stepper button { font-size: 14px; padding: 8px 10px; }
.stepper button:hover { color: var(--hover); }
.stepper span { font-size: 13px; min-width: 18px; text-align: center; }

.cart-foot { border-top: 1px solid var(--line); padding: 26px 40px; display: flex; flex-direction: column; gap: 18px; }
.cart-foot__total { display: flex; justify-content: space-between; font-size: 15px; }
.cart-foot__addr { display: flex; flex-direction: column; gap: 8px; }
.cart-foot__addr .label { font-size: 10.5px; color: var(--ink-2); }
/* подсказки адреса: список раскрывается вверх — поле стоит у нижнего края экрана */
.addr-field { position: relative; }
.addr-sug {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: -1px;
  z-index: 3;
  max-height: 244px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
}
.addr-sug[hidden] { display: none; }
.addr-sug__item {
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.addr-sug__item:last-child { border-bottom: none; }
.addr-sug__item:hover,
.addr-sug__item.on { background: var(--bg); color: var(--ink); }

.cart-foot__note { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.cart-foot .btn { padding: 17px 0; }

/* ---------- главная ---------- */

.page-fade { animation: fadeIn 0.5s ease both; }

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.62) 0%, rgba(12, 12, 12, 0.28) 55%, rgba(12, 12, 12, 0.1) 100%);
}
.hero__content { position: relative; width: 100%; padding-top: 88px; padding-bottom: 88px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 68px;
  line-height: 1.06;
  margin-top: 28px;
  color: #fff;
  text-wrap: balance;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.hero__text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin-top: 26px;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 40px; animation: fadeUp 0.8s var(--ease) 0.3s both; }
.hero__cta .made-in { color: rgba(255, 255, 255, 0.85); }

.section { padding-top: 96px; }
.section--cats { padding-top: 104px; }
.section--about { padding-top: 104px; padding-bottom: 110px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

.section__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.section__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 1.8vw + 17px, 40px); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); margin-top: clamp(28px, 3.5vw, 44px); }
/* fluid-сетка: число колонок подстраивается под фактическую ширину
   (в т.ч. при зуме браузера) — 4 → 3 → 2 без жёстких брейкпоинтов;
   карточка не бывает уже ~215px и не растягивается уродливо */
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { cursor: pointer; display: flex; flex-direction: column; gap: 14px; }
.card:hover { opacity: 0.88; }
.card:hover .ph-img { transform: scale(1.045); }
.card__photo { aspect-ratio: 3 / 4; overflow: hidden; position: relative; background: var(--bg-slot); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg);
  padding: 6px 10px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card__meta { display: flex; flex-direction: column; gap: 6px; }
.card__name { font-size: 14px; }
.card__city { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.card__price { font-size: 14px; }

.tile { cursor: pointer; position: relative; }
.tile:hover { opacity: 0.88; }
.tile:hover .ph-img { transform: scale(1.045); }
.tile__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-slot); }
.tile__row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.tile__name { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.tile__arrow { font-size: 13px; }

.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.about__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-slot); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.about__eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--ink-3); }
.about__title { font-family: var(--serif); font-weight: 500; font-size: 46px; line-height: 1.12; margin-top: 24px; }
.about__text { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-top: 24px; max-width: 480px; }
.about__points { display: flex; flex-direction: column; margin-top: 36px; }
.about__point { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.about__point:last-child { border-bottom: 1px solid var(--line); }
.about__num { font-family: var(--serif); font-size: 22px; color: var(--ink-3); }
.about__point span:last-child { font-size: 14px; line-height: 1.6; }

/* ---------- каталог ---------- */

.page { padding-top: 48px; padding-bottom: 110px; }

.crumbs {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
}
.crumbs button:hover { color: var(--ink); }
.crumbs__cur { color: var(--ink); }

.page-head { display: flex; align-items: baseline; gap: 20px; margin: 18px 0 48px; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: 52px; }
.page-head__count { font-size: 13px; color: var(--ink-3); }

.cat-layout { display: flex; gap: 64px; align-items: flex-start; }

.filters {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.f-block__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.f-block__list { display: flex; flex-direction: column; gap: 11px; }

.opt { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 13.5px; }
.opt:hover { color: var(--hover); }

.cb {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cb i { width: 8px; height: 8px; background: transparent; }
.opt.on .cb i { background: var(--ink); }
.cb--round, .cb--round i { border-radius: 50%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  letter-spacing: 0.06em;
  user-select: none;
}
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }

.dots { display: flex; gap: 12px; }
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0;
}
.dot.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink); }

/* мобильная версия фильтров — выезжающая панель (стили в медиазапросах ниже) */
.filters__head { display: none; }
.filters__show { display: none; }
.filters-scrim { display: none; }
.btn-filters {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.btn-filters__count {
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-filters__count[hidden] { display: none; }

.toolbar { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.search-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.sort {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  outline: none;
}

.cat-main { flex: 1 1 0; min-width: 0; }
/* fluid-сетка как у «Новых поступлений»: auto-fill держит ширину карточки
   ~215–300px при любой ширине окна и любом зуме (в отличие от auto-fit
   одинокий найденный товар не растягивается на всю строку) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 28px 24px; }

.no-results { padding: 90px 0; text-align: center; color: var(--ink-3); }
.no-results__title { font-family: var(--serif); font-size: 28px; font-style: italic; }
.no-results__hint { font-size: 13px; margin-top: 12px; }

/* ---------- карточка товара ---------- */

.prod { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; margin-top: 44px; }

.prod__photo { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: var(--bg-slot); }

.try-result { position: absolute; inset: 0; overflow: hidden; background: var(--bg-slot); }
.try-result__photo { width: 100%; height: 100%; background-size: cover; background-position: center top; }
.try-result__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.82);
  color: #f5f4f1;
  padding: 8px 14px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.try-result__thumb {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 72px;
  height: 96px;
  overflow: hidden;
  border: 2px solid var(--bg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.try-result__back {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(247, 246, 243, 0.92);
  padding: 9px 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.try-result__back:hover { background: var(--bg); }

.prod__info { padding-top: 8px; }
.prod__city { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.prod__title { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.12; margin-top: 14px; }
.prod__price { font-size: 22px; margin-top: 20px; }
.prod__made { margin-top: 14px; font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-2); }
.prod__hr { height: 1px; background: var(--line); margin: 30px 0; }
.prod__color { font-size: 13px; color: var(--ink-2); }
.prod__color span { color: var(--ink); }
.prod__size-label { margin: 26px 0 14px; }
.prod__info .btn--dark { margin-top: 34px; padding-top: 18px; padding-bottom: 18px; }
.prod__info .btn--outline { margin-top: 12px; padding-top: 16px; padding-bottom: 16px; width: 100%; }

.prod__blocks { margin-top: 44px; display: flex; flex-direction: column; }
.info-block { border-top: 1px solid var(--line); padding: 22px 0; }
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block__label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.info-block__label::after { content: '+'; font-size: 16px; font-weight: 300; color: var(--ink-3); }
.info-block.open .info-block__label::after { content: '−'; }
.info-block__text { display: none; padding-top: 14px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.info-block.open .info-block__text { display: block; }

/* ---------- модал ИИ-примерки ---------- */

.modal-scrim { position: fixed; inset: 0; background: rgba(20, 20, 20, 0.5); z-index: 95; animation: fadeIn 0.3s ease both; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  background: var(--bg);
  z-index: 96;
  padding: 40px 44px;
  animation: fadeIn 0.35s ease both;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal__label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.modal__title { font-family: var(--serif); font-size: 26px; margin-bottom: 20px; }
.modal__disclaimer { margin-top: 20px; font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }

.delivery-text { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.delivery-text b { color: var(--ink); font-weight: normal; }

.try-upload {
  border: 1px dashed #b9b5ad;
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.try-upload:hover { border-color: var(--ink); }
.try-upload__title { font-size: 13.5px; }
.try-upload__hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.try-upload__btn {
  border: 1px solid var(--ink);
  padding: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.try-upload:hover .try-upload__btn { background: var(--ink); color: #fff; }

.try-preview { display: flex; gap: 20px; align-items: flex-start; }
.try-preview__photo { width: 150px; height: 200px; flex-shrink: 0; overflow: hidden; background: var(--bg-slot); }
.try-preview__photo div, .try-processing__photo div { width: 100%; height: 100%; background-size: cover; background-position: center top; }
.try-preview__body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.try-preview__note { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.try-preview__body .btn { padding: 14px 0; font-size: 11px; }

.try-processing { padding: 36px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.try-processing__photo { width: 150px; height: 200px; overflow: hidden; background: var(--bg-slot); position: relative; }
.try-processing__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(247, 246, 243, 0.85) 50%, transparent 70%);
  background-size: 100% 300%;
  animation: scan 1.6s linear infinite;
}
.try-processing__label { font-family: var(--serif); font-style: italic; font-size: 20px; }
.try-processing__hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- личный кабинет ---------- */

.page--narrow { max-width: 1000px; margin: 0 auto; }

.account__greet { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

.tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin: 44px 0 40px; }
.tabs--auth { gap: 28px; margin: 0 0 28px; }
.tab {
  padding-bottom: 16px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: -1px;
  color: var(--ink-3);
}
.tab.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

.auth-card {
  max-width: 440px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 40px 44px;
  margin-top: 36px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field .label { font-size: 10.5px; color: var(--ink-2); }
.auth-form .btn { padding: 15px 0; }
.auth-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.auth-sent { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.auth-err { font-size: 11.5px; color: var(--err); margin-top: 14px; }

.orders { display: flex; flex-direction: column; gap: 24px; }
.order { border: 1px solid var(--line); background: var(--bg-card); padding: 28px 32px; }
.order__top { display: flex; align-items: center; justify-content: space-between; }
.order__id { display: flex; align-items: baseline; gap: 18px; }
.order__no { font-size: 15px; letter-spacing: 0.06em; }
.order__date { font-size: 12.5px; color: var(--ink-3); }
.order__hr { height: 1px; background: var(--line); margin: 20px 0; }
.order__items { display: flex; flex-direction: column; gap: 10px; }
.order__item { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.order__thumb { width: 38px; height: 50px; flex-shrink: 0; overflow: hidden; background: var(--bg-slot); }
.order__item-name { flex: 1; }
.order__item-price { color: var(--ink-2); }
.order__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.order__repeat { color: var(--ink-2); }
.order__total { font-size: 15px; }

.chip-status { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.chip-status--transit { border: 1px solid var(--ink); padding: 6px 13px; }
.chip-status--delivered { background: var(--ink); color: #f5f4f1; padding: 7px 14px; }

.profile { max-width: 520px; display: flex; flex-direction: column; }
.prof-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-height: 26px;
}
.prof-row__label { color: var(--ink-3); }
.icon-btn { display: flex; padding: 4px; color: var(--ink-3); }
.icon-btn:hover { color: var(--ink); }
.icon-btn--save { color: var(--ink); }
.icon-btn--save:hover { color: var(--hover); }
.prof-row__actions { display: flex; gap: 10px; align-items: center; }

.btn-logout {
  margin-top: 32px;
  align-self: flex-start;
  border: 1px solid #d4a09a;
  background: #f6ece9;
  color: #a34d44;
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-logout:hover { background: #a34d44; border-color: #a34d44; color: #fff; }

/* ---------- футер ---------- */

.footer { background: var(--ink); color: #f5f4f1; }
.footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 42px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.footer__brand span { font-size: 17px; letter-spacing: 0.4em; }
.footer__about { font-size: 13px; line-height: 1.7; color: #9b978f; margin-top: 20px; max-width: 280px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.footer__col button { color: #f5f4f1; font-size: 13px; }
.footer__col button:hover { color: #9b978f; }
.footer__label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9b978f;
  margin-bottom: 6px;
}
.footer__muted { color: #9b978f; }

.footer__map {
  height: 340px;
  background: repeating-linear-gradient(45deg, #232220 0px, #232220 12px, #1c1b19 12px, #1c1b19 24px);
  border: 1px solid #2e2d2a;
  overflow: hidden;
}
.footer__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 11.5px;
  color: #6e6b64;
  letter-spacing: 0.08em;
}
.made-in--footer { font-size: 11.5px; text-transform: none; letter-spacing: 0.08em; }

/* ============================================================
   Адаптив
   Брейкпоинты: 1240 (узкий десктоп), 1024 (планшет),
   900 (планшет-портрет: фильтры в панель), 600 (мобильный)
   ============================================================ */

@media (max-width: 1240px) {
  .container { padding-left: 32px; padding-right: 32px; }
  .cat-layout { gap: 40px; }
  .prod { gap: 56px; }
  .hero__title { font-size: 58px; }
}

@media (max-width: 1024px) {
  .hero__title { font-size: 50px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .container { padding-left: 24px; padding-right: 24px; }

  /* шапка компактнее */
  .hdr__inner { height: 66px; padding: 0 18px; }
  .hdr__menu-label { display: none; }
  .hdr__logo { gap: 10px; }
  .hdr__logo img { height: 36px; }
  .hdr__logo-name { font-size: 15px; letter-spacing: 0.32em; }
  .hdr__icons { gap: 18px; }
  .announce { padding: 8px 12px; font-size: 9.5px; letter-spacing: 0.14em; text-align: center; }

  /* главная */
  .hero { min-height: 520px; }
  .hero__content { padding-top: 64px; padding-bottom: 64px; }
  .hero__title { font-size: 42px; }
  .section { padding-top: 64px; }
  .section--cats, .section--about { padding-top: 72px; }
  .section--about { padding-bottom: 72px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__title { font-size: 36px; }

  /* страницы */
  .page { padding-top: 32px; padding-bottom: 72px; }
  .page-head h1 { font-size: 40px; }
  .page-head { margin: 14px 0 32px; }

  /* каталог: сайдбар → выезжающая панель */
  .cat-layout { display: block; }
  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: var(--bg);
    z-index: 95;
    padding: 24px 28px calc(24px + env(safe-area-inset-bottom));
    gap: 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
  }
  .filters.open { transform: none; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; }
  .filters__show {
    display: block;
    margin-top: 8px;
    background: var(--ink);
    color: #fff;
    padding: 15px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .filters-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.42);
    z-index: 94;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .filters-scrim.on { opacity: 1; pointer-events: auto; }
  .btn-filters { display: inline-flex; }
  /* панель поиска/сортировки липнет под шапку при прокрутке каталога;
     в прилипшем состоянии строка поиска сворачивается (класс toolbar--stuck из app.js) */
  .toolbar {
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 66px;
    z-index: 5;
    background: var(--bg);
    padding: 12px 0 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .toolbar--stuck .search-line { display: none; }
  .search-line { flex: 1 1 100%; }
  .sort { flex: 1 1 0; min-width: 0; }

  /* карточка товара */
  .prod { grid-template-columns: 1fr; gap: 36px; margin-top: 0; }
  .crumbs--product { margin-bottom: 28px !important; }
  .prod__title { font-size: 32px; }

  /* футер */
  .footer__cols { gap: 36px; padding-top: 48px; padding-bottom: 40px; }
  .footer__map { height: 280px; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }

  /* анонс в одну строку: скрываем второе сообщение, триколор оставляем */
  .announce { font-size: 9.5px; letter-spacing: 0.14em; gap: 8px; }
  .announce__dot, .announce__extra { display: none; }

  /* в шапке остаётся только эмблема: «BOMOND» с подписью на узком экране
     жмётся до нечитаемого и толкает иконки к краям */
  .hdr__inner { padding: 0 12px; }
  .hdr__logo-text { display: none; }
  .hdr__logo img { height: 36px; }
  .hdr__logo { gap: 8px; }
  .hdr__icons { gap: 16px; }

  /* инпуты ≥16px, чтобы iOS не зумил при фокусе */
  .input, .search-input, .sort { font-size: 16px; }

  .hero { min-height: 440px; }
  .hero__title { font-size: 32px; margin-top: 12px; }
  .hero__text { font-size: 14px; margin-top: 18px; }
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }

  .section { padding-top: 48px; }
  .section--cats, .section--about { padding-top: 56px; }
  .section--about { padding-bottom: 56px; }

  /* «Новые поступления» и «Категории» — горизонтальные ленты со свайпом */
  .grid--4, .grid--3 {
    display: flex;
    gap: 12px;
    margin: 28px -16px 0;
    padding: 0 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
  }
  .grid--4::-webkit-scrollbar, .grid--3::-webkit-scrollbar { display: none; }
  .grid--4 .card { flex: 0 0 62vw; scroll-snap-align: start; }
  .grid--3 .tile { flex: 0 0 72vw; scroll-snap-align: start; }

  .about__title { font-size: 29px; }
  .about__text { font-size: 14px; }

  .page-head h1 { font-size: 34px; }
  .page-head__count { font-size: 12px; }
  .crumbs { font-size: 10px; flex-wrap: wrap; }

  /* на телефоне карточки уже минимальной ширины fluid-сетки — держим 2 колонки */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .card__name { font-size: 13px; }
  .card__price { font-size: 13px; }
  .badge { font-size: 8px; padding: 5px 8px; }

  .prod__title { font-size: 27px; }
  .prod__price { font-size: 19px; }

  /* оверлеи на всю ширину (+ запас под home-индикатор iPhone) */
  .drawer--left { width: 100vw; padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); }
  .drawer--right { width: 100vw; }
  .drawer__head { padding: 22px 24px; }
  .cart-items { padding: 22px 24px; }
  .cart-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); }
  .modal { width: calc(100vw - 24px); max-width: 460px; padding: 28px 24px; }

  /* личный кабинет */
  .auth-card { padding: 28px 22px; margin-top: 28px; }
  .tabs { gap: 22px; margin: 32px 0 28px; }
  .tab { font-size: 11px; }
  .order { padding: 20px 18px; }
  .order__top { flex-wrap: wrap; gap: 10px; }
  .order__bottom { flex-wrap: wrap; gap: 12px; }
  .prof-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .prof-row__label { grid-column: 1 / -1; font-size: 12px; }
  .prof-row__actions { grid-column: 2; }

  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .footer__map { height: 220px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 24px; padding-bottom: 24px; }
}

/* сверхузкие экраны (старые iPhone SE и т.п.) */
@media (max-width: 374px) {
  .grid--4 .card { flex-basis: 74vw; }
  .grid--3 .tile { flex-basis: 82vw; }
}
