/* Для мобильных устройств */
/* @media screen and (min-width: 980px) { */

    /* Выравнивание блоков: вариант и возраст
    .js-product-edition-option.t-product__option:nth-child(1) {
        float: left !important;
        padding-right: 20px !important;
    }
    
    .js-product-edition-option.t-product__option:nth-child(2) {
        padding-top: 10px !important;
    } */
    
    /* Выравнивание кнопку Подбронее у карточек товаров 
    .t-store__card__btns-wrapper.js-store-buttons-wrapper {
        float: left;
    } */
    
    /* Высота заголовка для товаров, чтобы выровнять блоки по высоте 
    .js-store-prod-name.js-product-name.t-store__card__title.t-name.t-name_md {
        min-height: 54px;
    } 

} */

/* Оформление верхнего меню */
.uc-topmenu .t-menu__link-item {
    position: relative;
    z-index: 1;
}
/* Подложка hover */
.uc-topmenu .t-menu__link-item::before {
    content: "";
    position: absolute;
    top: -8px;
    right: -12px;
    bottom: -8px;
    left: -12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    z-index: -1;
    pointer-events: none;
}
/* Hover */
.uc-topmenu .t-menu__link-item:hover::before {
    border-color: rgba(180, 140, 90, 0.35);
    background-color: rgba(255, 220, 170, 0.35);
}
/* Active */
.uc-topmenu .t-menu__link-item.t-active::before,
.uc-topmenu .t-menu__link-item.t-menu__link-item_active::before {
    border-color: rgba(180, 140, 90, 0.5);
    background-color: rgba(255, 220, 170, 0.5);
}

/* Скрываем серые иконки соцсетей */
.t420 .t-sociallinks svg {
    display: none;
}

