/* RSOC Спорт - Modern Sports News Stylesheet */
:root {
  --primary: #003366;
  --secondary: #0066cc;
  --accent: #ff6600;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #666666;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.logo img {
  height: 60px;
  width: auto;
  margin-right: 12px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

.hero {
  background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('../images/hero.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover { background: #e55a00; }

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 3rem 0;
}

.category-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.category-card:hover { transform: translateY(-5px); }

.category-card h3 {
  padding: 1.5rem;
  background: var(--secondary);
  color: var(--white);
  text-align: center;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 2rem 0;
}

.article-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card .content {
  padding: 1.5rem;
}

.article-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.article-card .meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #999;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
  }
  nav ul.active { display: flex; }
  .hero h1 { font-size: 2rem; }
  .header-content { flex-wrap: wrap; }
}

.page-header {
  background: var(--primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.article-full {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-full h1 { color: var(--primary); margin-bottom: 1rem; }
.article-full .meta { color: var(--gray); margin-bottom: 1.5rem; }
.article-full p { margin-bottom: 1rem; }
