/** global style adaptapt */

.special-offer-body-class {
  font-family: "Open Sans", sans-serif;

  h2,
  h3,
  h4,
  h5,
  h4 {
    font-family: "Open Sans Bold", sans-serif;
  }

  .accordion-section {
    padding-top: 80px;
    padding-bottom: 80px;

    .section-title {
      font-size: 36px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
      color: black;
    }
  }

  section.experts {
    padding: 60px 0;

    .section-title {
      font-size: 36px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
      padding-bottom: 36px;
    }

    .row.bullet-section {
      display: flex;
      gap: 24px;
    }

    .single-block {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      row-gap: 12px;
      color: white;
      width: calc((100% - 24px * 2) / 3);

      img {
        width: fit-content;
      }
      & > * {
        margin-bottom: 0;
        padding-bottom: 0;
      }

      h3 {
        font-size: 32px;
        font-style: normal;
        font-weight: 700;
        line-height: 124%;
      }

      p {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 160%;
      }
    }
  }

  .differantiators {
    padding: 60px 0;
    position: relative;
    overflow: hidden;

    .cover-img {
      position: absolute;
      left: 0;
      bottom: 0;
    }

    .section-title {
      font-size: 36px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
      margin-bottom: 20px;
    }

    .elements-container {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      /* flex-wrap: wrap; */
      column-gap: 24px;
      row-gap: 16px;

      max-width: 612px;
      margin-left: auto;
    }

    .single-element {
      display: flex;
      column-gap: 24px;
      align-items: center;

      /* width: calc((100% - 24px) / 2); */

      &.last-centered {
        margin: 0 auto;
      }
    }
  }
  /* 
  .modal {
    padding-left: 15px;
  } */
}

@media (max-width: 1200px) {
  .special-offer-body-class {
    section.experts {
      .single-block {
        br {
          display: none;
        }
      }
    }
  }
}

@media (max-width: 1024px) {
  .special-offer-body-class {
    section.experts {
      .row.bullet-section {
        flex-wrap: wrap;
      }
      .single-block {
        width: 100%;
        padding: 0 15px;

        h3 {
          font-size: 1.5rem;
        }

        p {
          max-width: 450px;
          text-wrap: balance;
        }
      }
      /* .modal {
        padding-left: 0;
      } */
    }

    .differantiators .cover-img,
    .text-and-logo-block img {
      filter: saturate(0.75);
    }
  }
}

@media (max-width: 676px) {
  .special-offer-body-class {
    .accordion-section {
      padding-top: 40px;
      padding-bottom: 40px;
    }
  }
}

@media (max-width: 450px) {
  .special-offer-body-class {
    .differantiators {
      .single-element {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
      }
    }
  }
}

/** new rules for page's blocks */
.cta-with-animation,
.cta-block {
  background-color: #490080;
}

.cta-with-animation {
  overflow: hidden;
}

.cta-with-animation-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;

  .cta-with-animation-text-container {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    max-width: 612px;
    color: white;
    padding: 80px 0;
  }

  .cta-with-animation-buttons-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 12px;
    align-items: center;

    & > * {
      width: calc(50% - 8px);
      min-width: 291px;
      text-align: center;
    }
  }

  h2 {
    font-size: 58px;
    font-style: normal;
    font-weight: 700;
    line-height: 124%;
    margin-bottom: 0;
  }

  p {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    margin-bottom: 0;
  }

  .img-container {
    /* max-width: 459px;
    max-height: 459px;
    position: absolute;
    right: -60px;
    bottom: -28px; */

    position: absolute;
    width: 60vw;
    max-width: 968px;
    min-width: 800px;
    bottom: 0;
    left: calc(612px + 48px);

    img {
      height: 100%;
      width: 100%;
    }
  }
}

@media (min-width: 2000px) {
  .cta-with-animation.position-relative-on-wider-screens {
    position: relative;
  }
  .cta-with-animation-content {
    position: static;

    .img-container {
      right: 0;
      left: auto;
    }
  }
}

@media (max-width: 1200px) {
  .cta-with-animation-content {
    .img-container {
      right: -120px;
    }
  }
}

@media (max-width: 1024px) {
  .cta-with-animation-content {
    flex-direction: column;

    .img-container {
      position: static;
      margin-right: -200px;
    }

    .cta-with-animation-buttons-container {
      & > * {
        min-width: 0;
      }
    }
  }

  .cta-with-animation-text-container {
    padding: 48px 0;
  }
}

@media (max-width: 991px) {
  .cta-with-animation-content {
    h2 {
      font-size: 2.8rem;
    }
  }

  header.special-offer-page {
    height: fit-content;
  }
}

@media (max-width: 676px) {
  .cta-with-animation-content {
    .cta-with-animation-text-container {
      padding-top: 40px;
      padding-bottom: 48px;
    }
  }
}

@media (max-width: 500px) {
  .cta-with-animation-content {
    .cta-with-animation-buttons-container {
      & > * {
        width: 100%;
      }
    }

    .img-container {
      margin-right: 0;
      min-width: 500px;
    }
  }

  .cta-with-animation-text-container {
    padding: 24px 0;
  }
}

