/* === Тема: белый фон + морковные акценты === */
:root {
  --white: #ffffff;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --carrot: #e85d04;
  --carrot-light: #f48c06;
  --carrot-dark: #dc2f02;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #eee;
  --shadow: 0 4px 20px rgba(232, 93, 4, 0.08);
  --shadow-hover: 0 8px 30px rgba(232, 93, 4, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Тёмная тема — один фон для страницы и всех блоков */
body.theme-dark {
  --white: #000000;
  --bg: #000000;
  --bg-card: #000000;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --border: #333;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}
body.theme-dark::before {
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.08) 0%, transparent 100%);
}
body.theme-dark .header {
  background: transparent;
  border-bottom-color: transparent;
}
body.theme-dark .nav a { color: var(--text); }
body.theme-dark .form-card,
body.theme-dark .table-wrap,
body.theme-dark .stat-card,
body.theme-dark .product-card,
body.theme-dark .benefit-card,
body.theme-dark .how-step,
body.theme-dark .faq-item,
body.theme-dark .empty-state-block,
body.theme-dark .about-strip-frame__inner {
  background: var(--bg-card);
  border-color: var(--border);
}
body.theme-dark .home-checklist li {
  color: var(--text-muted);
}
body.theme-dark th { background: var(--border); }
body.theme-dark tr:nth-child(even) { background: transparent; }
body.theme-dark tr:hover { background: rgba(232, 93, 4, 0.08); }
body.theme-dark .admin-sidebar { background: var(--bg-card); border-color: var(--border); }
body.theme-dark .admin-block__empty { background: var(--bg-card); border-color: var(--border); }
body.theme-dark .hero-feature { background: var(--bg-card); border-color: var(--border); color: var(--text); }
body.theme-dark .hero-visual img {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
body.theme-dark .form-auth-visual img {
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}
body.theme-dark .home-spot__figure img {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}
body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark select { background: var(--bg-card); border-color: var(--border); color: var(--text); }
body.theme-dark .cta-strip { background: var(--bg); border-color: var(--border); }
body.theme-dark .cta-strip-text { color: var(--text); }
body.theme-dark .footer { border-top-color: var(--border); color: var(--text-muted); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ЛК: футер и линия у нижнего края экрана при коротком контенте */
body.page-cabinet {
  display: flex;
  flex-direction: column;
}

body.page-cabinet > main.container {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

body.page-cabinet .cabinet-layout {
  flex: 1 1 auto;
  width: 100%;
}

body.page-cabinet .footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* ЛК: убрать желтоватый градиент сверху */
body.page-cabinet::before {
  display: none;
}

/* ЛК на ПК — контент на всю ширину экрана */
@media (min-width: 721px) {
  body.page-cabinet > main.container,
  body.page-cabinet .header .header-inner.container {
    max-width: 100%;
  }
  body.page-cabinet .partner-program-center,
  body.page-cabinet .partner-ref-card {
    max-width: 100%;
  }
  /* ЛК на ПК: логотип по центру боковой панели — ровно над блоком «Баланс» */
  body.page-cabinet .header .logo {
    width: 15rem;
    justify-content: center;
  }
}

/* Админка — контент и шапка на всю ширину экрана */
@media (min-width: 721px) {
  body.page-admin > main.container,
  body.page-admin .header .header-inner.container {
    max-width: 100%;
  }
}

/* Фон с мягким градиентом */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, rgba(248, 140, 6, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--carrot);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--carrot-dark);
}

/* === Header === */
.header {
  position: relative;
  background: transparent;
  border-bottom: none;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.header-inner .nav {
  margin-left: 0;
  flex: 1 1 auto;
  justify-content: center;
  gap: 2.6rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.header-right a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.header-right a:hover {
  color: var(--carrot);
  border-color: var(--carrot);
  background: rgba(232, 93, 4, 0.06);
}

.header-right a.header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 0;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.header-right a.header-logout:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

body.theme-dark .header-right a.header-logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-logout svg {
  display: block;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--carrot);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition);
}
.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* Fallback: если нет картинки, скрыть пустой img и показать иконку */
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--carrot);
}

.telegram-icon {
  margin-left: 0;
  flex-shrink: 0;
}

/* Переключатель темы */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  background: rgba(232, 93, 4, 0.12);
  color: var(--carrot);
}
.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-icon--sun { display: none; }
.theme-toggle-icon--moon { display: flex; }
body.theme-dark .theme-toggle-icon--sun { display: flex; }
body.theme-dark .theme-toggle-icon--moon { display: none; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: white;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--carrot);
  border: 2px solid var(--carrot);
}
.btn-outline:hover {
  background: var(--carrot);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(232, 93, 4, 0.1);
  color: var(--carrot);
}
.btn-ghost:hover {
  background: rgba(232, 93, 4, 0.2);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Hero секция */
.hero {
  padding: 3rem 0 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 48%);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.85s ease-out 0.15s both;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-width: min(680px, 100%);
  height: auto;
  margin-left: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  object-fit: contain;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero h1 span {
  color: var(--carrot);
  position: relative;
  display: inline-block;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 20px rgba(232, 93, 4, 0.3); }
  50% { text-shadow: 0 0 30px rgba(232, 93, 4, 0.5); }
}

.hero-copy .hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--carrot);
  background: rgba(232, 93, 4, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease-out backwards;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out backwards;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  white-space: nowrap;
}

.hero-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 4, 0.3);
  box-shadow: var(--shadow-hover);
}

.hero-feature-icon {
  font-size: 1.1rem;
  animation: float 3s ease-in-out infinite;
}

.hero-features .hero-feature:nth-child(2) .hero-feature-icon { animation-delay: 0.5s; }
.hero-features .hero-feature:nth-child(3) .hero-feature-icon { animation-delay: 1s; }
.hero-features .hero-feature:nth-child(4) .hero-feature-icon { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  animation: fadeInUp 0.9s ease-out backwards;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.btn-hero-main {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  animation: btnPulse 2.5s ease-in-out infinite;
}

.btn-hero-secondary {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(232, 93, 4, 0.5); }
}

/* CTA для гостей: установка в день оплаты → регистрация */
.home-try-cta {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem 1.5rem;
  animation: fadeInUp 0.75s ease-out 0.15s both;
}

.home-try-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(100%, 26rem);
  padding: 1rem 1.35rem 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.home-try-cta__link:hover {
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.home-try-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.15), rgba(248, 140, 6, 0.1));
  color: var(--carrot);
}

.home-try-cta__text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  text-align: left;
  min-width: 0;
}

.home-try-cta__title {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.home-try-cta__sub {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--carrot);
  line-height: 1.3;
  text-align: center;
}

.home-try-cta__arrow {
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--carrot);
  transition: transform var(--transition);
}

