/* === Skip Link (accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-accent, #c0392b);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0e1a;
  --color-surface: #111827;
  --color-surface-2: #1a2236;
  --color-primary: #c74634;
  --color-primary-light: #ef6b5a;
  --color-accent: #8f98a8;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-border: #2a2f3a;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 860px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header .container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo span {
  color: var(--color-primary);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === AI Managed Banner === */
.ai-site-banner {
  margin-top: 72px;
  padding: 22px 0;
  background: linear-gradient(90deg, #7f1d1d, #c74634, #ef6b5a);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.ai-site-banner .container {
  max-width: 1200px;
}

.ai-site-banner p {
  color: #fff;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === Hero === */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(199, 70, 52, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(143, 152, 168, 0.05) 0%, transparent 50%);
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(199, 70, 52, 0.12);
  color: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(199, 70, 52, 0.2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #a63627);
  color: #fff;
  box-shadow: 0 4px 24px rgba(199, 70, 52, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(199, 70, 52, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

/* === Section === */
.section {
  padding: 80px 0;
}

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

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

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Q&A Section === */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qa-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.qa-card:hover {
  border-color: rgba(199, 70, 52, 0.4);
}

.qa-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  padding: 24px 28px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
  cursor: default;
}

.qa-answer {
  padding: 24px 28px;
}

.qa-answer p {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.qa-answer ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.qa-answer li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.qa-answer li strong {
  color: var(--color-text);
}

/* === Monitor Section === */
.monitor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.monitor-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s;
}

.monitor-card:hover {
  border-color: rgba(199, 70, 52, 0.4);
}

.monitor-tag {
  display: inline-block;
  background: rgba(199, 70, 52, 0.12);
  color: var(--color-primary-light);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.monitor-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
}

.monitor-problem {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--color-border);
}

.monitor-problem strong {
  color: var(--color-text);
}

.monitor-comment {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: rgba(199, 70, 52, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.monitor-comment strong {
  color: var(--color-primary-light);
}

.monitor-source {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 500;
}

.monitor-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* === News Section === */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.news-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.news-tag {
  display: inline-block;
  background: rgba(199, 70, 52, 0.12);
  color: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.news-meta time {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.news-card h3 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card p,
.news-fallback {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === CTA === */
.cta {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(199, 70, 52, 0.08), rgba(143, 152, 168, 0.05));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta-contact {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.cta-phone {
  background: rgba(199, 70, 52, 0.1);
  border: 1px solid rgba(199, 70, 52, 0.35);
  border-radius: 12px;
  padding: 16px 22px;
  color: #e2e8f0;
  font-size: 1.15rem;
  font-weight: 700;
}

.cta-phone strong {
  color: #fff;
  font-size: 0.95rem;
}

.cta-contact strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* === Footer === */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* === Language Switcher === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
}

.lang-switch a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch a:hover {
  color: #fff;
  text-decoration: none;
}

.lang-switch a.active {
  color: #fff;
  background: rgba(199, 70, 52, 0.2);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .ai-site-banner {
    padding: 16px 0;
  }

  .ai-site-banner p {
    letter-spacing: 0.02em;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }

  .qa-question {
    font-size: 1.05rem;
    padding: 20px 20px;
  }

  .qa-answer {
    padding: 20px 20px;
  }

  .monitor-card {
    padding: 24px 20px;
  }

  .monitor-problem,
  .monitor-comment {
    padding: 14px 16px;
  }

  .cta-contacts {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .lang-switch {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }
}
