:root {
  --accent: #3d5cff;
  --blue: #2a43e6;
  --deep: #1f33c4;
  --brand-rgb: 42, 67, 230;
  --line: #d9d9e0;
  --gradient: linear-gradient(180deg, #3d5cff 0%, #2a43e6 100%);
  --gradient-deep: linear-gradient(180deg, #2f4cf0 0%, #1f33c4 100%);
  --gradient-text: linear-gradient(90deg, #2a43e6 0%, #5a3fe8 100%);
}
@font-face {
  font-family: "Helvetica";
  src: url(../fonts/helvetica.woff2) format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/helvetica-bold.woff2) format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

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

li {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  color: inherit;
  font-size: inherit;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.section-title {
  text-transform: uppercase;
  font-weight: 400;
}

.container {
  max-width: 1220px;
  padding: 0 10px;
  margin: 0 auto;
}

body {
  font-family: "Helvetica", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #5c5c5e;
  /* min-width: 320px;
  overflow: hidden; */
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #cacad6;
}
.nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  height: 80px;
}

.menu-btn {
  width: 40px;
  height: 30px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  width: 100%;
  height: 2px;
  background-color: #000;
}
.menu {
  display: flex;
  gap: 0 20px;
}
.logo {
  justify-self: center;
}
.basket {
  position: relative;
  justify-self: end;
}

.basket span {
  font-size: 11px;
  width: 15px;
  height: 15px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  color: #fff;
  line-height: 0;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  right: -2px;
}

.top {
  min-height: calc(100vh - 81px);
  background-image: url(../images/top-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
}

.title {
  padding-top: 16%;
  font-size: 96px;
  margin-bottom: 10px;
  font-weight: 400;
}

.subtitle {
  font-size: 36px;
  margin-bottom: 5px;
}

.top__text {
  font-size: 13px;
  margin-bottom: 50px;
}
.buy__text {
  padding-top: 6px;
  font-size: 13px;
}

.buy-btn {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(var(--brand-rgb), 0.55),
    0 2px 4px rgba(var(--brand-rgb), 0.18);
  display: flex;
  width: fit-content;
  padding: 0;
  text-transform: uppercase;
}

.buy-btn__text {
  background: var(--gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  padding: 21px 64px;
  text-transform: uppercase;
}

.buy-btn__price {
  background-color: #fff;
  color: #1d1d22;
  padding: 21px 52px;
  text-transform: none;
}

.features {
  padding: 100px 0;
}

.features__titles {
  display: flex;
}

.features__title {
  flex-basis: 300px; /* розмір блоку */
  padding-right: 20px;
}

.features_text {
  max-width: 330px;
  text-transform: uppercase;
  font-size: 36px;
  margin-bottom: 2px;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tabs {
  display: grid;
  grid-template-columns: 300px auto;
}

.tabs__btn {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.tabs__btn-item {
  font-weight: 700;
  margin-bottom: 20px;
}

.tabs__btn-item {
  display: grid;
  padding-left: 12px;
  border-left: 3px solid transparent;
  text-align: left;
}

.tabs__btn-item--active {
  color: #070707;
  border-left-color: var(--accent);
}
.tabs__content {
  position: relative;
  min-height: 300px;
}

.tabs__content-item {
  display: grid;
  grid-template-columns: auto 280px;
  grid-template-rows: auto 150px;
  gap: 40px;
  opacity: 0;
  position: absolute;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.tabs__content-item--active {
  opacity: 1;
  visibility: visible;
}

.tabs__content-img {
  grid-row: 1/-1;
  align-self: stretch;
  object-fit: cover;
}

.tabs__content-box h3 {
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 5px;
}

.video {
  grid-column: 2/3;
  width: 200px;
  height: 150px;
  background-image: url(../images/content-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  padding: 9px 10px;
}

.video__btn {
  margin-left: 22px;
}

.video span {
  font-size: 13px;
  color: #f6f4f5;
}

.game {
  margin-bottom: 100px;
}

.game__title {
  margin-bottom: 50px;
}

.game__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.game_descr {
  padding-right: 10px;
}
.game_descr-title {
  text-transform: uppercase;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 36px;
  margin-bottom: 10px;
}

.game_descr-text {
  margin-bottom: 24px;
}
.game__link {
  border-radius: 8px;
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 15px 12px;
  border: 2px solid var(--blue);
  width: 225px;
  text-align: center;
}

.game__item {
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
  padding: 10px 20px 18px;
  display: flex;
  flex-direction: column;
}
.game__item-img {
  margin-bottom: 10px;
}
.game__item-tile {
  font-size: 24px;
  margin-bottom: 10px;
}

.game__item-text {
  margin-bottom: 30px;
}
.game__item-link {
  align-self: flex-start;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  margin-top: auto;
}

.buy {
  margin-bottom: 110px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}
.buy__img {
  margin-bottom: 30px;
}

.buy .buy-btn {
  margin: 0 auto;
}

.buy__bg {
  opacity: 0.1;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 400px;
  line-height: 400px;
  font-style: normal;
  font-weight: 700;
  position: absolute;
  z-index: -1;
  animation: line-text 6s;
}

@keyframes line-text {
  from {
    transform: translateX(115%);
    transform-origin: left center;
  }
  to {
    transform: translateX(-115%);
    transform-origin: right center;
  }
}

.equipment {
  margin-bottom: 100px;
}

.equipment__title {
  margin-bottom: 50px;
}

.equipment__box {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px 30px;
}

.equipment__box-img {
  margin-bottom: 10px;
}

.equipment__box-title {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 36px;
  line-height: 50px;
  text-transform: uppercase;
}

.equipment__box-item--one {
  grid-row: 1/-1;
}

.promo {
  margin-bottom: 100px;
}

.promo__inner {
  background-image: url(../images/promo.jpg);
  min-height: 500px;
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
}
.promo__btn {
  box-shadow: 0 10px 20px -8px rgba(var(--brand-rgb), 0.6);
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.accessories {
  margin-bottom: 100px;
}

.accessories__title {
  margin-bottom: 30px;
}

.accessories__text,
.specs__text {
  margin-bottom: 30px;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 36px;
  text-transform: uppercase;
}

.accessories__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.accessories__item {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.accessories__item-img {
  margin-bottom: 10px;
}

.accessories__item-title {
  font-size: 24px;
  color: #070707;
  min-height: 67px;
}

.accessories__item-text {
  margin-bottom: 35px;
  margin-top: auto;
}

.accessories__item-price {
  font-weight: 700;
  line-height: 18px;
  color: #070707;
  margin-bottom: 20px;
}

.accessories__item-btn {
  border-radius: 8px;
  border: 2px solid var(--blue);
  color: var(--blue);
  display: block;
  padding: 6px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.contacts {
  margin-bottom: 100px;
}
.contacts__title {
  font-size: 24px;
  line-height: 33px;
  color: #070707;
  margin-bottom: 10px;
}
.contacts__inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.contacts__form {
  flex-basis: 600px;
}
.contacts__text {
  font-size: 13px;
}

.form {
  margin-bottom: 10px;
  position: relative;
}
.form__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cacad6;
  padding: 22px 70px 22px 0;
}
.form__input::placeholder {
  font-family: "Helvetica";
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #cacad6;
}

.form__btn {
  width: 50px;
  height: 50px;
  background-color: #cacad6;
  text-transform: uppercase;
  font-weight: 700;
  color: #5c5c5e;
  border-radius: 50%;
  position: absolute;
  right: 0;
  bottom: 5px;
}

.footer {
  border-top: 1px solid #cacad6;
  border-bottom: 1px solid #cacad6;
  margin-bottom: 44px;
  padding: 30px 0;
}

.social {
  display: flex;
  gap: 20px;
  justify-self: end;
}

@media (max-width: 1140px) {
  .footer .menu {
    display: none;
  }
  .footer .nav {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 992px) {
  .tabs {
    display: block;
  }
  .tabs__btn {
    display: block;
    column-count: 2;
  }
  .tabs__btn-item {
    display: block;
  }
  .game__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .accessories__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .specs__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .equipment__box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .contacts__inner {
    display: block;
  }
  .contacts__form {
    margin-bottom: 20px;
  }
  .menu-btn {
    display: flex;
  }
  .header .menu {
    visibility: hidden;
  }
  .header .menu.menu--active {
    visibility: visible;
  }
  .menu {
    transform: translateX(-100%);
    transition: transform 1s, visibility 1s;
    /* display: none; */
    top: 80px;
    left: 0;
    right: 0;
    width: 320px;
    position: absolute;
    background-color: #000;
    color: #fff;
    padding: 100px 0;
    align-items: center;
    flex-direction: column;
  }
  .menu__link {
    padding: 10px 0;
    font-size: 24px;
    display: inline-block;
  }
}
.menu.menu--active {
  transform: translateX(0%);
  /* display: flex; */
}

/* hover / focus */
.menu__link,
.buy-btn,
.game__link,
.game__item-link,
.accessories__item-btn,
.form__btn,
.promo__btn,
.social__link,
.video__btn,
.tabs__btn-item,
.basket {
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.game__item-link:hover {
  color: var(--deep);
}

.game__item:hover,
.specs__item:hover,
.accessories__item:hover {
  border-color: var(--accent);
}

.menu__link:hover,
.tabs__btn-item:hover {
  opacity: 0.6;
}

.social__link:hover,
.basket:hover {
  opacity: 0.6;
}

.buy-btn:hover,
.promo__btn:hover,
.video__btn:hover {
  transform: translateY(-2px);
}

.buy-btn:hover {
  box-shadow: 0 16px 32px -10px rgba(var(--brand-rgb), 0.65),
    0 2px 4px rgba(var(--brand-rgb), 0.18);
}

.buy-btn:hover .buy-btn__text {
  background: var(--gradient-deep);
}

.buy-btn:active,
.promo__btn:active,
.video__btn:active {
  transform: translateY(0);
}

.promo__btn:hover,
.to-top:hover {
  background: var(--gradient-deep);
}

.game__link:hover {
  background: var(--gradient-deep);
  color: #fff;
}

.accessories__item-btn:hover {
  background: var(--gradient-deep);
  color: #fff;
}

.form__btn:hover {
  background-color: var(--blue);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.form__input:focus-visible {
  outline-offset: 0;
}

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

@media (max-width: 768px) {
  .title {
    font-size: 66px;
  }
  .subtitle {
    font-size: 24px;
  }
}
@media (max-width: 640px) {
  .buy-btn {
    flex-direction: column;
    margin: 0 auto;
  }
  .top {
    text-align: center;
  }
}

@media (max-width: 568px) {
  .features__title {
    display: block;
  }
  .tabs__content-item {
    display: block;
    height: 0;
    position: static;
  }
  .tabs__content-item--active {
    height: auto;
  }

  .video {
    width: auto;
    height: 250px;
    margin-top: 20px;
  }
  .game__inner {
    grid-template-columns: repeat(1, 1fr);
  }
  .equipment__box {
    display: block;
  }
  .equipment__box-img {
    width: 100%;
  }
  .equipment__box-text {
    margin-bottom: 10px;
  }
  .accessories__items {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .accessories__text,
  .specs__text {
    font-size: 28px;
  }
  .specs__list {
    grid-template-columns: 1fr;
  }
  .nav {
    grid-template-columns: 1fr 2fr 1fr;
  }
  .footer .nav {
    flex-direction: column;
  }
  .social {
    order: -1;
    margin-bottom: 20px;
    gap: 30px;
  }
}

@media (max-width: 420px) {
  .title {
    font-size: 48px;
  }
  .subtitle {
    font-size: 20px;
  }
  .tabs__btn {
    column-count: 1;
  }
  .features_text {
    font-size: 32px;
  }
  .menu {
    width: 100%;
  }
}

/* specs */
.specs {
  margin-bottom: 100px;
}

.specs__title {
  margin-bottom: 30px;
}

.specs__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.specs__item {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.specs__item dt {
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specs__item dd {
  font-size: 24px;
  line-height: 1.2;
  color: #070707;
}

/* faq */
.faq {
  margin-bottom: 100px;
}

.faq__title {
  margin-bottom: 30px;
}

.faq__item {
  border-bottom: 1px solid #cacad6;
}

.faq__item:first-child {
  border-top: 1px solid #cacad6;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 24px;
  color: #070707;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  font-size: 24px;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-width: 720px;
  padding-bottom: 24px;
}

/* form status, footer, back to top */
.form__status {
  min-height: 18px;
  margin-bottom: 10px;
  font-size: 13px;
}

.form__status--error {
  color: #d8102f;
}

.form__status--ok {
  color: #1a7f4b;
}

.footer__copy {
  margin-top: 24px;
  font-size: 13px;
  text-align: center;
}
.footer__credit {
  margin-top: 6px;
  font-size: 13px;
  text-align: center;
  opacity: 0.7;
}
.footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 10px 20px -8px rgba(var(--brand-rgb), 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