.home-try-cta__link:hover .home-try-cta__arrow {
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .home-try-cta__link {
    padding: 0.85rem 1rem;
    gap: 0.75rem 1rem;
  }

  .home-try-cta__arrow {
    display: none;
  }
}

/* Полоска «О нас» — анимированная рамка + появление текста */
.about-strip {
  padding: 2rem 0;
  margin-bottom: 0.5rem;
}

.about-strip-frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    125deg,
    var(--carrot-dark),
    var(--carrot),
    var(--carrot-light),
    var(--carrot),
    var(--carrot-dark)
  );
  background-size: 220% 220%;
  animation: aboutStripFrameGlow 9s ease infinite;
  box-shadow: var(--shadow);
}

@keyframes aboutStripFrameGlow {
  0%,
  100% {
    background-position: 0% 45%;
  }
  50% {
    background-position: 100% 55%;
  }
}

.about-strip-frame__inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 2px);
  text-align: center;
  padding: 1.5rem 1.5rem;
  animation: aboutStripContentIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes aboutStripContentIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-strip-frame__inner p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .about-strip-frame {
    animation: none;
    background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  }
  .about-strip-frame__inner {
    animation: none;
  }
}

/* Блок «Нет товаров» */
.empty-state-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease-out;
}

.empty-state-block-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
}

.empty-state-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.empty-state-block-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.empty-state-block-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.empty-state-block-actions .btn {
  animation: fadeInUp 0.5s ease-out backwards;
}

.empty-state-block-actions .btn:nth-child(1) { animation-delay: 0.2s; animation-fill-mode: both; }
.empty-state-block-actions .btn:nth-child(2) { animation-delay: 0.3s; animation-fill-mode: both; }

.products-grid .empty-state-block {
  grid-column: 1 / -1;
}

/* Обёртка каталога */
.catalog-wrap {
  padding: 1rem 0 2rem;
}

.catalog-head {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.5s ease-out;
}

.catalog-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.catalog-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Фильтр каталога */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.catalog-filter-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

.catalog-filter-btn:hover {
  border-color: var(--carrot);
  color: var(--carrot);
}

.catalog-filter-btn.active {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: white;
  border-color: transparent;
}

/* Страница каталога: сайдбар + товары */
.catalog-page {
  padding: 1rem 0 2.5rem;
}

.catalog-page-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.catalog-page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.catalog-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 5.5rem;
  box-shadow: var(--shadow);
}

.catalog-sidebar-block + .catalog-sidebar-block {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.catalog-sidebar-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.catalog-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-sidebar-list li + li {
  margin-top: 0.25rem;
}

.catalog-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.catalog-sidebar-link:hover {
  background: rgba(232, 93, 4, 0.08);
  color: var(--carrot);
}

.catalog-sidebar-link.is-active {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: #fff;
}

.catalog-sidebar-link.is-active:hover {
  color: #fff;
}

.catalog-sidebar-count {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.catalog-main .products-grid {
  margin: 0;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.catalog-prompt {
  text-align: center;
}

.catalog-prompt-text {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.product-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(232, 93, 4, 0.06);
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  /* не даём широким блокам (чипы фильтров) растягивать колонку */
  .catalog-layout > * {
    min-width: 0;
  }

  .catalog-sidebar {
    position: static;
  }
}

/* Каталог на мобильном: фильтры — компактные чипы с горизонтальной прокруткой,
   чтобы не отодвигать список товаров далеко вниз */
@media (max-width: 720px) {
  .catalog-sidebar {
    padding: 0.9rem 0.85rem;
  }

  .catalog-sidebar-block + .catalog-sidebar-block {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .catalog-sidebar-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .catalog-sidebar-list::-webkit-scrollbar {
    display: none;
  }

  .catalog-sidebar-list li {
    flex: 0 0 auto;
  }

  .catalog-sidebar-list li + li {
    margin-top: 0;
  }

  .catalog-sidebar-link {
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    gap: 0.4rem;
  }

  .catalog-sidebar-link.is-active {
    border-color: transparent;
  }
}

/* Секции страницы */
.page-section {
  padding: 2.5rem 0;
  animation: fadeInUp 0.5s ease-out;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Как это работает */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.how-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  border-radius: 50%;
  margin-bottom: 1rem;
}

.how-step-num svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  overflow: visible;
}

.how-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.how-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Преимущества */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 4, 0.2);
  box-shadow: var(--shadow-hover);
}

.benefit-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--carrot);
}

.benefit-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.home-stats-grid .stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-stats-grid .stat-card .icon {
  margin-left: auto;
  margin-right: auto;
}

/* «Подробнее о сервисе» — короткий текст в рамке с анимированной линией (морковный градиент) */
.home-prose-frame {
  position: relative;
  max-width: 38rem;
  margin: 0 auto;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    130deg,
    var(--carrot-dark),
    var(--carrot),
    var(--carrot-light),
    var(--carrot),
    var(--carrot-dark)
  );
  background-size: 220% 220%;
  animation: homeProseFrameLine 8s ease infinite;
  box-shadow: var(--shadow);
}

@keyframes homeProseFrameLine {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

.home-prose-frame__inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 1.25rem 1.35rem;
  animation: fadeInUp 0.55s ease-out both;
}

.home-prose-frame__inner p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.home-prose-frame__inner p:last-child {
  margin-bottom: 0;
}

.home-prose-frame__inner strong {
  color: var(--text);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .home-prose-frame {
    animation: none;
    background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  }
  .home-prose-frame__inner {
    animation: none;
  }
}

.home-checklist {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.home-checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.home-checklist li:last-child {
  margin-bottom: 0;
}

.home-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
}

/* Декоративные фото на главной между блоками */
.home-spot {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.home-spot__figure {
  margin: 0;
}

.home-spot__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.home-spot__figure--mid {
  max-width: 48rem;
  margin: 0 auto;
}

/* CTA полоска */
.cta-strip {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.08), rgba(248, 140, 6, 0.06));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 93, 4, 0.15);
}

.cta-strip-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

/* FAQ — аккордеон, стрелка на summary */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.15rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), color var(--transition);
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::marker {
  content: '';
}

.faq-item__summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.1rem;
  border-right: 2px solid var(--carrot);
  border-bottom: 2px solid var(--carrot);
  transform: rotate(45deg);
  transition: transform var(--transition), border-color var(--transition);
}

.faq-item__summary:hover {
  background: rgba(232, 93, 4, 0.06);
}

.faq-item__summary:focus {
  outline: none;
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--carrot);
  outline-offset: -2px;
}

.faq-item[open] > .faq-item__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.35rem;
}

.faq-item__question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  text-align: left;
}

.faq-item__answer {
  padding: 0 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
  animation: faqAnswerOpen 0.25s ease-out;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  padding-top: 0.85rem;
}

