:root {
  --color-primary: #8b4513;
  --color-secondary: #ffd700;
  --color-text-light: #f5f5dc;
  --color-text-dark: #3a3a3a;
  --color-background-dark: #1a1a1a;
  --color-background-alt: #2c2c2c;
  --font-heading: "Georgia", serif;
  --font-body: "Arial", sans-serif;
  --spacing-large: 6rem;
  --spacing-medium: 3rem;
  --spacing-small: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-small);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: var(--spacing-small);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-secondary);
}

h2 {
  font-size: 2.5rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
  margin-top: var(--spacing-medium);
}

h3 {
  font-size: 1.8rem;
  color: var(--color-text-light);
}

p {
  margin-bottom: var(--spacing-small);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

a:hover {
  color: #ffea85;
}

.section-padding {
  padding: var(--spacing-large) 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-medium);
  font-size: 3rem;
}

.header {
  background-color: rgba(26, 26, 26, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

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

.header__logo {
  display: flex;
  align-items: center;
}

.logo__link {
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

.logo__img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  border-radius: 50%;
}

.nav__list {
  display: flex;
  list-style: none;
}

.nav__item {
  margin-left: var(--spacing-small);
}

.nav__link {
  color: var(--color-text-light);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: all 0.3s;
}

.nav__link:hover {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

.hero-section {
  background: url("img/gameplay_map_1.webp") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-large) 0;
}

.hero__subtitle {
  font-size: 1.8rem;
  margin-top: 1rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__text {
  font-size: 1.1rem;
  margin-top: var(--spacing-medium);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta-buttons {
  margin-top: var(--spacing-medium);
  display: flex;
  justify-content: center;
  gap: var(--spacing-small);
}

.cta__badge {
  height: 50px;
  transition: transform 0.3s;
}

.cta__badge:hover {
  transform: scale(1.05);
}

.hero__disclaimer {
  margin-top: var(--spacing-small);
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

.description__text-block {
  font-size: 1.1rem;
  text-align: justify;
}

.description__image-block {
  text-align: center;
  margin: var(--spacing-medium) 0;
}

.description__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
  border: 3px solid var(--color-secondary);
}

.features__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
  padding: 0;
}

.features__item {
  background-color: var(--color-background-dark);
  padding: var(--spacing-small);
  border-radius: 8px;
  border-left: 5px solid var(--color-secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s;
}

.features__item:hover {
  background-color: #333;
}

.features__item strong {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.gallery-section {
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-small);
  margin-top: var(--spacing-medium);
}

.gallery__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid var(--color-primary);
}

.gallery__image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.how-to-play__list {
  list-style: none;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
  padding: 0;
}

.how-to-play__item {
  background-color: var(--color-background-dark);
  padding: var(--spacing-small);
  border-radius: 8px;
  position: relative;
  padding-left: 3rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.how-to-play__item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--color-secondary);
  color: var(--color-background-dark);
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.how-to-play__item strong {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.final-cta-section {
  background-color: var(--color-primary);
  text-align: center;
  color: var(--color-text-light);
  border-top: 5px solid var(--color-secondary);
  border-bottom: 5px solid var(--color-secondary);
}

.final-cta__title {
  font-size: 3rem;
  margin-bottom: var(--spacing-small);
  color: var(--color-secondary);
}

.final-cta__text {
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-medium);
  margin-top: var(--spacing-medium);
}

.footer {
  background-color: var(--color-background-dark);
  padding: var(--spacing-large) 0 var(--spacing-small);
  border-top: 1px solid var(--color-background-alt);
}

.footer__sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-medium);
  margin-bottom: var(--spacing-medium);
}

.footer__section {
  min-width: 200px;
}

.footer__heading {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-small);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.contact__info {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.app-link__badge {
  display: block;
  margin-bottom: 0.5rem;
}

.app-link__img {
  height: 40px;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid var(--color-background-alt);
  padding-top: var(--spacing-small);
}

.footer__copyright {
  font-size: 0.9rem;
  color: #a0a0a0;
}

@media (max-width: 1024px) {
  :root {
    --spacing-large: 4rem;
  }
  .nav__link {
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-large: 3rem;
    --spacing-medium: 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .header__content {
    flex-direction: column;
  }

  .header__nav {
    margin-top: 1rem;
  }

  .nav__list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav__item {
    margin: 0 0.5rem 0.5rem;
  }

  .hero-section {
    height: auto;
    min-height: 80vh;
    padding: var(--spacing-large) 0;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .hero__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta__badge {
    height: 60px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .footer__sections {
    justify-content: center;
    text-align: center;
  }

  .footer__section {
    min-width: 100%;
    margin-bottom: var(--spacing-medium);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
