/* ========== BASE ========== */

body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

/* ===== ЗАГОЛОВОК СЕКЦИИ ===== */
.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-xl);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== СЕКЦИЯ ===== */
.section {
  padding: var(--space-4xl) 0;
}

/* ===== УТИЛИТЫ ===== */
.text-accent { color: var(--accent); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }

.hidden { display: none !important; }

/* ===== АДАПТИВ ТИПОГРАФИКИ ===== */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  h4 { font-size: var(--fs-lg); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }
}

/* ===== ФИКС ШАПКИ: двухстрочный логотип + наложение ===== */
.header {
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  height: auto !important;
  min-height: 60px;
  overflow: visible !important;
  z-index: 1000;
  background: var(--bg-dark, #0a0a14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.header__inner {
  height: auto !important;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 10px 0;
  overflow: visible !important;
}

.logo {
  height: auto !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: visible;
}

.logo__text {
  height: auto !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.1;
}

.logo__year {
  font-size: 11px;
  line-height: 1;
  display: block;
  opacity: 0.7;
}

/* Контент не наезжает под sticky-шапку */
main,
.hero {
  padding-top: 0;
}

@media (max-width: 480px) {
  .logo__name { font-size: 14px; }
  .logo__year { font-size: 10px; }
  .logo__icon { width: 40px; height: 40px; }
  .header__inner { padding: 8px 0; }
}