/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/
/* Examples (uncomment to use):*/
/* Expand site width */
/* body .wrapper { max-width: 1400px !important;  } */
/* Set site background image */
/* body {  background: url(image_source) top no-repeat; }
/* Hide compare button */
/* a.compare_item { display: none !important;  }*/

.logo > svg {
    width: 100%;
    height: 100%;
}

#mobileheader {
    height: 154px;
    position: static !important;
}

@media (min-width: 1200px){
    .right_block.wide_N .items .item_block.col-lg-20 {
        width: 12.5% !important;
    }
}

@media (min-width: 401px) {
    .catalog_section_list .item_block.lg .section_item {
        padding-bottom: 15px;
        padding-top: 30px;
    }
    .catalog_section_list .section_item {
        padding: 20px 20px 20px;
    }
    .top_slider_wrapp  {
        height: 250px;
    }
    .col-lg-3 {
        height: 50px;
    }
    .swiper-button-prev{
        top: 30%;
    }
    .swiper-button-next{
        top: 30%;
    }
    .top_block {
        padding: 0 auto;
        margin-bottom: 14px;
    }
    .muted{
        margin-right: 10px;
    }
}
@media (max-width: 450px) {
 .top_slider_wrapp .main-slider, .top_slider_wrapp .main-slider__item, .top_slider_wrapp .main-slider__item td, .top_slider_wrapp .main-slider__item tr
{
        height: 80px;
    }
}
@media screen and (max-width: 991px), projection and (max-width: 991px), tv and (max-width: 991px), handheld and (max-width: 991px) {
    .top_slider_wrapp .main-slider, .top_slider_wrapp .main-slider__item, .top_slider_wrapp .main-slider__item td {
        height: 200px !important; 
    }
}    
@media (max-width: 450px) {
    .top_slider_wrapp .main-slider, .top_slider_wrapp .main-slider__item, .top_slider_wrapp .main-slider__item td, .top_slider_wrapp .main-slider__item tr {
        height: 280px;
    }
}
/* === КРАСНАЯ ЦЕНА ДЛЯ КОНКРЕТНОЙ АКЦИИ === */
/* .price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .price_value,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .price,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 [data-value],
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .total-price {
    color: #e74c3c !important;
    font-weight: bold !important;
}

.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .price_currency,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .currency {
    color: #e74c3c !important;
} */

/* === КРАСНАЯ НАДПИСЬ АКЦИЯ === */
/*.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .price_name,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .muted.font_xs {
    color: #e74c3c !important;
    font-weight: bold !important;
}

/* === КРАСНОЕ НАЗВАНИЕ ТОВАРА === */
/*.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 ~ .item-title a,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 ~ .title a,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 ~ .catalog-item__title a,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .item-title a,
.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .title a {
    color: #e74c3c !important;
}

/* === ТУЛТИП === */
/*.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548 .promo-tooltip,
.promo-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 10000;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
    
    max-width: 250px;
    text-align: center;
    white-space: normal;
}

.price_group.8ea8382a-5026-11f1-8eb3-fdc8aac4b548:hover .promo-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Хвостик */
.promo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

/* Ссылка */
.full-price-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    z-index: 2;
}

