:root {
  /* --font-family: "Muller", sans-serif;
  --second-family: "Inter", sans-serif; */
  --font-family: "Montserrat", sans-serif;
  --font-color-white: #fff;
  --background-color-dark: #0a0a0a;
  --background-color-accent: #041123;
  --background-color-button: #359bd7;
  --background-color-button-hover: #1277b1;
  --font-size-h1: 88px;
  --font-size-h2: 40px;
  --font-size-p: 28px;
  --font-size-text: 24px;
  --font-size-small-text: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color-dark);
  color: var(--font-color-white);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  z-index: 1000;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: var(--background-color-dark);
}

.header__wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 20px;
}

.logo {
  max-width: 190px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav a {
  font-weight: 400;
  font-size: var(--font-size-small-text);
  color: var(--font-color-white);
  transition: 0.3s ease;
}

.nav a:hover {
  color: var(--background-color-button);
}

.hero {
  height: 100%;
  min-height: 793px;
  background-image: url(../img/hero.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__subtitle {
  padding-top: 93px;
  font-weight: 300;
  font-size: var(--font-size-h2);
  line-height: 140%;
  letter-spacing: 0.17em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

h1,
.h1 {
  font-weight: 700;
  font-size: var(--font-size-h1);
  line-height: 109%;
  letter-spacing: 0.03em;
}

.hero__title {
  font-weight: 300;
  font-size: var(--font-size-p);
  line-height: 129%;
  max-width: 590px;
}

.project {
  height: 100vh;
  max-height: 700px;
  display: flex;
  align-items: center;
}

.project__wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project__text {
  font-weight: 300;
  font-size: var(--font-size-p);
  line-height: 129%;
  width: 100%;
  max-width: 520px;
}

.project__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-image {
  max-width: 640px;
}

.project-image img {
  max-width: 100%;
  border-radius: 8px;
}

.btn {
  border-radius: 8px;
  background-color: var(--background-color-button);
  color: var(--font-color-white);
  max-width: fit-content;
  padding: 8px 24px;
  font-weight: 400;
  font-size: var(--font-size-text);
  line-height: 133%;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--background-color-button-hover);
}

.games {
  padding-top: 88px;
  padding-bottom: 88px;
  background-color: var(--background-color-accent);
}

.games__wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.games__title {
  font-weight: 300;
  font-size: var(--font-size-p);
  line-height: 129%;
}

.games__subtitle {
  font-weight: 300;
  font-size: var(--font-size-text);
  line-height: 133%;
}

.games__genre {
  font-weight: 300;
  font-size: var(--font-size-p);
  line-height: 129%;
  text-transform: uppercase;
}

.games__line {
  background: rgba(255, 255, 255, 0.2);
  height: 1px;
  width: 100%;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game img {
  max-width: 100%;
  border-radius: 10px;
  height: 100%;
  object-fit: cover;
}

.footer {
  background: var(--font-color-white);
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer__icons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.footer__mail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer__mail:hover span {
  text-decoration: underline;
}

.footer a,
.footer p {
  font-weight: 400;
  font-size: var(--font-size-small-text);
  line-height: 150%;
  color: #3d3d3d;
}

.footer__wrap {
  display: flex;
  justify-content: space-between;
}

.privacy__link {
  cursor: pointer;
}

.privacy__link:hover {
  text-decoration: underline;
}

.privacy {
  background-color: var(--font-color-white);
  color: #3d3d3d;
  padding-top: 32px;
}

.privacy__wrap {
  margin-top: 120px;
  background-color: #f0f3f4;
  padding: 40px;
  border-radius: 30px;
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  color: #3d3d3d;
}

.privacy .container {
  max-width: 1240px;
}

@media (max-width: 1199px) {
  .project__info,
  .project-image {
    flex: 1;
  }
}

@media (max-width: 980px) {
  :root {
    --font-size-h1: 42px;
    --font-size-h2: 28px;
    --font-size-p: 20px;
    --font-size-text: 18px;
    --font-size-small-text: 16px;
  }

  .logo {
    max-width: 170px;
  }

  .nav {
    display: flex;
  }

  .nav a {
    text-align: right;
  }

  .project__wrap,
  .footer__wrap {
    flex-direction: column;
  }

  .project__wrap,
  .project__info {
    gap: 24px;
  }

  .project__text {
    max-width: 100%;
  }

  .project-image {
    max-width: 100%;
  }

  .hero,
  .project,
  .games {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: auto;
    height: auto;
    max-height: 100%;
  }

  .hero__title {
    padding-top: 8px;
  }

  .footer__wrap {
    gap: 12px;
  }

  .privacy {
    padding: 20px;
  }

  .privacy__wrap {
    padding: 20px;
  }
}
