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

/* ── Переменные ─────────────────────────────────────────────────────── */
:root {
  --bg:        #FFFFFF;
  --bg2:       #F5F7FA;
  --surface:   #FFFFFF;
  --border:    #EBEBEB;
  --border-dark: #D4D4D4;
  --text:      #0A0A0A;
  --text-muted:#6B7280;
  --text-light:#9CA3AF;
  --accent:    #1A1A1A;
  --accent-hover: #000000;
  --blue:      #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light:#EFF6FF;
  --blue-glow: rgba(37, 99, 235, 0.22);
  --purple:    #7C3AED;
  --purple-glow: rgba(124, 58, 237, 0.18);
  --danger:    #DC2626;
  --success:   #16A34A;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow:    0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,.09);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.13);
  --shadow-float: 0 4px 20px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.05);
  --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.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
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: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(28px, 4.5vw, 46px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(17px, 2.2vw, 20px); }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section   { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Top bar ────────────────────────────────────────────────────────── */
.topbar {
  background: var(--bg2);
  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: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: 800;
  color: var(--text);
  letter-spacing: -.03em;
  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: 9px;
  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: 600;
  padding: 6px 18px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}
.navbar-nav a:hover { color: var(--text); background: var(--bg2); }
.navbar-nav a.active { color: var(--text); background: var(--bg2); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar-actions a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: all var(--transition);
  font-weight: 500;
}
.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);
  border-radius: var(--radius-xs);
  font-weight: 600;
}
.navbar-actions .nav-admin:hover { background: #2a2a2a; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover { background: #222; border-color: #222; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-dark);
}
.btn-outline:hover { background: var(--text); color: #fff; border-color: var(--text); }
.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); border-radius: var(--radius-sm); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 14px; letter-spacing: .05em; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

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

/* ── Payment CTA button ──────────────────────────────────────────────── */
.product-sidebar-body .btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border-color: transparent;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px var(--blue-glow);
  font-size: 15px;
  padding: 15px 32px;
  text-transform: none;
  letter-spacing: -.01em;
  font-weight: 700;
}
.product-sidebar-body .btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #6D28D9 100%);
  box-shadow: 0 8px 32px rgba(37,99,235,.35);
  transform: translateY(-1px);
}

/* ── Hero banner ─────────────────────────────────────────────────────── */
.hero-banner {
  background: #0A0A0A;
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-banner-eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-banner-title {
  font-size: clamp(30px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -.03em;
}
.hero-banner-title strong { font-weight: 800; }
.hero-banner-desc {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  margin-bottom: 36px;
  line-height: 1.75;
  font-weight: 400;
}
.hero-banner-actions { display: flex; gap: 14px; }
.btn-hero-primary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid #fff;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-hero-primary:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.25);
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.hero-banner-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: .08;
  line-height: 1;
}

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

/* ── Section header ──────────────────────────────────────────────────── */
.section-heading {
  text-align: center;
  padding: 64px 0 48px;
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: var(--text);
}

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

/* ── Product card ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: #D0D0D0;
  z-index: 1;
}

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

.card-body {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 600;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
  letter-spacing: -.01em;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--text-muted); }
.card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 8px;
}
.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.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: 700;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: #FAFAFA;
  border: 1.5px solid #E2E2E2;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 14px;
  font-weight: 400;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  border-radius: 4px;
}
.form-check-label { font-size: 13px; color: var(--text-muted); line-height: 1.55; font-weight: 400; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; font-weight: 400; }

/* ── Alerts ─────────────────────────────────────────────────────────── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  font-weight: 400;
}
.alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-info    { background: var(--blue-light); color: #1E40AF; border-color: rgba(37,99,235,.2); }

/* ── Badge ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  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); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--bg2); }
th { padding: 11px 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: 14px 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: 60px;
  align-items: start;
}
.product-detail--no-sidebar {
  grid-template-columns: 1fr;
  max-width: 800px;
}
.product-main {}
.product-sidebar {
  position: sticky;
  top: 88px;
}

/* Тёмная стеклянная карточка оплаты */
.product-sidebar-card {
  background: #0F0F12;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 8px 40px rgba(37,99,235,.15), 0 24px 64px rgba(0,0,0,.35);
  overflow: hidden;
  position: relative;
}
.product-sidebar-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 70%);
  pointer-events: none;
}
.product-sidebar-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
  pointer-events: none;
}
.product-sidebar-top {
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--purple) 100%);
}
.product-sidebar-body {
  padding: 26px 24px;
  position: relative;
  z-index: 1;
}
.product-price-display {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1;
}
.product-price-label {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.product-image { overflow: hidden; aspect-ratio: 16/9; background: var(--bg2); border-radius: var(--radius); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}
.product-feature-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  color: rgba(255,255,255,.8);
}

