/* ---- nullstyle.css ---- */
/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

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

/* Links */

a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type="submit"] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

/* ---- const.css ---- */
:root {
  --background-color: #1c2023;
  --button-color-first: #8856d9;
  --button-color-first-hover: #5b24b2;
  --button-color-second: #ff4136;
  --button-color-second-hover: #ba2b24;
  --description-color: #a9c7c7;
  --text-card-color: #8c96a0;
  --font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-link-menu: rgba(255, 255, 255, 0.5);
  --transition-time: 0.3s;
  --color-title: #fff;
  --fs10px: 0.625rem;
  --fs12px: 0.75rem;
  --fs14px: 0.875rem;
  --fs16px: 1rem;
  --fs18px: 1.125rem;
  --fs20px: 1.25rem;
  --fs24px: 1.5rem;
  --fs30px: 1.875rem;
  --fs40px: 2.5rem;
  --fs60px: 3.75rem;
  --fs80px: 5rem;
  --fs100px: 6.25rem;
}

html {
  overflow-x: hidden;
}
body {
  font-size: var(--fs14px);
  font-weight: normal;
  background-color: var(--background-color);
  display: flex;
  font-family: var(--font-family);
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background-color: var(--text-card-color);
}
body::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px var(--button-color-first-hover);
  background-color: var(--button-color-first);
}

.container {
  display: block;
  position: relative;
  max-width: 1735px;
  width: 100%;
  padding: 0 20px;
}

/*button*/
.btn {
  border-radius: 6px;
  font-weight: 500;
  font-size: var(--fs16px);
  padding: 12px 37px;
  text-transform: uppercase;
  color: var(--color-title);
  transition: background-color var(--transition-time) ease-in-out;
}
.btn-violet {
  background-color: var(--button-color-first);
}
.btn-red {
  background-color: var(--button-color-second);
}
.btn-violet:hover {
  background-color: var(--button-color-first-hover);
}
.btn-red:hover {
  background-color: var(--button-color-second-hover);
}

.title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--fs40px);
  text-align: center;
  color: var(--color-title);
}

.swiper__btn {
  width: 32px;
  height: 32px;
  top: 55%;
  border-radius: 6px;
  background-color: var(--text-card-color);
  transition: background-color var(--transition-time) ease;
}

/* ---- menu.css ---- */
.menu {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  z-index: 200;
  width: 100%;
  height: 50px;
}
.menu__btn-container {
  position: relative;
  width: 25px;
  height: 25px;
}

.menu__button {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.menu__button span,
.menu__button::before,
.menu__button::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 1px;
  top: 50%;
  background-color: var(--color-title);
  transition: width var(--transition-time) ease-in-out;
}
.menu__button::before {
  width: 100%;
  top: 15%;
}
.menu__button::after {
  width: 100%;
  top: 85%;
}

.is-active span {
  width: 100%;
}
.is-active::after,
.is-active::before {
  width: 50%;
}

.menu__container {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.menu__list {
  display: flex;
  margin-left: 50px;
  transition: transform var(--transition-time) ease-in;
}
.menu__link {
  font-family: var(--font-family);
  text-transform: uppercase;
  color: var(--color-link-menu);
  transition: color var(--transition-time) ease-in-out;
  margin: 0 15px;
}
.menu__link-active {
  color: var(--button-color-first);
}
.menu__link:hover {
  color: var(--button-color-first);
}
.menu__language {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-title);
  cursor: pointer;
}

.menu__hiden > .menu__container > .menu__list {
  transform: translateX(-200%);
}

/*Clock*/
.clock {
  display: flex;
  align-items: center;
  font-family: var(--font-family);
  font-size: var(--fs16px);
  color: var(--text-card-color);
}
.clock__realise {
  margin-right: 20px;
}

.clock__day,
.clock__hours,
.clock__minutes {
  position: relative;
  font-weight: 700;
  font-size: var(--fs40px);
  color: var(--description-color);
}

.clock__day {
  margin-right: 5px;
}
.clock__hours {
  margin-right: 5px;
}

.clock__day::after,
.clock__hours:after,
.clock__minutes:after {
  position: absolute;
  font-size: var(--fs16px);
  font-weight: 400;
  color: var(--text-card-color);
  left: 20px;
  bottom: -25px;
  z-index: 5;
}

