/* styles.css - French site theme */
:root {
  --bg: #071227;
  --card: #071a2a;
  --accent: #0ea5a2;
  --muted: #9fb3bf;
  --glass: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, #071227 0%, #0b2540 100%);
  color: #e6f2f5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* --- HEADER --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px; /* ← боковые отступы добавлены */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #021019;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  font-size: 15px;
}

.nav a:hover {
  color: #fff;
}

/* --- HERO --- */
.hero {
  background: var(--card);
  padding: 28px;
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
  display: flex;
  gap: 18px;
  align-items: center;
}

.hero img {
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
}

/* --- GRID --- */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

/* --- CARD --- */
.card {
  background: var(--glass);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- TABLE --- */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

/* --- FOOTER --- */
.footer {
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center; /* выравнивание по центру */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- OTHER ELEMENTS --- */
.kv {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: var(--accent);
  color: #021019;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.card-media {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-media img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
  }

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

  .header {
    padding: 12px 16px; /* чуть меньше отступы */
  }

  body {
    background: linear-gradient(180deg, #071227 0%, #0b2540 100%);
    background-attachment: fixed; /* фиксированный фон */
  }
}