@keyframes faqAnswerOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__answer {
    animation: none;
  }
  .faq-item__summary::after {
    transition: none;
  }
}

/* Карточки товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  animation: fadeInUp 0.5s ease-out backwards;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 93, 4, 0.2);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(248, 140, 6, 0.15), rgba(232, 93, 4, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--carrot);
}
.product-favorite-form {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  margin: 0;
}
.product-favorite-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), color var(--transition), border-color var(--transition);
}
body.theme-dark .product-favorite-btn {
  background: rgba(30, 30, 35, 0.92);
}
.product-favorite-btn:hover {
  transform: scale(1.06);
  color: var(--carrot);
  border-color: rgba(232, 93, 4, 0.35);
}
.product-favorite-btn.is-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.35);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.25rem;
}

.product-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--carrot);
  background: rgba(232, 93, 4, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--carrot);
}

/* Карточка товара на главной: название и описание по центру, цена/аренда */
.product-body--home { text-align: center; }
.product-body--home .product-meta { display: flex; justify-content: center; }
.product-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.product-price__rental {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Формы */
.form-section {
  max-width: 420px;
  margin: 0 auto;
  padding: 3rem 0;
}

.form-section--split {
  max-width: 520px;
  padding: 2rem 1rem 3rem;
}

.form-auth-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.form-auth-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.55s ease-out 0.08s both;
}

.form-auth-visual img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  object-fit: contain;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease-out;
}

.form-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-align: center;
}
.form-card .subtitle {
  text-align: center;
}
.form-page-logo {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.form-page-logo img {
  height: 96px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent;
}

.form-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-card .form-footer {
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--carrot);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
  animation: inputFocus 0.3s ease;
}

.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 9rem;
  transition: border-color var(--transition);
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--carrot);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
}

@keyframes inputFocus {
  from { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.2); }
  to { box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1); }
}

/* Плавное появление кнопок при наведении */
.btn-primary:active {
  transform: translateY(0);
}
.btn-outline:active {
  transform: translateY(0);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.form-footer a {
  font-weight: 600;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  animation: shake 0.5s ease-out;
}
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-legal a {
  font-size: 0.875rem;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
}

.legal-doc .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.legal-doc__body {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-doc__body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}

.legal-doc__body h2:first-of-type {
  margin-top: 0;
}

.legal-doc__body p {
  margin: 0 0 0.75rem;
}

.legal-doc__body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-doc__body li {
  margin-bottom: 0.35rem;
}

/* Личный кабинет */
.page-header {
  padding: 2rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.4s ease-out;
}
.page-header--cabinet {
  justify-content: center;
  text-align: center;
  width: 100%;
}
.page-header h1 {
  font-size: 1.75rem;
  color: var(--text);
}

/* ЛК: боковая навигация + основная колонка */
.cabinet-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 2rem;
}

.cabinet-layout__main {
  flex: 1;
  min-width: 0;
}

/* Партнёрка: блок по центру колонки, SVG в карточках статистики */
.partner-program-center {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0.5rem;
}

.partner-program-center .page-header--cabinet {
  width: 100%;
}

.partner-ref-card {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto 1.25rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-ref-card__title {
  margin: 0 0 0.5rem;
}

.partner-ref-card .partner-ref-url {
  margin: 0 0 0.75rem;
  width: 100%;
}

.partner-ref-link {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
  color: var(--carrot);
  text-decoration: none;
}

.partner-ref-link:hover {
  color: var(--carrot-dark);
  text-decoration: underline;
}

body.theme-dark .partner-ref-link:hover {
  color: var(--carrot-light);
}

.partner-stats-block {
  border-bottom: none !important;
  padding-top: 0 !important;
  background: transparent !important;
  width: 100%;
}

.partner-stats-row {
  justify-content: center !important;
}

.stat-card.stat-card--cabinet .icon.icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.35rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--carrot);
}

.stat-card.stat-card--cabinet .icon.icon--svg svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

body.theme-dark .stat-card.stat-card--cabinet .icon.icon--svg {
  color: var(--carrot-light);
}

.cabinet-nav {
  flex-shrink: 0;
  width: 15rem;
  position: sticky;
  top: 5.5rem;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Баланс в квадратном блоке — сверху сайдбара; ниже — пункты меню */
.cabinet-nav-balance-ring {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.cabinet-nav-balance-ring__inner {
  width: 100%;
  max-width: 12rem;
  height: auto;
  border-radius: var(--radius);
  box-sizing: border-box;
  border: 2px solid rgba(232, 93, 4, 0.55);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.7rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.cabinet-nav-balance-ring__inner:hover {
  border-color: var(--carrot);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-hover);
  transform: translateY(-1px);
}

.cabinet-nav-balance-ring__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

body.theme-dark .cabinet-nav-balance-ring__inner {
  border-color: rgba(244, 140, 6, 0.42);
  box-shadow: 0 0 0 1px var(--border);
}

.cabinet-nav-balance-ring__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.2;
}

.cabinet-nav-balance-ring__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.cabinet-nav-balance-ring__btn {
  margin-top: 0.15rem;
  padding: 0.28rem 0.65rem !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  border-radius: var(--radius);
  width: auto;
  max-width: calc(100% - 0.25rem);
  white-space: nowrap;
}

.cabinet-nav__list--below-balance {
  margin-top: 0;
}

.cabinet-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: none;
  box-shadow: none;
}

.cabinet-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.85rem 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.cabinet-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.cabinet-nav__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cabinet-nav__label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.cabinet-nav__link:hover .cabinet-nav__icon,
.cabinet-nav__link.is-active .cabinet-nav__icon {
  color: var(--carrot);
}

.cabinet-nav__link:hover {
  color: var(--carrot);
  border-color: var(--border);
  background: transparent;
}

.cabinet-nav__link.is-active {
  color: var(--carrot);
  border-color: var(--text-muted);
  background: transparent;
}

.cabinet-nav__link--support {
  margin-top: 0;
}

