

/* Start:/local/templates/s1_copy/components/bitrix/news/brands/style.css?175447944713202*/
/* --- Brands List Component --- */
.brands-component__show-all-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-blue, #1a3e6c);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.brands-component__show-all-btn:hover {
    background-color: #275a96;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 40px 30px;
}

.brand-card {
    position: relative;
    height: 174px; 
    padding: 0; 
    background-color: transparent; 
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 80px;
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 94px; 
    background-color: #fff;
    border-radius: 0 20px 20px 20px;
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 80px); 
    height: 80px;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
}

.brand-card__content {
    position: relative;
    z-index: 2; 
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-card__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 200px;
    height: 60px;
    padding: 15px 15px 5px 15px;
}

.brand-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card__arrow-link {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    padding-bottom: 10px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px 12px 12px 0;
    color: var(--color-blue, #1a3e6c);
    z-index: 3;
    overflow: hidden;
}

.brand-card__arrow-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F4F4; 
    border-radius: 12px 12px 0 24px;
    z-index: 1;
}

.brand-card__arrow-icon {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.brand-card__arrow-link:hover .brand-card__arrow-icon {
    background-color: var(--color-blue, #1a3e6c);
    color: #fff;
}

.brand-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
    margin: 15px 15px 0 15px;
}

.brand-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.875rem;
    line-height: 1.5;
    text-decoration: none;
    user-select: none;
}

