:root {
  --color-primary: #5cb85c;
  --color-secondary: #f0ad4e;
  --color-dark: #2c3e50;
  --color-light: #ecf0f1;
  --color-background-dark: #1e2a38;
  --font-family-header: "Arial Black", sans-serif;
  --font-family-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --spacing-unit: 1.5rem;
}

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

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-family-header);
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 3.5rem;
  text-shadow: 4px 4px 0 var(--color-dark);
}

h2 {
  font-size: 2.5rem;
  color: var(--color-light);
  text-shadow: 2px 2px 0 var(--color-primary);
}

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

a:hover {
  color: var(--color-primary);
  opacity: 0.8;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: bold;
  border-radius: 8px;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-dark);
  box-shadow: 0 6px 0 var(--color-secondary);
  border: none;
}

.btn--primary:hover {
  background-color: #6edc6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--color-secondary);
}

.hero__cta .cta__badge,
.cta-section .cta__badge,
.footer__badge {
  height: 60px;
  width: auto;
  display: block;
}

.header {
  background-color: rgba(30, 42, 56, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
}

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

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

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

.logo__img {
  height: 40px;
  margin-right: 10px;
}

.logo__text {
  font-family: var(--font-family-header);
  font-size: 1.5rem;
  color: var(--color-light);
}

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

.nav__link {
  color: var(--color-light);
  font-weight: bold;
  text-transform: uppercase;
}

.nav__link:hover {
  color: var(--color-primary);
}

.btn--header {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--color-background-dark) 0%,
    #29435a 100%
  );
  padding: 4rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero__hgroup {
  margin-bottom: 2rem;
}

.hero__subtitle {
  color: var(--color-primary);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__text {
  max-width: 800px;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  color: var(--color-light);
}

.hero__image-wrapper {
  margin-top: 3rem;
  position: relative;
}

.hero__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section:nth-child(even) {
  background-color: #24303e;
}

.section__title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  text-shadow: 2px 2px 0 var(--color-primary);
}

.description__text-block p {
  margin-bottom: var(--spacing-unit);
  font-size: 1.1rem;
  text-align: justify;
}

.features__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.features__item {
  background-color: #2c3e50;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--color-primary);
  transition: transform 0.2s;
}

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

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

.gallery {
  background-color: var(--color-background-dark);
}

.gallery__subtitle {
  text-align: center;
  color: var(--color-light);
  margin-bottom: 3rem;
  font-weight: normal;
  font-size: 1.5rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery__item {
  background-color: #2c3e50;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  position: relative;
}

.gallery__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.gallery__item:hover .gallery__image {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-secondary);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.how-to-play__list {
  counter-reset: step-counter;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.how-to-play__step {
  background-color: #2c3e50;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  padding-left: 5rem;
}

.how-to-play__step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--color-primary);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: var(--font-family-header);
  box-shadow: 0 0 15px var(--color-primary);
}

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

.cta-section {
  background: linear-gradient(90deg, #1e2a38 0%, #3498db 100%);
  text-align: center;
  padding: 5rem 0;
}

.cta__title {
  color: var(--color-light);
  text-shadow: 4px 4px 0 var(--color-dark);
  margin-bottom: 1.5rem;
}

.cta__text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta__button {
  display: inline-block;
  background-color: var(--color-secondary);
  box-shadow: 0 6px 0 #c0392b;
}

.cta__button:hover {
  background-color: #f3c373;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #c0392b;
}

.contact-dev {
  text-align: center;
  padding-bottom: 4rem;
}

.contact__address {
  font-style: normal;
  color: var(--color-light);
  font-size: 1.1rem;
}

.footer {
  background-color: var(--color-dark);
  padding: 3rem 0 1rem;
  border-top: 5px solid var(--color-primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer__logo-img {
  height: 30px;
  margin-right: 10px;
}

.footer__logo-text {
  font-family: var(--font-family-header);
  font-size: 1.2rem;
  color: var(--color-light);
}

.footer__heading {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer__list {
  list-style: none;
}

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

.footer__link {
  color: var(--color-light);
}

.footer__link:hover {
  color: var(--color-secondary);
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header__content {
    justify-content: center;
  }

  .hero-section {
    padding: 2rem 0 4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

@media (max-width: 600px) {
  .header__content {
    flex-direction: column;
    gap: 1rem;
  }

  .btn--header {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .section__title {
    font-size: 2.2rem;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo-link {
    justify-content: center;
  }

  .how-to-play__step {
    padding: 1rem 1rem 1rem 4rem;
  }

  .how-to-play__step::before {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    left: 0.5rem;
  }
}