.cta-block {
  padding: 53px 0;

  .cta-block-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 36px;
  }

  .section-title {
    color: #f79430;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-align: center;
    max-width: 828px;
    margin-bottom: 0;
  }

  .cta-block-buttons-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 12px;
    align-items: center;
    justify-content: center;

    & > * {
      width: calc(50% - 8px);
      min-width: 298px;
      text-align: center;
    }
  }
}

@media (max-width: 1024px) {
  .cta-block {
    .cta-block-buttons-container {
      width: 100%;
      & > * {
        min-width: 0;
      }
    }
  }
}

@media (max-width: 500px) {
  .cta-block {
    .cta-block-buttons-container {
      & > * {
        width: 100%;
      }
    }
  }
}

.text-and-logo-block {
  /* background-color: #f3f7fd; */
  position: relative;
  padding-top: 66px;
  color: white;
  overflow: hidden;

  img {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
  }

  .p16 {
    color: white;
    font-weight: 400;
  }

  .text-and-logo-block-cover {
    background-image: url(../../images/Clients.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .text-and-logo-block-content {
    position: relative;
    z-index: 2;
    padding-top: 96px;
    padding-bottom: 108px;
    max-width: 610px;
    display: flex;
    flex-direction: column;
    row-gap: 16px;

    a {
      color: white;
      text-decoration: underline;
      &:hover {
        color: #e6e6e6;
      }
    }
  }

  .section-title {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .text-and-logo-block {
    padding-top: 0;
    img {
      top: auto;
    }
  }
}

.games-packages-block {
  width: 100%;
  overflow-x: hidden;

  background-color: #f3f7fd;
  padding-top: 80px;
  padding-bottom: 14px;

  position: relative;

  .coing-image-left {
    position: absolute;
    left: 0;
    top: 42%;
  }
  .coing-image-right {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .coing-image-small {
    position: absolute;
    top: 27%;
    right: 25px;
  }

  .section-title {
    color: rgba(0, 0, 0, 0.6);
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-align: center;
    margin-bottom: 36px;
  }

  .bottom-notes-container {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 53px;

    p {
      text-align: center;
    }

    a {
      text-decoration: none;
    }
  }

  .internal-text-list {
    list-style-type: circle;
    row-gap: 4px;
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 8px;
    li {
      padding: 0;
      border: none;
      display: flex;
      column-gap: 8px;
      align-items: center;
      line-height: normal;

      &::before {
        content: "•";
      }
    }
  }
}

.games-packages-block-elements {
  display: flex;
  gap: 40px;
}

.games-packages-block-element {
  border-radius: 20px;
  padding: 4px 2px;
  width: calc((100% - 22px * 2) / 3);
  background-color: #f3f7fd;
  position: relative;

  .stroke-border {
    z-index: 2;
    position: absolute;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    top: 0;
    left: 0;
  }

  .games-packages-block-element__case-img {
    position: absolute;
    top: -6.5%;
    right: -10%;
    z-index: 3;
    width: 60%;
  }

  .game-title,
  .game-subtitle {
    max-width: 65%;
  }

  .games-packages-block-element-content {
    border-radius: 20px;
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: white;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
  }

  .price-note-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    align-items: flex-end;
  }

  .game-title,
  .game-price {
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 124%;
    font-family: "Open Sans Bold", sans-serif;
  }

  .game-title {
    color: black;
    margin-bottom: 4px;
  }

  .game-price {
    color: #f79430;
    margin-top: 16px;
    margin-bottom: 0;

    &.color-blue {
      color: #007bff;
    }

    &.color-violet {
      color: #7317b9;
    }
  }

  ul {
    margin: 16px 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
  }

  li {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    list-style-type: none;
    display: flex;
    align-items: flex-start;
    column-gap: 8px;
  }

  li.without-border {
    border-bottom: 0;
  }

  .example-games-container {
    margin-top: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 12px;
    cursor: pointer;
    position: relative;
    z-index: 3;
    & > p {
      font-weight: 700;
      margin-bottom: 0;
    }
  }

  .choose-game-plan,
  .games-packages-block-element-text {
    position: relative;
    z-index: 4;
  }

  .choose-game-plan.color-blue {
    background-color: #007bff;
  }

  .choose-game-plan.color-violet {
    background-color: #7317b9;
  }

  .connects {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }
}
@media (max-width: 1200px) {
  .games-packages-block-element .game-subtitle br {
    display: none;
  }
}

@media (max-width: 992px) {
  .games-packages-block {
    .coing-image-small {
      top: 27%;
      right: -25px;
    }
  }

  .games-packages-block-elements {
    flex-direction: column;
  }

  .games-packages-block-element {
    width: 100%;

    .games-packages-block-element__case-img {
      right: -5.5%;
      max-width: 227px;
    }

    .game-title,
    .game-subtitle {
      max-width: 80%;
    }
  }
}

@media (max-width: 768px) {
  .games-packages-block {
    padding-top: 40px;
    padding-bottom: 36px;

    .coing-image-left,
    .coing-image-right,
    .coing-image-small {
      display: none;
    }
  }

  .games-packages-block-element {
    .games-packages-block-element__case-img {
      position: absolute;
      top: -6.5%;

      z-index: 3;

      right: -6.5%;
      width: 45%;

      max-width: 200px;
    }

    .game-title,
    .game-subtitle {
      max-width: 75%;
    }
  }
}

@media (max-width: 350px) {
  .games-packages-block-element {
    .games-packages-block-element__case-img {
      top: -4%;
      right: -11%;
    }
  }
}

/** form */

.special-offer-body-class {
  select.games-plan {
    position: static;
    cursor: pointer;

    option {
      font-size: 14px;
      color: black;
    }
  }

  .field:has(.games-plan.invalid) {
    margin-bottom: 40px;
  }
}

div.games-modal-dialog {
  max-width: 1060px;
}

div.games-modal-content {
  padding: 24px 32px;
  border-radius: 20px;
  background: #f3f7fd;
  box-shadow: 0px 8px 16px -2px rgba(27, 33, 44, 0.12);

  .games-modal-top-part {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;

    .close {
      position: absolute;
      top: 0;
      right: 0;
      color: black;
      font-size: 32px;
    }

    h2 {
      color: black;
      font-size: 32px;
      font-style: normal;
      font-weight: 700;
      line-height: 124%;
    }

    p {
      color: black;
    }
  }

  .games-modal-elements-part {
    display: flex;
    justify-content: center;
    row-gap: 24px;
    margin-top: 24px;
  }

  .games-modal-elements-part.two-elements-inside {
    .games-modal-element {
      padding: 0 24px;
      min-width: 340px;
    }
  }

  .games-modal-element {
    padding: 0 12px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    width: calc(100% / 3);

    & p:first-child {
      margin-bottom: 8px;
      span {
        font-weight: 700;
        color: #f79430;
      }
    }

    .subtitle {
      margin-bottom: 4px;
    }

    ul {
      margin-bottom: 0;
      padding-left: 24px;
    }
  }

  .games-modal-element:nth-of-type(2) {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
  }

  .games-modal-element:last-of-type {
    border-right: none;
  }
}

@media (max-width: 768px) {
  div.games-modal-content {
    padding-top: 32px;
    .games-modal-top-part {
      .close {
        top: -28px;
        right: -20px;
      }
    }
    .games-modal-elements-part {
      flex-direction: column;
    }
    .games-modal-element:nth-of-type(2) {
      border-left: none;
      border-right: none;
    }

    .games-modal-elements-part.two-elements-inside .games-modal-element {
      padding: 0 12px;
      padding-bottom: 24px;
    }
    .games-modal-element {
      width: 100%;
      border-bottom: 1px solid rgba(0, 0, 0, 0.2);
      padding-bottom: 24px;
    }

    .games-modal-element:last-of-type {
      border-bottom: none;
    }
  }
}

a.connects-transparent {
  background-color: transparent;
  padding: 15px 15px 15px 15px;
  border-radius: 23px;
  color: #fff;
  font-weight: 600;
  letter-spacing: normal;
  font-family: "Open Sans", sans-serif;
  border-radius: 20px;
  border: 1px solid var(--Orange, #f79430);
}

.p16 {
  color: black;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  margin-bottom: 0;
}

button.close:focus,
button.close:active {
  outline: none;
}

/** big video block */
.big-video-block {
  margin: 80px 0;

  .section-title {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-align: center;
    margin-bottom: 36px;
  }

  video {
    box-shadow: rgb(38, 57, 77) 0px 14px 30px -5px;
    border-radius: 20px;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .big-video-block {
    margin: 40px 0;
  }
}

.games-demos-block {
  padding-top: 80px;
  padding-bottom: calc(120px - 66px);

  .section-title {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 12px;
  }

  .games-demos-block__elements {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .games-demos-block__element {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 20px 0 rgba(100, 111, 101, 0.09);
    transition: box-shadow 0.3s ease-out;

    &:hover {
      box-shadow: 0 3px 23px 0 rgba(100, 111, 101, 0.18);
      text-decoration: none;

      .image-container img {
        transform: scale(1.06);
      }
    }

    &:active {
      .games-demos-block__element--text {
        background-color: #f8f9f8;
      }

      .image-container img {
        transform: scale(1);
      }
    }

    .image-container {
      width: 100%;
      height: 200px;
      overflow: hidden;
      position: relative;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease-out;
      transform-origin: center center;
      will-change: transform;
    }
  }

  .games-demos-block__element--text {
    background-color: #fff;
    padding: 16px;
    transition: background-color 0.2s ease-in-out;
  }

  .game-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 124%;
    color: black;
  }

  .play-demo-button {
    margin-top: 52px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    color: #f79430;

    &::after {
      content: url(../../images/icons/arrow-up-right.svg);
    }
  }
}

@media (max-width: 992px) {
  .games-demos-block {
    .games-demos-block__elements {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .play-demo-button {
      margin-top: 32px;
    }
  }
}

@media (max-width: 500px) {
  .games-demos-block {
    .games-demos-block__elements {
      grid-template-columns: 1fr;
    }
  }
}
