@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;700;900&display=swap');

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

body {
  font-family: 'Lexend', sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(to bottom, #111, #284a3a);
  overflow: hidden;
  padding-bottom: 40px;
}

.header {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  margin: 20px auto 0;
  width: 1200px;
}

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

.logo-icon {
  width: 30px;
  height: 30px;
  position: relative;
}

.logo-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo-text {
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.hero-content {
  text-align: center;
  margin: 20px auto 0;
  width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-weight: 900;
  font-size: 80px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #39fdfb, #9afa29);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: normal;
}

.hero-text {
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  max-width: 1086px;
  line-height: normal;
}

.hero-text p + p {
  margin-top: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 60px;
  background: linear-gradient(to bottom, #39fdfb, #9afa29);
  border: 2px solid #fff;
  border-radius: 60px;
  font-weight: 900;
  font-size: 14px;
  color: #111;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-image {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 10px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  background: linear-gradient(to bottom, #39fdfb, #9afa29);
  padding: 30px 0;
  overflow: hidden;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 150px;
}

.stat-item {
  text-align: center;
  text-transform: uppercase;
}

.stat-number {
  font-weight: 900;
  font-size: 80px;
  line-height: normal;
  color: #111;
}

.stat-label {
  font-weight: 400;
  font-size: 14px;
  color: #111;
  line-height: normal;
  margin-top: 0;
}

.choose-heat {
  padding: 60px 0;
}

.choose-heat .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.choose-heat-image {
  width: 449px;
  height: 670px;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.choose-heat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choose-heat-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 701px;
}

.section-title {
  font-weight: 900;
  font-size: 70px;
  text-transform: uppercase;
  line-height: normal;
  color: #111;
}

.section-text {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  color: #111;
}

.section-text p + p {
  margin-top: 0;
}

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

.avatars img {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  margin-right: -50px;
}

.avatars img:last-child {
  margin-right: 0;
}

.play-fields {
  padding: 0 0 60px;
}

.play-fields .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.play-fields-title {
  font-weight: 900;
  font-size: 70px;
  text-transform: uppercase;
  text-align: center;
  line-height: normal;
  width: 100%;
}

.play-fields-grid {
  display: flex;
  gap: 20px;
  width: 100%;
}

.play-field-card {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 285px;
}

.play-field-card-image {
  height: 315px;
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
}

.play-field-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-field-card-title {
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
  line-height: normal;
}

.play-field-card-text {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  margin-top: 20px;
}

.fast-games {
  background: linear-gradient(to bottom, #111, #284a3a);
  overflow: hidden;
  padding: 60px 0;
}

.fast-games .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.fast-games-title {
  font-weight: 900;
  font-size: 70px;
  text-transform: uppercase;
  color: #fff;
  line-height: normal;
}

.fast-games-text {
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  line-height: normal;
}

.fast-games-text p + p {
  margin-top: 0;
}

.fast-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 0;
}

.fast-games-row {
  display: flex;
  gap: 20px;
}

.fast-games-row:nth-child(2) {
  margin-left: 380px;
}

.game-thumb {
  width: 260px;
  height: 260px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-craft {
  padding: 60px 0;
}

.why-craft .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.why-craft-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 701px;
}

.why-craft-image {
  width: 449px;
  height: 715px;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.why-craft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-craft-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.why-craft-feature {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.why-craft-feature-title {
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  line-height: normal;
}

.why-craft-feature-text {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
}

.contacts {
  background: linear-gradient(to bottom, #111, #284a3a);
  overflow: hidden;
  padding: 60px 0;
}

.contacts .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.contacts-image {
  width: 449px;
  height: 420px;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.contacts-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 701px;
}

.contacts-title {
  font-weight: 900;
  font-size: 70px;
  text-transform: uppercase;
  color: #fff;
  line-height: normal;
}

.contacts-text {
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  line-height: normal;
}

.contacts-info {
  font-weight: 700;
  font-size: 18px;
  color: #39fdfb;
  line-height: normal;
  margin-top: 0;
}

.page-header {
  background: #111;
  padding: 20px 0;
  overflow: hidden;
}

.page-header .header {
  margin-top: 0;
}

.game-hero {
  background: linear-gradient(to bottom, #111, #284a3a);
  overflow: hidden;
  padding: 60px 84px;
}

.game-hero-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.game-hero-thumb {
  width: 260px;
  height: 260px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.game-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.game-hero-title {
  font-weight: 900;
  font-size: 70px;
  text-transform: uppercase;
  color: #fff;
  line-height: normal;
}

.game-hero-text {
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  line-height: normal;
}

.game-hero-text p + p {
  margin-top: 0;
}

.policy-content {
  padding: 20px 84px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1182px;
}

.policy-title {
  font-weight: 900;
  font-size: 70px;
  text-transform: uppercase;
  line-height: normal;
  color: #111;
}

.policy-text {
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  color: #111;
}

.game-about {
  padding: 60px 0;
}

.game-about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.game-about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 701px;
}

.game-about-image {
  width: 449px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-games {
  background: linear-gradient(to bottom, #111, #284a3a);
  overflow: hidden;
  padding: 60px 0;
}

.catalog-games .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.catalog-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.catalog-games-row {
  display: flex;
  gap: 20px;
}

.catalog-games-row:nth-child(2) {
  margin-left: 380px;
}

.game-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.game-thumb a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.footer {
  background: #111;
  overflow: hidden;
  padding: 20px 0;
}

.footer-inner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 14px 19px;
  width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  font-size: 24px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-social a {
  display: block;
  width: 60px;
  height: 60px;
}

.footer-social img {
  width: 100%;
  height: 100%;
}

.footer-copy {
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .container {
    width: 330px;
  }

  .header {
    width: 330px;
    height: auto;
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 19px;
    gap: 15px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-content {
    width: 330px;
    margin-top: 20px;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-text {
    max-width: 330px;
  }

  .hero-image {
    width: 330px;
  }

  .stats {
    padding: 30px 0;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 330px;
    margin: 0 auto;
  }

  .stat-number {
    font-size: 40px;
  }

  .choose-heat {
    padding: 60px 0;
  }

  .choose-heat .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
  }

  .choose-heat-image {
    width: 208px;
    height: 310px;
  }

  .choose-heat-content {
    width: 330px;
  }

  .section-title {
    font-size: 40px;
  }

  .play-fields {
    padding: 60px 0;
  }

  .play-fields-title {
    font-size: 40px;
  }

  .play-fields-grid {
    flex-direction: column;
    gap: 20px;
  }

  .play-field-card {
    width: 330px;
  }

  .policy-content {
    padding: 20px 15px 60px;
  }

  .policy-title {
    font-size: 40px;
  }

  .game-hero {
    padding: 60px 15px;
  }

  .game-hero-inner {
    flex-direction: column;
  }

  .game-hero-title {
    font-size: 40px;
  }

  .game-about .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
  }

  .game-about-content {
    width: 330px;
  }

  .game-about-image {
    width: 330px;
    height: 368px;
  }

  .catalog-games-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 330px;
  }

  .catalog-games-row:nth-child(2) {
    margin-left: 0;
  }

  .fast-games {
    padding: 60px 0;
  }

  .fast-games-title {
    font-size: 40px;
  }

  .fast-games-grid {
    gap: 20px;
  }

  .fast-games-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 330px;
  }

  .fast-games-row:nth-child(2) {
    margin-left: 0;
  }

  .game-thumb {
    width: 260px;
    height: 260px;
  }

  .why-craft {
    padding: 60px 0;
  }

  .why-craft .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .why-craft-content {
    width: 330px;
  }

  .why-craft-image {
    width: 254px;
    height: 405px;
  }

  .contacts {
    padding: 60px 0;
  }

  .contacts .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .contacts-image {
    width: 330px;
    height: 308px;
  }

  .contacts-content {
    width: 330px;
  }

  .contacts-title {
    font-size: 40px;
  }

  .footer-inner {
    width: 330px;
    padding: 14px 19px;
  }

  .footer-logo .logo-text {
    font-size: 20px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-copy {
    width: 290px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    padding: 24px;
  }

  .cookie-banner-title {
    font-size: 22px;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 620px;
  max-width: calc(100% - 48px);
  background: #fff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: cookie-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}

.cookie-banner-icon svg {
  width: 100%;
  height: 100%;
  animation: cookie-wobble 3s ease-in-out infinite;
}

@keyframes cookie-wobble {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

.cookie-banner-title {
  font-weight: 900;
  font-size: 30px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 18px;
}

.cookie-banner-text {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.4;
  color: #111;
  margin-bottom: 22px;
}

.cookie-banner-text p {
  margin-bottom: 8px;
}

.cookie-banner-text p:last-child {
  margin-bottom: 0;
}

.cookie-banner-accept,
.cookie-banner-settings {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 60px;
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-banner-accept {
  margin-bottom: 14px;
  border: none;
  background: linear-gradient(to right, #39fdfb, #9afa29);
}

.cookie-banner-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 250, 41, 0.45);
}

.cookie-banner-settings {
  border: 2px solid #111;
  background: #fff;
}

.cookie-banner-settings:hover {
  transform: translateY(-2px);
  background: #111;
  color: #fff;
}

/* ===== Animations & hover effects ===== */

/* Entrance animations on page load */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-content > * {
  animation: fade-up 0.8s both;
}

.hero-title {
  animation-delay: 0.05s;
}

.hero-text {
  animation-delay: 0.15s;
}

.hero-content .btn-primary {
  animation-delay: 0.25s;
}

.hero-image {
  animation-delay: 0.35s;
}

.game-hero-content > * {
  animation: fade-up 0.8s both;
}

.game-hero-content .game-hero-text {
  animation-delay: 0.15s;
}

.game-hero-content .btn-primary {
  animation-delay: 0.25s;
}

.game-hero-thumb {
  animation: fade-in 1s both;
}

/* Scroll reveal (toggled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Primary button hover */
.btn-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(122, 250, 41, 0.45);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Nav links */
.nav a,
.footer-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #39fdfb, #9afa29);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.footer-nav a:hover::after {
  width: 100%;
}

/* Logo */
.logo,
.footer-logo {
  transition: transform 0.25s ease;
}

.logo:hover,
.footer-logo:hover {
  transform: scale(1.04);
}

/* Play field cards */
.play-field-card {
  transition: transform 0.3s ease;
}

.play-field-card:hover {
  transform: translateY(-8px);
}

.play-field-card-image,
.game-thumb,
.hero-image,
.game-hero-thumb,
.game-about-image,
.choose-heat-image,
.contacts-image {
  overflow: hidden;
}

.play-field-card-image img,
.game-thumb img,
.game-thumb a img {
  transition: transform 0.4s ease;
}

.play-field-card:hover .play-field-card-image img,
.game-thumb:hover img,
.game-thumb a:hover img {
  transform: scale(1.08);
}

/* Stat items */
.stat-item {
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: scale(1.08);
}

/* Feature cards */
.why-craft-feature {
  transition: transform 0.3s ease;
}

.why-craft-feature:hover {
  transform: translateY(-6px);
}

/* Avatars */
.avatars img {
  transition: transform 0.25s ease;
}

.avatars img:hover {
  transform: translateY(-6px) scale(1.1);
  z-index: 1;
}

/* Social icons */
.footer-social a {
  transition: transform 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