.clock__day::after {
  content: "D";
}
.clock__hours:after {
  content: "H";
}

.clock__minutes:after {
  content: "M";
}
/*end clock*/

@media (max-width: 1070px) {
  .menu {
    align-items: center;
  }
  .menu__button {
    z-index: 10;
  }
  .menu__container {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    z-index: 100;
  }

  .menu__list {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    position: fixed;
    background: black;
    width: 100%;
    height: 100%;
    margin: -45px -15px;
    padding: 80px 15px;
  }
  .menu__link {
    display: block;
    padding: 10px 0;
    margin: 0;
    font-size: var(--fs24px);
  }
  .clock {
    position: absolute;
    right: 0;
  }
}

/* ---- header.css ---- */
.header {
  position: relative;
  display: block;
  margin-bottom: 20px;
  height: 764px;
  z-index: 1;

}

.header::after {
  content: "";
  position: absolute;
  width: 100%;
  height: inherit;
  top: 0;
  right: -10%;
  background:
    linear-gradient(89deg, #1c2023 0%, rgba(28, 32, 35, 0) 41.61%),
    linear-gradient(0deg, #1c2023 0%, rgba(28, 32, 35, 0) 41.61%),
    url("../img/header.webp") no-repeat center right;
  background-size: cover;
}

.header__content {
  padding-top: 112px;
  position: relative;
  max-width: 543px;
  font-family: var(--font-family);
  z-index: 1;
}
.header__title {
  font-weight: 600;
  font-size: var(--fs100px);
  line-height: 100%;
  color: var(--color-title);
}
.header__description {
  display: block;
  margin-top: 26px;
  font-size: var(--fs18px);
  line-height: 150%;
  color: var(--description-color);
}

.header__btn {
  margin-top: 50px;
}

@media (max-width: 1070px) {
  .header {
    right: 0;
    background:
      linear-gradient(89deg, #1c2023 0%, rgba(28, 32, 35, 0) 41.61%),
      linear-gradient(0deg, #1c2023 0%, rgba(28, 32, 35, 0) 41.61%),
      url(../img/header.webp) no-repeat center center;
    background-size: cover;
  }
  .header__content {
    margin-top: 45px;
  }
  .header__title {
    font-size: var(--fs80px);
  }
  .header__description {
    font-size: var(--fs14px);
  }
}

/* ---- editions.css ---- */
.editions {
  padding-top: 100px;
}

.editions__title {
  margin-bottom: 30px;
}
.editions__container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.editions__item {
  display: flex;
  max-width: 350px;
  flex-direction: column;
  border-radius: 6px;
  padding: 17px;
  background: linear-gradient(180deg, #141615 0%, #1c2023 100%);
  transition: scale var(--transition-time) ease-in;
}
.editions__item:hover {
  scale: 1.01;
}

.editions__title-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 21px;
  font-weight: 700;
  font-size: 16px;
}
.editions__card-title {
  color: var(--color-title);
}
.editions__subtitle {
  margin-top: 15px;
  font-weight: 500;
  color: var(--description-color);
}
.editions__description-text {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  color: var(--text-card-color);
}
.editions__description-one,
.editions__description-two {
  margin-bottom: 12px;
}
.editions__description-three {
  margin-bottom: 5px;
}
.editions__pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 700;
  font-size: var(--fs18px);
  color: var(--color-title);
}
.editions__price {
  margin-bottom: 14px;
}
.editions__btn {
  font-size: var(--fs14px);
}

/* ---- dualsense.css ---- */
.dualsense {
  margin-top: 55px;
}
.dualsense__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dualsense__description {
  display: flex;
  margin-top: 40px;
  font-weight: 400;
  font-size: var(--fs18px);
  line-height: 150%;
  color: var(--description-color);
}
.dualsense__description-text {
  max-width: 425px;
  margin-right: 150px;
  padding-top: 25px;
}
.dualsense__text {
  display: block;
  padding-top: 21px;
}
.dualsense__text-violet {
  font-weight: 700;
  color: var(--button-color-first);
}
.dualsense__text-red {
  font-weight: 700;
  color: #ff4136;
}
.dualsense__price {
  margin-top: 25px;
  display: flex;
  align-items: center;
}
.dualsense__price-text {
  font-weight: 700;
  font-size: var(--fs30px);
  color: var(--color-title);
  margin-right: 33px;
}
.dualsense__btn {
  padding: 14px 19px;
}

/* ---- about.css ---- */
.about {
  margin-top: 90px;
  font-family: var(--font-family);
  max-width: 1920px;
  width: 100%;
}

.about__title {
  margin-bottom: 30px;
}
.about__video {
  width: 100%;
}
.about__video iframe {
  height: 100vh;
}
.about__video-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ---- requirements.css ---- */
.requirements__switch-btn {
  display: inline-block;
  width: 55px;
  height: 26px;
  border-radius: 19px;
  background: #30373f;
  z-index: 1;
  margin: 0 15px;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
  transition-duration: var(--transition-time);
}
.requirements__switch-btn::after {
  content: "";
  height: 18px;
  width: 18px;
  top: 4px;
  left: 4px;
  border-radius: 100%;
  background: var(--button-color-first);
  transition-duration: var(--transition-time);
  position: absolute;
  z-index: 1;
}
.switch-on {
  background: #30373f;
}
.switch-on::after {
  left: 33px;
}
.requirements {
  margin-top: 80px;
}
.requirements__text {
  margin-bottom: 30px;
}
.requirements__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 100px;
  color: var(--color-title);
  font-weight: 400;
  overflow: hidden;
}
.requirements__title {
  font-weight: 500;
  font-size: var(--fs18px);
  margin-bottom: 21px;
  text-align: center;
}
.requirements_preference-text {
  display: flex;
  align-items: center;
  color: #30373f;
  margin-bottom: 20px;
}
.requirements__price {
  font-weight: 700;
  font-size: var(--fs20px);
  margin-bottom: 55px;
}
.requirements-isActive {
  color: var(--color-title);
  transition: color var(--transition-time) ease-in-out;
}
.requirements__specification span {
  color: var(--color-title);
}
.requirements__specification {
  display: flex;
  position: relative;
  color: var(--button-color-first);
}

.requirements__specification-left {
  display: flex;
  align-items: flex-end;
  margin-right: 160px;
  padding-left: 110px;
}
.requirements__specification-background {
  width: 300px;
  height: 300px;
}

.requirements__specification-img {
  z-index: 0;
  position: absolute;
  bottom: 0;
}
.requirements__specification-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  line-height: 240%;
}
.btn-requirements {
  margin-top: 28px;
  font-weight: 500;
  font-size: var(--fs14px);
}
.requirements_system-ps{
  text-align: center;
}
/* ---- news.css ---- */
.news {
  width: 100%;
  max-width: 1920px;
  padding: 0 20px;
}

.news__title {
  margin-bottom: 30px;
}

.news__swiper-button-prev::after,
.news__swiper-button-next::after {
  content: "";
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='17'%3E%3Cpath d='M8 1L2 8.5 8 16' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center center no-repeat;
}
.news__swiper-button-prev:hover,
.news__swiper-button-next:hover {
  background-color: var(--button-color-first-hover);
}

.news__swiper-button-next::after {
  transform: rotate(180deg);
}

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

.cardnews__container {
  max-width: 615px;
  padding: 20px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--fs12px);
  background: linear-gradient(180deg, #30373f 22.4%, #141615 100%);
  border-radius: 6px;
}
.cardnews__head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: var(--fs10px);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.cardnews__name {
  color: var(--button-color-first);
}
.cardnews__date {
  color: var(--text-card-color);
}
.cardnews__title {
  font-weight: 600;
  font-size: var(--fs18px);
  text-transform: uppercase;
  color: var(--color-title);
  margin-bottom: 16px;
}
.cardnews__body {
  display: flex;
}
.cardnews__imeg-container {
  margin-right: 24px;
}
.cardnews__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cardnews__content-text {
  max-width: 256px;
  font-size: var(--fs12px);
  line-height: 142%;
  color: var(--text-card-color);
}

.cardnews__content-btn {
  padding: 7px 30px;
  background: var(--text-card-color);
}

@media (max-width: 1070px) {
  .cardnews__container {
    text-align: center;
  }
  .cardnews__imeg-container {
    margin: 0;
  }
  .cardnews__content {
    align-items: stretch;
  }
  .cardnews__content-text {
    padding: 20px 0;
    text-align: justify;
  }
  .cardnews__body {
    flex-direction: column;
  }
}

/* ---- faq.css ---- */
.faq {
  font-weight: 600;
  font-size: var(--fs18px);
  text-align: center;
  color: var(--color-title);
  margin-top: 100px;
  margin-bottom: 100px;
}
.faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq__accordion {
  max-width: 905px;
}

.faq__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid #8856d9;
  padding: 10px 0;
}

