@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

:root {
  --accent: #00afff;
  --bg: #1b1b1b;
  --card-bg: #2b2b2b;
  --text: #ddd;
  --muted: #aaa;
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #1e1e1e;
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  text-align: center;
  padding: 80px 20px;
}

main h1 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 15px;
}

main h2 {
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

main h3 {
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 15px;
}

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

a::hover {
  color: #33cfff;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2b2b2b;
  padding: 12px 20px;
  border-radius: 12px;
  margin: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header img {
  height: 50px;
  transition: 0.3s ease;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: #00afff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #33cfff;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MAIN */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.intro {
  margin-bottom: 25px;
  font-size: 18px;
}

/* CARD */
.card {
  background: #2b2b2b;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  max-width: 600px;
  width: 100%;
  margin-bottom: 45px;
  transition: 0.3s ease;
}

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

.card h2 {
  margin-bottom: 15px;
  font-size: 22px;
}

.card ul {
  list-style: none;
  text-align: left;
}

.card li {
  margin: 8px 0;
}

.card a {
  color: #00afff;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* NEWS */
.news {
  position: relative;
  display: inline-block;
  align-items: center;
  text-align: center;
}

.news p {
  font-family: 'Russo One', 'Inter', Arial, sans-serif;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background-color: white;
  color: black;
  margin: 0;
  padding: 10px;
  z-index: 1;
}

.layout, .layout1 {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.layout1 {
  justify-content: end;
}

.sidebar {
  text-align: center;
  font-size: 14px;
  color: #ddd;
}

.content {
  max-width: 900px;
  color: #eee;
}

.site-footer {
  text-align: center;
  background: #2b2b2b;
  border-radius: 12px;
  margin: 10px;
  padding: 15px;
  font-size: 14px;
}

.site-footer a {
  color: #00afff;
  text-decoration: none;
}

/* ---------- АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ---------- */
@media (max-width: 992px) {
  .layout, .layout1 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
    margin-top: 20px;
  }

  .content {
    order: 1;
  }

  .site-header img {
    height: 45px;
  }

  .card {
    max-width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 10px;
    background: #2b2b2b;
    padding: 15px;
    border-radius: 12px;
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
  }

  .navbar.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .intro {
    font-size: 16px;
    text-align: center;
  }

  .card {
    padding: 15px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .site-header img {
    height: 40px;
  }

  .navbar ul {
    right: 10px;
    width: 160px;
  }

  .card {
    padding: 12px;
  }

  .card h2 {
    font-size: 18px;
  }

  .site-footer {
    font-size: 12px;
    padding: 10px;
  }
}