/* Поля формы внутри тёмной карточки */
.product-sidebar-body .form-label {
  color: rgba(255,255,255,.45);
}
.product-sidebar-body .form-control {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: var(--radius-sm);
}
.product-sidebar-body .form-control::placeholder { color: rgba(255,255,255,.25); }
.product-sidebar-body .form-control:focus {
  border-color: rgba(37,99,235,.7);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
.product-sidebar-body .form-check-label { color: rgba(255,255,255,.4); font-size: 12px; }
.product-sidebar-body .form-check-label a { color: rgba(255,255,255,.6); text-decoration: underline; }
.product-sidebar-body .form-hint { color: rgba(255,255,255,.3); }
.product-sidebar-body .alert-info {
  background: rgba(37,99,235,.12);
  color: rgba(255,255,255,.6);
  border-color: rgba(37,99,235,.25);
  font-size: 12px;
}

/* ── Course description ──────────────────────────────────────────────── */
.course-description { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }
.course-description h2 { font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.course-description-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; font-weight: 400; }

/* ── Prose (описания товаров) ────────────────────────────────────────── */
.prose { line-height: 1.85; color: var(--text-muted); }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 22px 0 10px; }
.prose ul { list-style: none; padding: 0; margin: .8em 0 1.4em; display: flex; flex-direction: column; gap: 9px; }
.prose ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.prose ul li::before {
  content: '✓';
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.prose p  { margin-bottom: .9em; font-size: 14px; }
.prose strong { font-weight: 700; color: var(--text); }

/* ── Document-prose (оферта, политика, соглашение — Quill-вывод) ─────── */
.doc-prose { font-size: 15px; line-height: 1.9; color: #333; }
.doc-prose h1 { font-size: 24px; font-weight: 800; color: var(--text); margin: 36px 0 16px; }
.doc-prose h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 30px 0 14px; }
.doc-prose h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 24px 0 11px; }
.doc-prose h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 9px; }
.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(--blue); 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; }
.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: 28px 0; }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: all .2s ease;
  backdrop-filter: blur(4px);
}
.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 80px rgba(0,0,0,.22);
  transform: translateY(14px) scale(.99);
  transition: transform .25s ease;
  border: 1px solid var(--border);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.modal-close {
  width: 30px; height: 30px;
  border: 1px solid var(--border); background: transparent;
  border-radius: var(--radius-xs); 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: 22px 24px; }
.payment-frame-wrap { overflow: hidden; border-radius: var(--radius-sm); }
.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: #0F0F12;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-brand {
  padding: 20px 18px;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  letter-spacing: -.02em;
}
.admin-sidebar-brand-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 7px;
  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: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  transition: all var(--transition);
  border-radius: var(--radius-xs);
}
.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,.18);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.admin-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #F7F8FA; }
.admin-topbar {
  height: 58px;
  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: 700; letter-spacing: -.02em; }
