/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@font-face {
  font-family: "Inter";
  src: url("/Inter-Regular.woff2") format("woff2");
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  background: -webkit-gradient(
      linear,
      left top,
      left bottom,
      from(rgba(0, 0, 0, 0.8)),
      to(rgba(0, 0, 0, 0.7))
    ),
    url("./img/players.webp") no-repeat center;
  background: -o-linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
    url("./img/players.webp") no-repeat center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
    url("./img/players.webp") no-repeat center;
  background-size: cover;
}

/* Стили для шапки */
.header {
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;
}

.header__logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
}

.header__nav {
  list-style: none;
  margin: 0 auto 0 25px;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 35px;
}

.header__nav-item {
  margin: auto;
}

.header__nav-item a {
  font-family: "Inter", sans-serif;

  font-size: 24px;
  cursor: pointer;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: bolder;
}
.header__nav-item a {
  position: relative;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.header__nav-item a:hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  -webkit-animation: underlineAnimation 0.3s ease;
  animation: underlineAnimation 0.3s ease;
}

@-webkit-keyframes underlineAnimation {
  0% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}

@keyframes underlineAnimation {
  0% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}
.header__button {
  background-color: #f32c46;
  color: #fff;
  border: none;
  padding: 13px 50px;
  cursor: pointer;
  font-size: 24px;
}

.header__button:hover {
  background-color: #e53935;
  color: #fff;
  -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Стили для главного контента */
.main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 40px;
}

.main__hero-title {
  font-size: 62px;
  margin-bottom: 20px;
  color: rgb(255, 255, 255);
  font-weight: 800;
}
.main__hero-subtitle {
  margin-bottom: 20px;
  padding: 8px 12px 8px 12px;
  color: rgb(255, 255, 255);
  background: #33333387;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

.main__hero-text {
  font-size: 26px;
  margin-bottom: 30px;
  color: rgb(255, 255, 255);
}

.main__hero-button {
  background-color: #f32c46;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 26px;
  cursor: pointer;
}
.main__hero-button:hover {
  background-color: #e53935;
  color: #fff;
  -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.main__hero-button:after {
  content: url(img/arrows.svg);
  display: inline-block;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  vertical-align: middle;
  width: 19px;
  margin-left: 10px;
}

.main__image {
  border-radius: 10px;
  width: 623px;
  height: 773px;
  -o-object-fit: contain;
  object-fit: contain;
}
.main__image-mobile {
  display: none;
}
.main__image-mobile2 {
  display: none;
}
.header__social {
  margin-right: 70px;
}
.header__social ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  gap: 10px;
}

.header__social-item {
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  list-style-type: none;
}

.header__social-item:hover {
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}

.header__social-item a {
  display: block;

  -webkit-transition: opacity 0.3s ease;

  -o-transition: opacity 0.3s ease;

  transition: opacity 0.3s ease;
}

.header__social-item a:hover {
  opacity: 1;
}

.header__social-item img {
  width: 50px;
  height: 50px;
}

/* Стили для секции с мячами */

.balls__info {
  background-color: #f43b3b;
  padding: 10px 51px;
  margin-top: -44px;
  border-radius: 20px;
  color: white;
}

.balls__title {
  font-size: 27px;
  margin-bottom: 20px;
}

.balls__description {
  font-size: 22px;
  margin-bottom: 40px;
}

.balls__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 25px 25px 45px;
  background: #151f1c;
  margin: 25px auto;
}

.balls__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: #fff;
  padding: 20px;
  margin: 10px;
  width: 100%;
  border-radius: 10px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.balls__item-info {
  text-align: start;
}
.balls__item-image {
  width: 92px;
}

.balls__item-title {
  font-size: 18px;

  font-weight: 700;
}

.balls__item-description {
  font-size: 18px;
  color: #666;
}

