/* =======================================================
   1. ОБЩИЕ СТИЛИ И СБРОСЫ (ДЕСКТОП)
   ======================================================= */

.select-nav--mobile,
.tel-block--mobile,
.compare-block--mobile,
.favorites-block--mobile,
.cart-block--mobile,
.search--mobile,
.burger--mobile,
.header-extra-items--mobile,
.mob-nav--mobile {
  display: none !important;
}

.uk-navbar-transparent:not(.navbar-menu-desktop) #mob-page-block {
  display: none !important;
}

.m-p-slider-wrapper .bx-wrapper .bx-pager.bx-default-pager a.active {
  background: var(--main-color);
  border-color: var(--main-color);
}

.slider-index {
  z-index: 1000;
}

.reasons-block {
  display: none;
}

.reviews-section,
.catalog-section {
  display: none;
}

.uk-pagination > .uk-active > * {
  color: var(--main-color);
}

/* Шрифты и кастомная типографика */
@font-face {
  font-family: 'LifeIsStrangeRU';
  src: url('../fonts/LifeIsStrangeRU.eot');
  src: local('☺'),
       url('../fonts/LifeIsStrangeRU.woff') format('woff'),
       url('../fonts/LifeIsStrangeRU.ttf') format('truetype'),
       url('../fonts/LifeIsStrangeRU.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

.life-is-strange {
  font-family: 'LifeIsStrangeRU', monospace;
}

.poetry {
  border: none;
  font: 1.1rem/1.8 Consolas, monaco, monospace;
}

.comments [name="comment"] {
  padding: 20px 40px 20px 40px;
}

/* Формы и подписка */
.subscription {
  display: flex;
  justify-content: center;
}

.subscription__label {
  width: 864px;
}

input.order-checkbox.uk-radio.subscription__checkbox {
  border-color: #33b7b7;
  min-width: 18px;
  width: 20px;
  height: 20px;
}


/* =======================================================
   2. МОБИЛЬНАЯ АДАПТАЦИЯ (<= 768px)
   ======================================================= */

@media screen and (max-width: 768px) {

  /* Переключение видимости блоков */
  .index-desktop,
  .video_index {
    display: none !important;
  }

  .select-nav--desktop,
  .tel-block--desktop,
  .compare-block--desktop,
  .favorites-block--desktop,
  .cart-block--desktop,
  .search--desktop,
  .burger--default,
  .navbar-menu-desktop,
  .mob-nav--desktop,
  .uk-navbar-nav .uk-flex-left,
  .uk-text-justify {
    display: none !important;
  }

  .select-nav--mobile,
  .tel-block--mobile,
  .compare-block--mobile,
  .favorites-block--mobile,
  .cart-block--mobile,
  .search--mobile,
  .burger--mobile,
  .header-extra-items--mobile,
  .mob-nav--mobile {
    display: block !important;
  }

  .cart-block--mobile .mg-desktop-cart {
    display: block !important;
  }

  .header-extra-items--mobile {
    display: flex !important;
    padding: 10px 0;
  }

  /* Шапка и навигация */
  .uk-navbar {
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }

  .uk-sticky {
    transition: background-color 0.25s ease;
    padding: 10px 0;
  }

  .uk-sticky.is-scrolled {
    background: var(--secondry-color) !important;
  }

  .uk-sticky.is-scrolled.menu-block-top .nav-divider {
    display: none;
  }

  .select-nav--mobile {
    min-width: unset;
    height: auto;
  }

  .menu-block-top .compare-icon,
  .menu-block-top .mg-desktop-cart .cart,
  .menu-block-top .mg-desktop-cart .cart-img {
    color: #000;
  }

  .uk-navbar-center:not(:only-child) {
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    width: max-content;
    box-sizing: border-box;
    z-index: 990;
  }

  .mob-li {
    width: 100%;
    position: relative;
  }

  .uk-navbar-nav.mob-nav,
  .uk-navbar-center.mob-nav {
    height: 26px;
  }

  .search-mob.uk-icon.uk-search-icon {
    padding: 0;
    width: 30px;
    margin-right: 10px;
  }

  .search-mob.uk-icon.uk-search-icon svg {
    width: 30px;
    height: 30px;
  }

  .search-text {
    display: none;
  }

  .uk-logo svg {
    width: 60px !important;
  }

  #mob-page-menu {
    top: 29px !important;
    width: 100vw !important;
    right: -15px !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Бургер-меню */
  .burger--mobile {
    cursor: pointer;
    display: inline-block !important;
    position: relative;
    border: none;
    background: transparent;
    width: 40px;
    height: 26px;
    min-height: 26px !important;
    text-decoration: none;
  }

  .burger--mobile::before,
  .burger--mobile::after {
    content: '';
    left: 0;
    position: absolute;
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 10px;
    background: #fff;
  }

  .burger--mobile::before {
    top: 0;
    box-shadow: 0 11px 0 #fff;
    transition: box-shadow 0.3s 0.15s, top 0.3s 0.15s, transform 0.3s;
  }

  .burger--mobile::after {
    bottom: 0;
    transition: bottom 0.3s 0.15s, transform 0.3s;
  }

  .burger--mobile.uk-open::before,
  .burger--mobile.is-active::before {
    top: 11px;
    transform: rotate(45deg);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.15s, top 0.3s, transform 0.3s 0.15s;
    background-color: #000 !important;
  }

  .burger--mobile.uk-open::after,
  .burger--mobile.is-active::after {
    bottom: 11px;
    transform: rotate(-45deg);
    transition: bottom 0.3s, transform 0.3s 0.15s;
    background-color: #000 !important;
  }

  .uk-sticky:has(.burger--mobile.uk-open) .favourite svg,
  .uk-sticky:has(.burger--mobile.uk-open) .search-mob.uk-search-icon svg {
    color: #000 !important;
    fill: #000 !important;
  }

  .uk-sticky:has(.burger--mobile.uk-open) .uk-logo svg {
    filter: invert(1);
  }

  .uk-sticky:has(.burger--mobile.uk-open) {
    background-color: #fff !important;
  }

  /* Слайдер */
  .slider-index {
    position: fixed !important;
    z-index: 1000;
    width: 100%;
  }

  .m-p-slider-wrapper,
  .m-p-slider-wrapper .bx-wrapper,
  .m-p-slider-wrapper .bx-viewport,
  .m-p-slider-wrapper .m-p-slider-contain-v2,
  .m-p-slider-wrapper .m-p-slide-unit {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }

  .m-p-slider-wrapper .uk-hidden\@m,
  .m-p-slider-wrapper .uk-visible\@m,
  .m-p-slider-wrapper .m-p-slide-unit a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .m-p-slider-wrapper .m-p-slide-unit img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .m-p-slider-wrapper .bx-wrapper .bx-pager {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
  }

  .m-p-slider-wrapper .bx-wrapper .bx-controls-direction a {
    z-index: 15 !important;
  }

  .m-p-slider-wrapper .bx-wrapper .bx-next,
  .m-p-slider-wrapper .bx-wrapper .bx-prev {
    bottom: 2%;
    top: unset;
    background: none;
  }

  .m-p-slider-wrapper .bx-wrapper .bx-prev {
    left: 10%;
  }

  .m-p-slider-wrapper .bx-wrapper .bx-next {
    right: 10%;
  }

  /* Стрелки слайдера */
  .bx-controls-direction a {
    width: 44px !important;
    height: 44px !important;
    display: block;
    position: relative;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    background: transparent;
  }

  .bx-controls-direction a::before,
  .bx-controls-direction a::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
  }

  .bx-controls-direction a::before {
    width: 24px;
    height: 2px;
    background-color: #fff;
    top: 50%;
    transform: translateY(-50%);
  }

  .bx-controls-direction a::after {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    top: 50%;
  }

  .bx-controls-direction .bx-prev::before {
    left: 10px;
  }

  .bx-controls-direction .bx-prev::after {
    left: 10px;
    border-right: none;
    border-bottom: none;
    transform: translateY(-50%) rotate(-45deg);
  }

  .bx-controls-direction .bx-next::before {
    right: 10px;
  }

  .bx-controls-direction .bx-next::after {
    right: 10px;
    border-left: none;
    border-bottom: none;
    transform: translateY(-50%) rotate(45deg);
  }

/* Каталог товаров */
  .catalog-section {
    max-width: 768px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 24px 12px 36px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
  }

  .catalog-section__title {
    grid-column: 1 / -1;
    width: 100%;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #111111;
    margin: 0 0 16px;
    text-align: left;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    width: 100%;
  }

  .product-card__image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f6f6f6;
  }

  .product-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .product-card__prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
  }

  .product-card__price-old {
    font-size: 14px;
    font-weight: 400;
    color: #8c939d;
    text-decoration: line-through;
    line-height: 1.2;
  }

  .product-card__price-current {
    font-size: 17px;
    font-weight: 700;
    color: #4fa7a1;
    line-height: 1.2;
  }

  .product-card__promo-badge {
    width: 100%;
    max-width: 140px;
    background-color: #55b3b3;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    box-sizing: border-box;
  }

  .catalog-section__btn-all {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    width: 100%;
    max-width: 220px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #55b3b3;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .catalog-section__btn-all:hover {
    color: #ffffff;
    opacity: 0.9;
  }

  /* Модальное окно */
  .c-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
  }

  .c-modal.is-active {
    display: flex;
  }

  .c-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
  }

  .c-modal__content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 360px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 34px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: cModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes cModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  .c-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    color: #555555;
    cursor: pointer;
    padding: 4px;
  }

  .c-modal__badge-text {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #222222;
    transform: rotate(-8deg);
    margin-bottom: 12px;
    max-width: 200px;
  }

  .c-modal__gallery {
    width: 100%;
    max-width: 260px;
    margin-bottom: 16px;
  }

  .c-modal__gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .c-modal__gallery-track::-webkit-scrollbar {
    display: none;
  }

  .c-modal__gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .c-modal__gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .c-modal__gallery-empty {
    color: #999;
    font-size: 13px;
  }

  .c-modal__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #111111;
    margin-bottom: 12px;
  }

  .c-modal__desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #333333;
    margin-bottom: 16px;
  }

  .c-modal__desc p {
    margin-bottom: 6px;
  }

  .c-modal__price {
    font-size: 20px;
    font-weight: 800;
    color: var(--main-color, #55b3b3);
    margin-bottom: 16px;
  }

  .c-modal__action {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .c-modal__action .addToCart,
  .c-modal__action .product-buy,
  .c-modal__action .product-info {
    background-color: var(--main-color, #55b3b3) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 220px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  /* Секция: причины выбора */
  .reasons-block {
    max-width: 768px;
    display: block;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 32px 20px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111111;
    -webkit-font-smoothing: antialiased;
  }

  .reasons-block__title {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    color: #111111;
    margin: 0 0 12px 0;
  }

  .reasons-block__subtitle {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: #111111;
    margin: 22px 0 10px 0;
  }

  .reasons-block__text {
    font-size: 12px;
    line-height: 1.45;
    color: #222222;
    margin: 0 0 14px 0;
  }

  /* Эксперты (шахматка) */
  .experts-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 20px 0 28px 0;
  }

  .expert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
  }

  .expert-card--left {
    align-self: flex-start;
    margin-left: 18px;
  }

  .expert-card--right {
    align-self: flex-end;
    margin-right: 18px;
    margin-top: -36px;
  }

  .expert-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
    margin-bottom: 6px;
  }

  .expert-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .expert-card__name {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
    color: #111111;
  }

  /* Персонажи */
  .characters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 16px;
    margin: 18px 0 16px 0;
  }

  .character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 45%;
  }

  .character-card--center {
    width: 100%;
    margin-top: 4px;
  }

  .character-card__image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }

  .character-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

  .character-card__name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
  }

  /* Блок "Родитель" */
  .parent-wrap {
    overflow: hidden;
    margin-bottom: 6px;
  }

  .parent-wrap__ill {
    float: right;
    width: 100px;
    margin-left: 10px;
    margin-bottom: 4px;
  }

  .parent-wrap__ill img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .parent-wrap .reasons-block__text {
    margin-bottom: 0;
  }

  /* Секция отзывов */
  .reviews-section {
    max-width: 768px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 36px 20px 0;
    display: flex;
    flex-direction: column;
  }

  .reviews-section__title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 16px;
  }

  .reviews-section__subtitle {
    font-size: 14px;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 20px;
  }

  .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
  }

  .img-placeholder {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
  }

  .photo-grid .img-placeholder {
    aspect-ratio: 1 / 1;
  }

  .img-placeholder img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .img-wide {
    aspect-ratio: 16 / 9.5;
    margin-bottom: 24px;
  }

  .reviews-section__descr {
    font-size: 14px;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 24px;
  }

  .review-card {
    border: 1px solid #111111;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 28px;
  }

  .review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .review-card__author {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
  }

  .review-card__rating {
    color: #fbc02d;
    font-size: 16px;
    letter-spacing: 2px;
    user-select: none;
  }

  .review-card__gallery {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
  }

  .btn__more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
  }

  .review-card__gallery .img-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    flex-shrink: 0;
    margin-right: -10px;
    border: 1px solid #fff;
  }

  .review-card__text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #222222;
  }

  /* Видеоблок в отзывах */
  .reviews-section__video-title {
    font-size: 14px;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 18px;
  }

  .video-banner {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 12;
    margin: 0 auto 28px;
    border-radius: 20px;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }

  .video-banner__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .video-banner__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
    pointer-events: none;
  }

  .video-banner:hover .video-banner__play-btn {
    background-color: #ffffff;
  }

  .video-banner__play-btn::after {
    content: "";
    display: block;
    margin-left: 4px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #111111;
    transition: all 0.2s ease;
  }

  .video-banner.is-playing .video-banner__play-btn::after {
    margin-left: 0;
    border: none;
    width: 14px;
    height: 16px;
    background: transparent;
    box-shadow: inset -5px 0 0 #111111, inset 5px 0 0 #111111;
  }

  .video-banner.is-playing .video-banner__play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  .video-banner.is-playing:hover .video-banner__play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .video-banner__caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
  }

  .video-banner.is-playing .video-banner__caption {
    opacity: 0;
  }

  .reviews-section__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    padding: 13px 20px;
    background-color: #55b3b3;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }

  .reviews-section__btn:hover {
    background-color: #469c9c;
  }

  .reviews-section__btn:active {
    transform: scale(0.98);
  }

  /* Мелкие правки отступов */
  .uk-section.section-mob {
    padding-bottom: 0;
  }

  .block-hit {
    padding-bottom: 0;
  }
}


/* =======================================================
   3. МОБИЛЬНАЯ ТИПОГРАФИКА (<= 640px)
   ======================================================= */

@media screen and (max-width: 640px) {
  .poetry {
    border: none;
    font: 0.8rem/1.4 Consolas, monaco, monospace;
    margin: 0;
    padding: 0;
  }

  .poetry b {
    font-weight: 600;
  }
}