:root {
  --bg: #0b0d07;
  --bg-soft: #121409;
  --panel: #15170d;
  --panel-light: #1c1e11;

  --moss: #87934f;
  --moss-light: #b8c778;
  --olive: #6f7841;

  --gold: #b69953;
  --gold-light: #d3bd7a;

  --cream: #d8d1ae;
  --cream-muted: #aaa486;

  --line: rgba(192, 169, 92, 0.35);

  --serif: "Cormorant Garamond", serif;
  --mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 126, 61, 0.09), transparent 28%),
    var(--bg);
  color: var(--cream);
  font-family: var(--mono);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);

  background-size: 60px 60px;
  opacity: 0.2;
}

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

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

/* Header */

.header {
  position: relative;
  z-index: 10;

  height: 74px;
  padding: 0 4vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  background: rgba(8, 10, 5, 0.94);
  border-bottom: 1px solid var(--line);
}

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

  width: max-content;
}

.logo__image {
  width: auto;
  height: 58px;
  max-width: 120px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.nav a {
  position: relative;
  padding: 27px 0 23px;

  color: var(--cream-muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;

  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 50%;

  width: 0;
  height: 1px;

  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(211, 189, 122, 0.25);
}

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

.header__contact {
  justify-self: end;

  padding: 10px 18px;

  border: 1px solid rgba(182, 153, 83, 0.55);
  border-radius: 999px;

  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.header__contact:hover {
  background: var(--gold);
  color: #101108;
}

/* Hero */

.hero {
  position: relative;
  min-height: 470px;
  height: 52vh;
  max-height: 650px;
  overflow: hidden;

  border-bottom: 1px solid var(--line);
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 55%;

  transform: scale(1.06);
  animation: forestMove 22s ease-in-out infinite alternate;

  will-change: transform;
}
@keyframes forestMove {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__image {
    animation: none;
  }
}

.hero__overlay {
  background:
    rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  z-index: 2;

  width: min(1400px, 92%);
  height: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin-bottom: 16px;

  color: var(--moss-light);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-direction: column;

  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 142px);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: 5px;
  text-transform: uppercase;

  color: #d6c99e;
  text-shadow:
    0 6px 35px rgba(0,0,0,.8),
    0 0 45px rgba(194, 172, 98, .08);
}

.hero h1 span {
  margin-left: 1.1em;
}

.hero__description {
  max-width: 610px;
  margin-top: 34px;

  color: rgba(216, 209, 174, 0.78);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.hero__note {
  position: absolute;
  right: 7%;
  bottom: 15%;
  z-index: 2;

  color: rgba(211, 189, 122, 0.8);
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  line-height: 1.1;
  text-align: center;

  transform: rotate(-6deg);
}

/* Main world section */

.world {
  padding: 100px 4vw 115px;
}

.section-title {
  width: min(1400px, 100%);
  margin: 0 auto 45px;
}

.section-title span {
  display: block;
  margin-bottom: 10px;

  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4px;
}

.section-title p {
  margin-bottom: 8px;

  color: var(--moss);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-title h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
}

.world-grid{
    display:grid;

    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 420px 420px;

    grid-template-areas:
        "shop games tests"
        "about about about";

    gap:1px;

    background:var(--line);
}
.world-card:nth-child(1){
    grid-area:shop;
}

.world-card:nth-child(2){
    grid-area:games;
}

.world-card:nth-child(3){
    grid-area:tests;
}

.world-card:nth-child(4){
    grid-area:about;
}

.world-card {
  position: relative;
  height:100%;
  overflow: hidden;

  border-right: 1px solid var(--line);
  background: #111309;
}

.world-card:first-child {
  border-left: 1px solid var(--line);
}
.world-card:nth-child(4) .world-card__content {
  padding-left: 42px;
  padding-right: 42px;
}

.world-card__image,
.world-card__overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.world-card__image {
  object-fit: cover;

  filter:
    brightness(0.82)
    saturate(0.95)
    contrast(1.04);

  transition:
    transform 0.75s cubic-bezier(.2,.7,.2,1),
    filter 0.6s ease;
}

.world-card__overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .42) 0%,
      rgba(0, 0, 0, .08) 34%,
      rgba(0, 0, 0, .04) 58%,
      rgba(0, 0, 0, .54) 100%
    );
}

.world-card__content {
  position: relative;
  z-index: 2;

  height: 100%;
  min-height: 0;
  padding: 34px 30px 30px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.world-card__number {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
}

.world-card__label {
  margin-bottom: 10px;

  color: var(--moss-light);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.world-card h3 {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(36px, 3.1vw, 52px);
  font-weight: 500;
  line-height: 1;
}

.world-card__text {
  max-width: 260px;
  margin-top: 18px;

  color: rgba(216, 209, 174, 0.73);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
}

.world-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;

  color: transparent;
  cursor: pointer;
  font-size: 0;
  text-decoration: none;
}

.world-card__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -8px;
}

.world-card:hover .world-card__image {
  transform: scale(1.08);
  filter:
    brightness(0.96)
    saturate(1)
    contrast(1.04);
}

/* Bottom */

.bottom-section {
  width: min(1400px, 92%);
  margin: 0 auto 100px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(24, 27, 14, .93), rgba(10, 12, 6, .96));
}

.bottom-card {
  min-height: 400px;
  padding: 45px;

  border-right: 1px solid var(--line);
}

.bottom-card:last-child {
  border-right: none;
}