.cabinet-support-lead {
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

.cabinet-support-form {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cabinet-support-form .alert {
  margin-bottom: 1rem;
}

.cabinet-support-telegram-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cabinet-support-telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cabinet-support-telegram-btn .telegram-icon {
  flex-shrink: 0;
}

.support-ticket-message-cell {
  max-width: 36rem;
  white-space: pre-wrap;
  word-break: break-word;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-content .text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .cabinet-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0.25rem;
  }

  .cabinet-nav {
    width: 100%;
    position: static;
    top: auto;
    padding: 0;
  }

  .cabinet-nav-balance-ring {
    margin-bottom: 0.85rem;
    padding-bottom: 0.9rem;
  }

  /* Баланс на мобильном — компактная горизонтальная строка вместо квадрата */
  .cabinet-nav-balance-ring__inner {
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    text-align: left;
  }

  .cabinet-nav-balance-ring__value {
    font-size: 1.05rem;
  }

  .cabinet-nav-balance-ring__btn {
    margin-top: 0;
    margin-left: auto;
  }

  .cabinet-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0;
  }

  .cabinet-nav__link {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 9rem;
    padding: 0.65rem 0.6rem;
    font-size: 0.9rem;
    justify-content: center;
    gap: 0.45rem;
  }

  .cabinet-nav__label {
    flex: 0 1 auto;
  }

  .cabinet-nav__link--support {
    flex: 1 1 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ЛК: статистика — ряд на всю ширину, карточки по центру (flex + justify-content) */
.cabinet-stats-full {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 0 1.5rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}

.cabinet-stats-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  align-content: center;
  gap: 2rem 3rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.stat-card.stat-card--cabinet {
  flex: 0 1 280px;
  min-width: 220px;
  max-width: 340px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.stat-card.stat-card--cabinet .icon {
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

.stat-card.stat-card--cabinet .value,
.stat-card.stat-card--cabinet .label {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.stat-card.stat-card--cabinet .stat-card__value-email {
  text-align: center !important;
}

a.stat-card.stat-card--cabinet-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
a.stat-card.stat-card--cabinet-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 93, 4, 0.2);
}

@media (max-width: 900px) {
  .cabinet-stats-full {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .cabinet-stats-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .stat-card.stat-card--cabinet {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 420px;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.stat-card .stat-card__value-email {
  font-size: clamp(0.85rem, 1.5vw, 1.2rem);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  animation: fadeInUp 0.4s ease-out backwards;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card .icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  overflow: visible;
}
.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Таблицы */
.table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeInUp 0.4s ease-out;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem 1.25rem;
  text-align: left;
}
th {
  background: rgba(232, 93, 4, 0.08);
  font-weight: 600;
  color: var(--text);
}
tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}
tr:hover {
  background: rgba(232, 93, 4, 0.04);
}

/* Миниатюра товара в таблице админки */
.admin-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.admin-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Компактная таблица админки — чтобы все колонки помещались на ПК */
.admin-table th,
.admin-table td {
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
}
.admin-table__actions { white-space: nowrap; }
.admin-table td:last-child { white-space: nowrap; }
.admin-table__actions .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.2;
}
.admin-table__actions .btn + .btn { margin-left: 0.4rem; }

/* Админка */
.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  min-height: calc(100vh - 60px);
}
.admin-sidebar a,
.admin-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.admin-sidebar a:hover,
.admin-sidebar a.active,
.admin-sidebar-btn:hover,
.admin-sidebar-btn.active {
  background: rgba(232, 93, 4, 0.12);
  color: var(--carrot);
}
.admin-sidebar-btn.active {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: white;
}
.admin-sidebar-btn--out {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

.admin-block {
  margin-top: 2rem;
}
.admin-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.admin-block__empty {
  padding: 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-block__empty code {
  background: rgba(0,0,0,0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.td-pages { max-width: 280px; word-break: break-all; font-size: 0.9rem; }
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-fail { background: #fee2e2; color: #b91c1c; }
.stat-card .icon,
.stat-card__icon { margin-bottom: 0.75rem; }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Лёгкая анимация появления страницы */
main.container {
  animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    max-width: min(100%, 460px);
    margin: 0 auto;
    width: 100%;
  }

  .hero-visual img {
    margin-right: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-features,
  .hero-buttons {
    justify-content: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

}

/* Адаптив */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
    max-width: 110px;
  }

  /* Шапка на мобильном — одна строка: логотип + навигация + действия */
  .header .header-inner {
    flex-wrap: nowrap;
    padding: 0.6rem 0.85rem;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    order: 0;
    flex: 0 0 auto;
  }

  .header-right {
    order: 2;
    margin-left: 0;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .header-inner .nav {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    border-top: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-inner .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 0.28rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .header-right a,
  .header-right .btn {
    font-size: 0.78rem;
    white-space: nowrap;
    padding: 0.45rem 0.65rem;
    min-height: 2.5rem;
  }

  .header-right a.header-cart,
  .header-right a.header-logout {
    width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
  }

  .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero {
    padding: 2rem 0;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  .about-strip-frame__inner {
    padding: 1.25rem 1rem;
  }
  .page-section {
    padding: 1.5rem 0;
  }
  .how-steps,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   Главная страница — современный минимализм (hp-*)
   Чёткая сетка, аккуратные карточки, много воздуха.
   ============================================================ */

.hp-hero {
  padding: 3rem 0 2rem;
}

.hp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1.14fr);
  gap: 2rem;
  align-items: center;
}

.hp-hero__copy {
  min-width: 0;
}

.hp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--carrot);
  margin-bottom: 1.25rem;
}

.hp-eyebrow__br {
  display: none;
}

.hp-hero__title {
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.hp-hero__title span {
  color: var(--carrot);
}

.hp-hero__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hp-hero__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
}

.hp-hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
}

.hp-hero__features svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--carrot);
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hp-hero__visual {
  justify-self: end;
  width: 100%;
  margin-right: -1.5rem;
}

.hp-hero__visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

@media (min-width: 1024px) {
  .hp-hero__visual img {
    width: 114%;
  }
}

@media (min-width: 1280px) {
  .hp-hero__visual img {
    width: 124%;
  }
}

/* Секции и заголовки */
.hp-section {
  padding: 3.5rem 0;
}

.hp-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hp-head__kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--carrot);
  margin-bottom: 0.75rem;
}

.hp-head__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.hp-head__title:last-child {
  margin-bottom: 0;
}

.hp-head__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Как это работает */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hp-step,
.hp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hp-step {
  padding: 1.75rem;
}

.hp-step__icon,
.hp-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--carrot);
  margin-bottom: 1.25rem;
}

.hp-step__icon svg,
.hp-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.hp-step__title,
.hp-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.hp-step__text,
.hp-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* Почему мы */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Каталог на главной: 4 товара в ряд */
.products-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
}

.hp-catalog__more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .products-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .products-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .products-grid--home {
    grid-template-columns: 1fr;
  }
}

.hp-card {
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.hp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 4, 0.25);
  box-shadow: var(--shadow-hover);
}

/* CTA-полоса */
.hp-cta {
  padding: 1rem 0 0.5rem;
}

.hp-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 93, 4, 0.18);
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.1), rgba(248, 140, 6, 0.06));
}

.hp-cta__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.hp-cta__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

