:root {
  --color-primary: #1e88e5;
  --color-secondary: #00bcd4;
  --color-text-dark: #212121;
  --color-text-light: #ffffff;
  --color-background-light: #f5f5f5;
  --color-background-dark: #303030;
  --font-family-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --spacing-unit: 1rem;
  --border-radius-base: 8px;
  --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.75rem;
}

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

a:hover {
  color: var(--color-secondary);
  opacity: 0.9;
}

.header {
  background-color: var(--color-background-dark);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-base);
}

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

.logo-link {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-text-light);
  letter-spacing: 2px;
}

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

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

.nav-link {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  left: 50%;
  bottom: -5px;
  transition: width 0.3s, left 0.3s;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.section {
  padding: 6rem 0;
  border-bottom: 1px solid #eeeeee;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.hero-section {
  background-color: var(--color-background-light);
  padding: 8rem 0;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-title {
  color: var(--color-text-dark);
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--color-secondary);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-image-wrapper {
  flex: 1;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-base);
  transition: transform 0.5s;
}

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

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.primary-cta {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.primary-cta:hover {
  background-color: #1565c0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.cta-note {
  font-style: italic;
  margin-top: 0.5rem;
  color: #757575;
}

.game-description-section {
  background-color: var(--color-text-light);
}

.description-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.image-block {
  text-align: center;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-base);
}

.text-block h3 {
  color: var(--color-primary);
  margin-top: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.benefits-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.benefits-list li {
  background: url("../img/icon-check.svg") no-repeat left center;
  background-size: 1.2rem;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.how-to-play-section {
  background-color: var(--color-background-light);
}

.play-steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  background-color: var(--color-text-light);
  padding: 2rem;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-base);
  position: relative;
  font-size: 1.1rem;
}

.step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -15px;
  left: -15px;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.play-steps-list {
  counter-reset: step-counter;
}

.screenshots-section {
  padding-bottom: 8rem;
}

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

.screenshot-item {
  overflow: hidden;
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-base);
  transition: transform 0.4s;
  line-height: 0;
}

.screenshot-item:hover {
  transform: scale(1.03);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-final-section {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  padding: 5rem 0;
}

.cta-final-section .section-title {
  color: var(--color-text-light);
}

.cta-final-section .section-title::after {
  background-color: var(--color-secondary);
}

.cta-final-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.secondary-cta {
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
  margin-right: 1rem;
}

.secondary-cta:hover {
  background-color: #00897b;
}

.tertiary-cta {
  background-color: var(--color-text-light);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.tertiary-cta:hover {
  background-color: #e0e0e0;
  color: var(--color-primary);
}

.footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
  padding: 4rem 0 1.5rem;
}

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

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

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #bdbdbd;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--color-text-light);
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #bdbdbd;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #9e9e9e;
}

.copyright,
.domain-info {
  margin-top: 0.5rem;
}

@media (max-width: 992px) {
  .section {
    padding: 4rem 0;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav {
    display: none;
  }

  .header-container {
    justify-content: center;
  }

  .description-content {
    grid-template-columns: 1fr;
  }

  .text-block {
    order: 2;
  }

  .image-block {
    order: 1;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.4rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

  .secondary-cta {
    margin-right: 0;
    margin-bottom: 1rem;
  }

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

  .footer-col {
    padding-bottom: 1rem;
  }
}
