body {
  background-color: var(--body-color);
}
.dfp-container {
  display: none;
}
.tower {
  max-width: none;
}
.page-footer {
  max-width: none;
  background-color: var(--footer-color);

  & .bottom-bar {
    margin-inline: auto;
    max-width: 1260px;
  }
}
.page-wrapper {
  margin-bottom: 20px;
}

.sbp {
  filter: grayscale(1);
  background-size: 90%;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;charset=UTF-8, %3csvg width='97' height='120' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 26.12l14.532 25.975v15.844L.017 93.863 0 26.12z' fill='%235B57A2'/%3e%3cpath d='M55.797 42.643l13.617-8.346 27.868-.026-41.485 25.414V42.643z' fill='%23D90751'/%3e%3cpath d='M55.72 25.967l.077 34.39-14.566-8.95V0l14.49 25.967z' fill='%23FAB718'/%3e%3cpath d='M97.282 34.271l-27.869.026-13.693-8.33L41.231 0l56.05 34.271z' fill='%23ED6F26'/%3e%3cpath d='M55.797 94.007V77.322l-14.566-8.78.008 51.458 14.558-25.993z' fill='%2363B22F'/%3e%3cpath d='M69.38 85.737L14.531 52.095 0 26.12l97.223 59.583-27.844.034z' fill='%231487C9'/%3e%3cpath d='M41.24 120l14.556-25.993 13.583-8.27 27.843-.034L41.24 120z' fill='%23017F36'/%3e%3cpath d='M.017 93.863l41.333-25.32-13.896-8.526-12.922 7.922L.017 93.863z' fill='%23984995'/%3e%3c/svg%3e");
}

.cards {
  filter: grayscale(1);
  width: 24px;
  height: 24px;
  background-size: 100%;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512.003 512.003' xml:space='preserve' fill='%23000000'%3e%3cg id='SVGRepo_bgCarrier' stroke-width='0'%3e%3c/g%3e%3cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3e%3c/g%3e%3cg id='SVGRepo_iconCarrier'%3e%3cpath style='fill:%23f5cc00;' d='M460.473,87.121H51.248c-28.214,0-51.168,22.954-51.168,51.168v235.425 c0,28.214,22.954,51.168,51.168,51.168h409.225c28.214,0,51.168-22.954,51.168-51.168V138.289 C511.642,110.075,488.687,87.121,460.473,87.121z'%3e%3c/path%3e%3cpath style='fill:%23ffd500;' d='M460.473,87.121H255.564v337.762h204.909c28.214,0,51.168-22.954,51.168-51.168V138.29 C511.642,110.075,488.687,87.121,460.473,87.121z'%3e%3c/path%3e%3crect y='147.047' style='fill:%23e72323;' width='512.003' height='80.052'%3e%3c/rect%3e%3crect x='255.561' y='147.047' style='fill:%23e60017;' width='256.431' height='80.052'%3e%3c/rect%3e%3cg%3e%3cpath style='fill:%23838287;' d='M230.342,386.783H55.619c-9.39,0-17.002-7.612-17.002-17.002c0-9.389,7.612-17.002,17.002-17.002 h174.724c9.39,0,17.002,7.612,17.002,17.002C247.345,379.171,239.732,386.783,230.342,386.783z'%3e%3c/path%3e%3cpath style='fill:%23838287;' d='M179.724,327.842H55.619c-9.39,0-17.002-7.612-17.002-17.002c0-9.39,7.612-17.002,17.002-17.002 h124.105c9.39,0,17.002,7.612,17.002,17.002C196.726,320.229,189.113,327.842,179.724,327.842z'%3e%3c/path%3e%3c/g%3e%3cpath style='fill:%23ee47fa;' d='M372.864,298.72c-5.161-2.408-10.914-3.76-16.986-3.76c-22.223,0-40.238,18.015-40.238,40.238 s18.015,40.238,40.238,40.238c6.071,0,11.824-1.353,16.986-3.76c-6.11-10.782-9.618-23.224-9.618-36.478 C363.245,321.945,366.753,309.502,372.864,298.72z'%3e%3c/path%3e%3ccircle style='fill:%23c01616;' cx='437.487' cy='335.202' r='40.238'%3e%3c/circle%3e%3crect y='227.1' style='fill:%23ffd500;' width='511.646' height='22.525'%3e%3c/rect%3e%3c/g%3e%3c/svg%3e");
}

.active .svg-icon-bg {
  filter: none;
}

