@media (max-width: 1400px) {
  .content.header__content {
    margin: 0 16px;
  }
  .lobby {
    padding-left: 15px;
    padding-right: 15px;
  }
  .cover,
  .content.random-slot-section {
    margin-left: 15px;
    margin-right: 15px;
  }
  .cover {
    max-height: 370px;
    margin: 24px 15px 24px 15px;
  }
}
@media (max-width: 1400px) {
  .cover.terms .content.cover__content,
  .benefits {
    padding: 0 24px;
  }
  .footer {
    padding: 39px 24px 46px 24px;
  }
  .cover-bottom {
    left: 0;
  }
}
@media (max-width: 1150px) {
  .terms {
    padding: 0 24px;
  }
  .cover-bottom .cover-bottom-info > div {
    margin-right: 20px;
}
}
@media (max-width: 991px) {
  .lobby__top {
    grid-template-columns: 1fr;
  }

  .lobby__controls {
    grid-template-columns: 1fr 1fr;
  }

  .lobby__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .lobby__controls {
    grid-template-columns: 1fr;
  }

  .lobby__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .content.cover__content {
    min-height: auto;
    padding: 24px 0;
  }
  /* .image.cover__bg.slider__wrapper::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url(../img/hero-home-mob.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    pointer-events: none;
    z-index: 1;
  } */
  .slide-mob {
    display: block;
  }
  .slide {
    display: none;
  }
  .lobby__card-name {
    font-size: 16px;
  }

  .game-overlay__dialog {
    top: 11%;
    width: calc(100vw - 18px);
    margin: 12px auto;
    border-radius: 14px;
  }

  .game-overlay__header {
    padding: 12px 14px;
  }

  .game-overlay__body {
    height: 72vh;
  }
}
@media (max-width: 767px) {
  .lobby__controls {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }

  .lobby__search-box,
  .lobby__select-wrap {
    height: 48px;
  }

  .content.cover__content {
    margin-left: 24px;
  }
  .cover__wrap p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #ffffffcc;
    margin-bottom: 11px;
  }

  .button {
    min-width: 120px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
  }
  .cover__wrap .hero__text-mini {
    line-height: 21px;
    color: #ffffff80;
    margin-top: 16px;
    letter-spacing: 0;
    width: 191px;
    text-align: left;
  }

  .lobby__field-icon {
    left: 14px;
  }
  .cover {
    margin: 24px 15px 24px 15px;
  }
  .lobby__field-icon--search {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .random-slot__track {
    align-items: flex-start;
    margin: 0;
  }
  .random-slot__slider::after {
    top: 50%;
    height: calc(85% - 0px);
  }
  .lobby__field-icon--search img,
  .lobby__field-icon--provider img {
    width: 18px;
    height: 18px;
  }
  .random-slot__slider::before {
    top: -6px;
  }
  .lobby__input,
  .lobby__select {
    font-size: 16px;
  }

  .lobby__input--search {
    padding: 0 42px 0 62px;
  }

  .lobby__select {
    padding: 0 42px 0 46px;
  }

  .lobby__select-arrow {
    right: 9px;
  }
  .lobby__filter {
    margin-left: 1px;
  }
  .lobby__empty-title {
    margin-top: 15px;
  }
}
@media (max-width: 600px) {
  .logo.header__logo img {
    max-width: 115px;
  }
  .error-page__code {
    font-size: 120px;
    line-height: 120px;
    font-weight: 400;
  }
  .error-page__title {
    font-weight: 500;
    font-size: 26px;
    line-height: 42px;
  }
  .error-page__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    max-width: 248px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 19px;
  }
}
@media (max-width: 575px) {
  .auth-modal {
    align-items: flex-start;
    padding: 20px 14px;
    overflow-y: auto;
  }

  .auth-modal__dialog {
    margin-top: 40px;
    max-width: 100%;
    padding: 20px 16px 16px;
  }

  .error-page__code {
    font-size: 52px;
  }

  .error-page__title {
    font-size: 24px;
  }

  .error-page__text {
    font-size: 14px;
  }
  .lobby__card-thumb {
    height: auto;
  }
}
@media (max-width: 380px) {
  .lobby__grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
  }
  .lobby__card-thumb {
    height: auto;
  }
  .header__buttons {
    gap: 4px;
  }
  .header__button.button {
    min-width: 74px;
    padding: 8px 11px;
  }
}