.brand-card__more {
    display: none;
    font-weight: 500;
    background-color: var(--color-blue, #1a3e6c);
    color: #fff;
    border: 1px solid transparent; 
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.brand-card__more:hover {
    background-color: #fff;
    color: var(--color-blue, #1a3e6c);
    border-color: var(--color-blue, #1a3e6c); 
}

#brands-tooltip {
    position: absolute;
    z-index: 1000;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #495057;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#brands-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Brand Detail Page Base Styles --- */
.brand-detail {
    width: 100%;
}

.brand-detail__title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin: 20px 0 40px 0;
    color: var(--color-black);
}

.brand-detail__content {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 30px;
}

.brand-detail__info {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 40px;
    height: fit-content;
}

.brand-detail__image-wrapper {
    margin-bottom: 40px;
}

.brand-detail__image {
    width: 474px;
    height: 474px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.brand-detail__image-placeholder {
    width: 474px;
    height: 474px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
}

.brand-detail__image-placeholder::after {
    content: 'Изображение отсутствует';
}

.brand-detail__description-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--color-black);
}

.brand-detail__description-text {
    font-size: var(--font-size-normal);
    line-height: 1.6;
    color: var(--color-black);
    margin: 0;
}

.brand-detail__products-section {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 40px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.brand-detail__video-wrapper {
    margin-bottom: 40px;
}

.brand-detail__video {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-detail__products-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0 0 40px 0;
    color: var(--color-black);
}

.brand-detail__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 30px;
    margin-bottom: 40px;
}

.brand-detail__no-products {
    font-size: var(--font-size-normal);
    color: #6c757d;
    text-align: center;
    padding: 60px 20px;
    margin: 0;
}


.brand-detail__product-card .product-card {
    position: relative;
    padding: 0 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-detail__product-card .product-card:hover {
    transform: translateY(-8px);
}

.brand-detail__product-card .product-card__image-wrapper {
    position: relative;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.brand-detail__product-card .product-card__image {
    width: 260px;
    height: 260px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.brand-detail__product-card .product-card__fasovka-label {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 12px;
    z-index: 2;
}

.brand-detail__product-card .product-card__title {
    font-size: var(--font-size-small);
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    margin-bottom: 40px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

.brand-detail__product-card .product-card__title a { 
    color: inherit; 
    text-decoration: none; 
}

.brand-detail__product-card .product-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.brand-detail__product-card .product-card__details-btn { 
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-detail__product-card .product-card__buy-markets-link {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 10px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: var(--font-size-small);
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease-out;
    height: 40px;
}

.brand-detail__product-card .product-card__buy-markets-link:hover {
    color: #0d335f; 
    font-weight: 600;
}

.brand-detail__product-card .product-card__buy-markets-link img {
    display: block;
}

.brand-detail__product-card .product-card__markets-popup {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #A9D6E5;
    border-radius: 16px 16px 0 0;
    z-index: 10;
    padding: 20px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    max-height: 80%;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.brand-detail__product-card .product-card.is-markets-open .product-card__markets-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-radius: 20px;
    transform: translateY(0);
}

.brand-detail__product-card .product-card__markets-close {
    position: absolute;
    top: -18px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    font-size: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 11;
}

.brand-detail__product-card .product-card__markets-close:hover {
    background: #0d335f;
    transform: scale(1.1);
}

.brand-detail__product-card .product-card__markets-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.brand-detail__product-card .product-card__market-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--color-black);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.brand-detail__product-card .product-card__market-item a:hover {
    background-color: #e9ecef;
}

.brand-detail__product-card .product-card__market-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-detail__product-card .product-card__market-item a span { 
    flex-grow: 1; 
}

.brand-detail__product-card .product-card__market-item a svg {
    color: var(--color-blue);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.brand-detail__product-card .product-card__market-item a:hover svg {
    opacity: 1;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .brand-detail__content {
        grid-template-columns: 5fr 7fr;
        gap: 20px;
    }
    
    .brand-detail__image {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }
    
    .brand-detail__image-placeholder {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .brand-detail__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-detail__info {
        order: 2;
    }
    
    .brand-detail__products-section {
        order: 1;
    }
    
    .brand-detail__products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brand-detail__title {
        font-size: 2rem;
        margin: 15px 0 30px 0;
    }
    
    .brand-detail__info,
    .brand-detail__products-section {
        padding: 30px 20px;
    }
    
    .brand-detail__image {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }
    
    .brand-detail__image-placeholder {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }
    
    .brand-detail__video {
        height: 400px;
    }
    
    .brand-detail__products-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-detail__product-card .product-card {
        height: auto;
        min-height: 400px;
    }
    
    .brand-detail__product-card .product-card__image {
        width: 100%;
        height: 200px;
    }
    
    .brands-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));         
    }

}
/* End */


/* Start:/local/templates/s1_copy/components/bitrix/news.list/faq_vol2/style.css?17531161872943*/
/* --- FAQ Section --- */
.faq-section {
    display: grid;
    grid-template-columns: 3fr 7fr; /* Делим на 2 колонки в пропорции 3:7 */
    gap: 60px;
    align-items: start;
}

.faq-section__left {
    position: sticky; /* "Прилипает" при скролле */
    top: 40px;
}

.faq-section__description {
    font-size: var(--font-size-normal);
    margin-top: 20px;
    margin-bottom: 40px;
}

/* --- Accordion --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-item {
}

.faq-item:hover {
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.faq-item__title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease; 
}

.faq-item__header:hover .faq-item__title {
    color: var(--color-blue);
}


.faq-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #A9D6E5;
    color: var(--color-blue);
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* --- Accordion Content Animation (CSS Grid trick) --- */
.faq-item__content-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Изначально высота 0 */
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item__content {
    overflow: hidden;
    font-size: var(--font-size-normal);
    max-width: 90%;
}

/* --- Active State --- */
.faq-item.is-active .faq-item__icon {
    transform: rotate(45deg); /* Поворачиваем '+' в 'x' */
    background-color: var(--color-blue);
    color: var(--color-white);
}

.faq-item.is-active .faq-item__content-wrapper {
    grid-template-rows: 1fr; /* Раскрываем до полной высоты */
    padding-top: 20px; /* Отступ при раскрытии */
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .faq-section {
        grid-template-columns: 1fr; /* Все в одну колонку */
        gap: 40px;
    }
    .faq-section__left {
        position: static; /* Отключаем "прилипание" */
    }
}

@media (max-width: 768px) {
    .faq-item__title{
        font-size: var(--font-size-normal);
    }
}
/* End */


/* Start:/local/templates/s1_copy/components/bitrix/form.result.new/popup_form_vol2/style.css?17527870437953*/
/* --- Popup Form --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.popup-overlay.is-visible .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}
.popup-close-btn:hover {
    color: var(--color-black);
    transform: rotate(90deg);
}

.popup-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px 0;
}
.popup-subtitle {
    font-size: var(--font-size-small);
    text-align: center;
    color: #666;
    margin: 0 0 30px 0;
}

/* Анимированные поля формы */
/* --- Animated Form Fields --- */
.popup-form__field {
    margin-bottom: 25px;
}

.popup-form__input-wrapper {
    position: relative;
}

.popup-form__input,
.popup-form__textarea {
    width: 100%;
    padding: 20px 20px 8px 20px; /* Сделали место для лейбла вверху */
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent; /* Обязательно для правильного отображения */
}
.popup-form__textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 25px; /* Чуть больше отступ для textarea */
}

.popup-form__label {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease-out;
    background-color: var(--color-white); /* Для "разрезания" рамки */
    padding: 0 4px;
}

/* Для textarea лейбл изначально чуть выше */
.popup-form__textarea + .popup-form__label {
    top: 30px; 
}

/* --- МАГИЯ АНИМАЦИИ --- */
/* Стиль лейбла, когда поле в фокусе ИЛИ оно НЕ ПУСТОЕ */
.popup-form__input:focus + .popup-form__label,
.popup-form__input:not(:placeholder-shown) + .popup-form__label,
.popup-form__textarea:focus + .popup-form__label,
.popup-form__textarea:not(:placeholder-shown) + .popup-form__label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--color-blue);
    font-weight: 500;
}

/* Стиль самого поля при фокусе */
.popup-form__input:focus,
.popup-form__textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.2);
}