.page-main-column {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}
.upper {
  text-transform: uppercase;
}
.header-section {
  background-image: linear-gradient(90deg, var(--bg-brand) 0%, var(--bg-brand-2) 55%, var(--bg-brand-3) 100%);
  background-repeat: no-repeat;
  margin-bottom: 20px;
  & .content {
    max-width: 1260px;
    margin-inline: auto;
    background-repeat: no-repeat;
    background-position: right center;
    background-image: var(--bg-image);
    padding: 48px 0;
    @media (width < 1300px) {
      padding-inline: 20px;
      background-position: right 20px center;
    }
  }

  & .header-title {
    font-size: 6.4rem;
    font-weight: bold;
    color: #fff;
    max-width: 60%;
    margin-bottom: 10px;
    line-height: 1;
  }

  & .header-subtitle {
    font-size: 2rem;
    color: #C7D2FE;
    max-width: 60%;
  }

  & .section-hotlinks {
    margin-bottom: 20px;
    display: flex;
    font-size: 1.4rem;
    color: #C7D2FE;
    gap: 50px;

    & .item {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;

      & .icon {
        width: 44px;
        aspect-ratio: 1 / 1;
        height: auto;
        border-radius: 14px;
        border: 1px solid #ffffff6b;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;

        & .svg-icon {
          width: 60%;
        }
      }
      & .title {
        font-weight: bold;
        font-size: 1.8rem;
      }
      &:hover {
        color: var(--brand-primary);
        & .icon {
          color: #fff;
          border: 1px solid var(--brand-primary);
          background-color: var(--brand-primary)
        }
      }
    }
  }
}

.digital-goods-wrapper {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  gap: 24px 32px;
  grid-template-columns: auto 330px;
  grid-template-rows: auto 1fr;

  & .header {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    
    & .nav-list {
      font-size: 1.6rem;
      border-radius: 16px;
      padding: 20px;
      background-color: #1F2937;
      border: 1px solid #334155;
      color: #E5E7EB;
      display: flex;
      gap: 10px;
      font-weight: bold;
      align-items: center;
      overflow-x: auto;
      cursor: grab;
      user-select: none;
      &.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
        & .btn {
          cursor: grabbing;
          scroll-behavior: auto;
        }
      }
      & .btn {
        padding: 8px 16px;
        font-weight: bold;
        border-radius: 16px;
        background-color: #111827;
        border: 1px solid #334155;
        display: flex;
        gap: 8px;
        align-items: center;
        color: #E5E7EB;

        &.active {
          background-color: var(--brand-second);
          border-color: var(--brand-second);
          color: #fff
        }

        &.region {
          & .svg-icon {
            width: 23px;
          }
        }
      }

      &::-webkit-scrollbar {
        width: 0;
        height: 0;
      }
      & .title {
        display: inline-flex;
        gap: 5px
      }
    }
  }

  & .main {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  & .aside {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  & .content-wrapper {
    padding: 24px;
    border-radius: 24px;
    background-color: #111827;
    color: #fff;
    border: 1px solid #1F2937;

    & .wrapper-title {
      font-weight: bold;
      font-size: 2.8rem;
      margin-bottom: 10px;
    }
  }
}

.goods-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));

  & .item {
    text-align: left;
    background-color: #1F2937;
    border: 1px solid #334155;
    padding: 16px;
    border-radius: 18px;

    & .title {
      font-weight: bold;
      font-size: 3.2rem;
      color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      line-height: 1;
      margin-bottom: 5px;
      & .svg-icon {
        width: 32px;
      }
    }
    & .name {
      font-size: 1.8rem;
      color: #C7D2FE;
      margin-bottom: 12px;
    }

    & .price {
      font-size: 2.4rem;
      color: #fff;
    }

    &.active {
      background-color: var(--brand-third);
      border-color: var(--brand-primary);
      outline: 1px solid var(--brand-primary);
    }

    &:hover {
      box-shadow: 0 0 10px var(--brand-primary);
    }

    &:disabled {
      opacity: 0.33;
      border-color: #000;

      &:hover {
        box-shadow: none;
      }
    }
  }
}