/* Задаём ширину иконок и анимацию */
[class*="social_links_item"], [class*="sociallinks__item"] { transition: 0.3s ease-out !important}
/*Задаём вращение*/
/*[class*="social_links_item"]:hover, [class*="sociallinks__item"]:hover {transform: scale(1.3) rotateZ(360deg)}*/
[class*="social_links_item"] svg, [class*="sociallinks__item"] svg { display: none}
[class*="social_links_item"] a , [class*="sociallinks__item"] a {
    display: inline-block;
    width: 50px;
    height: 50px;
}
[class*="social_links_item"] , [class*="sociallinks__item"]{
    background-size: contain;
    padding: 0 3px;
    background-repeat: no-repeat;
    background-position: center;
}
[class*="social_links_item"]:nth-child(1), [class*="sociallinks__item"]:nth-child(1){
    background-image: url(https://img.icons8.com/?size=100&id=63306&format=png&color=000000)}
[class*="social_links_item"]:nth-child(2), [class*="sociallinks__item"]:nth-child(2){
    background-image: url(https://static.tildacdn.com/tild3866-3437-4532-b932-393333613237/max.png)}
[class*="social_links_item"]:nth-child(3), [class*="sociallinks__item"]:nth-child(3){
    background-image: url(https://img.icons8.com/?size=100&id=114452&format=png&color=000000)}
[class*="social_links_item"]:nth-child(4), [class*="sociallinks__item"]:nth-child(4){
    background-image: url(https://img.icons8.com/?size=100&id=19318&format=png&color=000000)}

/* Убираем большой разрыв в Отзывах */
.t-feed__buttons-wrapper {
	margin-top: 0px !important;
}

/* Оформление опций в карточках товаров на странице квестов */
.js-product .t-product__option-variants.t-product__option-variants_buttons 
.t-product__option-item_simple {
    border: 1px solid #bdbdbd !important;
    border-radius: 5px !important;
    background-color: #fff !important;
}

.js-product .t-product__option-variants.t-product__option-variants_buttons 
.t-product__option-item_simple.t-product__option-item_active {
    border: 2px solid #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.15) !important;
}

.t-product__option-item_simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.js-product .t-product__option-title {
    font-size: 16px !important;
}

/* Размер кнопки 90% на карточках товаров, чтобы влезло Избранное */
a.t-btn.t-btnflex.t-btnflex_type_button.t-btnflex_sm.t744__btn.t744__btn_wide.js-click-stat {
    width: 85% !important;
}


/* Скрыть текст "Нет в наличии" в корзине */
.js-store-prod-sold-out.t-store__card__sold-out-msg.t-name.t-name_xs {
    display: none;
}

/* Единая типографика: 10px под абзацем */
#allrecords .t-text p{
  margin: 0 0 10px !important;
}

/* Списки — тоже 10px снизу, без лишнего воздуха сверху */
#allrecords .t-text ul,
#allrecords .t-text ol{
  margin: 0 0 10px !important;
}

/* Универсальный пунктир для ссылок внутри блока */
 .uc-dashed-link a{
  text-decoration: none !important;
  border-bottom-style: dashed !important;
  border-bottom-width: 1px !important;
  border-bottom-color: currentColor !important;
  padding-bottom: 2px;
}

/* Hover */
 .uc-dashed-link a:hover{
  border-bottom-style: none !important;
}

/* Отступ у блока с полезными идеями на страницах Праздники */
.uc-ideas, body.qd-blog .uc-ideas {
    margin-bottom: 30px;
}

/* Уменьшаем отступ у блоков Читайте также и Домашние квесты для детей внизу страницы */
.uc-related-products {
	padding-top: 5px !important;
	padding-bottom: 5px !important;
	margin-top: 0px !important;
	margin-bottom: 0px !important;
}

.uc-related-products .t404 .t-container div {
    margin-bottom: 5px !important;
}

/* Уменьшаем отступ у раздела "Задания и локации" на страницах квестов  */
.t516__sectiontextwrapper.t516__textwr-bottompadding {
    padding-bottom: 32px !important;
}

/* Содержание на мобилке */
/* =========================
   1) ТЕЛЕФОНЫ: 1 колонка
   ========================= */
@media (max-width: 980px) {
 .t005 .t-row { display:block !important; }
 .t005 .t-col{
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    padding-left:0 !important;
    clear:none !important;
  }
 .t005 .t-prefix_1{ margin-left:0 !important; }

/* убираем “шов” между бывшими колонками */
 .t005 .t-row > .t-col:last-child{
    margin-top:-30px !important; /* при необходимости 6–10px */
    padding-top:0 !important;
  }

  /* список чуть вправо */
 .t005__text[field="text"] ul,
 .t005__text[field="text2"] ul{
    margin:0 !important;
    padding-left:50px !important; /* подстрой 24–32px */
    list-style-position:outside !important;
  }
 .t005__text[field="text"] li,
 .t005__text[field="text2"] li{
    margin:0 0 10px 0 !important;
  }
 .t005__text[field="text"] li:last-child,
 .t005__text[field="text2"] li:last-child{
    margin-bottom:0 !important;
  }
}

/* ==========================================
   2) “ГОРИЗОНТАЛЬНЫЙ ТЕЛЕФОН”: тоже 1 колонка (ширина уже большая, но высота маленькая)
   ========================================== */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 500px) {
 .t005 .t-row { display:block !important; }
 .t005 .t-col{
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    padding-left:0 !important;
    clear:none !important;
  }
 .t005 .t-prefix_1{ margin-left:0 !important; }
 .t005 .t-row > .t-col:last-child{ margin-top:-24px !important; }
}

/* =========================
   3) ПЛАНШЕТЫ: 2 колонки
   ========================= */
@media (min-width: 768px) and (max-width: 960px) {

  /* возвращаем стандартную сетку Tilda */
 .t005 .t-row{ display:block !important; }
 .t005 .t-col{
    float:left !important;
    clear:none !important;
    padding-left:10px !important; /* тильдовский “гуттер” */
  }

  /* 2 колонки по 5/12 + prefix у первой */
 .t005 .t-col_5{ width:49% !important; max-width:49% !important; }
 .t005 .t-prefix_1{ margin-left:2% !important; }

  /* убираем “шов”, который делали для телефона */
 .t005 .t-row > .t-col:last-child{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  /* список — чуть компактнее */
 .t005__text[field="text"] ul,
 .t005__text[field="text2"] ul{
    padding-left:10px !important;
  }
}

/* Управление отступом у заголовков h2, h3 и следующих за ними блоков с текстом | Не переносить выше! */
body.qd-blog #allrecords .t-rec:has(h2),
body.qd-blog #allrecords .t-rec:has(h3) {
  padding-bottom: 5px !important;
}
body.qd-blog #allrecords .t-rec:has(h2) + .t-rec,
body.qd-blog #allrecords .t-rec:has(h3) + .t-rec {
  padding-top: 5px !important;
  
body.qd-blog #allrecords .t-rec:has(h2) + .t-rec p:first-child,
body.qd-blog #allrecords .t-rec:has(h3) + .t-rec p:first-child {
margin-top: 0 !important; 
}

/* Уменьшаем вертикальные отступы у блока с линией */
#allrecords .t118 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

