/* ==========================================================================
   RETRO MUSIC MOSCOW — компоненты страниц: главная, каталог, товар, корзина, оформление
   ========================================================================== */

/* ------------------------------ хлебные крошки --------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}
.crumbs a { transition: color 0.15s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.45; }
.crumbs [aria-current] { color: var(--ink-2); }

.page-head { padding: 8px 0 30px; }
.page-head h1 { margin: 6px 0 12px; }
.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.page-head__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

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

.hero {
  position: relative;
  padding: 54px 0 74px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(169, 112, 42, 0.14), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}
.hero .lead { max-width: 46ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}
.hero__stats {
  display: flex;
  gap: 40px;
  margin: 36px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats dt {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stats dd {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}
.hero__ring {
  position: absolute;
  inset: 6% -8% -6% 12%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  opacity: 0.7;
  z-index: -1;
}
.hero__media {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), transparent 45%);
}
.hero__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: floaty 7s ease-in-out infinite;
}
.hero__float--price { left: -18px; bottom: 34px; }
.hero__float--note { right: -10px; top: 30px; animation-delay: -3s; color: var(--ink-2); }
.hero__float small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__float b { font-size: 13px; font-weight: 600; }
.hero__float-art {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  flex: none;
}
.hero__float .i { width: 14px; height: 14px; color: var(--accent); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* преимущества */
.perks {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}
.perks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  background: var(--paper);
}
.perk .i { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.perk h3 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 4px; }
.perk p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* категории */
.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 236px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cat-card:nth-child(4),
.cat-card:nth-child(5) { grid-column: span 3; min-height: 200px; }
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 16, 12, 0.86) 6%, rgba(18, 16, 12, 0.3) 52%, rgba(18, 16, 12, 0.02) 78%);
  transition: opacity 0.35s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card__title {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.15;
  color: #fff;
}
.cat-card__count { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.68); }
.cat-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.25s;
}
.cat-card:hover .cat-card__arrow { background: rgba(255, 255, 255, 0.28); transform: rotate(-45deg); }
.cat-card__arrow .i { width: 17px; height: 17px; }

