:root {
  --bg: #fffaf0;
  --ink: #062f38;
  --muted: #5f6f73;
  --dark: #073833;
  --card: #faffff;
  --yellow: #ffc928;
  --green: #17a85a;
  --green-dark: #0b8c66;
  --pink: #e6007e;
  --blue: #25c0d4;
  --line: #e8e2d4;
  --shadow: 0 24px 70px rgba(7, 56, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

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

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 201, 40, 0.45), transparent 280px),
    radial-gradient(circle at 88% 24%, rgba(37, 192, 212, 0.25), transparent 270px),
    linear-gradient(180deg, #ffffff 0%, #fff8df 100%);
}

.hero__inner {
  width: min(1120px, calc(100% - 32px));
  padding: 56px 0 24px;
  text-align: center;
}

h1,
h2,
h3,
p,
a,
summary,
li {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 990px;
  margin: 0 auto;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__mockup {
  width: min(980px, 100%);
  margin: clamp(26px, 5vw, 54px) auto 0;
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.24));
}

.games-section,
.faq {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.plans h2 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(2.45rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-intro {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
}

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 31.5%);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 3px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.game-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(6, 47, 56, 0.09);
  scroll-snap-align: start;
}

.game-card__media {
  width: 100%;
  height: 168px;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  background: #ffffff;
}

.game-card__media--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
  background: #ffffff;
}

.game-card__media--trio {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  padding: 6px;
  background: #ffffff;
}

.game-card__media--trio img:first-child {
  grid-row: 1 / -1;
}

.game-card:nth-child(4n + 1) {
  border-top: 7px solid var(--pink);
}

.game-card:nth-child(4n + 2) {
  border-top: 7px solid var(--yellow);
}

.game-card:nth-child(4n + 3) {
  border-top: 7px solid var(--blue);
}

.game-card:nth-child(4n) {
  border-top: 7px solid var(--green);
}

.game-card b {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

.game-card h3 {
  min-height: 66px;
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 900;
}

.game-card p,
.faq p,
.footer {
  color: var(--muted);
  line-height: 1.6;
}

.game-card p {
  margin: 0;
  margin-top: auto;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__button--prev {
  left: -18px;
}

.carousel__button--next {
  right: -18px;
}

.plans {
  padding: 72px 16px 86px;
  background: var(--dark);
  color: #ffffff;
}

.plans__inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.plans h2 {
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: none;
}

.plans__inner > p {
  margin: 24px 0 32px;
  font-weight: 800;
}

.offer-card {
  position: relative;
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 36px 26px 24px;
  border: 2px solid var(--yellow);
  border-radius: 20px 20px 18px 18px;
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 201, 40, 0.18), transparent 160px),
    linear-gradient(180deg, #ffffff 0%, #f9fffe 100%);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.offer-card__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-height: 32px;
  padding: 9px 18px 8px;
  border-radius: 0 18px 0 16px;
  background: var(--dark);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-card h3 {
  margin: 0 0 22px;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.offer-card__price {
  display: flex;
  align-items: flex-start;
  color: var(--green);
}

.offer-card__price strong {
  font-size: clamp(2.55rem, 9vw, 3.6rem);
  line-height: 0.9;
  font-weight: 900;
}

.offer-card__subtitle {
  margin: 4px 0 18px;
  color: #65777b;
  font-size: 0.86rem;
  font-weight: 700;
}

.offer-card__features {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-card__features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
}

.offer-card__features li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: -1px;
  color: #ffb000;
  font-size: 1.35rem;
  font-weight: 900;
}

.offer-card__notice {
  margin: 20px 0 18px;
  padding: 14px 16px;
  border: 1px solid #bfe8cf;
  border-radius: 12px;
  background: #e5faef;
  color: #073833;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.offer-card__button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 15px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1cad56 0%, #08956c 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(23, 168, 90, 0.28);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.offer-card small {
  display: block;
  margin-top: 14px;
  color: #708387;
  font-weight: 800;
  text-align: center;
}

.faq__items {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  min-height: 62px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px max(16px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer p {
  margin: 0;
  font-weight: 900;
}

.footer a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 780px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 46px;
  }

  .games-section,
  .faq {
    padding: 58px 0;
  }

  .carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .carousel__track {
    grid-column: 1 / -1;
    order: 1;
    grid-auto-columns: 100%;
    padding: 8px 1px 6px;
  }

  .carousel__button {
    position: static;
    order: 2;
    width: 100%;
    height: 50px;
    border-radius: 999px;
    font-size: 2rem;
    transform: none;
    box-shadow: 0 12px 26px rgba(7, 56, 51, 0.16);
  }

  .carousel__button--prev {
    justify-self: stretch;
  }

  .carousel__button--next {
    justify-self: stretch;
  }

  .game-card {
    min-height: 420px;
  }

  .game-card__media {
    height: 178px;
  }

  .plans {
    padding-top: 56px;
  }

  .offer-card {
    padding: 34px 20px 22px;
    border-radius: 18px;
  }

  .offer-card__badge {
    right: -2px;
    border-radius: 0 16px 0 16px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}
