/* Мобильные стили - max-width: 668px */
@media screen and (max-width: 668px) {
  .base-block {
    padding: 0px 8px;
    row-gap: 32px;
    margin-top: 20px;
  }

  .h2-base-title {
    margin-bottom: 20px;
    font-size: 26px;
    line-height: 33px;
  }

  /* Скрыть лишние элементы в шапке для мобильных */
  .header-social-buttons-wrapper {
    display: none !important;
  }

  .header-lang {
    display: none !important;
  }

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

  /* Адаптация header для мобильных */
  .header-wrapper {
    padding: 8px 12px;
    gap: 8px;
  }

  .header-logo {
    margin-right: 0;
    height: 20px;
    width: auto;
    flex-shrink: 0;
  }

  .header-logo img {
    height: 20px;
    width: auto;
    max-width: 110px;
  }

  .header-burger-button-wrapper {
    display: block;
    flex-shrink: 0;
  }

  .header-burger-button {
    height: 40px !important;
    width: 40px !important;
    padding: 0 !important;
    min-width: 40px;
  }

  /* Banner */
  .banner-wrapper {
    margin-top: 0;
  }

  .banner-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
  }

  /* Prize Fund */
  .prize-fund-wrapper {
    margin-top: -36px;
    padding: 0 8px;
  }

  .prize-fund {
    width: 100%;
    max-width: 100%;
    display: flex;
    column-gap: 8px;
    height: 36px;
    padding: 6px 16px;
    border-radius: 16px 16px 0 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0em;
    box-sizing: border-box;
  }

  .prize-fund::before {
    border-radius: 16px 16px 0 0;
  }

  .prize-fund-desktop-section {
    display: none;
    background: #252536;
  }

  .prize-fund-mobile-section {
    display: block;
    width: 100%;
  }

  .prize-fund-mobile-first-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: #252536;
    border-radius: 16px 16px 0 0;
    box-sizing: border-box;
  }

  .prize-fund-mobile-first-block-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .prize-fund-mobile-first-block-item img {
    flex-shrink: 0;
  }

  .prize-fund-mobile-first-block-item .prize-fund-block-description {
    flex: 1;
    min-width: 0;
  }

  .prize-fund-mobile-first-block-item .prize-fund-block-description p {
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .prize-fund-mobile-second-block-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0em;
    display: flex;
    column-gap: 4px;
    padding: 4px 8px;
    margin-bottom: 16px;
    border-radius: 4px;
    background: #1E1E2C;
  }

  .prize-fund-mobile-second-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #252536;
    box-shadow: 0px 2px 2px 0px #00000099;
    border-radius: 0px 0px 8px 8px;
    padding: 8px 16px 16px 16px;
    box-sizing: border-box;
  }

  .prize-fund-mobile-second-block-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    margin: 12px 0px;
  }

  .prize-fund-mobile-second-block-button {
    height: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Navigation */
  .navigation {
    border-radius: 8px;
    margin: 32px 8px 0px 8px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    box-sizing: border-box;
  }

  .navigation-menu {
    width: 100%;
  }

  .navigation-menu .menu-item {
    flex-direction: column;
    height: 64px;
    padding: 8px;
    box-sizing: border-box;
  }

  .navigation-menu .menu-item::before {
    border-width: 1px;
  }

  .navigation-menu .menu-item:first-child::before {
    border-radius: 8px 0px;
  }

  .navigation-menu .menu-item:last-child::before {
    border-radius: 0px 8px;
  }

  .navigation-menu .menu-item img {
    margin-right: 0px;
    margin-bottom: 4px;
    width: 24px;
    height: 24px;
  }

  .navigation-menu .menu-item .menu-item-text {
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0px;
  }

  /* Зеркало */
  .zerkalo-section-btn_wrapper-header {
    padding: 20px 16px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .zerkalo-section-btn_wrapper-header p {
    font-size: 16px;
    word-wrap: break-word;
  }

  .btn-zerkalo {
    font-size: 15px;
    padding: 14px 18px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 20px 0 0;
    box-sizing: border-box;
  }

  /* Текст */
  .text-and-articles-block-title {
    font-size: 20px;
    line-height: 24px;
    word-wrap: break-word;
  }

  .text-block-second {
    width: 100%;
    box-sizing: border-box;
  }

  .text-block-second-content {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .text-block-second-content h1 {
    font-size: 26px;
    line-height: 33px;
    margin: 20px 0 15px;
    word-wrap: break-word;
  }

  .text-block-second-content h2 {
    font-size: 22px;
    line-height: 28px;
    margin: 18px 0 12px;
    word-wrap: break-word;
  }

  .text-block-second-content h3 {
    font-size: 18px;
    line-height: 24px;
    margin: 15px 0 10px;
    word-wrap: break-word;
  }

  .text-block-second-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .text-block-second-content ul {
    margin: 12px 0;
    padding-left: 20px;
  }

  .text-block-second-content li {
    margin: 6px 0;
    line-height: 20px;
    font-size: 14px;
    word-wrap: break-word;
  }

  .text-block-second-content table {
    font-size: 12px;
    margin: 15px 0;
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .text-block-second-content th,
  .text-block-second-content td {
    padding: 6px 4px;
    font-size: 12px;
  }

  .text-block-second-button {
    font-size: 16px;
    line-height: 16px;
  }

  /* Артикли */
  .text-and-articles-block {
    width: 100%;
    box-sizing: border-box;
  }

  .articles-block {
    width: 100%;
    box-sizing: border-box;
  }

  .articles-header-wrapper {
    padding: 16px;
    box-sizing: border-box;
  }

  .articles-item {
    padding: 12px;
    flex: 0 0 100%;
    box-sizing: border-box;
  }

  .articles-item-title {
    word-wrap: break-word;
  }

  /* Блок автора */
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .author-box img {
    margin-right: 0;
    margin-bottom: 20px;
    width: 120px;
    height: 120px;
  }

  .author-info {
    max-width: 100%;
    width: 100%;
  }

  .author-info h3 {
    font-size: 20px;
    word-wrap: break-word;
  }

  .author-info p {
    font-size: 14px;
    word-wrap: break-word;
  }

  /* Преимущества */
  .advantages-content {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .advantages-item {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .advantages-item-text {
    word-wrap: break-word;
  }

  /* Reviews */
  .review {
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .faq-block,
  .review-section {
    width: 100%;
    box-sizing: border-box;
  }

  .faq-content,
  .review-content {
    margin-bottom: 20px;
    width: 100%;
  }

  .faq-title,
  .review-title {
    font-size: 24px;
    margin-bottom: 28px;
    word-wrap: break-word;
  }

  .faq-items-block,
  .review-list {
    width: 100%;
  }

  .faq-item,
  .review-item {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .faq-item-title {
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .faq-item-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .faq-item-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .review-item-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0px;
    color: #FFFFFF;
  }

  /* Отзывы на мобильных */
  .review-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .review-item-rating .star {
    font-size: 14px;
  }

  .review-item-date {
    font-size: 12px;
    align-self: flex-end;
    margin-top: -24px;
  }

  .review-item-content {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
  }

  .review-item-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Footer */
  .footer {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-first-part,
  .footer-second-part {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .footer-content-first-part {
    justify-content: center;
    padding: 20px 0;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .footer-content-second-part {
    justify-content: center;
    padding: 20px 0;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .footer-content-second-part .footer-second-part-item:nth-child(1) {
    order: 2;
  }

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

  .footer-content-second-part .footer-second-part-item:nth-child(3) {
    order: 1;
  }

  .footer-nav {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .footer-nav-item {
    font-size: 14px;
  }

  .footer-second-part-item {
    width: 100%;
    box-sizing: border-box;
  }

  .footer-second-part-item-text {
    font-size: 10px;
    word-wrap: break-word;
  }

  .footer-social-btns-wrappper {
    justify-content: center;
    width: 100%;
  }

  .footer-lang {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-lang .choose-lang-list {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    bottom: -130px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom center;
  }

  .footer-lang .choose-lang:hover .choose-lang-list {
    transform: translateX(-50%) scale(1);
  }

  /* Стили для игр на мобильных */
  .games-grid-section {
    margin: 15px 8px;
    padding: 15px 8px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    box-sizing: border-box;
  }

  .games-grid-title {
    font-size: 18px;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 3px;
    width: 100%;
    box-sizing: border-box;
  }

  .game-card {
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .game-card-title {
    font-size: 10px;
    padding: 6px 4px 2px;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .game-card-provider {
    font-size: 8px;
    padding: 0 4px 6px;
  }

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

  .game-card-buttons {
    gap: 4px;
    padding: 6px;
  }

  /* Кнопка "Еще игры" на мобильных */
  .more-games-button-wrapper {
    margin-top: 20px;
    padding: 0 10px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .more-games-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  /* Общие правила для предотвращения выхода за границы */
  * {
    max-width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  body {
    overflow-x: hidden;
  }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
  /* Header на маленьких экранах */
  .header-wrapper {
    padding: 6px 8px;
  }

  .header-logo {
    height: 18px;
  }

  .header-logo img {
    height: 18px;
    max-width: 95px;
  }

  .header-burger-button {
    height: 36px !important;
    width: 36px !important;
  }

  /* Banner на маленьких экранах */
  .banner-img {
    min-height: 150px;
    max-height: 300px;
  }

  .base-block {
    padding: 0 12px;
  }

  .author-box {
    padding: 15px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .author-box img {
    width: 100px;
    height: 100px;
  }

  .author-info h3 {
    font-size: 18px;
  }

  .author-info p {
    font-size: 13px;
  }

  .btn-zerkalo {
    font-size: 14px;
    padding: 12px 16px;
  }

  .zerkalo-section-btn_wrapper-header {
    padding: 20px 12px;
  }

  /* Игры на очень маленьких экранах */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .games-grid-title {
    font-size: 18px;
  }

  .game-card-title {
    font-size: 11px;
    padding: 8px 6px 4px;
  }

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

  .game-card-btn {
    font-size: 11px;
    padding: 8px 12px;
  }

  /* Общие правила для очень маленьких экранов */
  body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }
}

