/* header  + hero  */

#home {
  padding-top: 20px;
}

.home-container {
  position: relative;
}

.home-title {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: var(--gray-1);
  margin-bottom: 20px;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50px;
  right: 28px;
  z-index: 9;
}

.svg {
  stroke: var(--my);
}

.hero-image {
  margin-bottom: 112px;
}

.hero-image2 {
  display: none;
}

.home-sub-title {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--gray);
  max-width: 236px;
  position: absolute;
  top: 357px;
  left: 16px;
}

.home-hero-text {
  font-family: var(--second-family);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: var(--gray);
  margin-bottom: 80px;
}

.home-link {
  display: block;
  width: 343px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.home-link:hover {
  transform: scale(0.95);
}

.navigation {
  display: none;
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  text-align: right;
  color: var(--gray-1);
  transition: color 0.3s ease;
}

.navigation-item:hover {
  color: var(--my);
}

.modal {
  position: fixed;
  top: 98px;
  left: 50%;
  border-radius: 20px;
  padding: 28px 30px;
  background: linear-gradient(113deg, #f4f4f4 0%, #91f3f5 51.98%, #f4f4f4 100%);
  transform: translateX(-50%) translateY(-150%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

.hero-navigation-list {
  display: none;
}

@media screen and (min-width: 768px) {
  .hero-image {
    display: none;
  }

  .hero-image2 {
    display: block;
    flex-shrink: 0;
    margin-bottom: 112px;
  }

  .home-sub-title {
    top: 527px;
    left: 32px;
  }

  .home-hero-text {
    font-size: 20px;
  }
}

@media screen and (min-width: 1437px) {
  .open-modal {
    display: none;
  }

  #home {
    padding-top: 32px;
  }

  .home-title {
    position: absolute;
    font-size: 28px;
    top: 24px;
    left: 50%;
    transform: translateX(-110px);
  }

  .home-sub-title {
    font-size: 60px;
    max-width: 441px;
    top: auto;
    left: 105px;
    bottom: 0;
  }

  .home-hero-text {
    border-radius: 26px;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.4);
    max-width: 397px;
    font-size: 20px;
    position: absolute;
    top: auto;
    bottom: 40px;
    left: 50%;
    margin: 0;
    transform: translateX(-130px);
  }

  .hero-navigation-list {
    border-radius: 30px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 32px;
    background: linear-gradient(
      113deg,
      rgba(244, 244, 244, 0.7) 0%,
      rgba(145, 243, 245, 0.7) 51.98%,
      rgba(244, 244, 244, 0.7) 100%
    );
    margin-bottom: 34px;
    margin-top: 60px;
  }

  .home-img-wrap {
    display: flex;
    align-items: flex-start;
    gap: 34px;
  }

  .home-link {
    width: 304px;
  }
}

/* study */

.study-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    border-radius: 20px;
    padding: 36px 32px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(114, 143, 172, 0.3) 53.06%,
      rgba(99, 223, 217, 0.3) 100%
    );
  }

  h5 {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 112px;
    color: #fff;
    margin-bottom: 16px;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);

    span {
      font-style: italic;
      font-size: 24px;
      color: var(--gray-1);
    }
  }
}

@media screen and (min-width: 1437px) {
  .study-list {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;

    li {
      width: calc((100% - 64px) / 3);
    }
  }
}

/* when */

.when-photo {
  margin: 40px auto;
}

.when-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    border-radius: 20px;
    padding: 32px;
    background: linear-gradient(
      179deg,
      rgba(153, 153, 153, 0.1) 0%,
      rgba(255, 255, 255, 0.1) 100%
    );

    font-family: var(--second-family);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 117%;
    color: var(--gray);
  }

  span {
    font-size: 24px;
  }
}

@media screen and (min-width: 1437px) {
  .when-container {
    background: url(../images/fon.png);
    background-position: left 0 bottom 150px;
    background-repeat: no-repeat;
    background-size: 390px;
  }
  .when-photo {
    display: none;
  }

  .when-list {
    margin-top: 27px;
    gap: 0;
    align-items: flex-start;
    background-image: url(../images/photo.png);
    background-position: center;
    background-repeat: no-repeat;

    li {
      width: 456px;
    }

    .item2 {
      align-self: flex-end;
    }

    .item-margin {
      width: 621px;
      margin-bottom: 130px;
    }
  }
}

/* mechanics-text */

.machanics-images {
  position: absolute;
  width: 258px;
  right: 0;
  top: -100px;
  z-index: -1;
}

.mechanics-text {
  border: 0.4px solid var(--light-gray);
  border-radius: 16px;
  padding: 20px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--gray);
  margin: 40px 0;
}

.mechanics-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.mechanics-item {
  border: 0.4px solid var(--light-gray);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(
    160deg,
    #f4f4f4 0%,
    #defffd 47.87%,
    #f4f4f4 95.67%
  );

  img {
    width: 111px;
    margin-left: auto;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 118%;
    color: var(--gray-1);
    margin-bottom: 12px;
  }

  ul {
    padding-left: 20px;
    list-style: disc;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);
  }
}