.faq__accordion-btn {
  width: 30px;
  height: 30px;
  background: var(--text-card-color);
  border-radius: 6px;
  transform: rotate(0deg);

  transition: background var(--transition-time) ease;
}
.faq__accordion-btn:hover {
  background: var(--button-color-first-hover);
}
.faq__accordion-btn-text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-time) ease;

  cursor: pointer;
}

.faq__accordion-span {
  color: #ff4136;
}

.accordion-btn-active {
  transform: rotate(50deg);
  transition: transform var(--transition-time) ease;
}

.faq__accordion-body {
  display: block;
  height: 0;
  font-weight: 400;
  font-size: var(--fs14px);
  text-align: left;
  transition: height var(--transition-time) ease;
  overflow: hidden;
  margin: 15px 0;
}

.faq__accordion-body-isactive {
  height: 50px;
  margin: 15px 0;
}

/* ---- footer.css ---- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-card-color);
}
.footer__container {
  max-width: 905px;
}
.footer-menu {
  width: 100%;
  margin-bottom: 50px;
}

.footer__menu-list {
  margin-left: 0;
}

.footer__language-title {
  font-weight: 700;
  text-transform: uppercase;
}

.footer__description {
  text-align: center;
  margin-bottom: 40px;
}
.footer__logo {
  align-items: center;
  margin-bottom: 20px;
}
.footer__year {
  margin-bottom: 15px;
}
.footer__developer,
.footer__year {
  font-size: var(--fs16px);
}
.footer__developer span {
  color: var(--button-color-first);
}


/* ---- снег без GIF ---- */
.header__snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 71% 28%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 87% 74%, #fff 50%, transparent 51%);
  background-size: 260px 260px, 320px 320px, 220px 220px, 380px 380px;
  animation: snowfall 18s linear infinite;
  opacity: .45;
  z-index: 1;
}
@keyframes snowfall {
  from { background-position: 0 -260px, 0 -320px, 0 -220px, 0 -380px; }
  to   { background-position: 0 100vh, 0 100vh, 0 100vh, 0 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .header__snow { animation: none; }
}

/* ---- слайдер новостей ---- */
.news__viewport { overflow: hidden; }
.news__track { display: flex; gap: 30px; transition: transform .45s ease; will-change: transform; }
.news__slide { flex: 0 0 calc((100% - 60px) / 3); min-width: 0; }
@media (max-width: 1070px) { .news__slide { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 720px)  { .news__slide { flex-basis: 100%; } }

/* видимая рамка фокуса для клавиатуры */
a:focus-visible, button:focus-visible, select:focus-visible, .menu__btn-container:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

/* ---- доработки разметки ---- */
.menu__btn-container,
.requirements_preference,
.about__video-facade,
.swiper__btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.requirements_preference.requirements-isActive { color: var(--color-title); }

/* фасад видео */
.about__video-facade {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(20, 24, 27, .35), rgba(20, 24, 27, .85)),
    url("../img/header.webp") center / cover no-repeat;
  transition: transform .3s ease;
}
.about__video-facade:hover { transform: scale(1.005); }
.about__video-play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(136, 86, 217, .92);
  position: relative;
}
.about__video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.about__video-label {
  font-size: var(--fs16px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.about__video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }

/* слайдер: позиционирование стрелок */
.news__swiper { position: relative; padding: 0 44px; }
.news__swiper-button-prev,
.news__swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.news__swiper-button-prev { left: 0; }
.news__swiper-button-next { right: 0; }
.news__swiper-button-prev::after,
.news__swiper-button-next::after { display: block; }
.swiper__btn:disabled { opacity: .35; cursor: default; }
.news__slide img { display: block; max-width: 100%; height: auto; border-radius: 4px; }

/* аккордеон: показываем весь текст */
.faq__accordion-body.is-open { height: auto; margin: 15px 0; }
.faq__accordion-btn[aria-expanded="true"] .faq__accordion-btn-text { transform: rotate(45deg); }