.bottom-card__eyebrow {
  margin-bottom: 20px;

  color: var(--moss);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bottom-card h2 {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 500;
  line-height: 1.05;
}

.bottom-card--intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bottom-card--intro > p:not(.bottom-card__eyebrow) {
  margin-top: 24px;

  color: var(--cream-muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.bottom-card--contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bottom-card--contact > p:not(.bottom-card__eyebrow) {
  margin: 25px 0 34px;

  color: var(--cream-muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  padding: 16px 20px;

  border: 1px solid rgba(182, 153, 83, .7);

  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.contact-button:hover {
  background: var(--gold);
  color: #101108;
}

/* Footer */

.footer {
  min-height: 75px;
  padding: 22px 4vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  border-top: 1px solid var(--line);

  color: rgba(170, 164, 134, 0.6);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Adaptive */

@media (max-width: 1100px) {
  .header {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .header__contact {
    justify-self: end;
  }

  .world-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 420px);
    grid-template-areas:
      "shop games"
      "tests tests"
      "about about";
  }

  .world-card {
    border-bottom: 1px solid var(--line);
  }

  .world-card:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .bottom-section {
    grid-template-columns: 1fr;
  }

  .bottom-card {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .bottom-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .header {
    height: 64px;
    padding: 0 20px;
  }

  .header__contact {
    font-size: 10px;
    padding: 8px 13px;
  }

  .logo__image {
    height: 48px;
    max-width: 96px;
  }

  .hero {
    min-height: 570px;
    height: 82vh;
  }

  .hero__overlay {
    background: rgba(0, 0, 0, 0.4);
  }

  .hero__content {
    justify-content: flex-end;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(64px, 22vw, 100px);
  }

  .hero h1 span {
    margin-left: 0;
  }

  .hero__note {
    display: none;
  }

  .hero__description {
    font-size: 18px;
  }

  .world {
    padding: 70px 18px;
  }

  .world-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "shop"
      "games"
      "tests"
      "about";
  }

  .world-card,
  .world-card__content {
    min-height: 580px;
  }

  .world-card {
    border-left: 1px solid var(--line);
  }

  .world-card h3 {
    font-size: 52px;
  }

  .bottom-section {
    width: calc(100% - 36px);
    margin-bottom: 70px;
  }

  .bottom-card {
    padding: 32px 24px;
  }

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

}

.site-particles {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

.site-particles span {
  position: absolute;
  bottom: -30px;

  width: 3px;
  height: 3px;
  border-radius: 50%;

  background: rgba(226, 198, 108, 0.9);

  box-shadow:
    0 0 7px rgba(226, 198, 108, 0.8),
    0 0 16px rgba(226, 198, 108, 0.35);

  opacity: 0;

  animation:
    siteParticleFloat 15s linear infinite,
    siteParticleGlow 3.5s ease-in-out infinite alternate;
}
.site-particles span:nth-child(1) {
  left: 4%;
  animation-delay: 0s;
  animation-duration: 17s;
}

.site-particles span:nth-child(2) {
  left: 10%;
  animation-delay: 5s;
  animation-duration: 20s;
}

.site-particles span:nth-child(3) {
  left: 16%;
  animation-delay: 2s;
  animation-duration: 14s;
}

.site-particles span:nth-child(4) {
  left: 22%;
  animation-delay: 8s;
  animation-duration: 18s;
}

.site-particles span:nth-child(5) {
  left: 28%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.site-particles span:nth-child(6) {
  left: 34%;
  animation-delay: 10s;
  animation-duration: 16s;
}

.site-particles span:nth-child(7) {
  left: 40%;
  animation-delay: 1s;
  animation-duration: 19s;
}

.site-particles span:nth-child(8) {
  left: 46%;
  animation-delay: 7s;
  animation-duration: 15s;
}

.site-particles span:nth-child(9) {
  left: 52%;
  animation-delay: 3s;
  animation-duration: 21s;
}

.site-particles span:nth-child(10) {
  left: 58%;
  animation-delay: 11s;
  animation-duration: 17s;
}

.site-particles span:nth-child(11) {
  left: 64%;
  animation-delay: 6s;
  animation-duration: 23s;
}

.site-particles span:nth-child(12) {
  left: 70%;
  animation-delay: 9s;
  animation-duration: 16s;
}

.site-particles span:nth-child(13) {
  left: 76%;
  animation-delay: 2.5s;
  animation-duration: 20s;
}

.site-particles span:nth-child(14) {
  left: 82%;
  animation-delay: 12s;
  animation-duration: 18s;
}

.site-particles span:nth-child(15) {
  left: 88%;
  animation-delay: 4.5s;
  animation-duration: 22s;
}

.site-particles span:nth-child(16) {
  left: 93%;
  animation-delay: 8.5s;
  animation-duration: 15s;
}

.site-particles span:nth-child(17) {
  left: 97%;
  animation-delay: 1.5s;
  animation-duration: 19s;
}

.site-particles span:nth-child(18) {
  left: 50%;
  animation-delay: 13s;
  animation-duration: 24s;
}
@keyframes siteParticleFloat {
  0% {
    transform: translate3d(0, 30px, 0) scale(0.5);
    opacity: 0;
  }

  10% {
    opacity: 0.65;
  }

  70% {
    opacity: 0.45;
  }

  100% {
    transform: translate3d(45px, -110vh, 0) scale(1.3);
    opacity: 0;
  }
}

@keyframes siteParticleGlow {
  from {
    filter: brightness(0.8);
  }

  to {
    filter: brightness(1.6);
  }
}
.site-particles span:nth-child(3n) {
  width: 5px;
  height: 5px;
  opacity: 0.5;
}

.site-particles span:nth-child(4n) {
  width: 2px;
  height: 2px;
}

.site-particles span:nth-child(5n) {
  background: rgba(172, 193, 100, 0.85);

  box-shadow:
    0 0 7px rgba(172, 193, 100, 0.75),
    0 0 16px rgba(172, 193, 100, 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .site-particles {
    display: none;
  }
}

