/* ================================================================
   ЦЕНТРУМ — Дизайн-система
   Вдохновение: Kelley Uustal, Marble, Protass Law (топ юр. сайтов)
   Стиль: премиальный минимализм, глубокий синий + золото
   ================================================================ */

/* ---------- ПРИМИТИВНЫЕ ТОКЕНЫ ---------- */
:root {
  /* Цвета — примитивы (фирменный стиль: графит + красный + золото) */
  --navy-950: #14161a;
  --navy-900: #1c1f26;
  --navy-800: #2a2e37;
  --navy-700: #3a3f4b;
  --navy-100: #e2e4e8;

  --gold-500: #d4af37;
  --gold-600: #b8942e;
  --gold-100: #f9f3e3;

  --red-500: #e02b35;
  --red-600: #c41f28;
  --red-100: #fdeaeb;

  --gray-900: #1a1a1a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-50: #f8f9fa;

  --white: #ffffff;

  /* Шрифты */
  --font-heading: 'Oswald', 'PT Sans Narrow', sans-serif;
  --font-body: 'PT Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- СЕМАНТИЧЕСКИЕ ТОКЕНЫ ---------- */
:root {
  --color-primary: var(--navy-900);
  --color-primary-dark: var(--navy-950);
  --color-accent: var(--red-500);
  --color-accent-hover: var(--red-600);
  --color-bg: var(--white);
  --color-bg-alt: var(--gray-50);
  --color-bg-dark: var(--navy-950);
  --color-text: var(--gray-700);
  --color-text-heading: var(--navy-950);
  --color-text-light: var(--gray-500);
  --color-text-inverse: var(--white);
  --color-border: var(--gray-200);

  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.14);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ---------- БАЗА ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- КОМПОНЕНТ: НАВИГАЦИЯ ---------- */
.site-header .navbar {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-inverse) !important;
  letter-spacing: 0.02em;
}

.navbar-brand .brand-accent {
  color: var(--color-accent);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-accent) !important;
}

/* ---------- КОМПОНЕНТ: КНОПКИ ---------- */
.btn-gold {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-navy {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-navy:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.btn-outline-navy {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-navy:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ---------- КОМПОНЕНТ: HERO ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(20, 22, 26, 0.94) 0%, rgba(28, 31, 38, 0.86) 100%),
    url('https://images.unsplash.com/photo-1541899481282-d53bffe3c35d?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--color-text-inverse);
  padding: 160px 0 120px;
}

.hero h1 {
  color: var(--color-text-inverse);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero .hero-divider {
  width: 64px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 0 1.75rem;
}

/* ---------- КОМПОНЕНТ: СЕКЦИИ ---------- */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header .section-divider {
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.25rem auto;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- КОМПОНЕНТ: КАРТОЧКИ ---------- */
.card-premium {
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-premium .card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-100);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-premium h5 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card-premium p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- КОМПОНЕНТ: СТАТИСТИКА ---------- */
.stats-band {
  background: var(--navy-950);
  color: var(--color-text-inverse);
  padding: 3.5rem 0;
}

.stats-band .stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stats-band .stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ---------- КОМПОНЕНТ: КАРТОЧКИ РАБОТ ---------- */
.work-card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-card .card-body {
  padding: 1.5rem;
}

.work-card .badge-case {
  background: var(--red-100);
  color: var(--red-600);
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
}

.work-card .work-result {
  color: #1a7f4e;
  font-weight: 600;
  font-size: 0.9rem;
}

.work-card img.attachment-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* ---------- КОМПОНЕНТ: ФОРМЫ ---------- */
.form-control, .form-select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-heading);
  margin-bottom: 0.4rem;
}

/* ---------- КОМПОНЕНТ: CTA-БАННЕР ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* ---------- ФУТЕР ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.site-footer h5 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.site-footer a, .site-footer li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* ---------- УТИЛИТЫ ---------- */
.text-gold { color: var(--color-accent) !important; }
.bg-navy { background: var(--color-primary) !important; }

/* ---------- НЕПРИМЕТНАЯ ССЫЛКА ВХОДА В ФУТЕРЕ ---------- */
.footer-admin-link {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.footer-admin-link:hover {
  color: var(--color-accent);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 768px) {
  .hero { padding: 110px 0 70px; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.25rem; }
  .navbar-brand { font-size: 1.2rem; }
}