body.theme-dark .hp-hero__visual img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .hp-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  /* На мобильном фото встаёт сразу под заголовком */
  .hp-hero__copy {
    display: contents;
  }
  .hp-eyebrow {
    order: 1;
    text-align: center;
    margin-bottom: 0;
  }
  .hp-hero__title {
    order: 2;
    text-align: center;
    margin-bottom: 0;
  }
  .hp-hero__visual {
    order: 3;
    margin-right: 0;
  }
  .hp-hero__lead {
    order: 4;
    margin: 0 auto;
    text-align: center;
  }
  .hp-hero__features {
    order: 5;
    justify-content: center;
    margin-bottom: 0;
  }
  .hp-hero__actions {
    order: 6;
    justify-content: center;
  }
  .hp-hero {
    padding: 2rem 0 1rem;
  }
  .hp-steps {
    grid-template-columns: 1fr;
  }
  .hp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hp-eyebrow {
    display: block;
    text-align: center;
  }
  .hp-eyebrow__br {
    display: inline;
  }
}

@media (max-width: 600px) {
  .hp-section {
    padding: 2.5rem 0;
  }
  .hp-head {
    margin-bottom: 1.75rem;
  }
  .hp-grid {
    grid-template-columns: 1fr;
  }
  .hp-cta__box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
  .hp-hero__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.6rem;
  }
  .hp-hero__features li {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
  }
  .hp-hero__title {
    font-size: clamp(1.05rem, 4.6vw, 1.4rem);
    letter-spacing: -0.035em;
    line-height: 1.25;
  }
}

/* ============================================================
   Магазин: корзина, оформление, кабинет, поддержка, админ — 2026
   ============================================================ */

/* Размеры кнопок и дополнительные бейджи */
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; border-radius: var(--radius); }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-warn { background: #fef3c7; color: #b45309; }
body.theme-dark .badge-success { background: rgba(22,163,74,0.2); color: #4ade80; }
body.theme-dark .badge-fail { background: rgba(220,38,38,0.2); color: #f87171; }
body.theme-dark .badge-info { background: rgba(37,99,235,0.22); color: #93c5fd; }
body.theme-dark .badge-warn { background: rgba(217,119,6,0.22); color: #fbbf24; }

/* Иконка корзины в шапке */
.header-right a.header-cart {
  position: relative;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  justify-content: center;
  color: var(--text);
}
.header-right a.header-cart svg { width: 1.25rem; height: 1.25rem; display: block; }
.header-right a.header-cart.has-items { color: var(--carrot); border-color: rgba(232,93,4,0.4); }
.header-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(232,93,4,0.4);
}

/* Бейдж в боковой навигации кабинета */
.cabinet-nav__badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--carrot); }
.breadcrumbs span { color: var(--text-muted); }
.breadcrumbs > span:last-child { color: var(--text); font-weight: 500; }

/* ===================== Карточка товара (каталог/кабинет) ===================== */
.product-image__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--carrot);
}
.product-image__link img { width: 100%; height: 100%; object-fit: cover; }
.product-image__link--placeholder { font-size: 3rem; }
.product-card__title-link { color: inherit; }
.product-card__title-link:hover { color: var(--carrot); }
.product-footer__actions { display: flex; align-items: center; gap: 0.4rem; }
.product-footer__cart-form { margin: 0; }

/* ===================== Страница товара ===================== */
.product-page { padding-bottom: 2.5rem; }
.product-page__head {
  max-width: 720px;
  margin: 1rem auto 0;
}
.product-page__head .product-info__meta { margin-bottom: 0.5rem; }
.product-page__head .product-info__title { margin-bottom: 0.5rem; }
.product-page__head .product-info__lead { margin-bottom: 0; }
.product-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 720px;
  margin: 1rem auto 0;
}
.product-gallery { position: relative; }
.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__placeholder { font-size: 5rem; color: var(--carrot); }
.product-gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: var(--carrot); }
.product-gallery__thumb:hover { transform: translateY(-2px); }