@media (max-width: 991px) {
  .container {
    width: 100%;
  }

  .hero {
    padding: 100px 0 40px;
  }

  .hero__inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content {
    width: 100%;
    padding-left: 0;
  }

  .hero__image {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 20px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  /* .benefit-card {
    min-height: 150px;
  } */

  .footer__top {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .header__login {
    display: none;
  }

  .btn--small {
    min-height: 30px;
    padding: 7px 14px;
    font-size: 11px;
  }

  .hero {
    margin-top: -56px;
    padding: 92px 0 30px;
  }

  .hero__label {
    font-size: 13px;
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__subtitle {
    font-size: 22px;
  }

  .hero__btn {
    min-height: 42px;
    padding: 11px 24px;
    font-size: 13px;
  }

  .offer__box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .terms__text {
    font-size: 13px;
    line-height: 1.6;
  }
}
@media (max-width: 1050px) {
  .footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .footer__logo {
    order: 1;
  }

  .footer__socials {
    order: 2;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer__payments {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }
}
@media (max-width: 980px) {
  .cover-bottom p:first-of-type {
    font-size: 20px;
    line-height: 25px;
        max-width: 141px;
  }
  .cover-bottom p:last-child {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
  }
}
@media (max-width: 835px) {
  .cover-bottom div {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-right: 24px;
  }
  .cover-bottom p:first-of-type {
    max-width: 100%;
            margin-top: 10px;
            margin-left: 30px;
  }
      .cover-bottom .cover-bottom-info > div {
        margin-top: 0;
    }
  .cover-bottom p:last-child {
    margin: 0;
  }
  .cover-bottom img {
    margin-right: 12px;
  }
  .cover-bottom img {
    width: 12px;
  }
}
@media (max-width: 630px) {
  .image.cover__bg.slider__wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    max-height: 697px;
    background-image:
      linear-gradient(
        180deg,
        rgba(32, 8, 55, 0) 55%,
        rgba(32, 8, 55, 0.75) 82%,
        rgba(32, 8, 55, 1) 100%
      ),
      url(../img/hero-home-mob.webp);

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    pointer-events: none;
    z-index: 1;
  }
  .cover__bg {
    min-height: 694px;
  }
  .cover.terms {
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
  }
  .cover__wrap {
    max-width: 100%;
    width: 100%;
    min-height: 619px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  h1.title-terms {
    font-size: 30px;
    line-height: 47.59px;
    align-items: center;
    max-width: 100%;
    margin-bottom: 0;
    margin-top: auto;
  }
  .benefits {
    padding-left: 24px;
    padding-right: 24px;
  }
  .benefits__grid {
    gap: 21px;
  }

  .benefit-card {
    min-height: 271px;
    padding: 28px;
  }
  .cover__wrap .terms-text {
    font-size: 18px;
    line-height: 18px;
    max-width: 251px;
  }
  .title-mob {
    display: block;
  }
  .mob {
    display: block;
    margin-bottom: 28px;
  }
  .cover.terms::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      270deg,
      rgba(33, 8, 65, 0.95) 0%,
      rgba(45, 12, 86, 0.75) 45%,
      rgba(45, 12, 86, 0) 100%
    );
  }
  .title-icon,
  .cover.terms .cover-bottom {
    display: none;
  }
  .button.terms-cover__button {
    min-width: 275px;
    margin-bottom: 0;
    margin-top: 25px;
    font-size: 15.61px;
    line-height: 25.15px;
    margin-left: auto;
    margin-right: auto;
  }
  .benefit-card h3 {
    font-size: 17.53px;
    line-height: 22.79px;
  }
  .benefit-card__arrow {
    left: 28px;
    top: 28px;
  }
  .terms__head {
    font-size: 18px;
  }
  .benefits {
    margin: 0 auto 48px auto;
  }
  .terms__content {
    padding: 32px 24px;
  }
  .footer__top-border {
    display: none;
  }
  .footer__payments {
    position: relative;
    padding-top: 24px;
    margin-top: 0;
  }

  .footer__payments::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(232.58deg, #ff4200 -2.36%, #9520ff 65.59%);
    pointer-events: none;
  }
  .footer-text {
    font-size: 14px;
    line-height: 16px;
  }
  .copyright {
    margin-top: 24px;
    margin-bottom: 12px;
    flex-direction: column;
    align-items: center;
  }
  .footer-text + .footer-text {
    margin-top: 9px;
  }
  .terms {
    padding-bottom: 35px;
  }
  .terms-content {
    padding-bottom: 0;
    padding-top: 0;
  }
  .title-terms span {
    font-size: 24px;
    line-height: 24px;
  }
  .benefit-card .benefit-img {
    max-height: 208px;
  }
  .content.header__content {
    padding: 0 15px;
    width: 100%;
    margin: 0;
  }
  .cover-bottom {
    left: 0;
    padding: 24px 0;
    position: relative;
    border: none;
    display: flex;
        align-items: flex-start;
  }
  .cover.terms {
    max-height: 697px;
  }
  .cover__bg img {
    min-height: 694px;
  }
  .slide {
    display: none;
  }
      .cover__bg img {
        min-height: 694px;
        display: none;
    }
    .cover.terms {
    max-height: 694px;
    min-height: 694px;
}
}
@media (max-width: 360px) {
  .footer {
    padding: 39px 14px 46px 14px;
  }
}
@media (max-width: 340px) {
  .title-terms span {
    font-size: 22px;
    line-height: 24px;
  }
}
