/* ── Google Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Переменные ─────────────────────────────────────────────────────── */
:root {
  --bg:        #FAF8F5;
  --bg2:       #F5F5F5;
  --surface:   #FFFFFF;
  --border:    #E8E8E8;
  --border-dark: #CCCCCC;
  --text:      #111111;
  --text-muted:#777777;
  --text-light:#AAAAAA;
  --accent:    #2C2C2C;
  --accent-hover: #000000;
  --danger:    #CC4444;
  --success:   #2D8A4E;
  --radius:    4px;
  --radius-sm: 3px;
  --radius-xs: 2px;
  --shadow:    0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --transition: .2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --indigo: #6366F1;
  --indigo-l: #EEF2FF;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(16px, 2vw, 18px); }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Top bar ────────────────────────────────────────────────────────── */
.topbar {
  background: #F5F5F5;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  padding: 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: var(--text-muted); font-size: 12px; }
.topbar a:hover { color: var(--text); }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar-brand-icon {
  width: 34px; height: 34px;
  background: var(--text);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.navbar-nav a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.navbar-nav a:hover { color: var(--text); }
.navbar-nav a.active { color: var(--text); border-bottom-color: var(--text); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar-actions a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  white-space: nowrap;
  transition: all var(--transition);
}
.navbar-actions a:hover { border-color: var(--text); color: var(--text); }
.navbar-actions .nav-admin {
  font-size: 12px;
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.navbar-actions .nav-admin:hover { background: #333; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover { background: #333; border-color: #333; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-ghost {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #aa3333; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 13px 32px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Accent (indigo) variants for admin/forms ─────────────────────── */
.btn-accent {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-accent:hover { background: #4F46E5; border-color: #4F46E5; color: #fff; }

/* ── Hero banner ─────────────────────────────────────────────────────── */
.hero-banner {
  background: #2C2C2C;
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hero-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-banner-eyebrow {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.hero-banner-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-banner-title strong { font-weight: 700; }
.hero-banner-desc {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-banner-actions { display: flex; gap: 12px; }
.btn-hero-primary {
  background: #fff;
  color: var(--text);
  border: 1px solid #fff;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-hero-primary:hover { background: rgba(255,255,255,.9); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,.8); }
.hero-banner-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: .15;
  line-height: 1;
}

/* ── Features strip ─────────────────────────────────────────────────── */
.features-strip {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.feature-item {
  background: var(--bg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.feature-text-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.feature-text-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Section header ──────────────────────────────────────────────────── */
.section-heading {
  text-align: center;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ── Products grid ───────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1px;
  row-gap: 24px;
  background: transparent;
  border: none;
}

/* ── Product card ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
  position: relative;
}
.card:hover { box-shadow: var(--shadow-md); z-index: 1; }

.card-image-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg2);
  position: relative;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-image-wrap img { transform: scale(1.04); }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  color: #ccc;
}
.card-badge-new {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.card-category {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--text-muted); }
.card-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 8px;
}
.card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.card-price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
}
.card-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.card-link:hover { color: var(--text); }

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 14px;
}
.form-control:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
  accent-color: var(--text);
  cursor: pointer;
}
.form-check-label { font-size: 13px; color: var(--text-muted); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }

/* ── Alerts ─────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-info    { background: var(--indigo-l); color: #3730A3; border-color: rgba(99,102,241,.3); }

/* ── Badge ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-success  { background: #F0FDF4; color: #166534; }
.badge-warning  { background: #FFFBEB; color: #92400E; }
.badge-danger   { background: #FEF2F2; color: #991B1B; }
.badge-default  { background: var(--bg2); color: var(--text-muted); }
.badge-accent   { background: var(--indigo-l); color: var(--indigo); }

/* ── Table ──────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--bg2); }
th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFAFA; }

/* ── Product detail page ─────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
.product-main {}
.product-sidebar {
  position: sticky;
  top: 84px;
}
.product-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product-sidebar-top {
  height: 6px;
  background: var(--text);
}
.product-sidebar-body { padding: 24px; }
.product-price-display {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}
.product-price-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-image { overflow: hidden; aspect-ratio: 16/9; background: var(--bg2); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.product-feature-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  color: var(--text);
}

/* ── Course description ──────────────────────────────────────────────── */
.course-description { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.course-description h2 { font-size: 20px; margin-bottom: 20px; }

/* ── Prose (описания товаров) ────────────────────────────────────────── */
.prose { line-height: 1.8; color: var(--text-muted); }
.prose h2 { font-size: 18px; font-weight: 600; color: var(--text); margin: 24px 0 10px; }
.prose h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.prose ul { list-style: none; padding: 0; margin: .8em 0 1.2em; display: flex; flex-direction: column; gap: 7px; }
.prose ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.prose ul li::before { content: '✓'; font-weight: 700; font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.prose p  { margin-bottom: .9em; font-size: 14px; }
.prose strong { font-weight: 600; color: var(--text); }

/* ── Document-prose (оферта, политика, соглашение — Quill-вывод) ─────── */
.doc-prose { font-size: 15px; line-height: 1.85; color: #333; }
.doc-prose h1 { font-size: 22px; font-weight: 700; color: var(--text); margin: 32px 0 14px; }
.doc-prose h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.doc-prose h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 22px 0 10px; }
.doc-prose h4 { font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.doc-prose p  { margin-bottom: 1em; }
.doc-prose strong, .doc-prose b { font-weight: 700; color: var(--text); }
.doc-prose em, .doc-prose i  { font-style: italic; }
.doc-prose u  { text-decoration: underline; }
.doc-prose a  { color: var(--indigo); text-decoration: underline; }
.doc-prose a:hover { color: var(--text); }
/* Нумерованные списки */
.doc-prose ol { list-style: decimal; padding-left: 28px; margin: 1em 0 1.2em; display: flex; flex-direction: column; gap: 8px; }
.doc-prose ol li { font-size: 15px; padding-left: 4px; }
/* Маркированные списки */
.doc-prose ul { list-style: disc; padding-left: 28px; margin: 1em 0 1.2em; display: flex; flex-direction: column; gap: 8px; }
.doc-prose ul li { font-size: 15px; padding-left: 4px; }
/* Вложенные списки (Quill indent) */
.doc-prose ol ol, .doc-prose ul ul,
.doc-prose ol ul, .doc-prose ul ol { margin: 6px 0; padding-left: 24px; }
/* Разделитель */
.doc-prose hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: all .2s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  transform: translateY(12px);
  transition: transform .2s ease;
  border: 1px solid var(--border);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close {
  width: 30px; height: 30px;
  border: 1px solid var(--border); background: transparent;
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg2); color: var(--text); }
.modal-body { padding: 20px 22px; }
.payment-frame-wrap { overflow: hidden; }
.payment-frame-wrap iframe { display: block; width: 100%; height: 420px; border: none; }

/* ── Admin layout ───────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #111111;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-brand {
  padding: 20px 18px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  letter-spacing: -.01em;
}
.admin-sidebar-brand-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.admin-nav { padding: 10px 8px; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  transition: all var(--transition);
  border-radius: 3px;
}
.admin-nav a:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
.admin-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.admin-nav .nav-section {
  padding: 14px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.admin-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #F8F8F8; }
.admin-topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--surface);
  flex-shrink: 0;
}
.admin-topbar-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.admin-main { flex: 1; padding: 24px; overflow-y: auto; }
.admin-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-body { padding: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.stat-value { font-size: 34px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -.04em; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,.5);
  padding: 48px 0 28px;
  margin-top: auto;
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-brand-icon {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.15);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-bottom: 20px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-icon { font-size: 40px; margin-bottom: 16px; opacity: .3; }
.empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* ── Divider ────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Toggle ──────────────────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-dark);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--text); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }

/* ── Success / Fail pages ────────────────────────────────────────────── */
.result-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.result-card { text-align: center; max-width: 460px; padding: 56px 40px; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #22C55E;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { opacity: .4; }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }
.fade-up:nth-child(1) { animation-delay: .04s; }
.fade-up:nth-child(2) { animation-delay: .10s; }
.fade-up:nth-child(3) { animation-delay: .16s; }
.fade-up:nth-child(4) { animation-delay: .22s; }
.fade-up:nth-child(5) { animation-delay: .28s; }
.fade-up:nth-child(6) { animation-delay: .34s; }
.fade-up:nth-child(7) { animation-delay: .40s; }
.fade-up:nth-child(8) { animation-delay: .46s; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-sidebar { position: static; }
  .hero-banner-inner { grid-template-columns: 1fr; }
  .hero-banner-image { display: none; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .admin-nav a { padding: 7px 10px; }
  .admin-main { padding: 16px; }
  .navbar-nav { display: none; }
  .topbar { display: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .navbar-inner { height: 60px; }
  .hero-banner { padding: 40px 0; }
  .hero-banner-actions { flex-direction: column; align-items: flex-start; }
  .product-sidebar-body { padding: 16px; }
  .result-card { padding: 36px 16px; }
  .modal-body { padding: 16px; }
  .modal-header { padding: 14px 16px; }
  .admin-topbar { padding: 0 16px; }
  .section-sm { padding: 24px 0; }
}

/* ── Navbar мобильный: убираем разрыв ───────────────────────────────────── */
@media (max-width: 600px) {
  .navbar-brand { font-size: 15px; gap: 7px; }
  .navbar-actions a { padding: 5px 10px; font-size: 11px; }
  .footer-links span { font-size: 12px; }
}