/* Сердечко «В избранное» поверх фото справа */
.product-gallery__fav {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  margin: 0;
  line-height: 0;
}
.gallery-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--carrot);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.gallery-fav:hover { transform: scale(1.08); background: #fff; }
.gallery-fav.is-active { background: var(--carrot); border-color: var(--carrot); color: #fff; }
body.theme-dark .gallery-fav { background: rgba(0, 0, 0, 0.7); border-color: var(--border); }
body.theme-dark .gallery-fav.is-active { background: var(--carrot); color: #fff; }

.product-info__meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; }
.product-info__title { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.75rem; color: var(--text); }
.product-info__lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.25rem; }
.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.product-info__price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--carrot);
}
.product-info__price-note { color: var(--text-muted); font-size: 0.85rem; }
.product-info__rental {
  margin: -0.9rem 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.product-info__rental strong { color: var(--carrot); font-size: 1.05rem; }
.product-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
/* Кнопки в один ряд, одинаковой ширины */
.product-info__buy-form { margin: 0; flex: 1 1 0; min-width: 9rem; }
.product-info__buy-form .btn { width: 100%; }
.product-info__fav { margin: 0; flex: 1 1 100%; }
.product-info__fav .btn { width: 100%; }
.product-info__actions > .btn { flex: 1 1 100%; width: 100%; }
.product-owned { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.product-info__demo {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.product-info__assurance {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.05);
  border: 1px solid rgba(232, 93, 4, 0.12);
  display: grid;
  gap: 0.5rem;
}
.product-info__assurance li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.product-info__assurance li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--carrot);
  font-weight: 700;
}
.product-page__details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 1.5rem auto 0;
}
.product-block--description {
  max-width: 720px;
  margin: 1.5rem auto 0;
}
.product-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.product-block h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text); }
.product-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.product-features li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-muted); }
.product-features__check { color: var(--carrot); font-weight: 700; flex-shrink: 0; }
.product-description { color: var(--text-muted); line-height: 1.7; }
.product-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; }
.product-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===================== Страница аренды ===================== */
.rent-page { padding-bottom: 2.5rem; }
.rent-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 1rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.rent-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--carrot), var(--carrot-light));
}
.rent-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rent-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.rent-hero__placeholder { font-size: 4.5rem; color: var(--carrot); }
.rent-hero__title { font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0; color: var(--text); }
.rent-hero__lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.25rem; }
.rent-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.06);
  border: 1px solid rgba(232, 93, 4, 0.15);
}
.rent-price__value { font-size: 2.1rem; font-weight: 800; color: var(--carrot); }
.rent-price__period { color: var(--text-muted); font-size: 1rem; }
.rent-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.rent-balance strong { color: var(--text); }
.rent-balance--low strong { color: var(--carrot-dark); }
.rent-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.rent-hero__form { margin: 0; }
.rent-hero__back { color: var(--text-muted); font-weight: 600; }
.rent-hero__back:hover { color: var(--carrot); }
.rent-hero__hint { margin: 1rem 0 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.rent-terms-title { max-width: 960px; margin: 2.5rem auto 1rem; font-size: 1.3rem; color: var(--text); }
.rent-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.rent-term {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.rent-term__icon { font-size: 1.5rem; line-height: 1.3; flex-shrink: 0; }
.rent-term strong { display: block; color: var(--text); margin-bottom: 0.3rem; }
.rent-term span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.rent-note {
  max-width: 960px;
  margin: 1.75rem auto 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

/* Аренда: результат оплаты */
.rent-result {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.rent-result__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.1);
  color: var(--carrot);
  font-size: 2rem;
  font-weight: 700;
}
.rent-result__title { font-size: 1.6rem; margin-bottom: 0.75rem; color: var(--text); }
.rent-result__text { color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.rent-result__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

@media (max-width: 1000px) {
  .rent-hero { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
  .rent-hero__media { aspect-ratio: 16 / 9; }
  .rent-terms-grid { grid-template-columns: 1fr; }
}

/* ===================== Корзина ===================== */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.cart-list { display: grid; gap: 0.85rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-item__media {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(248,140,6,0.15), rgba(232,93,4,0.08));
  font-size: 1.75rem;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 600; color: var(--text); display: block; margin-bottom: 0.35rem; }
.cart-item__title:hover { color: var(--carrot); }
.cart-item__price { font-size: 1.15rem; font-weight: 700; color: var(--carrot); white-space: nowrap; }
.cart-item__remove { margin: 0; }
.cart-item__remove-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.cart-item__remove-btn:hover { color: #dc2626; border-color: #dc2626; background: rgba(220,38,38,0.06); }
.cart-summary {
  position: sticky;
  top: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.cart-summary__title { font-size: 1.15rem; margin-bottom: 1rem; }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cart-summary__row--total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.cart-summary__checkout { width: 100%; margin-top: 1.25rem; }
.cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.cart-summary__clear {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem;
  font-family: inherit;
}
.cart-summary__clear:hover { color: #dc2626; }

/* ===================== Оформление заказа ===================== */
.checkout-page { padding-bottom: 2rem; }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}
.checkout-main { display: grid; gap: 1.25rem; }
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.checkout-card__title { font-size: 1.15rem; margin-bottom: 1.15rem; color: var(--text); }
.checkout-items { display: grid; gap: 0.85rem; }
.checkout-item { display: flex; align-items: center; gap: 1rem; }
.checkout-item__media {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(248,140,6,0.15), rgba(232,93,4,0.08));
  font-size: 1.5rem;
}
.checkout-item__media img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.checkout-item__title { font-weight: 600; color: var(--text); }
.checkout-item__title:hover { color: var(--carrot); }
.checkout-item__type { font-size: 0.8rem; color: var(--text-muted); }
.checkout-item__price { font-weight: 700; color: var(--text); white-space: nowrap; }

.pay-options { display: grid; gap: 1rem; }
.pay-option {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.02);
  margin: 0;
}
.pay-option__head { display: flex; align-items: center; gap: 0.85rem; }
.pay-option__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(232, 93, 4, 0.1);
}
.pay-option__name { display: block; font-weight: 600; color: var(--text); }
.pay-option__hint { display: block; font-size: 0.82rem; color: var(--text-muted); }
.pay-option__btn { width: 100%; }
.pay-option__note { font-size: 0.8rem; color: var(--text-muted); margin: 0; text-align: center; }
.checkout-aside { position: sticky; top: 1rem; }
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.checkout-summary__title { font-size: 1.15rem; margin-bottom: 1.15rem; }
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.checkout-summary__row--total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.checkout-summary__assurance {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}
.checkout-summary__assurance li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.checkout-summary__assurance li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--carrot);
  font-weight: 700;
}
.checkout-summary__back {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Экран успешной оплаты */
.checkout-result {
  max-width: 40rem;
  margin: 2rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-hover);
}
.checkout-result__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 8px 24px rgba(22,163,74,0.35);
}
.checkout-result--fail .checkout-result__icon {
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
}
.checkout-result__title { font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--text); }
.checkout-result__text { color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.checkout-result__list {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1.15rem;
  margin-bottom: 1.5rem;
  background: rgba(232, 93, 4, 0.02);
}
.checkout-result__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.checkout-result__row:last-child { border-bottom: none; }
.checkout-result__row--total { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.checkout-result__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== Кабинет: дашборд ===================== */
.cab-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(232,93,4,0.12), rgba(248,140,6,0.05));
  border: 1px solid rgba(232, 93, 4, 0.16);
  margin-bottom: 1.5rem;
}
.cab-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--carrot);
  margin-bottom: 0.4rem;
}
.cab-hero__title { font-size: 1.7rem; color: var(--text); margin-bottom: 0.5rem; }
.cab-hero__text { color: var(--text-muted); max-width: 34rem; line-height: 1.6; margin: 0; }
.cab-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cab-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
  margin-bottom: 1.5rem;
}
body.theme-dark .cab-notice { background: rgba(217,119,6,0.12); border-color: rgba(217,119,6,0.3); }
.cab-notice__icon { font-size: 1.5rem; flex-shrink: 0; }
.cab-notice__body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.cab-notice__body strong { color: var(--text); }
.cab-notice__body span { color: var(--text-muted); font-size: 0.9rem; }