/* Адаптив */
@media (max-width: 768px) {
    .promo-tooltip {
        max-width: 180px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

.inline-search-block.custom-header-search {
    --search-accent: #83b81d;
    --search-accent-hover: #83b81d;

    display: none;
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 32px 24px 36px;
    box-sizing: border-box;
    background: #fff;
    color: #182230;
    border-bottom: 1px solid #e7ecf3;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 60px rgb(15 23 42 / 16%);
    z-index: 10000;
    font-family: inherit;
}

.custom-header-search,
.custom-header-search * {
    box-sizing: border-box;
}

.inline-search-block.custom-header-search.show {
    display: block;
    animation: custom-search-enter 180ms ease-out both;
}

.custom-header-search .custom-header-search__inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.custom-header-search .custom-header-search__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.custom-header-search .custom-header-search__title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.custom-header-search .custom-header-search__subtitle {
    margin-top: 8px;
    color: #697586;
    font-size: 14px;
    line-height: 1.5;
}

.custom-header-search .custom-header-search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.custom-header-search .custom-header-search__close:hover {
    background: #e8ecf2;
    color: #182230;
}

.custom-header-search .custom-header-search__form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.custom-header-search .custom-header-search__field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.custom-header-search .custom-header-search__field:focus-within {
    border-color: var(--search-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}

.custom-header-search .custom-header-search__icon {
    flex-shrink: 0;
    margin-right: 12px;
    color: #8290a3;
}

.custom-header-search .custom-header-search__field .search-input {
    display: block;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #182230;
    font-family: inherit;
    font-size: 16px;
    line-height: normal;
}

.custom-header-search .search-input::placeholder {
    color: #8995a5;
    opacity: 1;
}

.custom-header-search .custom-header-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0;
    min-height: 60px;
    margin: 0;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: var(--search-accent);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 150ms ease;
}

.custom-header-search .custom-header-search__submit:hover {
    background: var(--search-accent-hover);
}

.custom-header-search .custom-header-search__submit span {
    font-size: 22px;
}

.custom-header-search button:focus-visible {
    outline: 3px solid var(--search-accent);
    outline-offset: 4px;
}

@keyframes custom-search-enter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .inline-search-block.custom-header-search {
        padding: 22px 16px 24px;
        border-radius: 0 0 20px 20px;
    }

    .custom-header-search .custom-header-search__heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    .custom-header-search .custom-header-search__title {
        font-size: 22px;
    }

    .custom-header-search .custom-header-search__form {
        flex-direction: column;
    }

    .custom-header-search .custom-header-search__submit {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inline-search-block.custom-header-search.show {
        animation: none;
    }

    .custom-header-search * {
        transition: none;
    }
}

.maxwidth-theme-custom {
    padding-top: 0 !important;
}

/* SOTIT — характеристики Аспро Max.
 * Добавить в КОНЕЦ /bitrix/templates/aspro_max/css/custom.css.
 * Проверенная разметка: #props .properties-group--table.
 * Работает только внутри вкладки полных характеристик.
 * Начало блока SOTIT CHARACTERISTICS */

#props .properties-group--table {
  --sotit-spec-accent: var(--theme-base-color, #83b81d);
  --sotit-spec-text: #252b24;
  --sotit-spec-label: #60675d;
  --sotit-spec-border: #e3e8df;
  --sotit-spec-surface: #fff;
  --sotit-spec-heading: #f4f7ef;
  --sotit-spec-row: #fafbf8;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 4px 0 20px;
  font-family: inherit;
  color: var(--sotit-spec-text);
}

#props .properties-group--table > .properties-group__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sotit-spec-border);
  border-radius: 14px;
  background: var(--sotit-spec-surface);
  /* Без overflow:hidden: подсказки Аспро не должны обрезаться. */
}

#props .properties-group--table .properties-group__group-name {
  position: relative;
  margin: 0;
  padding: 17px 20px 17px 25px;
  border: 0;
  border-bottom: 1px solid var(--sotit-spec-border);
  border-radius: 13px 13px 0 0;
  background: var(--sotit-spec-heading);
  color: var(--sotit-spec-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

#props .properties-group--table .properties-group__group-name::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--sotit-spec-accent);
}

#props .properties-group--table .properties-group__items {
  display: block;
  margin: 0;
  padding: 0;
}

#props .properties-group--table .properties-group__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid var(--sotit-spec-border);
  background: var(--sotit-spec-surface);
  font-size: 14px;
  line-height: 1.65;
}

/* Убирает верхнюю линию, которую Аспро задаёт первой и второй строке. */
#props .properties-group--table .properties-group__items .properties-group__item:nth-of-type(1),
#props .properties-group--table .properties-group__items .properties-group__item:nth-of-type(2) {
  border-top: 0;
}

#props .properties-group--table .properties-group__item:nth-child(even) {
  background: var(--sotit-spec-row);
}

#props .properties-group--table .properties-group__item:last-child {
  border-bottom: 0;
  border-radius: 0 0 13px 13px;
}

#props .properties-group--table .properties-group__name-wrap,
#props .properties-group--table .properties-group__value-wrap {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

#props .properties-group--table .properties-group__name,
#props .properties-group--table .properties-group__value {
  margin: 0;
  padding: 0;
  background: none;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

#props .properties-group--table .properties-group__name {
  color: var(--sotit-spec-label);
  font-weight: 400;
}

#props .properties-group--table .properties-group__value {
  color: var(--sotit-spec-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

#props .properties-group--table .properties-group__value a {
  color: #416b0c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#props .properties-group--table a:focus-visible,
#props .properties-group--table button:focus-visible {
  outline: 2px solid var(--sotit-spec-accent);
  outline-offset: 3px;
}

@media (min-width: 1100px) {
  #props .properties-group--table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  #props .properties-group--table { gap: 16px; }
  #props .properties-group--table .properties-group__group-name {
    padding: 15px 16px 15px 23px;
    font-size: 15px;
  }
  #props .properties-group--table .properties-group__item {
    padding: 12px 16px;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  #props .properties-group--table .properties-group__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  #props .properties-group--table .properties-group__name { font-size: 13px; }
  #props .properties-group--table .properties-group__value { font-size: 15px; }
}

@media print {
  #props .properties-group--table { display: block; }
  #props .properties-group--table > .properties-group__group {
    margin-bottom: 16px;
    break-inside: avoid;
  }
}

/* Конец блока SOTIT CHARACTERISTICS */