.admin-main { flex: 1; padding: 24px; overflow-y: auto; }
.admin-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.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: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-value { font-size: 36px; font-weight: 800; 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: .08em; font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #0A0A0A;
  color: rgba(255,255,255,.45);
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-brand {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.footer-brand-icon {
  width: 28px; height: 28px;
  background: #FFFFFF;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; /* скрываем оригинальный эмодзи */
  position: relative;
}
.footer-brand-icon::after {
  content: "⚡";
  font-size: 13px;
  filter: grayscale(1) brightness(0); /* чёрная молния, фон не затрагивает */
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.25);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
  font-weight: 400;
}
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-bottom: 22px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.2); font-weight: 400; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 96px 24px; color: var(--text-muted); }
.empty-icon { font-size: 44px; margin-bottom: 18px; opacity: .25; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

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

/* ── Toggle ──────────────────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.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: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.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: 60px 40px; }
.success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16A34A, #22C55E);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 26px;
  box-shadow: 0 8px 24px rgba(22,163,74,.25);
}

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

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s ease both; }
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .12s; }
.fade-up:nth-child(3) { animation-delay: .19s; }
.fade-up:nth-child(4) { animation-delay: .26s; }
.fade-up:nth-child(5) { animation-delay: .33s; }
.fade-up:nth-child(6) { animation-delay: .40s; }
.fade-up:nth-child(7) { animation-delay: .47s; }
.fade-up:nth-child(8) { animation-delay: .54s; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .product-sidebar { position: static; }
  .hero-banner-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-banner-image { display: none; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 18px; }
  .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: 48px 0; }
  .container { padding: 0 18px; }
  .navbar-inner { height: 64px; }
  .hero-banner { padding: 56px 0; }
  .hero-banner-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .product-sidebar-body { padding: 20px 18px; }
  .result-card { padding: 40px 18px; }
  .modal-body { padding: 18px; }
  .modal-header { padding: 16px 18px; }
  .admin-topbar { padding: 0 16px; }
  .section-sm { padding: 30px 0; }
}

/* ── Navbar мобильный ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .navbar-brand { font-size: 16px; gap: 8px; }
  .navbar-actions a { padding: 6px 10px; font-size: 11px; }
  .footer-links span { font-size: 12px; }
}

/* ── Cookie-баннер ──────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1a1a1a;
  color: rgba(255,255,255,.85);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.28);
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-banner-text { flex: 1; min-width: 220px; font-size: 13px; line-height: 1.6; }
.cookie-banner-text p { margin: 0 0 4px; }
.cookie-banner-text p:last-child { margin-bottom: 0; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 18px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* ── Юридические документы — новый дизайн ───────────────────────────────── */
.legal-doc-section {
  padding: 48px 0 72px;
  background: var(--bg, #f8f7f4);
  min-height: 80vh;
}
.legal-doc-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-doc-back { margin-bottom: 20px; }
.legal-doc-back--bottom { margin-top: 40px; margin-bottom: 0; }
.legal-doc-back-link {
  color: var(--text-muted, #888);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.legal-doc-back-link:hover { color: var(--text, #111); }
.legal-doc-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: var(--text, #111);
  margin: 0 0 36px;
  line-height: 1.3;
}
.legal-doc-body {
  background: #ffffff;
  border-radius: 14px;
  padding: 52px 60px;
  box-shadow: 0 4px 32px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.05);
  font-size: 17px;
  line-height: 1.75;
  color: #222;
}
.legal-doc-body h1 { font-size: 26px; font-weight: 800; margin: 0 0 20px; }
.legal-doc-body h2 { font-size: 20px; font-weight: 700; margin: 44px 0 16px; padding-top: 8px; border-top: 1px solid #f0eeea; }
.legal-doc-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-doc-body h3 { font-size: 17px; font-weight: 700; margin: 28px 0 12px; }
.legal-doc-body p  { margin: 0 0 1.1em; }
.legal-doc-body strong, .legal-doc-body b { font-weight: 700; color: #111; }
.legal-doc-body a  { color: var(--blue, #2563eb); text-decoration: underline; transition: color .2s; }
.legal-doc-body a:hover { color: var(--text, #111); }
.legal-doc-body ul, .legal-doc-body ol { padding-left: 28px; margin: .6em 0 1.2em; display: flex; flex-direction: column; gap: 8px; }
.legal-doc-body ul { list-style: disc; }
.legal-doc-body ol { list-style: decimal; }
.legal-doc-body li { font-size: 16px; line-height: 1.65; padding-left: 4px; }
.legal-doc-body hr { border: none; border-top: 1px solid #eee; margin: 36px 0; }
@media (max-width: 768px) {
  .legal-doc-body { padding: 32px 24px; font-size: 15px; border-radius: 10px; }
  .legal-doc-body h2 { font-size: 18px; }
  .legal-doc-section { padding: 28px 0 48px; }
}
@media (max-width: 480px) {
  .legal-doc-body { padding: 24px 16px; border-radius: 8px; }
  .legal-doc-container { padding: 0 16px; }
}

/* ── Форма — чекбоксы в сайдбаре (три штуки) ───────────────────────────── */
.product-sidebar-body .form-check { margin-bottom: 10px; }
.product-sidebar-body .form-check:last-of-type { margin-bottom: 0; }