.mechanics-description {
  border: 0.4px solid var(--light-gray);
  border-radius: 16px;
  padding: 20px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--gray);
}

@media screen and (min-width: 768px) {
  .mechanics-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mechanics-item {
    width: calc((100% - 40px) / 2);
  }
}

@media screen and (min-width: 1437px) {
  .machanics-images {
    width: auto;
    top: -200px;
  }

  .mechanics-list {
    align-items: flex-end;
    gap: 32px;
    margin-top: 120px;
  }

  .mechanics-item {
    width: calc((100% - 96px) / 4);
  }

  .mechanics-description {
    font-size: 22px;
    max-width: 953px;
  }

  .mechanics-text {
    font-size: 22px;

    margin: 0;
    width: 943px;
    position: absolute;
    top: 350px;
    right: 80px;
  }

  .mechanics-item1 {
    padding-top: 53px;
    padding-bottom: 53px;
  }
}

/* weight */

.weight-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;

  h5 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 118%;
    text-align: center;
    color: var(--gray);
  }
}

.frame2 {
  transform: scaleY(-1);
}

.weight-item {
  div {
    border-radius: 20px;
    padding: 20px 16px;
    background: #fff;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 118%;
    color: var(--gray-1);
    margin-bottom: 12px;
  }

  span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);
  }
}

@media screen and (min-width: 1437px) {
  .weight-list {
    gap: 98px;
    align-items: center;
    margin-top: 120px;

    h5 {
      font-size: 32px;
      width: 833px;
    }
  }

  .weight-item {
    width: 732px;

    p {
      font-size: 24px;
      margin-bottom: 16px;
    }

    div {
      padding: 32px 40px;
    }
  }
}

/* how */

.how-swiper {
  margin-top: 40px;
  position: relative;
}

.how-item {
  border: 0.4px solid #fff;
  border-radius: 20px;
  padding: 40px 20px;
  padding-right: 80px;
  box-shadow: 0 4px 10px 0 rgba(186, 219, 217, 0.5);
  background: #fff;
  width: 340px;
  max-width: 100%;
  min-height: 367px;
  margin-right: -60px; /* отрицательный отступ для наложения */
  transition: transform 0.3s ease;

  h5 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 108%;
    color: var(--gray-1);
    margin-bottom: 16px;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);

    span {
      font-family: var(--font-family);
      font-weight: 500;
      font-size: 22px;
    }
  }
}

.swiper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 9;
}

.how-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 118%;
  color: var(--gray);
  margin-top: 40px;
}

@media screen and (min-width: 1437px) {
  .swiper-btn {
    display: none;
  }

  .how-swiper {
    margin-top: 120px;
  }

  .how-text {
    font-size: 24px;
    margin-top: 80px;
  }
}

/* game-list */

.curve-mobile {
  margin: 40px 0;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 20px;
    border-left: 2px dashed #a7ff4d;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 36px;
    line-height: 100%;
    color: var(--light-gray);
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);

    span {
      display: block;
      font-family: var(--font-family);
      font-weight: 500;
      font-size: 22px;
      line-height: 118%;
    }
  }
}

.curve-desctop {
  display: none;
}

.game-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 118%;
  color: var(--gray-1);
  margin-top: 80px;
  margin-bottom: 40px;
}

.game-image-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;

  li {
    width: 257px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 108%;
    text-align: center;
    color: var(--gray);
  }

  img {
    width: 131px;
  }
}

.game-description {
  font-family: var(--second-family);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: var(--gray-1);
  margin-top: 40px;
}

@media screen and (min-width: 768px) {
  .game-image-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 40px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .game-sub-title {
    text-align: end;
  }

  .curve-mobile {
    display: none;
  }

  .curve-desctop {
    display: block;
    margin: 0 auto;
  }

  .game-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 120px;

    .second-title,
    .sub-title {
      margin: 0;
    }
  }

  .game-list {
    flex-direction: row;
    gap: 88px;
    align-items: flex-start;
    justify-content: center;

    li {
      width: 210px;
    }

    h5 {
      display: none;
    }
  }

  .game2 {
    transform: translateY(46px);
  }

  .game-title {
    font-size: 32px;
  }

  .game-image-list {
    gap: 102px;

    li {
      width: calc((100% - 306px) / 4);
    }
  }

  .game-description {
    font-size: 28px;
    margin-top: 80px;
    text-align: end;
  }
}

/* kinoglossary-top-mobile */

.kinoglossary-top-mobile {
  margin-top: 40px;
  margin-bottom: 32px;
}

.kinoglossary-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  text-align: center;
  color: var(--gray-1);
  margin-bottom: 32px;

  span {
    font-style: italic;
    font-size: 24px;
  }
}

.kinoglossary-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;

  li {
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 20px 24px;
  }

  p {
    font-family: var(--second-family);
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    line-height: 117%;
    color: var(--gray-1);
    margin-bottom: 8px;
  }

  span {
    display: block;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);
  }
}

.kinoglossary-top-desctop {
  display: none;
}

.kinoglossary-bottom-desctop {
  display: none;
}

