/* ============================================================
   AstroFinancePro — Строгий деловой стиль с золотыми акцентами
   ============================================================ */

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

/* === ПЕРЕМЕННЫЕ === */
:root {
  --bg-primary:    #07111E;
  --bg-secondary:  #0C1A2E;
  --bg-card:       #101F35;
  --bg-card-hover: #132540;
  --bg-input:      #0A1728;
  --border:        rgba(201, 168, 76, 0.18);
  --border-solid:  #1B3358;
  --text-primary:  #EDF2F7;
  --text-secondary:#8FA8C0;
  --text-muted:    #527090;
  --gold:          #C9A84C;
  --gold-light:    #E4C46A;
  --gold-dark:     #A88A38;
  --gold-bg:       rgba(201, 168, 76, 0.07);
  --gold-border:   rgba(201, 168, 76, 0.35);
  --success:       #10B981;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.35);
  --transition:    0.22s ease;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', 'Segoe UI', Arial, sans-serif;
  --container:     1180px;
}

/* === СБРОС И БАЗА === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Тонкий звёздный фон */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,168,76,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(59,130,246,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main { flex: 1; position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
}

p { color: var(--text-secondary); }

/* === КОНТЕЙНЕР === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === НАВИГАЦИЯ === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 30, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-logo:hover { color: var(--gold-light); }

.navbar-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.navbar-logo .logo-text { color: var(--gold); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* === КНОПКИ === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: #07111E;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #07111E;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-border);
}
.btn-outline:hover {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239,68,68,0.35);
}
.btn-danger:hover { background: rgba(239,68,68,0.1); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* === КАРТОЧКИ === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover { border-color: var(--gold-border); box-shadow: var(--shadow-card); }

.card-gold {
  border-top: 2px solid var(--gold);
}

/* === БЕЙДЖИ === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-solid); }
.badge-premium { background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(228,196,106,0.08)); color: var(--gold); border: 1px solid var(--gold-border); }

/* === АЛЕРТЫ / FLASH === */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6EE7B7; }
.alert-error   { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #FCA5A5; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #FCD34D; }
.alert-info    { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93C5FD; }

.flash-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

/* === ФОРМЫ === */
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
  cursor: pointer;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238FA8C0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* === СЕКЦИИ === */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title span { color: var(--gold); }

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header.center .section-desc { margin: 0 auto; }

/* === ГЕРОЙ === */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Двухколоночный грид на планшете/десктопе */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 100%; }

/* Блок иллюстрации */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--gold-border);
  display: block;
}

/* Заглушка — видна пока нет картинки */
.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 520px;
  border-radius: 16px;
  border: 2px dashed var(--gold-border);
  background: rgba(201, 168, 76, 0.04);
}

.hero-placeholder-icon {
  font-size: 48px;
  color: var(--gold-border);
  line-height: 1;
}

.hero-placeholder-text {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-muted);
}

.hero-placeholder-hint {
  font-size: 13px;
  color: var(--border-solid);
  letter-spacing: 0.5px;
}

/* Когда картинка загружена — прячем заглушку */
.hero-image[src]:not([src=""]) + .hero-placeholder { display: none; }

/* На мобильных — однаколонка, блок картинки скрыт */
@media (max-width: 767px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { display: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold-border);
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--gold); }

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: left; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === ГРИД УСЛУГ === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === ГРИД СТАТЕЙ === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.35;
}

.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--gold); }

.article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.article-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-solid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === СТАТЬЯ (ПОЛНАЯ) === */
.article-page { max-width: 800px; margin: 0 auto; }

.article-header { margin-bottom: 40px; }

.article-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 14px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body li { margin-bottom: 6px; }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--gold-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-primary);
}

/* === ТАРИФЫ === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card.popular {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.12);
}

.pricing-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }

.popular-label {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #07111E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-currency { font-size: 20px; color: var(--text-secondary); }
.pricing-period { font-size: 14px; color: var(--text-muted); }
.pricing-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* === КАБИНЕТ === */
.cabinet-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.cabinet-sidebar { display: flex; flex-direction: column; gap: 16px; }

.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 16px;
}

.user-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.user-email { font-size: 13px; color: var(--text-muted); }

.cabinet-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  list-style: none;
}

.cabinet-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-solid);
  transition: all var(--transition);
}

.cabinet-nav a:last-child { border-bottom: none; }
.cabinet-nav a:hover, .cabinet-nav a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

.cabinet-main { display: flex; flex-direction: column; gap: 24px; }

/* === ТАБЛИЦЫ === */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

thead { background: rgba(201,168,76,0.06); }

th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-solid);
}

td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(27,51,88,0.5);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* === ADMIN PANEL === */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-solid);
  padding: 24px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.admin-sidebar-logo {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-solid);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.admin-nav { list-style: none; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

.admin-content {
  padding: 32px;
  background: var(--bg-primary);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

/* === EDITOR === */
.editor-toolbar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.editor-body {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px;
}

/* === ФУТЕР === */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-solid);
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-solid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* === РАЗДЕЛИТЕЛЬ ЗОЛОТОЙ === */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  margin: 48px 0;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-muted); }

/* === CTA ПОЛОСА === */
.cta-strip {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.04) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 14px;
}

.cta-strip p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* === PAGE HEADER === */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-solid);
  margin-bottom: 56px;
}

.page-header h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.page-header p { font-size: 16px; color: var(--text-secondary); }

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border-solid); }

/* === LOCKED CONTENT === */
.locked-overlay {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}

.locked-icon { font-size: 40px; margin-bottom: 16px; }
.locked-title { font-family: var(--font-heading); font-size: 22px; margin-bottom: 10px; }
.locked-desc { color: var(--text-secondary); margin-bottom: 28px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* === ГРИД УТИЛИТЫ === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-small   { font-size: 13px; }
.text-bold    { font-weight: 600; }
.font-heading { font-family: var(--font-heading); }

/* === АДАПТИВ === */
@media (max-width: 1024px) {
  .cabinet-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-strip { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