/* Бургер */
.menu-burger {
  display: none;
}
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}
.burger {
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: block;
  position: relative;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
  z-index: 3;
}
.burger::before,
.burger::after {
  content: "";
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #ffffff;
}
.burger::before {
  top: 0;
  -webkit-box-shadow: 0 11px 0 #ffffff;
  box-shadow: 0 11px 0 #ffffff;
  -webkit-transition: top 0.3s 0.15s, -webkit-box-shadow 0.3s 0.15s,
    -webkit-transform 0.3s;
  transition: top 0.3s 0.15s, -webkit-box-shadow 0.3s 0.15s,
    -webkit-transform 0.3s;
  -o-transition: box-shadow 0.3s 0.15s, top 0.3s 0.15s, transform 0.3s;
  transition: box-shadow 0.3s 0.15s, top 0.3s 0.15s, transform 0.3s;
  transition: box-shadow 0.3s 0.15s, top 0.3s 0.15s, transform 0.3s,
    -webkit-box-shadow 0.3s 0.15s, -webkit-transform 0.3s;
}
.burger::after {
  bottom: 0;
  -webkit-transition: bottom 0.3s 0.15s, -webkit-transform 0.3s;
  transition: bottom 0.3s 0.15s, -webkit-transform 0.3s;
  -o-transition: bottom 0.3s 0.15s, transform 0.3s;
  transition: bottom 0.3s 0.15s, transform 0.3s;
  transition: bottom 0.3s 0.15s, transform 0.3s, -webkit-transform 0.3s;
}
.burger-checkbox:checked + .burger::before {
  top: 11px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  -webkit-transition: top 0.3s, -webkit-box-shadow 0.15s,
    -webkit-transform 0.3s 0.15s;
  transition: top 0.3s, -webkit-box-shadow 0.15s, -webkit-transform 0.3s 0.15s;
  -o-transition: box-shadow 0.15s, top 0.3s, transform 0.3s 0.15s;
  transition: box-shadow 0.15s, top 0.3s, transform 0.3s 0.15s;
  transition: box-shadow 0.15s, top 0.3s, transform 0.3s 0.15s,
    -webkit-box-shadow 0.15s, -webkit-transform 0.3s 0.15s;
}
.burger-checkbox:checked + .burger::after {
  bottom: 11px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transition: bottom 0.3s, -webkit-transform 0.3s 0.15s;
  transition: bottom 0.3s, -webkit-transform 0.3s 0.15s;
  -o-transition: bottom 0.3s, transform 0.3s 0.15s;
  transition: bottom 0.3s, transform 0.3s 0.15s;
  transition: bottom 0.3s, transform 0.3s 0.15s, -webkit-transform 0.3s 0.15s;
}
.menu-list {
  top: 0;
  right: 0;
  position: absolute;
  display: -ms-grid;
  display: grid;
  gap: 12px;
  padding: 100px 0 200px;
  margin: 0;
  background: #000000f5;
  list-style-type: none;
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  max-width: 360px;
  width: 100%;
  z-index: 1;
}
.menu-item {
  display: block;
  padding: 8px;
  color: white;
  font-size: 27px;
  text-align: center;
  text-decoration: none;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.2);
}
.burger-checkbox:checked ~ .menu-list {
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}
.header__button-menu {
  display: block;
  padding: 15px;
  font-size: 27px;
}

/* Карусель */

.carousel-wrapper {
  display: none;
  height: 158px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.carousel-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 50px;
  opacity: 0;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 12px;
}

.arrow-prev {
  left: 35px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(135deg);
  -ms-transform: translateY(-50%) rotate(135deg);
  transform: translateY(-50%) rotate(135deg);
}

.arrow-next {
  right: 35px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(-45deg);
  -ms-transform: translateY(-50%) rotate(-45deg);
  transform: translateY(-50%) rotate(-45deg);
}

.light {
  color: white;
}

/**/
[id^="item"] {
  display: none;
}

.item-1 {
  z-index: 2;
  opacity: 1;
}

*:target ~ .item-1 {
  opacity: 0;
}

#item-1:target ~ .item-1 {
  opacity: 1;
}

#item-2:target ~ .item-2,
#item-3:target ~ .item-3 {
  z-index: 3;
  opacity: 1;
}

/*  */
@media (max-width: 1540px) {
  .header__nav-item a {
    font-size: 20px;
  }
  .header__social-item img {
    width: 38px;
    height: 38px;
  }
  .header__social {
    margin-right: 12px;
  }
}

@media (max-width: 1265px) {
  .main {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .main__hero {
    margin-bottom: 40px;
  }
}
@media (max-width: 1060px) {
  .menu-burger {
    display: block;
  }
  .header__nav {
    display: none;
  }
  .header__button {
    display: none;
  }
  .balls__item {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 6px;
  }
  .balls__item-image {
    height: 75px;
  }
  .balls__item-description {
    margin: auto;
  }
  .balls__item-slider {
    width: unset;
  }
  .main__image {
    border-radius: 10px;
    width: 386px;
    height: 480px;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 10px;
  }
  .balls__info {
    margin-top: -20px;
  }
  .header__logo {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .header__nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 10px;
  }

  .header__nav-item {
    margin-left: 0;
    margin-bottom: 5px;
  }
  .container {
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(rgba(0, 0, 0, 0.8)),
        to(rgba(0, 0, 0, 0.7))
      ),
      url("./img/players-min.webp") no-repeat center;
    background: -o-linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
      url("./img/players-min.webp") no-repeat center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
      url("./img/players-min.webp") no-repeat center;
    background-size: cover;
  }
  .main {
    padding: 20px;
  }

  .main__image {
    width: 294px;
    height: 366px;
  }

  .balls__list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .balls__item-image {
    height: 80px;
    width: 77px;
  }
  .balls__list {
    display: none;
  }
  .carousel-wrapper {
    display: block;
  }
  .main__image-pc {
    display: none;
  }
  .main__image-mobile {
    display: block;
  }
}
@media (max-width: 500px) {
  .main__hero-title {
    font-size: 34px;
  }
  .balls__description {
    font-size: 18px;
  }
  .main__hero-text {
    font-size: 18px;
  }
  .balls__title {
    font-size: 18px;
  }
  .main__image-mobile {
    display: none;
  }
  .main__image-mobile2 {
    display: block;
  }
  .main__image {
    margin-top: -21px;
  }
  .header__logo-img img {
    width: 65px;
  }
  .header__social-item img {
    width: 25px;
    height: 25px;
  }
}
