/* ============================================================
   Страницы: калькулятор, расчёт, бронирование, юр. тексты
   ============================================================ */

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

.catalog-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.catalog-search { position: relative; flex: 1; min-width: 240px; max-width: 460px; }
.catalog-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}
.catalog-search input:focus { outline: 0; border-color: var(--ink); }
.catalog-search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: none;
  align-items: center;
  justify-content: center;
}
.catalog-search.has-value .catalog-search__clear { display: flex; }
.catalog-search__clear .icon { position: static; transform: none; }

.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sort select {
  height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.sort select:focus { outline: 0; border-color: var(--ink); }

.catalog-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 40px;
  padding: 34px 0 90px;
  align-items: start;
}
.filters { position: sticky; top: 110px; }
.filters__group { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.filters__group:last-child { border-bottom: 0; }
.filters__title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.filters__list { display: grid; gap: 2px; }
.filters__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.filters__link span:last-child { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
.filters__link:hover { color: var(--accent); }
.filters__link.is-active { color: var(--ink); font-weight: 800; }
.filters__link.is-active span:last-child { color: var(--accent); }
.filters__reset {
  margin-top: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filters__reset:hover { color: var(--accent); }
.filters .checkbox { font-size: 12px; color: var(--ink-2); }
.filters .checkbox__box { border-color: var(--line-2); }
.filters__hint {
  margin-top: 18px;
  padding: 14px;
  background: var(--bg-2);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.filters__hint b { color: var(--ink); }

.catalog-main__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.catalog-main__count { font-size: 12px; color: var(--muted); }
.catalog-main__count b { color: var(--ink); }
.catalog-main .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-empty {
  padding: 70px 24px;
  border: 1px dashed var(--line-2);
  text-align: center;
  background: var(--surface);
}
.catalog-empty .icon { width: 34px; height: 34px; margin: 0 auto 16px; color: var(--muted-2); }
.catalog-empty h3 { font-size: 19px; }
.catalog-empty p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.catalog-empty .btn { margin-top: 20px; }

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

.steps-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 34px;
}
.steps-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
  flex: 1;
}
.steps-bar__item:last-child { border-right: 0; }
.steps-bar__item b {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border-radius: 50%;
  color: var(--muted);
}
.steps-bar__item.is-active { color: var(--ink); background: #faf9f6; }
.steps-bar__item.is-active b { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps-bar__item.is-done { color: var(--green); }
.steps-bar__item.is-done b { background: var(--green); border-color: var(--green); color: #fff; }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: stretch;
  padding-bottom: 90px;
}
.cart-list { border-top: 1px solid var(--line); }
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 124px 104px 110px 34px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__media {
  width: 92px;
  height: 74px;
  background: var(--dark-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cart-item__media .pv { width: 100%; height: 100%; }
.cart-item__cat { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cart-item__name { font-size: 14.5px; font-weight: 800; letter-spacing: -0.015em; margin-top: 3px; line-height: 1.3; }
.cart-item__variant { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.cart-item__price { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cart-item__price b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; }
.cart-item__sum { text-align: right; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item__remove {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}
.cart-item__remove:hover { border-color: var(--line); color: var(--red); }
.cart-item__remove .icon { width: 15px; height: 15px; }
.cart-item .qty { height: 38px; background: var(--surface); }
.cart-item .qty input { width: 30px; font-size: 12px; }

.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.cart-actions__note { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.cart-actions__note .icon { width: 14px; height: 14px; }

.cart-layout > .summary {
  position: sticky;
  top: 110px;
  align-self: start;
}
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.summary h3 { font-size: 17px; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 12.5px; color: var(--muted); }
.summary__row b { color: var(--ink); font-weight: 700; }
.summary__row--green b { color: var(--green); }
.summary__divider { height: 1px; background: var(--line); margin: 12px 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 6px 0 18px; }
.summary__total span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.summary__total b { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.summary__note { margin-top: 12px; font-size: 10.5px; line-height: 1.5; color: var(--muted); display: flex; gap: 8px; }
.summary__note .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.summary__benefits { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.summary__benefits li { display: flex; gap: 8px; font-size: 10.5px; color: var(--muted); align-items: flex-start; }
.summary__benefits .icon { width: 13px; height: 13px; color: var(--green); flex: none; margin-top: 1px; }

.empty-cart {
  border: 1px dashed var(--line-2);
  background: var(--surface);
  padding: 70px 30px;
  text-align: center;
}
.empty-cart__icon {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.empty-cart__icon .icon { width: 28px; height: 28px; }
.empty-cart h2 { font-size: 26px; }
.empty-cart p { margin-top: 10px; color: var(--muted); font-size: 13px; }

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

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 40px;
  align-items: stretch;
  padding-bottom: 90px;
}
.checkout-form { display: grid; gap: 18px; }
.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
}
.form-section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.form-section__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.form-section__head h2 { font-size: 18px; letter-spacing: -0.02em; }
.form-section__head p { font-size: 11px; color: var(--muted); margin-left: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }

.radio-cards { display: grid; gap: 8px; }
.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-card:hover { border-color: var(--line-2); background: #faf9f6; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card__mark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s;
}
.radio-card__mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}
.radio-card input:checked ~ .radio-card__mark { border-color: var(--accent); }
.radio-card input:checked ~ .radio-card__mark::after { transform: scale(1); }
.radio-card input:checked ~ .radio-card__body b { color: var(--ink); }
.radio-card:has(input:checked) { border-color: var(--ink); background: #faf9f6; }
.radio-card__body b { display: block; font-size: 13px; font-weight: 800; }
.radio-card__body span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.radio-card__price { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; }

.checkout-summary { align-self: stretch; }
.checkout-summary .summary { top: 100px; position: sticky; }
.checkout-summary__items { max-height: 250px; overflow-y: auto; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.checkout-summary__item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 11.5px; }
.checkout-summary__item span:first-child { color: var(--muted); line-height: 1.35; }
.checkout-summary__item b { white-space: nowrap; font-weight: 700; }

.checkout-success {
  max-width: 760px;
  margin: 0 auto 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 46px;
  text-align: center;
}
.checkout-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(47, 138, 91, 0.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.checkout-success__icon .icon { width: 30px; height: 30px; }
.checkout-success h2 { font-size: 32px; }
.checkout-success__num {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.checkout-success p { margin-top: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.checkout-success__details { margin: 24px auto 0; max-width: 460px; text-align: left; border-top: 1px solid var(--line); }
.checkout-success__details div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #ece9e2; font-size: 12px; }
.checkout-success__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Юридические страницы ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 60px;
  padding: 44px 0 90px;
  align-items: start;
}
.legal-toc { position: sticky; top: 110px; }
.legal-toc__title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.legal-toc ol { display: grid; gap: 8px; counter-reset: toc; }
.legal-toc a { display: block; font-size: 11.5px; line-height: 1.45; color: var(--muted); padding-left: 24px; position: relative; }
.legal-toc a::before { counter-increment: toc; content: counter(toc) '.'; position: absolute; left: 0; font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.legal-toc a:hover { color: var(--accent); }
.legal-article { max-width: 820px; }
.legal-article h2 {
  font-size: 23px;
  margin: 42px 0 14px;
  padding-top: 8px;
  letter-spacing: -0.02em;
  scroll-margin-top: 110px;
}
.legal-article h2:first-of-type { margin-top: 0; }
.legal-article h3 { font-size: 16.5px; margin: 24px 0 8px; }
.legal-article p { font-size: 13.5px; line-height: 1.75; color: #2c353d; margin: 10px 0; }
.legal-article ul, .legal-article ol { margin: 12px 0; padding-left: 0; display: grid; gap: 8px; counter-reset: item; }
.legal-article ul li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: #2c353d; }
.legal-article ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--accent); }
.legal-article ol li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.7; color: #2c353d; counter-increment: item; }
.legal-article ol li::before { content: counter(item) '.'; position: absolute; left: 0; font-family: var(--mono); font-size: 10px; color: var(--muted); top: 3px; }
.legal-article a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-article a:hover { color: var(--accent); }
.legal-article table { margin: 18px 0; font-size: 12px; border: 1px solid var(--line); }
.legal-article th, .legal-article td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-article th { background: var(--bg-2); font-weight: 700; }
.legal-note {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.legal-note b { color: var(--ink); }
.legal-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-warn {
  background: #fff3ee;
  border: 1px solid #ffd2c2;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #7a3a1e;
  margin-bottom: 26px;
}

/* ---------- Контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 44px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card__icon {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.contact-card__icon .icon { width: 18px; height: 18px; }
.contact-card__label { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card b, .contact-card a.contact-card__main { font-size: 14.5px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.contact-card a:hover { color: var(--accent); }
.contact-card span { font-size: 11px; color: var(--muted); line-height: 1.5; }

.contacts-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 34px; align-items: start; }
.map-card {
  position: relative;
  min-height: 340px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.map-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: rotate(-8deg) scale(1.3);
  pointer-events: none;
}
.map-card::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -60px;
  border: 1px solid rgba(255, 91, 31, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 91, 31, 0.04), 0 0 0 80px rgba(255, 91, 31, 0.025);
}
.map-card > * { position: relative; z-index: 2; }
.map-card__pin {
  width: 46px; height: 46px;
  background: var(--accent);
  color: #0b0f13;
  display: flex; align-items: center; justify-content: center;
}
.map-card__pin .icon { width: 22px; height: 22px; }
.map-card h3 { font-size: 22px; margin-top: 60px; max-width: 14ch; }
.map-card p { margin-top: 8px; color: #9dabb7; font-size: 12.5px; max-width: 30ch; line-height: 1.55; }
.map-card__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.error-page {
  position: relative;
  min-height: calc(100vh - 118px);
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.error-page__num {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(220px, 42vw, 620px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.error-page__content { position: relative; z-index: 2; max-width: 520px; padding: 80px 0; }
.error-page h1 { font-size: clamp(38px, 5vw, 62px); }
.error-page p { margin-top: 18px; color: #a9b5c0; font-size: 15px; }
.error-page .btn { margin-top: 28px; }

/* ---------- Админка ---------- */

.admin-body { background: #0d1218; color: #dfe7ee; min-height: 100vh; }
.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-gate__card {
  width: 100%;
  max-width: 400px;
  background: #141b22;
  border: 1px solid #25303a;
  padding: 34px;
}
.admin-gate__card h1 { font-size: 24px; color: #fff; }
.admin-gate__card p { margin-top: 8px; color: #8c9aa7; font-size: 12px; }
.admin-gate__card form { margin-top: 20px; display: grid; gap: 12px; }
.admin-gate .input { background: #0d1218; border-color: #2a3641; color: #fff; }
.admin-gate .btn { width: 100%; }
.admin-error { color: #ff8266; font-size: 11px; }

.admin-shell { max-width: 1240px; margin: 0 auto; padding: 28px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-top h1 { font-size: 24px; color: #fff; }
.admin-top__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.admin-stat { background: #141b22; border: 1px solid #25303a; padding: 16px; }
.admin-stat span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #7f8d99; }
.admin-stat b { display: block; margin-top: 6px; font-size: 24px; color: #fff; font-weight: 800; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.admin-tab { height: 36px; padding: 0 14px; background: transparent; border: 1px solid #25303a; color: #8c9aa7; font-size: 11px; }
.admin-tab.is-active { background: #fff; color: #0d1218; border-color: #fff; }
.admin-table-wrap { background: #141b22; border: 1px solid #25303a; overflow-x: auto; }
.admin-table { font-size: 11.5px; min-width: 900px; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid #25303a; color: #7f8d99; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid #1d272f; vertical-align: top; color: #c6d1da; }
.admin-table tr:hover td { background: #17202a; }
.admin-table b { color: #fff; }
.admin-table .muted { color: #7f8d99; }
.admin-badge { display: inline-block; padding: 2px 7px; font-size: 9px; border: 1px solid #35506a; color: #8fc4ef; }
.admin-badge--new { border-color: #6a4d2a; color: #ffc47e; }
.admin-badge--done { border-color: #2a5a40; color: #7fd7a6; }
.admin-empty { padding: 40px; text-align: center; color: #7f8d99; font-size: 12px; }
.admin-row-actions { display: flex; gap: 4px; }
.admin-mini { height: 26px; padding: 0 8px; background: transparent; border: 1px solid #2a3641; color: #a9b5c0; font-size: 9px; }
.admin-mini:hover { border-color: #fff; color: #fff; }
.admin-login-note { margin-top: 18px; font-size: 10px; line-height: 1.5; color: #66737f; }

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

@media (max-width: 1180px) {
  .header__inner { gap: 22px; }
  .nav { gap: 18px; }
  .nav__link { font-size: 12.5px; }
  .header__actions { gap: 10px; }
  .header__phone a { font-size: 14.5px; }
  .hero__inner { gap: 34px; }
  .hero__stats { gap: 26px; }
  .product__media { height: 190px; }
  .cat-grid { grid-auto-rows: 176px; }
}

@media (max-width: 1040px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 54px; }
  .hero__media { min-height: 380px; max-height: 440px; order: 2; }
  .hero__content { max-width: none; }
  .hero h1 { max-width: 18ch; }
  .hero__search { max-width: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .cat-card--lead { grid-column: span 2; grid-row: span 2; }
  .cat-card--lead .cat-card__name { font-size: 26px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
  .catalog-main .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 480px; }
  .about__media img { aspect-ratio: 5 / 4; }
  .about__media::before { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc__form { max-width: none; }
  .calc__result { max-width: 460px; }
  .lead-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 24px; }
  .step:nth-child(2n) .step__num { -webkit-text-stroke-color: var(--line-2); }
  .step:nth-child(-n+2) { padding-top: 26px; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
  .footer__contacts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px 30px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .summary { position: static; }
  .cart-layout > .summary { position: static; }
  .checkout-summary .summary { position: static; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .contacts-split { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-rows: 160px; }
  .delivery-cards { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
  .section-head .link-arrow { align-self: flex-start; }
  .topbar__group--right { display: none; }
  .topbar__inner { height: 32px; justify-content: center; }
  .topbar__item--hide { display: none; }
  .header__inner { height: 68px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__name { font-size: 16px; }
  .logo__tag { font-size: 7.5px; }
  .cart-btn { height: 42px; padding: 0 12px; }
  .cart-btn span.cart-btn__text { display: none; }
  .burger { width: 42px; height: 42px; }
  .hero__inner { padding-top: 40px; padding-bottom: 44px; gap: 30px; }
  .hero__kicker { font-size: 9px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 52px); }
  .hero__sub { margin-top: 18px; font-size: 14px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__search { margin-top: 24px; height: 54px; padding-left: 14px; }
  .hero__search button { height: 44px; padding: 0 13px; font-size: 10px; }
  .hero__stats { margin-top: 30px; padding-top: 22px; gap: 18px; flex-wrap: wrap; }
  .hero__stat { flex: 1 1 0; min-width: 0; }
  .hero__stat b { font-size: 22px; }
  .hero__stat span { font-size: 10px; max-width: none; }
  .hero__media { min-height: 300px; max-height: 340px; }
  .hero__price { min-width: 0; right: 10px; top: 10px; padding: 10px 13px; }
  .hero__price b { font-size: 18px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .feature:last-child { border-bottom: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; gap: 8px; }
  .cat-card { padding: 16px; }
  .cat-card__name { font-size: 15px; }
  .cat-card__short { font-size: 10.5px; }
  .cat-card__arrow { width: 26px; height: 26px; top: 12px; right: 12px; }
  .cat-card--lead { grid-column: span 2; grid-row: span 2; min-height: 0; padding: 22px; }
  .cat-card--lead .cat-card__name { font-size: 23px; }
  .cat-card--lead { justify-content: flex-start; gap: 22px; }
  .cat-card--lead .cat-card__art { top: auto; bottom: 2%; width: 58%; height: 34%; right: 0; opacity: 0.5; }
  .products-grid { grid-template-columns: 1fr; }
  .product__media { height: 210px; }
  .product__controls .product__row { gap: 6px; }
  .price-block__top { padding: 14px; }
  .price-table th, .price-table td { padding: 10px 12px; }
  .price-table { font-size: 12.5px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { flex: none; height: 36px; font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; padding: 20px 0 !important; display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
  .step__num { font-size: 34px; margin: 0; }
  .step b { padding-top: 2px; }
  .step p { grid-column: 2; max-width: none; margin-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery__item:last-child { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; padding: 44px 0 30px; gap: 28px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contacts { flex-direction: column; gap: 10px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__giant { font-size: 17vw; }
  .cookie { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .cookie__actions { width: 100%; margin-left: 0; }
  .cookie__actions .btn { flex: 1; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog { max-height: 92vh; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__media { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal__media .pv { min-height: 230px; }
  .modal__body { padding: 24px 20px 26px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .filters { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin: 0 -18px; padding-inline: 18px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters__group { border: 0; padding: 0; margin: 0; flex: none; }
  .filters__group--stock, .filters__group--hint { display: none; }
  .filters__title { display: none; }
  .filters__list { display: flex; gap: 6px; }
  .filters__link { border: 1px solid var(--line); padding: 8px 12px; font-size: 11.5px; white-space: nowrap; background: var(--surface); gap: 7px; }
  .filters__link.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
  .filters__link.is-active span:last-child { color: var(--accent); }
  .filters__link span:last-child { font-size: 8.5px; }
  .filters__reset { margin: 0; font-size: 10px; white-space: nowrap; align-self: center; }
  .catalog-bar { padding: 12px 0; }
  .catalog-search { order: 1; max-width: none; flex: 1 1 100%; }
  .sort { order: 2; margin-left: 0; width: 100%; }
  .sort label { margin-right: auto; }
  .catalog-main .products-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px minmax(0, 1fr) auto; grid-template-areas: 'media body remove' 'media qty sum'; gap: 10px 14px; }
  .cart-item__media { width: 70px; height: 62px; grid-area: media; align-self: start; }
  .cart-item__body { grid-area: body; }
  .cart-item__qty { grid-area: qty; align-self: center; }
  .cart-item__sum { grid-area: sum; text-align: right; }
  .cart-item__price { display: none; }
  .cart-item__remove { grid-area: remove; }
  .cart-item__remove .icon { width: 14px; }
  .cart-item__name { font-size: 13.5px; }
  .cart-item__variant { font-size: 10.5px; }
  .steps-bar { flex-direction: column; }
  .steps-bar__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; font-size: 8.5px; }
  .steps-bar__item:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-section { padding: 20px 16px; }
  .form-section__head p { display: none; }
  .checkout-success { padding: 30px 20px; }
  .checkout-success h2 { font-size: 25px; }
  .checkout-success__actions .btn { width: 100%; }
  .legal-layout { padding-top: 26px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-article h2 { font-size: 20px; }
  .legal-article p, .legal-article ul li, .legal-article ol li { font-size: 13px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-split { gap: 18px; }
  .map-card { min-height: 280px; }
  .map-card h3 { margin-top: 34px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 22px 0 30px; }
  .page-head__row { align-items: flex-start; }
  .page-head__meta { gap: 12px; }
  .error-page__num { font-size: 70vw; opacity: 0.5; }
}

@media (max-width: 420px) {
  .header__actions { gap: 6px; }
  .cart-btn { padding: 0 10px; gap: 6px; }
  .cart-btn .icon { width: 16px; height: 16px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__media { min-height: 250px; }
  .cat-grid { grid-auto-rows: 154px; }
  .cat-card__price { display: none; }
  .cat-card--lead .cat-card__price { display: block; }
  .product__media { height: 190px; }
  .summary { padding: 20px 16px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contacts { grid-column: auto; }
}

@media print {
  .header, .topbar, .footer, .cookie, .toast-stack, .mobile-nav, .btn { display: none !important; }
  body { background: #fff; }
  .legal-layout { display: block; padding: 0; }
  .legal-toc { display: none; }
  .legal-article { max-width: none; }
  .page-head { border: 0; padding: 0 0 20px; }
}

/* ---------- Дополнения ---------- */

[hidden] { display: none !important; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 18px;
  border: 1px solid rgba(47, 138, 91, 0.4);
  background: rgba(47, 138, 91, 0.08);
}
.form-success .icon { width: 32px; height: 32px; color: var(--green); margin-bottom: 4px; }
.form-success b { font-size: 16px; color: #fff; }
.form-success p { font-size: 11.5px; color: #9fabb6; line-height: 1.55; margin: 0; }

.form-error {
  padding: 12px 14px;
  border: 1px solid #7a3a2a;
  background: rgba(192, 57, 43, 0.12);
  color: #ffad99;
  font-size: 11.5px;
  line-height: 1.55;
}
.form-error a { color: #fff; text-decoration: underline; }

.modal__cert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 11px 12px;
  background: #f8f7f3;
  border: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.modal__cert .icon { width: 15px; height: 15px; flex: none; color: var(--muted); margin-top: 1px; }
.modal__cert b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 10.5px; }

.price-group td {
  padding: 15px 16px 11px;
  background: #f7f5f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-group:first-child td { border-top: 0; }
.price-group b { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.price-group span { margin-left: 10px; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.price-name { min-width: 210px; vertical-align: top; }
.price-name b { display: block; font-size: 13px; font-weight: 800; }
.price-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.price-action { text-align: right; width: 1%; }
.price-add {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.price-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-add.is-added { background: var(--green); border-color: var(--green); color: #fff; }
.table-scroll { overflow-x: auto; }

.free-ship { margin: 12px 0 4px; }
.free-ship__bar { height: 4px; background: var(--bg-2); overflow: hidden; }
.free-ship__bar i { display: block; height: 100%; background: var(--accent); transition: width 0.3s var(--ease); }
.free-ship span { display: block; margin-top: 7px; font-size: 10.5px; color: var(--muted); }
.free-ship--done span { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; }
.free-ship--done .icon { width: 13px; height: 13px; }

.cart-item__media .pv-text,
.cart-item__media .pv-note,
.cart-item__media .pv-dim,
.cart-item__media .pv-axis { display: none; }

.catalog-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.catalog-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.catalog-note p { margin: 0; max-width: 90ch; }

.calc-select {
  width: 100%;
  height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8d9aa6 50%), linear-gradient(135deg, #8d9aa6 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.calc-select:focus { outline: 0; border-color: var(--accent); }
.calc-select option { background: var(--dark-2); color: #fff; }

.admin-status {
  height: 30px;
  padding: 0 6px;
  border: 1px solid #2a3641;
  background: #0d1218;
  color: #c6d1da;
  font-size: 10px;
}
.admin-items { margin-top: 6px; display: grid; gap: 3px; font-size: 10px; color: #9fabb6; }
.admin-table details summary { cursor: pointer; font-size: 11.5px; color: #fff; }
.admin-table details summary::marker { color: #7f8d99; }
.admin-table .admin-empty { text-align: center; padding: 34px; color: #7f8d99; }

@media (max-width: 760px) {
  .modal__cert { font-size: 10px; }
}

/* ---------- Технические иллюстрации (SVG) ---------- */
.pv { width: 100%; height: 100%; display: block; }
.pv-line { fill: none; stroke: #9fb0c0; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pv-solid { fill: #33414d; stroke: #a9b8c5; stroke-width: 1.6; stroke-linejoin: round; }
.pv-dark { fill: #1e2831; stroke: #a9b8c5; stroke-width: 1.4; stroke-linejoin: round; }
.pv-mid { fill: #26333d; stroke: #a9b8c5; stroke-width: 1.4; stroke-linejoin: round; }
.pv-hole { fill: #0f151b; stroke: #6f8090; stroke-width: 1.4; }
.pv-fill-soft { fill: rgba(169, 184, 197, 0.06); stroke: none; }
.pv-sheet { fill: none; stroke: #b9c7d3; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; }
.pv-sheet-hi { fill: none; stroke: #e7eef4; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pv-dash { fill: none; stroke: #5e6f7e; stroke-width: 1; stroke-dasharray: 4 5; }
.pv-dash-faint { fill: none; stroke: #41505c; stroke-width: 1; stroke-dasharray: 3 6; }
.pv-bar { fill: none; stroke: #b9c7d3; stroke-width: 8; stroke-linecap: round; }
.pv-bar--accent { stroke: #ff5b1f; }
.pv-rib { fill: none; stroke: #7e8f9d; stroke-width: 1.4; }
.pv-wire { fill: none; stroke: #a9b8c5; stroke-width: 1.2; }
.pv-thread { fill: none; stroke: #8fa0ae; stroke-width: 1.4; }
.pv-dim path { fill: none; stroke: #66788a; stroke-width: 1; }
.pv-dim text { fill: #7d8fa0; font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; }
.pv-text { fill: #6e8090; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.pv-text--label { fill: #93a3b2; }
.pv-note rect { fill: #0f151b; stroke: #3a4854; }
.pv-note text { fill: #93a3b2; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; }
.pv-axis-line { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.pv-zinc { fill: #3e4c58; }
.pv-stamp circle { fill: none; stroke: #ff5b1f; stroke-width: 1.2; }
.pv-stamp text { fill: #ff5b1f; font-family: var(--mono); font-size: 11px; }

body.page-catalog .toast-stack { bottom: 86px; }

@media (max-width: 1100px) {
  .topbar__item--hide { display: none; }
}
@media (max-width: 900px) {
  .topbar__group--right { display: none; }
}
@media (max-width: 760px) {
  body.page-catalog { padding-bottom: 86px; }
  .calc-bar__inner { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; gap: 8px; }
  .calc-bar__info { font-size: 9.5px; gap: 3px; white-space: nowrap; }
  .calc-bar__info b { font-size: 14px; }
  .calc-bar__sum { margin-left: auto; gap: 4px; white-space: nowrap; }
  .calc-bar__sum span { font-size: 8px; }
  .calc-bar__sum b { font-size: 16px; }
  .calc-bar .btn { height: 40px; padding: 0 10px; font-size: 8.5px; letter-spacing: 0.04em; }
  .calc-bar .btn .icon { display: none; }
  .catalog-main__head .mono { display: none; }
}


/* ---------- Админка: склад и брони ---------- */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-toolbar .input {
  max-width: 380px;
  background: #0d1218;
  border-color: #2a3641;
  color: #fff;
}
.admin-toolbar .input::placeholder { color: #66737f; }
.admin-hint { font-size: 10.5px; line-height: 1.5; color: #7f8d99; }
.admin-sub { display: block; margin-top: 2px; font-size: 9.5px; color: #66737f; line-height: 1.35; }
.admin-stock {
  width: 86px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #2a3641;
  background: #0d1218;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
}
.admin-stock:focus { outline: 0; border-color: var(--accent); }
.admin-avail { font-weight: 800; }
.admin-avail--low { color: #ffc47e; }
.admin-avail--zero { color: #ff8266; }
.admin-code { font-family: var(--mono); color: #fff; }
.admin-flash {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  background: #16261c;
  border: 1px solid #2a5a40;
  color: #b9f0cc;
  padding: 11px 16px;
  font-size: 11px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.admin-flash--error { background: #2a1717; border-color: #6a2a2a; color: #ffb3a3; }
.admin-table td .admin-badge { margin-top: 2px; }
.admin-items { display: grid; gap: 4px; margin-top: 6px; color: #9fabb6; font-size: 10px; }

@media (max-width: 760px) {
  .admin-toolbar .input { max-width: none; width: 100%; }
}

.checkout-success { scroll-margin-top: 96px; }