/* --- Checkbox for Policy Agreement --- */
.popup-form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
    justify-content: center;
}

/* Скрываем стандартный чекбокс */
.popup-form__checkbox {
    display: none;
}

.popup-form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
    
}
.popup-form__checkbox-label a {
    color: var(--color-blue);
    text-decoration: none;
}
.popup-form__checkbox-label a:hover {
    text-decoration: underline;
}

/* Рисуем наш кастомный чекбокс */
.popup-form__checkbox-custom {
    flex-shrink: 0; /* Чтобы не сжимался */
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Стили для галочки внутри */
.popup-form__checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0); /* Изначально скрыта */
    transition: transform 0.2s ease-in-out;
}

/* Стили для отмеченного состояния */
.popup-form__checkbox:checked + .popup-form__checkbox-label .popup-form__checkbox-custom {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
}
.popup-form__checkbox:checked + .popup-form__checkbox-label .popup-form__checkbox-custom::after {
    transform: rotate(45deg) scale(1); /* Показываем галочку */
}


.popup-form__footer {
    margin-top: 30px;
    text-align: center;
}

.popup-form__submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-form__submit-btn:hover {
    transform: translateY(-2px);
}

.popup-form__submit-btn:active {
    transform: translateY(0);
}

/* Messages */
.popup-error-message,
.popup-success-message {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
}

.popup-error-message {
    background-color: #f8d7da;
    color: #721c24;
}

.popup-success-message {
    background-color: #DDF1FF;
    color: #134074;
}

/* Кнопка в сообщении об успехе */
.popup-success-message .show-all-btn {
    background-color: #134074;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.popup-success-message .show-all-btn:hover {
    background-color: #174e8b;
}

/* Состояние загрузки кнопки */
.popup-form__submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Валидация чекбокса */
.popup-form__checkbox:invalid + .popup-form__checkbox-label .popup-form__checkbox-custom {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .popup-container {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
        border-radius: 15px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-form__input-animated,
    .popup-form__textarea {
        padding: 18px 16px 6px 16px;
    }
    
    .popup-form__label {
        left: 16px;
        font-size: 0.95rem;
    }
    
    .popup-form__textarea + .popup-form__label {
        top: 22px;
    }
    
    .popup-form__checkbox-wrapper {
        gap: 8px;
    }
    
    .popup-form__checkbox-label {
        font-size: 13px;
    }
}
/* End */
/* /local/templates/s1_copy/components/bitrix/news/brands/style.css?175447944713202 */
/* /local/templates/s1_copy/components/bitrix/news.list/faq_vol2/style.css?17531161872943 */
/* /local/templates/s1_copy/components/bitrix/form.result.new/popup_form_vol2/style.css?17527870437953 */