/* вкладки и сетки */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab {
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tab:hover { background: rgba(25, 23, 18, 0.05); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* карточка товара */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 19, 15, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover .card__media::after { opacity: 1; }
.card__overlay { position: absolute; inset: 0; z-index: 1; }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #f8f2e6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(25, 23, 18, 0.08);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink-2);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.card__fav:hover { background: #fff; transform: scale(1.06); }
.card__fav .i { width: 16px; height: 16px; }
.card__fav.is-active { color: #b03e33; }
.card__fav.is-active .i { fill: currentColor; }
.card__quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.card__quick .btn { width: 100%; }
.card:hover .card__quick,
.card:focus-within .card__quick { opacity: 1; transform: none; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 17px 17px;
  flex: 1;
}
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__brand {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
}
.card__brand:hover { color: var(--accent); }
.card__title {
  font-size: 16.5px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card__title a { display: block; }
.card__title a:hover { color: var(--accent); }
.card__short {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__now { font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price__old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.rating .i { width: 12px; height: 12px; color: var(--accent); fill: currentColor; }
.rating b { font-weight: 600; }
.rating span { color: var(--ink-3); }

.stock { font-size: 10.5px; letter-spacing: 0.04em; white-space: nowrap; }
.stock--in { color: var(--success); }
.stock--low { color: var(--accent-2); }
.stock--out { color: var(--ink-3); }

/* горизонтальная карточка для списка */
.grid.is-list { grid-template-columns: 1fr; }
.grid.is-list .card { flex-direction: row; }
.grid.is-list .card__media { width: 210px; flex: none; aspect-ratio: auto; }
.grid.is-list .card__body { padding: 20px 24px; }
.grid.is-list .card__title { font-size: 19px; }
.grid.is-list .card__short { -webkit-line-clamp: 3; max-width: 62ch; }
.grid.is-list .card__quick .btn { width: 100%; }
.grid.is-list .card__body { position: relative; }

/* бренды */
.brands__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.brand-chip {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 17px 10px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-2);
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.brand-chip:hover { background: var(--paper-2); color: var(--accent); }
.brand-chip small { display: block; margin-top: 3px; font-family: var(--font-ui); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* подбор иглы */
.finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  background: var(--dark);
  color: #f3ebdc;
}
.finder__body { padding: 48px 46px; }
.finder__body h2 { color: #fbf6ea; margin-bottom: 14px; max-width: 18ch; }
.finder__body p { color: #a99d8c; font-size: 14px; max-width: 42ch; }
.finder__form { display: flex; gap: 10px; margin: 24px 0 16px; flex-wrap: wrap; }
.finder__form select {
  flex: 1;
  min-width: 200px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f3ebdc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a99d8c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.finder__form select option { color: #191712; }
.finder__hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8d8272; }
.finder__hint .i { width: 15px; height: 15px; }
.finder__art {
  background-color: #221e18;
  background-size: cover;
  background-position: center;
  min-height: 340px;
  position: relative;
}
.finder__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(21, 19, 15, 0.9), transparent 45%);
}

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step__num { font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* отзывы */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.quote__stars { display: flex; gap: 2px; color: var(--accent); }
.quote__stars .i { width: 14px; height: 14px; fill: currentColor; }
.quote p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.quote__author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.quote__ava {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-2);
  flex: none;
}
.quote__author b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }

/* подписка */
.newsletter {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 46px 48px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--dark), #2a241b);
  color: #f3ebdc;
}
.newsletter h2 { color: #fbf6ea; margin-bottom: 10px; }
.newsletter p { color: #a99d8c; font-size: 13.5px; margin: 0; max-width: 40ch; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  height: 50px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3ebdc;
}
.newsletter__form input::placeholder { color: #8d8272; }
.newsletter__form .btn { flex: none; }
.newsletter__note { margin-top: 10px; font-size: 11.5px; color: #8d8272; }

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

.catalog {
  display: grid;
  grid-template-columns: 258px 1fr;
  gap: 44px;
  align-items: start;
  padding: 30px 0 80px;
}
.filters { position: sticky; top: calc(var(--sticky-h) + 18px); }
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.filters__head h2 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.filters__reset {
  border: 0;
  background: none;
  font-size: 11.5px;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filters__reset:hover { color: var(--danger); }
.filters__mobile-head { display: none; }

.filter-cats { display: grid; gap: 2px; }
.filter-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-cat span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-cat:hover { background: var(--paper-2); color: var(--ink); }
.filter-cat.is-active { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.filter-cat.is-active span { color: var(--accent-2); }

.filter-group { border-bottom: 1px solid var(--line); }
.filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}
.filter-group__head .i { width: 15px; height: 15px; color: var(--ink-3); transition: transform 0.2s; }
.filter-group.is-collapsed .filter-group__head .i { transform: rotate(-90deg); }
.filter-group__body { display: grid; gap: 10px; padding-bottom: 18px; }
.filter-group.is-collapsed .filter-group__body { display: none; }
.filter-count { margin-left: auto; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input { height: 42px; font-size: 13px; padding: 0 10px; }
.filter-price span { color: var(--ink-3); }

.catalog__main { min-width: 0; }
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.toolbar__count { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.toolbar__count b { color: var(--ink); font-weight: 600; }
.toolbar .select { width: auto; min-width: 196px; height: 42px; font-size: 13px; }
.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.view-toggle button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border: 0;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.is-active { background: var(--ink); color: var(--paper); }
.view-toggle .i { width: 16px; height: 16px; }
.filters__toggle { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-bottom: 4px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  font-size: 11.5px;
  color: var(--ink-2);
}
.chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(25, 23, 18, 0.08);
  color: var(--ink-2);
  cursor: pointer;
}
.chip button:hover { background: var(--ink); color: var(--paper); }
.chip button .i { width: 11px; height: 11px; }
.chip--clear { background: transparent; padding: 5px 10px; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink-3); }
.chip--clear:hover { color: var(--danger); }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0 0; }
.load-more p { font-size: 12px; color: var(--ink-3); margin: 0; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.empty__art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-3);
  margin-bottom: 6px;
}
.empty__art .i { width: 30px; height: 30px; }
.empty h3 { font-size: 22px; }
.empty p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3); max-width: 40ch; }

/* ------------------------------- страница товара -------------------------- */

.product {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 54px;
  padding: 26px 0 56px;
  align-items: start;
}
.gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.gallery__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #f8f2e6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--ink); }
.gallery__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.gallery__note .i { width: 15px; height: 15px; }

.p-brand { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.p-title { font-size: clamp(27px, 3.2vw, 40px); margin: 12px 0 14px; }
.p-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.p-rating .rating { font-size: 13px; }
.p-rating .rating .i { width: 14px; height: 14px; }
.p-price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 4px; flex-wrap: wrap; }
.p-price__now { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.02em; }
.p-price__old { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.p-price__save { padding: 4px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-2); font-size: 11.5px; font-weight: 600; }
.p-stock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 16px; }
.p-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.p-stock.is-low::before { background: var(--accent); }
.p-stock.is-out::before { background: var(--ink-3); }
.p-stock.is-out, .p-stock.is-low { font-weight: 600; }

.p-lot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.p-lot__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p-lot__meta { color: var(--ink-3); }

.p-description { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }

.p-kit { margin-top: 46px; }
.p-kit .section__head { margin-bottom: 14px; }
.p-kit .specs { width: 100%; }

.filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}

.p-compat { margin-top: 46px; }
.p-compat h2 { font-size: 22px; margin-bottom: 10px; }
.p-compat__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.p-compat__tags a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  background: #fff;
}
.p-compat__tags a:hover { border-color: var(--ink); color: var(--ink); }
.p-compat__tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fff;
}
.p-compat__block { margin-bottom: 20px; }
.p-compat__block h3 { font-size: 16px; margin: 0 0 8px; }
.p-compat__more { font-size: 12px; color: var(--ink-3); margin: 4px 0 14px; }
.p-short { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 22px; }
.p-options { display: grid; gap: 8px; margin-bottom: 20px; }
.p-options label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.p-buy { display: flex; gap: 10px; align-items: stretch; margin-bottom: 18px; }
.p-buy .qty { height: 52px; }
.p-buy .qty button { height: 50px; }
.p-buy .btn { flex: 1; height: 52px; }
.p-buy .btn--outline { flex: none; width: 52px; padding: 0; }
.p-notes { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.p-note { display: flex; gap: 12px; font-size: 13px; color: var(--ink-2); }
.p-note .i { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.p-note b { font-weight: 600; }
.p-note span { color: var(--ink-3); }

.p-tabs { padding: 10px 0 60px; }
.p-tabs__nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.p-tab {
  position: relative;
  padding: 13px 16px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.18s;
}
.p-tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.p-tab:hover { color: var(--ink); }
.p-tab.is-active { color: var(--ink); }
.p-tab.is-active::after { transform: scaleX(1); }
.p-panel { display: none; max-width: 76ch; }
.p-panel.is-active { display: block; animation: fade 0.3s var(--ease); }
.p-panel h3 { margin: 0 0 12px; font-size: 21px; }
.p-panel p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.p-panel ul { display: grid; gap: 8px; margin: 16px 0; }
.p-panel li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.p-panel li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.p-info > .btn--block { margin-bottom: 20px; }
.p-buy__fav.is-active {
  color: #b03e33;
  border-color: rgba(176, 62, 51, 0.45);
  background: rgba(176, 62, 51, 0.06);
}
.p-buy__fav.is-active .i { fill: currentColor; }

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.reviews-score { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reviews-score b { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 400; }
.reviews-score .rating { display: inline-flex; gap: 1px; }
.reviews-score .rating .i { width: 15px; height: 15px; }
.reviews-score small { font-size: 12.5px; color: var(--ink-3); }

/* живые отзывы: распределение оценок, список и форма */
.reviews-bars {
  display: grid;
  gap: 4px;
  min-width: 220px;
  flex: 1;
  max-width: 360px;
}
.reviews-bar {
  display: grid;
  grid-template-columns: 14px 1fr 26px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.reviews-bar__track {
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  overflow: hidden;
}
.reviews-bar__track i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.reviews-bar b { font-weight: 500; text-align: right; color: var(--ink-2); }
.reviews-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.review-item p { white-space: pre-line; overflow-wrap: anywhere; }
.reviews-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-2);
}
.reviews-empty b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 6px;
}
.reviews-empty p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.review-form {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 680px;
}
.review-form h3 { margin-bottom: 6px; }
.review-form__hint { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.review-form__stars { display: flex; gap: 6px; margin-bottom: 14px; }
.review-star {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--line-strong);
  transition: color .15s ease, transform .15s ease;
}
.review-star .i { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.review-star:hover,
.review-star.is-active { color: var(--accent); }
.review-star:hover { transform: scale(1.06); }
.review-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
}
.review-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.review-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.review-form__foot span { font-size: 12px; color: var(--ink-3); }
.review-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(72, 118, 78, 0.35);
  border-radius: var(--radius);
  background: rgba(72, 118, 78, 0.07);
}
.review-success .i { width: 22px; height: 22px; color: #47764e; flex: none; }
.review-success b { display: block; margin-bottom: 4px; }
.review-success p { margin: 0; font-size: 13px; color: var(--ink-2); }
.review-cta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.review-cta .i { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.review-cta b { display: block; margin-bottom: 4px; }
.review-cta p { margin: 0; font-size: 13px; color: var(--ink-3); }
.review-cta a { text-decoration: underline; text-underline-offset: 3px; }

.p-panel[data-panel="specs"] { max-width: none; }
.specs { width: 100%; max-width: 840px; border-collapse: collapse; font-size: 13.5px; }
.specs th,
.specs td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 44%; font-weight: 400; color: var(--ink-3); }
.specs td { color: var(--ink); }

.related { padding: 0 0 80px; }

/* -------------------------------- корзина -------------------------------- */

.cart-page {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 40px;
  align-items: start;
  padding: 24px 0 80px;
}
.cart-table { border-top: 1px solid var(--line-strong); }
.cart-row {
  display: grid;
  grid-template-columns: 104px 1fr 116px 122px 34px;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row__art {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
}
.cart-row__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-row__brand { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.cart-row__title { font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.cart-row__title:hover { color: var(--accent); }
.cart-row__meta { font-size: 12px; color: var(--ink-3); }
.cart-row__price { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cart-row__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cart-row__remove:hover { background: rgba(163, 66, 58, 0.1); color: var(--danger); }
.cart-row__remove .i { width: 17px; height: 17px; }

.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 0;
}
.cart-page__cont { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cart-page__cont:hover { color: var(--accent); }
.cart-page__cont .i { width: 16px; height: 16px; transform: rotate(180deg); }

.summary {
  position: sticky;
  top: calc(var(--sticky-h) + 20px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary h2 { font-size: 21px; margin-bottom: 16px; }
.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.summary__row b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary__row--discount { color: var(--success); }
.summary__row--discount b { color: var(--success); }
.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.summary__total b { font-family: var(--font-display); font-size: 26px; font-weight: 400; font-variant-numeric: tabular-nums; }
.summary__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--paper);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.summary__note .i { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent); }
.summary .btn { margin-top: 16px; }
.summary__promo { display: flex; gap: 8px; margin: 18px 0 4px; }
.summary__promo input { height: 44px; font-size: 13px; text-transform: uppercase; }
.summary__promo .btn { margin: 0; flex: none; height: 44px; }
.summary__pay { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

.progress {
  margin: 18px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 11.5px;
  color: var(--ink-2);
}
.progress__bar { height: 4px; margin-top: 9px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.5s var(--ease); }

/* ------------------------------- оформление ------------------------------ */

.checkout {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 40px;
  align-items: start;
  padding: 24px 0 80px;
}
.steps-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.steps-line b { color: var(--ink); font-weight: 600; }
.steps-line i { flex: 1; height: 1px; background: var(--line-strong); max-width: 44px; }

.form-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 18px;
}
.form-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-card__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.form-card__head h2 { font-size: 19px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field--full { grid-column: 1 / -1; }

.radio-cards { display: grid; gap: 9px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.radio-card:hover { border-color: var(--ink-3); }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fffefb; }
.radio-card input { accent-color: var(--ink); width: 17px; height: 17px; flex: none; margin: 0; }
.radio-card__body { flex: 1; font-size: 13.5px; }
.radio-card__body small { display: block; font-size: 11.5px; color: var(--ink-3); }
.radio-card__price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.radio-card__icon { color: var(--ink-3); }
.radio-card__icon .i { width: 19px; height: 19px; }

.summary__items { display: grid; gap: 12px; margin-bottom: 6px; max-height: 320px; overflow-y: auto; }
.summary__item { display: flex; gap: 11px; align-items: center; font-size: 12.5px; }
.summary__item-art { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-2) center / cover no-repeat; flex: none; }
.summary__item-body { flex: 1; min-width: 0; }
.summary__item-body b { display: block; font-weight: 600; font-size: 12.5px; line-height: 1.35; }
.summary__item-body span { color: var(--ink-3); font-size: 11.5px; }
.summary__item-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.order-done {
  max-width: 640px;
  margin: 40px auto 90px;
  padding: 46px 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.order-done__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(75, 107, 69, 0.12);
  color: var(--success);
}
.order-done__icon .i { width: 30px; height: 30px; }
.order-done h1 { font-size: 32px; margin-bottom: 12px; }
.order-done p { color: var(--ink-2); font-size: 14.5px; }
.order-done__num {
  display: inline-block;
  margin: 6px 0 20px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  font-family: var(--font-display);
  font-size: 19px;
}
.order-done__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 26px; text-align: left; }
.order-done__facts div { padding: 14px; border-radius: 10px; background: var(--paper); }
.order-done__facts small { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.order-done__facts b { font-size: 13.5px; font-weight: 600; }

/* --------------------------- избранное и «о нас» ------------------------- */

.fav-page { padding: 8px 0 80px; }
.fav-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 64px;
}
.about-hero h1 { margin-bottom: 18px; }
.about-hero__art {
  aspect-ratio: 4 / 3.4;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2) center / cover no-repeat;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 24px; }
.stat b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.value .i { width: 22px; height: 22px; color: var(--accent); margin-bottom: 12px; }
.value h3 { font-size: 19px; margin-bottom: 7px; }
.value p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 20px;
  color: var(--ink-3);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 20px; margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: 78ch; }

.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card .i { width: 20px; height: 20px; color: var(--accent); margin-bottom: 12px; }
.contact-card h3 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contact-card p,
.contact-card a { font-size: 14px; color: var(--ink); margin: 0; line-height: 1.5; }
.contact-card a:hover { color: var(--accent); }

/* ------------------------------- адаптивность ---------------------------- */

@media (max-width: 1180px) {
  .nav__link { padding: 10px 8px; font-size: 12.5px; }
  .search { width: 200px; }
  .hero__inner { gap: 40px; }
  .footer__grid { gap: 32px; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .header__burger { display: inline-flex; }
  .header__inner { gap: 16px; }
  .search { margin-left: auto; }
  .header__fav { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__stage { max-width: 520px; }
  .hero__stats { gap: 30px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat-card,
  .cat-card:nth-child(4),
  .cat-card:nth-child(5) { grid-column: span 2; min-height: 210px; }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .brands__row { grid-template-columns: repeat(4, 1fr); }
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 125;
    width: min(360px, 92%);
    padding: 18px 20px 30px;
    background: var(--surface);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 0.4s var(--ease);
    box-shadow: 30px 0 80px -40px rgba(0, 0, 0, 0.5);
    visibility: hidden;
  }
  .filters.is-open { transform: translateX(0); visibility: visible; }
  .filters__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .filters__mobile-head h2 { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
  .filters__toggle { display: inline-flex; }
  .filters__head { justify-content: flex-end; padding-bottom: 0; border-bottom: 0; }
  .filters__head h2 { display: none; }
  .filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 124;
    background: rgba(21, 19, 15, 0.45);
    backdrop-filter: blur(2px);
  }
  .filters-backdrop[hidden] { display: none; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .gallery { max-width: 560px; }
  .cart-page,
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .newsletter { grid-template-columns: 1fr; gap: 24px; padding: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .finder { grid-template-columns: 1fr; }
  .finder__art { min-height: 220px; order: -1; }
  .finder__art::after { background: linear-gradient(to top, rgba(21, 19, 15, 0.95), transparent 55%); }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .search { display: none; }
  .header__cta { display: none; }
  .header__inner { justify-content: space-between; }
  .header__actions .header__fav { display: inline-flex; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat-card,
  .cat-card:nth-child(4),
  .cat-card:nth-child(5) { grid-column: span 1; min-height: 196px; }
  .cat-card:first-child { grid-column: span 2; min-height: 220px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .brands__row { grid-template-columns: repeat(3, 1fr); }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .cart-row { grid-template-columns: 78px 1fr 32px; gap: 14px; }
  .cart-row__art { width: 78px; height: 78px; }
  .cart-row__price { grid-column: 2; text-align: left; }
  .cart-row__remove { grid-row: 1; grid-column: 3; }
  .cart-row__qty { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .order-done__facts { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  .container { width: calc(100% - 32px); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__inner > * { min-width: 0; }
  .hero__stage { width: 100%; max-width: 100%; min-width: 0; }
  .hero__media { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .hero .lead, .page-head .lead { max-width: 100%; overflow-wrap: anywhere; }
  .catalog { grid-template-columns: 1fr; gap: 22px; }
  .product { grid-template-columns: 1fr; gap: 26px; }
  .product > *, .gallery, .p-info { min-width: 0; width: 100%; }
  .gallery__main { width: 100%; }
  .p-title { overflow-wrap: anywhere; }
  .announce__inner { gap: 8px; justify-content: center; font-size: 9.5px; }
  .announce__inner span:not(:first-child),
  .announce__dot { display: none; }
  .hero { padding: 30px 0 52px; }
  .hero__stats { flex-wrap: wrap; gap: 20px 28px; }
  .hero__stats dt { font-size: 25px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .view-toggle { display: none; }
  .page-head .lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
  }
  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section__head .link-arrow { align-self: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__float--price { left: 0; bottom: 16px; }
  .hero__float--note { top: 14px; right: 0; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .p-buy {
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 10px;
    align-items: stretch;
  }
  .p-buy .qty { height: 52px; grid-area: 1 / 1 / 2 / 2; }
  .p-buy .btn--primary { grid-area: 2 / 1 / 3 / 3; }
  .p-buy .btn--outline { display: inline-flex; width: 52px; flex: none; grid-area: 1 / 2 / 2 / 3; }
  .p-tabs__nav { overflow-x: auto; flex-wrap: nowrap; }
  .p-tab { white-space: nowrap; }
  .summary,
  .form-card { padding: 20px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .order-done { padding: 32px 22px; }
  .newsletter { padding: 28px 22px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .finder__body { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .hero__stage { min-height: 320px; }
  .hero__float--price { left: 8px; bottom: 12px; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid { gap: 12px; }
  .card__body { padding: 11px 12px 13px; gap: 4px; }
  .card__title { font-size: 14.5px; }
  .card__short { display: none; }
  .card__foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .price__now { font-size: 14.5px; }
  .card__fav { width: 30px; height: 30px; }
  .card__brand { font-size: 9.5px; letter-spacing: 0.08em; max-width: 64%; }
  .stock { font-size: 9.5px; }
  .card__badge { top: 8px; left: 8px; font-size: 9px; padding: 4px 7px; }
  .cats { grid-template-columns: 1fr; }
  .cat-card,
  .cat-card:first-child,
  .cat-card:nth-child(4),
  .cat-card:nth-child(5) { grid-column: span 1; min-height: 168px; }
  .brands__row { grid-template-columns: repeat(2, 1fr); }
  .brand-chip { min-height: 68px; font-size: 14px; }
  .perks__grid { grid-template-columns: 1fr; }
  .perk { padding: 18px 16px; }
  .toolbar .select { min-width: 0; flex: 1; }
  .toolbar__count { width: 100%; margin-bottom: 4px; }
  .grid.is-list .card { flex-direction: column; }
  .grid.is-list .card__media { width: 100%; aspect-ratio: 1/1; }
  .cart-row { grid-template-columns: 64px 1fr 28px; gap: 10px; }
  .cart-row__art { width: 64px; height: 64px; }
  .cart-row__title { font-size: 15px; }
  .cart-row__price { font-size: 14px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .hero__float--note { display: none; }
  .order-done h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .card__quick { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .card__quick { left: auto; right: 10px; bottom: 10px; opacity: 1; transform: none; }
  .card__quick .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px -8px rgba(25, 23, 18, 0.6);
  }
  .card__quick .btn .i { width: 18px; height: 18px; }
  .card__quick .btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------ чат поддержки ---------------------------- */

.shop-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  font-family: var(--font-ui);
}

.chat-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--accent-2); }
.chat-launcher .i { width: 25px; height: 25px; }
.chat-launcher.has-unread { animation: chat-pulse 2.4s infinite; }
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169, 112, 42, 0.35), var(--shadow); }
  50% { box-shadow: 0 0 0 10px rgba(169, 112, 42, 0), var(--shadow); }
}
.chat-launcher__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 2px solid var(--paper);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--dark);
  color: #f5eee1;
}
.chat-panel__who { display: flex; align-items: center; gap: 10px; }
.chat-panel__who b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.chat-panel__who small { display: block; margin-top: 2px; font-size: 11px; color: rgba(245, 238, 225, 0.55); }
.chat-panel__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
}
.chat-panel__avatar--logo {
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(245, 238, 225, 0.25);
}
.chat-panel__close {
  border: 0;
  background: transparent;
  color: rgba(245, 238, 225, 0.7);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.chat-panel__close:hover { color: #fff; }

.chat-panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  background: var(--paper);
  scrollbar-width: thin;
}
.chat-empty { margin: auto 4px; text-align: center; color: var(--ink-2); font-size: 13px; }
.chat-empty b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.chat-empty p { margin: 0; }

.chat-msg { display: flex; flex-direction: column; max-width: 86%; }
.chat-msg--me { align-self: flex-end; align-items: flex-end; }
.chat-msg--staff { align-self: flex-start; align-items: flex-start; }
.chat-msg__bubble {
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-msg--me .chat-msg__bubble { background: var(--accent); border-color: var(--accent); color: #fffaf1; border-bottom-right-radius: 4px; }
.chat-msg--staff .chat-msg__bubble { border-bottom-left-radius: 4px; }
.chat-msg__bubble p { margin: 0 0 6px; white-space: pre-wrap; }
.chat-msg__bubble p:last-child { margin-bottom: 0; }
.chat-msg__time { margin-top: 4px; padding: 0 4px; font-size: 10px; color: var(--ink-3); }

.chat-photo-link { display: block; margin-top: 6px; overflow: hidden; border-radius: 9px; }
.chat-photo-link img { width: 100%; max-height: 220px; object-fit: cover; }
.chat-msg--me .chat-photo-link { background: rgba(255, 255, 255, 0.15); }

.chat-product {
  display: flex;
  gap: 9px;
  margin-top: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.chat-product__art {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--paper-2) center / cover no-repeat;
}
.chat-product__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.chat-product__body b { font-size: 12px; line-height: 1.25; font-weight: 600; }
.chat-product__body span { margin-top: 3px; font-size: 12px; color: var(--accent-2); font-weight: 600; }
.chat-msg--me .chat-product { color: var(--ink); }

.chat-panel__form {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.chat-panel__form textarea {
  flex: 1;
  min-height: 40px;
  max-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  resize: none;
}
.chat-photo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
}
.chat-photo:hover { border-color: var(--accent); color: var(--accent); }
.chat-photo .i { width: 19px; height: 19px; }
.chat-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.chat-send:hover { background: var(--accent-2); }
.chat-send .i { width: 18px; height: 18px; }
.chat-panel__status {
  position: absolute;
  left: 12px;
  bottom: -18px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.chat-panel__auth { padding: 22px 18px; text-align: center; font-size: 13px; color: var(--ink-2); }
.chat-panel__auth p { margin: 0 0 14px; }

@media (max-width: 560px) {
  .shop-chat { right: 14px; bottom: 14px; }
  .chat-launcher { width: 52px; height: 52px; }
  .chat-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 80px;
    width: auto;
    height: min(620px, calc(100vh - 100px));
  }
}