@media screen and (min-width: 768px) {
  .kinoglossary-top-mobile {
    display: none;
  }

  .kinoglossary-bottom-mobile {
    display: none;
  }

  .kinoglossary-top-desctop {
    display: block;
    margin-top: 40px;
    margin-bottom: 32px;
  }

  .kinoglossary-bottom-desctop {
    display: block;
  }
}

@media screen and (min-width: 1437px) {
  .kinoglossary-title-wrap {
    position: relative;
  }

  .kinoglossary-sub-title {
    position: absolute;
    top: 0;
    right: 0;
    width: 458px;
  }

  .kinoglossary-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 237px;
    margin: 0;
  }

  .kinoglossary-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;

    li {
      width: 438px;
    }

    .kinoglossary-item {
      width: calc((100% - 40px) / 2);
    }

    .kinoglossary-item4 {
      width: 570px;
      height: 166px;
    }
  }

  .kinoglossary-list-wrapper {
    position: relative;
  }

  .kinoglossary-bottom-desctop {
    position: absolute;
    bottom: 0;
    right: 0;
  }
}

/* level  */

.level-container {
  position: relative;
  margin-top: 80px;
  padding-top: 80px;
  padding-bottom: 100px;
}

.level-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.level-desctop {
  display: none;
}

.level-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 118%;
  text-align: center;
  color: var(--gray-1);
  margin-bottom: 8px;
}

.level-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--gray);
  margin-bottom: 40px;
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  img {
    width: 80px;
    flex-shrink: 0;
  }

  p {
    width: 100%;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--gray);

    border: 0.4px solid var(--gray-1);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
  }
}

.level-description {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 118%;
  color: var(--gray-1);
  margin-top: 40px;
}

@media screen and (min-width: 1437px) {
  .level-desctop {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .level-mobile {
    display: none;
  }

  .level-container {
    width: 1334px;
    padding-top: 118px;
    padding-bottom: 114px;
    margin-top: 120px;
    background-image: url(../images/level/text.png);
    background-position: center;
    background-repeat: no-repeat;
  }

  .level-title {
    font-size: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: start;
    margin-left: 150px;
  }

  .level-text {
    font-size: 24px;
    margin-bottom: 64px;
    margin-left: 150px;
  }

  .level-list {
    width: 892px;
    margin: 0 auto;

    li {
      position: relative;
    }

    p {
      padding: 24px;
      font-size: 24px;
    }

    img {
      width: 105px;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  .level-description {
    font-size: 24px;
    margin-top: 80px;
  }
}

/* players */

.player-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 93%;
  color: var(--gray-1);
  margin-top: 32px;

  span {
    font-weight: 400;
    font-size: 28px;
    font-style: italic;
  }
}

.player-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--gray-1);
  margin-top: 24px;

  span {
    font-style: italic;
    font-size: 24px;
  }
}

.player-list-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 24px;
  line-height: 108%;
  color: var(--gray-1);
  margin-top: 24px;
}

.player-list {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
}

@media screen and (min-width: 1437px) {
  .player-wrapper {
    display: flex;
    align-items: center;
  }
  .players-container {
    padding-left: 0;
  }

  .player-title {
    font-size: 24px;
  }

  .player-text {
    margin-top: 28px;
  }
  .player-list-title {
    margin-top: 28px;
  }
}

/* footer */

.footer {
  padding-bottom: 12px;
}

.footer-container {
  padding-top: 40px;
  padding-bottom: 16px;
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(244, 244, 244, 0.7) 4.33%,
    rgba(139, 255, 249, 0.7) 52%,
    rgba(244, 244, 244, 0.7) 100%
  );
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  text-align: right;
  color: var(--gray-1);
  margin-bottom: 40px;

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: var(--my);
  }
}

.footer-list {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  text-align: right;
  color: var(--gray-1);

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: var(--my);
  }
}

.footer-description {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 129%;
  color: var(--gray);
  text-align: center;
  max-width: 169px;
  margin: 0 auto;
}

@media screen and (min-width: 1437px) {
  .footer {
    padding-bottom: 32px;
  }

  .footer-container {
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .footer-list-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .footer-nav-list {
    gap: 24px;
    font-size: 20px;
    margin: 0;
  }

  .footer-list {
    margin: 0;
    flex-direction: row;
    font-size: 20px;
    gap: 32px;
  }

  .footer-description {
    font-size: 18px;
    max-width: 100%;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 40px 16px;
  background: linear-gradient(
    160deg,
    #f4f4f4 0%,
    #defffd 47.87%,
    #f4f4f4 95.67%
  );
  transition: transform 0.5s ease;
}

.popup-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 118%;
  text-align: center;
  color: #101010;
  margin-bottom: 12px;
}

.popup-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  text-align: center;
  color: #101010;
  margin-bottom: 80px;
}

.popup-btn {
  padding: 13px;
  background: var(--light-gray);

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--gray-1);

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: var(--my);
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 43px 189px;
  }

  .popup-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .popup-title {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: start;
  }

  .popup-text {
    margin: 0;
    text-align: start;
  }

  .popup-btn {
    padding: 13px 70px;
  }

  .popup-wrap {
    flex-shrink: 0;
  }
}