.cab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.cab-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cab-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(232,93,4,0.3); }
.cab-stat__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--carrot);
  background: rgba(232, 93, 4, 0.1);
  margin-bottom: 0.35rem;
}
.cab-stat__icon svg { width: 1.35rem; height: 1.35rem; }
.cab-stat__value { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.cab-stat__label { font-size: 0.85rem; color: var(--text-muted); }

.cab-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.cab-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.cab-section__head h2 { font-size: 1.2rem; color: var(--text); }
.cab-section__link { font-size: 0.9rem; font-weight: 600; }
.cab-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.cab-empty p { margin: 0; max-width: 34rem; }

.cab-orders { display: grid; gap: 0.65rem; }
.cab-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.cab-order:hover { border-color: rgba(232,93,4,0.35); background: rgba(232,93,4,0.03); }
.cab-order__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cab-order__title { font-weight: 600; }
.cab-order__meta { font-size: 0.82rem; color: var(--text-muted); }

.products-grid--cabinet { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===================== Кабинет: покупки ===================== */
.purchase-list { display: grid; gap: 1rem; }
.purchase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.purchase-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.purchase-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.purchase-card__title:hover { color: var(--carrot); }
.purchase-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.purchase-card__ref code,
.ticket-card__meta code {
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
body.theme-dark .purchase-card__ref code,
body.theme-dark .ticket-card__meta code { background: rgba(255,255,255,0.08); }
.purchase-card__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.purchase-card__amount { font-size: 1.2rem; font-weight: 700; color: var(--carrot); }
.purchase-card__method { font-size: 0.85rem; color: var(--text-muted); }
.purchase-card__actions { display: flex; gap: 0.6rem; margin-left: auto; flex-wrap: wrap; }

/* ===================== Тикеты поддержки ===================== */
.ticket-list { display: grid; gap: 1rem; }
.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.ticket-card--closed { opacity: 0.82; }
.ticket-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.ticket-card__subject { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.ticket-card__meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.ticket-card__message {
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.025);
  border-radius: var(--radius);
}
body.theme-dark .ticket-card__message { background: rgba(255,255,255,0.04); }
.ticket-card__reply {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--carrot);
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.05);
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.ticket-card__reply-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--carrot);
  margin-bottom: 0.35rem;
}
.ticket-card__form { margin-top: 1rem; display: grid; gap: 0.75rem; }
.ticket-card__form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.ticket-card__form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* ===================== Админка: статистика и инлайн-формы ===================== */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-stat__value { font-size: 1.75rem; font-weight: 800; color: var(--carrot); line-height: 1; }
.admin-stat__label { font-size: 0.85rem; color: var(--text-muted); }
.admin-inline-form { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.admin-inline-form select { padding: 0.4rem 0.55rem; }
.admin-inline-form__btn { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

/* ===================== Адаптив магазина ===================== */
@media (max-width: 1000px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .product-page__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .product-gallery { position: relative; }
  .cab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid--cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .product-page__details { grid-template-columns: 1fr; }
  .cab-hero { padding: 1.35rem 1.25rem; }
  .cab-hero__title { font-size: 1.4rem; }
  .cab-hero__actions { width: 100%; }
  .cab-hero__actions .btn { flex: 1; }
  .cab-notice { flex-wrap: wrap; }
  .cab-notice .btn { width: 100%; }
  .cab-section { padding: 1.15rem; }
  .checkout-card, .checkout-summary { padding: 1.15rem; }
  .checkout-result { padding: 1.75rem 1.25rem; margin: 1rem auto; }
  .checkout-result__title { font-size: 1.4rem; }
  .checkout-result__actions .btn { width: 100%; }
  .purchase-card { padding: 1.1rem 1.15rem; }
  .purchase-card__foot { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .purchase-card__actions { width: 100%; margin-left: 0; }
  .purchase-card__actions .btn { flex: 1; }
  .ticket-card { padding: 1.1rem 1.15rem; }
  .ticket-card__head { flex-direction: column; }
  .admin-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-item { flex-wrap: wrap; }
  .cart-item__media { width: 3.5rem; height: 3.5rem; }
  .cart-item__price { margin-left: auto; }
  /* Кнопки в карточках товара — комфортный тап на мобильном */
  .product-footer { flex-wrap: wrap; gap: 0.6rem; }
  .product-footer__actions { flex: 1 1 100%; justify-content: stretch; }
  .product-footer__actions > * { flex: 1; }
  .product-footer__actions .btn,
  .product-footer__cart-form { width: 100%; }
  .product-footer .btn { min-height: 2.6rem; }
  /* Компактные кнопки ЛК — комфортный тап на мобильном */
  .btn-sm { min-height: 2.5rem; }
  .cabinet-nav-balance-ring__btn { min-height: 2.5rem; padding: 0.55rem 1rem; }
}

@media (max-width: 560px) {
  .cab-stats { grid-template-columns: 1fr; }
  .products-grid--cabinet { grid-template-columns: 1fr; }
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
  .cart-item__body { flex-basis: calc(100% - 4.5rem); }
  .cart-item__price { margin-left: 0; }
  .cart-item__remove { margin-left: auto; }
}

@media (max-width: 480px) {
  .product-info__title { font-size: 1.55rem; }
  .product-info__price-value { font-size: 1.7rem; }
  .product-info__actions .btn { width: 100%; }
  .product-info__buy-form { width: 100%; }
  .product-info__buy-form .btn { width: 100%; }
  .breadcrumbs { font-size: 0.8rem; }
}

/* ============================================================
   FOX GLASS — прозрачный лисьий стиль (тёплое стекло)
   Полупрозрачные панели поверх живого морковно-медового фона.
   Не чёрный и не белый: тёплая палитра лисицы + анимации.
   ============================================================ */

/* --- Палитра: светлая тема «Fox Daylight» --- */
:root {
  --white: #ffffff;
  --fox-cream: #fff4e6;
  --fox-amber: #ffb347;
  --fox-orange: #ff7a18;
  --fox-ember: #e8551a;
  --bg: #fdedda;
  --bg-card: rgba(255, 255, 255, 0.30);
  --text: #2b1a10;
  --text-muted: #7d573f;
  --border: rgba(180, 110, 55, 0.20);
  --shadow: 0 10px 30px rgba(170, 90, 30, 0.12);
  --shadow-hover: 0 18px 46px rgba(232, 93, 4, 0.24);
  --carrot: #ff7a18;
  --carrot-light: #ffb347;
  --carrot-dark: #e8551a;
  --glass-blur: 24px;
  --glass-sheen: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-input: rgba(255, 255, 255, 0.26);
  --nav-ring: rgba(180, 110, 55, 0.14);
}

/* --- Тёмная тема «Fox Night»: глубокий какао, не чёрный --- */
body.theme-dark {
  --white: #1c1109;
  --bg: #1c1109;
  --bg-card: rgba(255, 200, 150, 0.05);
  --text: #fbe9d8;
  --text-muted: #cda98f;
  --border: rgba(255, 190, 140, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 18px 46px rgba(255, 122, 24, 0.32);
  --glass-sheen: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 190, 140, 0.16);
  --glass-input: rgba(255, 200, 150, 0.06);
  --nav-ring: rgba(255, 190, 140, 0.12);
}

/* --- Живой фон: переливающиеся лисьи пятна (aurora) --- */
/* Страховка: никакой горизонтальный скролл по ширине (clip не создаёт скролл-контейнер, шапка остаётся sticky) */
html {
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  /* clip вместо hidden — не создаёт скролл-контейнер, шапка остаётся sticky */
  overflow-x: clip;
}

body::before,
body.theme-dark::before {
  content: "";
  position: fixed;
  top: -25vmax;
  left: -25vmax;
  right: -25vmax;
  bottom: -25vmax;
  height: auto;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 18% 20%, rgba(255, 122, 24, 0.40), transparent 62%),
    radial-gradient(36vmax 36vmax at 84% 16%, rgba(255, 179, 71, 0.44), transparent 60%),
    radial-gradient(44vmax 44vmax at 80% 86%, rgba(232, 85, 26, 0.32), transparent 62%),
    radial-gradient(38vmax 38vmax at 20% 84%, rgba(255, 140, 60, 0.30), transparent 62%);
  filter: blur(38px) saturate(120%);
  animation: foxAurora 26s ease-in-out infinite alternate;
  will-change: transform;
}

body.theme-dark::before {
  background:
    radial-gradient(42vmax 42vmax at 18% 20%, rgba(255, 122, 24, 0.34), transparent 62%),
    radial-gradient(36vmax 36vmax at 84% 16%, rgba(255, 160, 60, 0.28), transparent 60%),
    radial-gradient(44vmax 44vmax at 80% 86%, rgba(232, 85, 26, 0.30), transparent 62%),
    radial-gradient(38vmax 38vmax at 20% 84%, rgba(180, 70, 20, 0.26), transparent 62%);
}

@keyframes foxAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2.5%, 0) scale(1.07); }
  100% { transform: translate3d(2.5%, -2.5%, 0) scale(1.04); }
}

