/* Планшетные стили - max-width: 1024px */
@media screen and (max-width: 1024px) and (min-width: 669px) {
  .header::before {
    display: none;
  }

  .base-block {
    margin-top: 32px;
    padding: 0px 32px;
  }

  /* Header */
  .header {
    position: fixed;
    left: 0;
    top: 0;
    min-height: 56px;
    padding: 0px 8px;
  }

  .header-wrapper {
    position: relative;
    height: 56px;
  }

  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 24px;
  }

  .header-logo img {
    height: 24px;
    width: 158px;
  }

  .header-burger-button-wrapper {
    position: absolute;
    right: 0;
  }

  .header-burger-button {
    display: flex;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 4px 0px #0000003D;
    border-radius: 4px;
  }

  .header-burger-button img {
    z-index: 2;
  }

  .header-burger-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.00) 100%), radial-gradient(100.01% 100% at 50% 0%, #333348 0%, #252535 100%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: -1;
  }

  .header-burger-button:hover::after {
    z-index: 0;
    opacity: 1;
  }

  .header-burger-button::before {
    border-radius: 4px;
  }

  /* Кнопки в шапке - всегда видимы */
  .header-buttons-wrapper {
    display: flex;
    gap: 8px;
    position: static;
    transform: none;
    flex-direction: row;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding: 0;
  }

  .header-burger-button-wrapper {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .header-social-buttons-wrapper {
    display: none;
  }

  .header-lang {
    display: none;
  }

  .header-button.header-enter-button,
  .header-button.header-register-button {
    display: flex;
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .header-buttons-wrapper.active {
    transform: translateX(0);
  }

  .header-nav {
    display: flex;
    flex-direction: column;
  }

  .header-nav-item {
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0px;
    text-align: left;
    color: #8A8AAE;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .header-nav-item:hover {
    color: white;
    background-color: #4F4F73;
    transform: translateX(8px);
    box-shadow: 0px 4px 12px rgba(79, 79, 115, 0.5);
    padding-left: 16px;
  }

  .header-close-btn-and-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-close-btn {
    margin: 6.5px 0px;
    background: transparent;
    cursor: pointer;
  }

  .header-lang {
    align-self: center;
  }

  .header-social-buttons-wrapper {
    order: 3;
    align-self: center;
  }

  .header-vertical-divider {
    display: none;
  }

  .header-horizontal-divider {
    display: block;
    margin: 0px -16px 20px -16px;
    height: 1px;
    background: linear-gradient(270deg, rgba(58, 58, 82, 0.08) 0%, #3A3A52 55.73%, rgba(58, 58, 82, 0.08) 100%);
  }

  .header-register-button-wrapper {
    margin-top: auto;
    order: 4;
  }

  .header-button.header-register-button,
  .header-button.header-enter-button {
    min-height: 40px;
    height: 40px;
  }

  .header-lang .choose-lang-button span {
    display: block;
  }

  .header-lang .choose-lang-list {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    top: -260px;
    right: -19px;
    transform-origin: top right;
  }

  /* Main */
  .main {
    margin-top: 56px;
  }

  /* Banner */
  .banner-img {
    min-height: 250px;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
  }

  /* Prize Fund */
  .prize-fund-button {
    padding: 0px 28px;
  }

  .desktop-rectangle {
    display: none;
  }

  .tablet-rectangle {
    display: block;
  }

  .prize-fund {
    justify-content: space-between;
    column-gap: 0px;
    padding: 0 20px;
  }

  .prize-fund-wrapper > img:nth-child(5) {
    transform: scaleX(-1);
  }

  /* Navigation */
  .navigation-menu .menu-item {
    flex-direction: column;
    height: 100px;
  }

  .navigation-menu .menu-item img {
    margin-right: 0px;
    margin-bottom: 12px;
  }

  /* Advantages */
  .advantages-item {
    flex: 0 0 calc(50% - 6px);
  }

  /* Footer */
  .footer-content-first-part,
  .footer-content-second-part {
    flex-wrap: wrap;
  }

  .footer-content-first-part {
    justify-content: center;
  }

  .footer-content-second-part .footer-second-part-item:first-child {
    max-width: 100%;
  }

  .footer-content-second-part .footer-second-part-item:nth-child(2) {
    max-width: calc(100% - 214px);
  }

  /* Стили для игр на планшетах */
  .games-grid-section {
    margin: 20px auto;
    padding: 15px 10px;
  }

  .games-grid-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 5px;
  }

  .game-card-title {
    font-size: 11px;
    padding: 8px 5px 3px;
  }

  .game-card-provider {
    font-size: 9px;
    padding: 0 5px 8px;
  }

  .game-card-btn {
    padding: 5px 10px;
    font-size: 10px;
  }

  .game-card-buttons {
    gap: 5px;
    padding: 8px;
  }

  /* Кнопка "Еще игры" на планшетах */
  .more-games-button-wrapper {
    margin-top: 25px;
    padding: 0 15px 18px;
  }

  .more-games-button {
    padding: 15px 35px;
    font-size: 17px;
  }
}

