/* Дизайн-система внутренних страниц: каталог, товар, о компании, партнёры */

:root {
  --color-bg: #f3f4f6;
  --color-text: #2c2c2c;
  --color-muted: #6d6d6d;
  --color-line: #e4e4e4;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-solid: #ffffff;
  --accent-2: #e4570e;
  --grad: linear-gradient(180deg, #f07a32 0%, #e4570e 100%);
  --grad-text: none;
  --glow: none;
  --shadow-card: 0 8px 24px rgba(20, 20, 20, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--color-bg);
}

::selection {
  background: rgba(59, 157, 255, 0.35);
}

[hidden] {
  display: none !important;
}

/* ---------- шапка ---------- */

.header {
  background: rgba(13, 16, 23, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--color-line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-icon {
  background: var(--surface-2);
  border: 1px solid var(--color-line);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.support-icon:hover {
  border-color: rgba(59, 157, 255, 0.6);
  background: rgba(59, 157, 255, 0.14);
  transform: translateY(-1px);
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--color-text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.cart-btn:hover {
  border-color: rgba(59, 157, 255, 0.6);
  background: rgba(59, 157, 255, 0.14);
  transform: translateY(-1px);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 6px 16px -6px rgba(59, 157, 255, 0.9);
}

.cart-count.is-bump {
  animation: bump 0.35s var(--ease);
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.icon-btn.burger {
  background: var(--surface-2);
}

.mobile-nav {
  background: rgba(13, 16, 23, 0.96);
  backdrop-filter: blur(18px);
}

/* ---------- кнопки ---------- */

.btn {
  border-radius: 14px;
  min-height: 50px;
  letter-spacing: -0.01em;
}

.btn-primary {
  position: relative;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 14px 30px -14px rgba(59, 157, 255, 0.9);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  background: var(--grad);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(59, 157, 255, 1);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--color-line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  background: var(--surface-2);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- типографика и хедер страницы ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 157, 255, 0.35);
  background: rgba(59, 157, 255, 0.1);
  color: #9cd0ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(59, 157, 255, 0.18);
}

.grad-text {
  color: var(--color-accent);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--color-accent);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.4;
}

.page-hero {
  position: relative;
  padding: 64px 0 40px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: end;
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-hero .lead {
  margin: 0;
  max-width: 640px;
  font-size: 18px;
  color: var(--color-muted);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 96px;
}

.section-gap {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

/* ---------- карточки ---------- */

.glass {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--color-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 40%, transparent 70%, rgba(124, 92, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-hover {
  transition: transform 0.35s var(--ease), border-color var(--transition), box-shadow 0.35s var(--ease);
}

.glass-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 157, 255, 0.4);
  box-shadow: var(--shadow-card), var(--glow);
}

.card-pad {
  padding: 28px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-tile {
  padding: 22px 22px 20px;
  border-radius: 20px;
}

.stat-tile strong {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-tile span {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--surface);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--surface-2);
}

.chip.is-active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(59, 157, 255, 0.14);
  color: #9cd0ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-violet {
  background: rgba(124, 92, 255, 0.16);
  color: #c9b8ff;
}

.tag-green {
  background: rgba(52, 211, 153, 0.14);
  color: #8ff0c8;
}

/* ---------- CTA-полоса ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding: 44px 48px;
  border-radius: 28px;
  border: 1px solid rgba(59, 157, 255, 0.35);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(59, 157, 255, 0.32), transparent 65%),
    radial-gradient(500px 280px at 100% 100%, rgba(124, 92, 255, 0.34), transparent 65%),
    var(--surface-solid);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-band p {
  margin: 0;
  color: var(--color-muted);
  max-width: 560px;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- футер внутренних страниц ---------- */

.site-footer-mini {
  border-top: 1px solid var(--color-line);
  padding: 32px 0;
  background: rgba(0, 0, 0, 0.25);
}

.site-footer-mini .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer-mini nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.site-footer-mini a:hover {
  color: #fff;
}

/* ---------- модальные окна ---------- */

.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 14, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}

.catalog-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-modal {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--color-line);
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(59, 157, 255, 0.14), transparent 60%),
    var(--surface-solid);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.36s var(--ease), opacity 0.28s var(--ease);
}

.catalog-overlay.is-open .catalog-modal {
  transform: none;
  opacity: 1;
}

.catalog-modal h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.modal-close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--color-line);
  background: var(--surface-2);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.catalog-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Корзина — выезжающая панель справа */

.catalog-overlay.drawer {
  place-items: stretch end;
  padding: 0;
}

.catalog-overlay.drawer .catalog-modal {
  width: min(100%, 480px);
  height: 100%;
  max-height: none;
  border-radius: 0;
  border-width: 0 0 0 1px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(40px);
}

.catalog-overlay.drawer.is-open .catalog-modal {
  transform: none;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.drawer-foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.drawer-total span {
  color: var(--color-muted);
  font-weight: 600;
}

.drawer-total strong {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.cart-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 48px 20px;
  text-align: center;
  color: var(--color-muted);
}

.cart-empty svg {
  width: 52px;
  height: 52px;
  opacity: 0.5;
}

.cart-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #0b0e14 center/cover no-repeat;
  border: 1px solid var(--color-line);
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 11px;
}

.cart-row-info strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-row-info .price {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.cart-row-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cart-row-sum {
  font-weight: 800;
  font-size: 15px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
}

.qty button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty span,
.qty input {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.qty input {
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  outline: none;
  -moz-appearance: textfield;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.qty-lg button {
  width: 46px;
  height: 46px;
}

.link-danger {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 120, 140, 0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.link-danger:hover {
  color: #ff8fa3;
}

/* Оформление заказа */

.checkout-modal {
  width: min(100%, 960px);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.checkout-main {
  padding: 30px;
  overflow: auto;
  max-height: calc(100vh - 40px);
}

.checkout-side {
  padding: 30px 26px;
  background: rgba(0, 0, 0, 0.28);
  border-left: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  overflow: auto;
  max-height: calc(100vh - 40px);
}

.checkout-side h3 {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.summary-list {
  display: grid;
  gap: 12px;
  flex: 1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.summary-row span {
  color: var(--color-muted);
}

.summary-row strong {
  white-space: nowrap;
}

.summary-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total strong {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.summary-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #8ff0c8;
  font-size: 13px;
  font-weight: 600;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-form .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9a9a;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(59, 157, 255, 0.7);
  background: rgba(59, 157, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(59, 157, 255, 0.16);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.checkout-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 120, 140, 0.1);
  border: 1px solid rgba(255, 120, 140, 0.3);
  color: #ff9fb0;
  font-size: 14px;
  font-weight: 600;
}

.checkout-status.is-ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #8ff0c8;
}

.checkout-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 10px 8px;
}

.checkout-success .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 20px 40px -18px rgba(59, 157, 255, 0.9);
}

.checkout-success .icon svg {
  width: 32px;
  height: 32px;
}

.checkout-success h3 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.checkout-success p {
  margin: 0;
  color: var(--color-muted);
  max-width: 380px;
}

/* Лайтбокс */

.photo-viewer {
  width: min(100%, 1040px);
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--color-line);
  background: rgba(10, 13, 19, 0.7);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.36s var(--ease), opacity 0.28s var(--ease);
}

.catalog-overlay.is-open .photo-viewer {
  transform: none;
  opacity: 1;
}

.photo-viewer img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: #0b0e14;
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.photo-viewer-nav .btn-icon {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 16, 23, 0.7);
  backdrop-filter: blur(8px);
}

.photo-viewer .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 16, 23, 0.7);
}

.photo-viewer-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 16, 23, 0.7);
  font-size: 13px;
  font-weight: 700;
}

/* Тост */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  background: rgba(20, 25, 35, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-weight: 600;
  font-size: 14px;
  pointer-events: auto;
  animation: toast-in 0.4s var(--ease);
}

.toast.is-leaving {
  animation: toast-out 0.3s var(--ease) forwards;
}

.toast .dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad);
  flex-shrink: 0;
}

.toast .dot svg {
  width: 16px;
  height: 16px;
}

.toast button {
  border: 0;
  background: transparent;
  color: #9cd0ff;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

/* Скелетоны */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* Появление */

.reveal {
  animation: reveal 0.6s var(--ease) both;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 980px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 32px 28px;
  }

  .checkout-modal {
    grid-template-columns: 1fr;
  }

  .checkout-side {
    border-left: 0;
    border-top: 1px solid var(--color-line);
    max-height: none;
  }

  .checkout-main {
    max-height: none;
  }

  .checkout-modal {
    max-height: calc(100vh - 40px);
    overflow: auto;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 44px 0 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .catalog-modal {
    padding: 22px;
    border-radius: 22px;
  }

  .checkout-form {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .cart-row-side {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