/* --- Шапка: тот же фон, что и страница (без отдельной полосы) --- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: none;
}
body.theme-dark .header {
  background: transparent;
}
@media (min-width: 769px) {
  .header .header-inner { padding: 1rem 1.5rem; }
}

/* Навигация — обычные ссылки без плашек */
.nav a {
  background: none;
}

/* --- Матовое стекло на панелях --- */
.form-card,
.product-card,
.hp-card,
.hp-step,
.benefit-card,
.how-step,
.faq-item,
.hero-feature,
.about-strip-frame__inner,
.home-prose-frame__inner,
.empty-state-block,
.catalog-sidebar,
.catalog-empty,
.catalog-filter-btn,
.cart-item,
.cart-summary,
.checkout-card,
.checkout-summary,
.checkout-result,
.purchase-card,
.ticket-card,
.cab-section,
.cab-stat,
.cab-hero,
.cab-notice,
.cab-order,
.pay-option,
.partner-ref-card,
.partner-stats-block,
.admin-stat,
.admin-block,
.admin-block__empty,
.admin-sidebar,
.stat-card,
.table-wrap,
.home-try-cta__link {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
}

/* Мягкий блик сверху — «стеклянность» */
.form-card,
.product-card,
.hp-card,
.hp-step,
.benefit-card,
.how-step,
.faq-item,
.hero-feature,
.about-strip-frame__inner,
.home-prose-frame__inner,
.empty-state-block,
.catalog-sidebar,
.cart-item,
.cart-summary,
.checkout-card,
.checkout-summary,
.purchase-card,
.ticket-card,
.cab-section,
.cab-stat,
.cab-order,
.partner-ref-card,
.partner-stats-block,
.admin-stat,
.admin-block,
.admin-block__empty,
.admin-sidebar,
.stat-card,
.table-wrap,
.home-try-cta__link {
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-sheen);
  border-color: var(--glass-border);
}

/* Тёплое уведомление в ЛК — янтарное стекло */
.cab-notice {
  background: rgba(255, 179, 71, 0.16);
  border-color: rgba(255, 160, 60, 0.35);
}
body.theme-dark .cab-notice {
  background: rgba(255, 160, 60, 0.12);
  border-color: rgba(255, 160, 60, 0.28);
}

/* Поля ввода — прозрачное стекло вместо белого */
.form-group input,
.form-group textarea,
.form-group select,
select,
.ticket-card__form textarea,
.admin-inline-form select {
  background: var(--glass-input);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

/* Заголовки таблиц */
th { background: rgba(255, 179, 71, 0.12); color: var(--text); }
body.theme-dark th { background: rgba(255, 190, 140, 0.08); }

/* Уведомления alert в тёмной теме */
body.theme-dark .alert-error { background: rgba(220, 38, 38, 0.14); color: #fca5a5; border-color: rgba(220, 38, 38, 0.35); }
body.theme-dark .alert-success { background: rgba(22, 163, 74, 0.14); color: #86efac; border-color: rgba(22, 163, 74, 0.35); }

/* --- Анимации: плавное появление карточек --- */
@keyframes foxRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.products-grid > *,
.benefits-grid > *,
.how-steps > *,
.cab-stats > *,
.admin-stats-row > *,
.purchase-list > *,
.ticket-list > *,
.cart-list > *,
.hp-grid > *,
.dashboard-grid > * {
  animation: foxRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.products-grid > *:nth-child(2), .benefits-grid > *:nth-child(2), .how-steps > *:nth-child(2), .cab-stats > *:nth-child(2), .admin-stats-row > *:nth-child(2), .purchase-list > *:nth-child(2), .ticket-list > *:nth-child(2), .cart-list > *:nth-child(2), .hp-grid > *:nth-child(2), .dashboard-grid > *:nth-child(2) { animation-delay: 0.06s; }
.products-grid > *:nth-child(3), .benefits-grid > *:nth-child(3), .how-steps > *:nth-child(3), .cab-stats > *:nth-child(3), .admin-stats-row > *:nth-child(3), .purchase-list > *:nth-child(3), .ticket-list > *:nth-child(3), .cart-list > *:nth-child(3), .hp-grid > *:nth-child(3), .dashboard-grid > *:nth-child(3) { animation-delay: 0.12s; }
.products-grid > *:nth-child(4), .benefits-grid > *:nth-child(4), .how-steps > *:nth-child(4), .cab-stats > *:nth-child(4), .admin-stats-row > *:nth-child(4), .purchase-list > *:nth-child(4), .ticket-list > *:nth-child(4), .cart-list > *:nth-child(4), .hp-grid > *:nth-child(4), .dashboard-grid > *:nth-child(4) { animation-delay: 0.18s; }
.products-grid > *:nth-child(5), .benefits-grid > *:nth-child(5), .how-steps > *:nth-child(5), .admin-stats-row > *:nth-child(5), .purchase-list > *:nth-child(5), .ticket-list > *:nth-child(5), .hp-grid > *:nth-child(5), .dashboard-grid > *:nth-child(5) { animation-delay: 0.24s; }

/* Плавный подъём карточек ЛК при наведении */
.purchase-card,
.ticket-card,
.cab-section,
.checkout-card,
.checkout-summary,
.cart-summary {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.purchase-card:hover,
.ticket-card:hover,
.cab-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 122, 24, 0.30);
}

/* Свечение основной кнопки */
.btn-primary { box-shadow: 0 6px 18px rgba(255, 122, 24, 0.38); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 122, 24, 0.55); }

/* --- Производительность и доступность --- */
@media (max-width: 700px) {
  body::before,
  body.theme-dark::before { filter: blur(22px) saturate(110%); }
  :root { --glass-blur: 12px; }
  body.theme-dark { --glass-blur: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body.theme-dark::before { animation: none; }
  .hero,
  .hero-visual,
  .header,
  .hero-copy .hero-badge,
  .hero-lead,
  .products-grid > *,
  .benefits-grid > *,
  .how-steps > *,
  .cab-stats > *,
  .admin-stats-row > *,
  .purchase-list > *,
  .ticket-list > *,
  .cart-list > *,
  .hp-grid > *,
  .dashboard-grid > * { animation: none !important; }
}
