:root {
  --main-color: #850502;
  --text-color: #ffffff;
  --background-dark: #111;
  --background-footer: #1a1a1a;
}

/* Липкий футер */
.body-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

/* Общие стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
  color: #000;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Шапка */
header {
  background: var(--background-dark);
  color: var(--text-color);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-svg {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: var(--main-color);
}

/* Hero */
.hero {
  background: var(--main-color);
  color: var(--text-color);
  padding: 60px 20px;
  text-align: center;
}

/* Кнопки */
.btn {
  display: inline-block;
  background: var(--text-color);
  color: var(--main-color);
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #e6e6e6;
}

/* О нас */
.about {
  padding: 40px 20px 20px;
  margin-bottom: 0;
}

/* Футер */
footer {
  background: var(--background-footer);
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
}

footer a {
  color: #ccc;
  text-decoration: underline;
}

footer a:hover {
  color: var(--text-color);
}

/* Вселенные */
.universe-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.universe-item {
  background: #f9f9f9;
  border-left: 5px solid var(--main-color);
  padding: 20px;
  border-radius: 8px;
}

.universe-item h3 {
  margin-top: 0;
  color: var(--main-color);
}

/* Игры */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.game-card {
  border: 1px solid #ccc;
  padding: 20px;
  border-left: 5px solid var(--main-color);
  border-radius: 8px;
  background-color: #fdfdfd;
}

.game-card h3 {
  margin-top: 0;
  color: var(--main-color);
}

.game-card .btn {
  margin-top: 10px;
}

/* Карусель */
.carousel-section {
  padding: 40px 20px;
  text-align: center;
  margin-top: 0;
  padding-top: 20px;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-window {
  width: 600px;
  max-width: 100%;
  overflow: hidden;
}

.carousel-window img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.carousel button {
  background-color: var(--main-color);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  height: 100%;
  transition: background 0.3s;
}

.carousel button:hover {
  background-color: #6c0402;
}

@font-face {
  font-family: "Mina Is Gone";
  src: url("/fonts/minaisgone.ttf") format("truetype"),
       url("/fonts/minaisgone.woff2") format("woff2"),
  font-weight: normal;
  font-style: normal;
}

.hero-logo {
  font-family: "Mina Is Gone", sans-serif;
  font-size: 72px;
  margin: 0;
  color: white;
  text-transform: uppercase;
  font-weight: normal;
}

.carousel-window {
  width: 600px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.vk-icon-link {
  display: inline-block;
  margin-top: 10px;
}

.vk-icon {
  width: 32px;
  height: 32px;
  fill: #ccc;
  transition: fill 0.3s;
}

.vk-icon:hover {
  fill: #ffffff;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  text-align: left;
  margin-top: 40px;
}

.master-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.master-info {
  flex: 1;
  color: #333;
}

.master-info h2 {
  margin-top: 0;
  color: var(--main-color);
}

.master-info p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.body-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.contact-intro {
  background-color: #f2f2f2;
  padding: 20px;
  border-left: 5px solid var(--main-color);
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-intro a {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: underline;
}

.contact-intro a:hover {
  text-decoration: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-and-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: block;
    position: absolute;
    top: 60px;
    left: 20px;
    background: var(--background-dark);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo-and-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .burger {
    display: block;
  }
}