.payment-container {
  display: grid;
  gap: 20px;

  & .btn-set {
    display: flex;
    gap: 12px;

    & .btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #1F2937;
      color: #E5E7EB;
      font-size: 1.4rem;
      font-weight: bold;
      border: 1px solid #334155;
      border-radius: 18px;
      height: 72px;
      width: 100%;
      gap: 10px;
      padding: 10px;

      &.active {
        background-color: var(--brand-third);
        color: #fff;
        border-color: var(--brand-primary);
        outline: 1px solid var(--brand-primary);
      }
    }
  }

  .summary-info {
    font-size: 1.8rem;
    display: grid;
    gap: 10px;
    border-radius: 18px;
    padding: 16px;
    background-color: var(--brand-third);

    & .item {
      display: flex;
      justify-content: space-between;

      &.important {
        font-size: 3rem;
      }

      &:not(:last-child) {
        padding-bottom: 10px;
        border-bottom: 1px solid #cccccc42;
      }
    }
  }

  & .btn-main {
    color: #fff;
    border-radius: 18px;
    font-weight: bold;
    font-size: 2.4rem;
    padding-block: 12px;
    background-color: var(--brand-primary);
    box-shadow: 0 10px 20px var(--brand-shadow);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(120deg,
          transparent,
          rgba(255, 255, 255, 0.4),
          transparent);
      transition: left 0.6s ease;
    }

    &:hover {
      background-color: var(--brand-second);
      box-shadow: 0 12px 25px var(--brand-shadow-hover);

      &::before {
        left: 100%;
      }
    }
  }
  & .secondary-info {
    padding: 10px 16px;
    font-size: 1.4rem;
    display: flex;
    gap: 8px;
    background-color: var(--brand-third);
    border-radius: 20px;
    & .svg-icon {
      width: 20px;
    }
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.digital-goods-modal {
  & .modal-content {
    background-color: var(--brand-third);
    color: #fff;
    border: 5px solid var(--brand-second);
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    font-size: 1.6rem;
    & .code {
      background-color: #fff;
      color: var(--brand-primary);
      padding: 5px 20px;
      border-radius: 30px;
    }
    .close {
      width: 32px;
      aspect-ratio: 1 / 1;
      height: auto;
      position: absolute;
      right: 5px;
      top: 5px;
      color: #fff;
      z-index: 1;
      opacity: 1;
      & .svg-icon {
        width: 100%;
      }
    }
    & .spinner {
      width: 80px;
      height: auto;
      margin: 20px auto;
      aspect-ratio:  1 / 1;
      & .svg-icon {
        width: 100%;
        animation: rotate 2s linear infinite;
      }
    }
    & .btn {
      background-color: var(--brand-primary);
      color: #fff;
      font-size: 1.8rem;
      padding: 10px;
      margin: 20px 0;
    }
  }
  & a {
    text-decoration: underline;
    color: #fff;
    text-underline-offset: 5px;
    &:hover {
      color:  var(--main-color);
    }
  }
}
@media (max-width: 980px) {

  .page-main-column {
    padding: 0 !important;
  }

  .header-section {
    & .section-hotlinks {
      margin: 10px;
      display: flex;
      justify-content: space-around;
      gap: 10px;
      & .item {
        & .title {
          display: inline;
          font-size: inherit;
        }
        & .icon {
        flex-shrink: 0;
        width: 40px;
        }
        & .descriptor {
         display: none;
        }
      }
    }
  }

  .digital-goods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;

    & .main {
      align-self: auto;
    }
    & .content-wrapper {
      & .wrapper-title {
        font-weight: bold;
        font-size: 1.6rem;
        margin-bottom: 0;
      }
    }
  }
  .digital-goods-wrapper {
  & .header { 
    .content-wrapper {
      position: relative;
      & .title {
        position: absolute;
        transform: translate(0px, -40px);
        padding: 2px 10px;
        background-color: #1F2937;
        border-radius: 10px;
        font-size: 1.2rem;
        font-weight: normal;
        border-top: 1px solid #334155;
      }
    }
  }
  }
  .header-section {
    background-image: none;

    & .content {
      background-image: none;
      padding: 0;
    }
    & .header-title {
      display: none;
    }

    & .header-subtitle {
      display: none;
    }
  }

  .goods-list {
    & .item {
      &:disabled {
        display: none;
      }
      & .price {
        font-size: 1.6rem;
      }
      & .title {
        font-size: 2rem;
      }
    }
  }

  .aside {  
    position: relative;
    z-index: 10;

    & .content-wrapper {
      border-radius: 24px 24px 0 0;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    }
    &.is-preparing {
      transition: none !important;
    }

    &.is-floating {
      touch-action: none;
      position: fixed;
      left: 0;
      bottom: 0;
      right: 0;
      transform: translateY(100%);
      opacity: 0;
      visibility: hidden;
      transition: transform 0.2s linear;
      will-change: transform;
      & .drag-handle {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 5px;
        margin: 0 auto 20px;
        cursor: grab;
      }
      &.is-visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }
    }

    /* Минимизирован  */
    &.is-minimized {
      transform: translateY(calc(100% - 50px));
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      & .drag-handle { 
        background: var(--brand-primary)
      }
    }

    /* Отключаем transition во время перетаскивания */
    &.is-dragging {
      transition: none !important;
    }
  } 

  .payment-container {
    gap: 10px;

    & .btn-set {
      & .btn {
        flex-direction: row;
        justify-content: center;
        height: auto;
      }
    }

    & .summary-info {
      font-size: 1.4rem;

      & .item {
        &.important {
          font-weight: bold;
          font-size: 1.4rem;
        }
      }
    }

    & .btn-main {
      font-size: 1.4rem;
    }
  }
}