

/* Start:/local/templates/.default/components/bitrix/news.detail/gardista.blog-v2/style.css?179551951124388*/

.faq-blog{
    margin: 20px 0;
}
.faq-blog__container {
    width: 100%;
    margin: 0 auto;
}

.faq-blog__title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.faq-blog__category-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    color: #555;
}

.faq-blog__item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-blog__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-weight: bold;
    user-select: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent; /* Для визуального разделения */
}

.faq-blog__question:hover {
    background-color: #f0f0f0;
}

.faq-blog__question-text {
    flex-grow: 1;
    color: #333;
}

.faq-blog__toggle-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #032755; /* Акцентный цвет */
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-blog__toggle-button svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke-width: 2.5; /* Более толстая линия для иконки */
}

.faq-blog__toggle-button[aria-expanded="true"] {
    transform: rotate(45deg);
    color: #dc3545; /* Цвет при открытии */
}

.faq-blog__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #fff;
    color: #555;
}

/* Стиль для открытого ответа - используется JS */
.faq-blog__answer.is-open {
    padding: 0 20px 20px 20px;
}

.faq-blog__answer-text {
    line-height: 1.6;
    padding-top: 10px;
}

.faq-blog__answer-text ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}


.article-relink {
    margin: 40px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #000;
}

.article-relink__container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-relink__content {
    flex: 1;
}

.article-relink__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.article-relink__title {
    display: block;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.article-relink__title:hover {
    color: #4b5563;
}

.article-relink__text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
}

.article-relink__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.article-relink__link svg {
    transition: transform 0.2s ease;
}

.article-relink__link:hover svg {
    transform: translateX(4px);
}

.article-relink__image-wrapper {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-relink__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-relink__container {
        flex-direction: column-reverse;
    }
    .article-relink__image-wrapper {
        width: 100%;
        height: 180px;
    }
}


/* Общие стили для блоков с изображениями */
.article-img-block {
    margin: 32px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.article-img-block img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.article-image{
    margin: 25px 0;
}
/* 1. Баннер */
.article-img-block--banner img {
    aspect-ratio: 16 / 3;
}

/* 2. Обтекание текстом */
.article-img-block--float {
    float: left;
    max-width: 350px;
    margin: 8px 24px 16px 0;
}

/* 3. Панорама (узкая) */
.article-img-block--panorama img {
    aspect-ratio: 21 / 6;
}

/* 4. Сетка / Галерея */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.article-grid__item {
    border-radius: 8px;
    overflow: hidden;
}

.article-grid__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 5. Сравнение «до / после»: пара фото рядом (на телефоне тоже рядом — иначе не сравнить), бейдж и подпись у каждого */
.article-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 760px;
    margin: 32px 0;
    clear: both;
}

.article-compare__item {
    margin: 0;
    min-width: 0;
}

.article-body .article-detail .article-compare__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #ece7e0;
    cursor: zoom-in;
    text-decoration: none;
}

.article-body .article-detail .article-compare__link:focus-visible {
    outline: 2px solid #032755;
    outline-offset: 3px;
}

.article-compare__link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-compare__link:hover img {
    transform: scale(1.02);
}

.article-compare__label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.article-compare__label--after {
    background: #032755;
    color: #fff;
}

.article-compare__caption {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .article-compare__link img {
        transition: none;
    }

    .article-compare__link:hover img {
        transform: none;
    }
}

/* 6. Кадр видео со ссылкой (видео смотрится на другой странице, например /projects/…/#video): кнопка и длительность поверх кадра */
.article-video {
    max-width: 760px;
    margin: 32px 0;
    clear: both;
}

.article-body .article-detail .article-video__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #0c1a2e;
    color: #fff;
    text-decoration: none;
}

.article-body .article-detail .article-video__link:hover {
    color: #fff;
}

.article-body .article-detail .article-video__link:focus-visible {
    outline: 2px solid #032755;
    outline-offset: 3px;
}

.article-video__link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-video__link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(3, 39, 85, 0.6), rgba(3, 39, 85, 0) 45%);
    pointer-events: none;
}

.article-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: #ffc022;
    color: #032755;
    box-shadow: 0 8px 24px rgba(3, 39, 85, 0.3);
    transition: transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-video__play svg {
    margin-left: 4px;
}

.article-video__note {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.article-video__caption {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

@media (hover: hover) {
    .article-video__link:hover img {
        transform: scale(1.02);
    }

    .article-video__link:hover .article-video__play {
        transform: scale(1.06);
    }
}

.article-video__link:active .article-video__play {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .article-video__link img,
    .article-video__play {
        transition: none;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-video__play {
        width: 56px;
        height: 56px;
        margin: -28px 0 0 -28px;
    }

    .article-video__note {
        left: 12px;
        bottom: 10px;
        font-size: 14px;
    }

    .article-img-block--float {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-compare {
        gap: 8px;
        margin: 24px 0;
    }

    .article-compare__label {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .article-compare__caption {
        font-size: 12px;
    }

    .article-img-block--panorama img {
        aspect-ratio: 16 / 9; /* На мобилках слишком узко будет плохо */
    }
}

.article-toc {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
    max-width: 100%;
}

.article-toc__header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.article-toc__title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc__item {
    margin-bottom: 8px;
}

.article-toc__item--level-2 { margin-left: 0; }
.article-toc__item--level-3 { margin-left: 20px; font-size: 0.95em; }

.article-toc__link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
    line-height: 1.4;
}

.article-toc__link:hover {
    color: #007bff;
    padding-left: 5px;
}

/* Отступ сверху для якорей, чтобы не перекрывались липкой шапкой */
article [id] {
    scroll-margin-top: 200px;
}

@media (max-width: 768px) {
    article [id] {
        scroll-margin-top: 125px;
    }

}

.article-author {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.article-author__container {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.article-author__image-wrapper {
    flex-shrink: 0;
}

.article-author__image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-author__content {
    flex-grow: 1;
}

.article-author__header {
    margin-bottom: 10px;
}

.article-author__name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.article-author__job {
    display: block;
    font-size: 14px;
    color: #888;
    line-height: 1.2;
}

.article-author__description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 600px) {
    .article-author__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.article-date{
    margin: 20px 0;
}
.article-body .article-detail a{
    color: #2a7ae2;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.2s ease, color 0.2s ease;
}

.article-body .article-detail a:hover{
    color: #1a5bb8;
    background-size: 100% 1px;
}


.article-body table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dcdfe4;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}

.article-body table th {
    padding: 14px 18px;
    background: #f5f7fa;
    border-bottom: 1px solid #dcdfe4;
    font-weight: 600;
    text-align: left;
    color: #222;
}

.article-body table td {
    padding: 14px 18px;
    border: 1px solid #eceff3;
    color: #444;
}

.article-body table tr:last-child td {
    border-bottom: none;
}

.article-body table tr:hover td {
    background: #f9fbfd;
    transition: 0.2s;
}


/*
 * Блок «Хотите подобрать идеальные шторы…» — в стиле главной, как блок покупки (catalog.element/gardista.article):
 * песочная панель, синий #032755, белые поля с подписью над ними, жёлтая кнопка. Цвета — здесь же:
 * статья открывается и на старом шаблоне, где переменных главной нет.
 */
.article-cta {
    --cta-navy: #032755;
    --cta-gold: #ffc022;
    --cta-gold-hover: #ffcb4a;
    --cta-ink: #0c0c0c;
    --cta-muted: #6b6b6b;
    --cta-line: #e6e0d6;
    --cta-sand: #f6f2ec;
    --cta-ease: cubic-bezier(0.23, 1, 0.32, 1);

    margin: 40px 0;
    padding: 32px;
    border-radius: 24px;
    background: var(--cta-sand);
    color: var(--cta-ink);
    font-family: "Gilroy", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.article-cta,
.article-cta *,
.article-cta *::before,
.article-cta *::after {
    box-sizing: border-box;
}

.article-cta__container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.article-cta__content {
    flex: 1;
    min-width: 0;
}

.article-cta__title {
    margin: 0 0 10px;
    color: var(--cta-navy);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.article-cta__text {
    margin: 0 0 22px;
    color: var(--cta-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.article-cta__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.article-cta__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Подпись поля (в старых закешированных статьях этим же классом выведена строка над заголовком) */
.article-cta__label {
    display: block;
    color: var(--cta-navy);
    font-size: 0.9375rem;
    font-weight: 700;
}

.article-cta__input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1.5px solid var(--cta-line);
    border-radius: 14px;
    background: #fff;
    color: var(--cta-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    outline: 0;
    transition: border-color 160ms var(--cta-ease);
}

.article-cta__input::placeholder {
    color: #a3a3a3;
    font-weight: 500;
}

.article-cta__input:hover,
.article-cta__input:focus {
    border-color: var(--cta-navy);
}

.article-cta__input:focus-visible {
    outline: 2px solid var(--cta-navy);
    outline-offset: 2px;
}

.article-cta__button {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 4px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: var(--cta-gold);
    color: var(--cta-navy);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms var(--cta-ease), transform 120ms var(--cta-ease);
}

.article-cta__button:hover {
    background: var(--cta-gold-hover);
}

.article-cta__button:active {
    transform: scale(0.97);
}

.article-cta__button:focus-visible {
    outline: 2px solid var(--cta-navy);
    outline-offset: 2px;
}

.article-cta__button:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.article-cta__message {
    grid-column: 1 / -1;
    color: var(--cta-navy);
    font-size: 0.9375rem;
    font-weight: 600;
}

.article-cta__message:empty {
    display: none;
}

.article-cta__message--error {
    color: #b3261e;
}

.article-cta__image-wrapper {
    flex: 0 0 260px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--cta-line);
    aspect-ratio: 3 / 4;
}

.article-cta__image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-cta {
        padding: 16px 16px 24px;
        border-radius: 20px;
    }

    .article-cta__container {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 20px;
    }

    .article-cta__image-wrapper {
        flex-basis: auto;
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .article-cta__title {
        font-size: 1.375rem;
    }

    .article-cta__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-cta__button {
        justify-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-cta__input,
    .article-cta__button {
        transition: none;
    }
}

/* ===================== Оценка статьи ===================== */

.article-rating {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-rating__title {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 16px;
}

.article-rating__body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.article-rating__stars {
    position: relative;
    display: inline-block;
    line-height: 0;
    touch-action: manipulation;
}

.article-rating__layer {
    display: flex;
    white-space: nowrap;
}

.article-rating__layer--base {
    color: #dcdcdc;
}

.article-rating__layer--fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 0;
    color: #f5a623;
    transition: width 0.15s ease;
}

.article-rating__star {
    display: block;
    flex: 0 0 auto;
}

.article-rating__hits {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
}

.article-rating__hit {
    flex: 1 1 auto;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.article-rating__hit:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
}

.article-rating--pending .article-rating__hit {
    cursor: progress;
}

.article-rating__summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #555;
}

.article-rating__value {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.article-rating__count {
    font-size: 0.9em;
    color: #888;
}

.article-rating__message {
    margin-top: 12px;
    min-height: 20px;
    font-size: 0.9em;
    color: #4c9a2a;
}

.article-rating__message--error {
    color: #c0392b;
}

@media (max-width: 768px) {
    .article-rating {
        padding: 16px;
    }

    .article-rating__body {
        gap: 12px;
    }

    .article-rating__star {
        width: 28px;
        height: 28px;
    }
}

/* ===================== Промокод в статье ===================== */
/* Тёплая палитра взята не с потолка: тот же тон уже используется в карточке
   товара у блока акции (.product-promotion-gift__button, #c9a06b). */

.article-promo {
    --promo-panel: #f2ede5;
    --promo-coupon: #faf7f2;
    --promo-dash: #c9b79b;
    --promo-ink: #4a3f33;
    --promo-muted: #6b5f52;
    --promo-accent: #a5793f;
    --promo-action: #8a6234;

    margin: 40px 0;
    padding: 28px;
    border-radius: 18px;
    background: var(--promo-panel);
}

.article-promo__main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-promo__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    color: var(--promo-accent);
}

.article-promo__content {
    flex: 1;
    min-width: 0;
}

.article-promo__title {
    margin: 0 0 8px 0;
    color: var(--promo-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.article-promo__text {
    margin: 0;
    color: var(--promo-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Срок промокода: строку добавляет component_epilog.php (срок берётся из купона и правила корзины) */
.article-promo__until {
    margin: 6px 0 0 0;
    color: var(--promo-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.article-promo__inline {
    padding: 1px 7px;
    border: 1px solid var(--promo-dash);
    border-radius: 5px;
    background: var(--promo-coupon);
    color: var(--promo-accent);
    font-weight: 600;
    white-space: nowrap;
}

/* Купон: пунктир плюс «надкусы» по бокам — кружки цвета панели поверх рамки */
.article-promo__coupon {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 216px;
    min-height: 116px;
    padding: 18px 28px;
    border: 2px dashed var(--promo-dash);
    border-radius: 14px;
    background: var(--promo-coupon);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.article-promo__coupon::before,
.article-promo__coupon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--promo-panel);
    transform: translateY(-50%);
}

.article-promo__coupon::before {
    left: -13px;
}

.article-promo__coupon::after {
    right: -13px;
}

.article-promo__coupon:hover {
    border-color: var(--promo-accent);
}

.article-promo__coupon-code {
    color: var(--promo-accent);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.article-promo__coupon-hint {
    /* Высота закреплена: подпись меняется на «Скопировано», вёрстка не должна дёргаться */
    min-height: 16px;
    color: var(--promo-muted);
    font-size: 12px;
    line-height: 16px;
}

.article-promo--copied .article-promo__coupon {
    border-color: var(--promo-accent);
    border-style: solid;
}

.article-promo__button {
    width: 100%;
    height: 54px;
    margin-top: 22px;
    border: none;
    border-radius: 12px;
    background: var(--promo-action);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.article-promo__button:hover {
    background: #75512a;
}

.article-promo__button:disabled {
    opacity: .65;
    cursor: default;
}

.article-promo__coupon:focus-visible,
.article-promo__button:focus-visible {
    outline: 2px solid var(--promo-action);
    outline-offset: 3px;
}

.article-promo__status {
    /* Место под сообщение зарезервировано, иначе строка появляется и сдвигает вёрстку */
    min-height: 22px;
    margin: 10px 0 0;
    color: var(--promo-muted);
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.article-promo__status--error {
    color: #b3261e;
}

@media (max-width: 768px) {
    .article-promo {
        padding: 22px 18px;
    }

    .article-promo__main {
        flex-wrap: wrap;
        gap: 16px;
    }

    .article-promo__icon {
        width: 38px;
        height: 38px;
    }

    .article-promo__content {
        flex-basis: calc(100% - 54px);
    }

    .article-promo__coupon {
        width: 100%;
        min-height: 104px;
    }
}

/* End */


/* Start:/local/templates/.default/components/bitrix/catalog.element/gardista.article/style.css?179483973612437*/
/*
 * Блок покупки в статье блога — в стиле главной (шаблон gardista): песочная панель, синий #032755, жёлтая кнопка,
 * «таблетки» как .chip-radio калькулятора, фото как .product__photo «Популярных штор».
 * Цвета заданы здесь же: статья может открываться и на старом шаблоне, где переменных главной нет.
 */

.article-buy {
    --ab-navy: #032755;
    --ab-navy-hover: #0a3670;
    --ab-gold: #ffc022;
    --ab-gold-hover: #ffcb4a;
    --ab-ink: #0c0c0c;
    --ab-muted: #6b6b6b;
    --ab-line: #e6e0d6;
    --ab-sand: #f6f2ec;
    --ab-sky: #f2f7fe;
    --ab-ease: cubic-bezier(0.23, 1, 0.32, 1);

    display: flex;
    gap: 32px;
    margin: 40px 0;
    padding: 32px;
    border-radius: 24px;
    background: var(--ab-sand);
    color: var(--ab-ink);
    font-family: "Gilroy", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.article-buy,
.article-buy *,
.article-buy *::before,
.article-buy *::after {
    box-sizing: border-box;
}

.article-buy[hidden],
.article-buy [hidden] {
    display: none !important;
}

.article-buy__media {
    flex: 0 0 260px;
}

/* Лента фото цвета: прокрутка с прилипанием, стрелки и счётчик поверх (как плашки на фото «Популярных штор») */
.article-buy__gallery {
    position: sticky;
    top: calc(var(--header-height, 0px) + 20px);
    overflow: hidden;
    border-radius: 20px;
    background: var(--ab-line);
    aspect-ratio: 3 / 4;
}

.article-buy__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    outline: 0;
}

.article-buy__track::-webkit-scrollbar {
    display: none;
}

.article-buy__track:focus-visible {
    box-shadow: inset 0 0 0 3px var(--ab-navy);
}

.article-buy__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
}

.article-buy__arrow {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ab-navy);
    box-shadow: 0 4px 14px rgba(2, 27, 59, 0.14);
    cursor: pointer;
    transition: opacity 160ms var(--ab-ease), transform 120ms var(--ab-ease), background-color 160ms var(--ab-ease);
}

.article-buy__arrow:hover {
    background: #fff;
}

.article-buy__arrow:active {
    transform: scale(0.94);
}

.article-buy__arrow:focus-visible {
    outline: 2px solid var(--ab-navy);
    outline-offset: 2px;
}

.article-buy__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.article-buy__arrow--prev {
    left: 12px;
}

.article-buy__arrow--next {
    right: 12px;
}

.article-buy__counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--ab-navy);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.article-buy__body {
    flex: 1;
    min-width: 0;
}

.article-buy__title {
    margin: 0 0 8px;
    color: var(--ab-navy);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.article-buy__title a {
    color: inherit;
    text-decoration: none;
}

.article-buy__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-buy__subtitle {
    margin: 0;
    color: var(--ab-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.article-buy__group {
    min-width: 0;
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.article-buy__legend {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    color: var(--ab-navy);
    font-size: 0.9375rem;
    font-weight: 700;
}

.article-buy__value {
    color: var(--ab-muted);
    font-weight: 500;
}

/* Радиокнопки спрятаны, но остаются в порядке Tab и работают стрелками */
.article-buy__radio,
.article-buy__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.article-buy__colors,
.article-buy__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-buy__color {
    position: relative;
    display: block;
    cursor: pointer;
}

.article-buy__swatch {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(2, 27, 59, 0.12);
    transition: box-shadow 160ms var(--ab-ease);
}

.article-buy__color:hover .article-buy__swatch {
    box-shadow: 0 0 0 1px rgba(2, 27, 59, 0.4);
}

.article-buy__radio:checked + .article-buy__swatch {
    box-shadow: 0 0 0 2px var(--ab-sand), 0 0 0 4px var(--ab-navy);
}

.article-buy__radio:focus-visible + .article-buy__swatch,
.article-buy__radio:focus-visible + .article-buy__chip-text {
    outline: 2px solid var(--ab-navy);
    outline-offset: 4px;
}

.article-buy__chip {
    display: block;
    cursor: pointer;
}

.article-buy__chip-text {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ab-navy);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: border-color 160ms var(--ab-ease), background-color 160ms var(--ab-ease);
}

.article-buy__chip:hover .article-buy__chip-text {
    border-color: rgba(3, 39, 85, 0.4);
}

.article-buy__radio:checked + .article-buy__chip-text {
    border-color: var(--ab-navy);
    background: var(--ab-sky);
}

.article-buy__radio:disabled + .article-buy__chip-text {
    border-style: dashed;
    background: transparent;
    color: #a3a3a3;
    cursor: not-allowed;
}

/* Свой выпадающий список креплений — как «Модель» калькулятора главной (.select в home.css) */
.article-buy__dropdown {
    position: relative;
    max-width: 380px;
}

.article-buy__select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 18px;
    border: 1.5px solid var(--ab-line);
    border-radius: 14px;
    background: #fff;
    color: var(--ab-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms var(--ab-ease);
}

.article-buy__select:hover,
.article-buy__select[aria-expanded="true"] {
    border-color: var(--ab-navy);
}

.article-buy__select:focus-visible {
    outline: 2px solid var(--ab-navy);
    outline-offset: 2px;
}

.article-buy__select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-buy__select-chev {
    flex: none;
    color: var(--ab-navy);
    transition: transform 200ms var(--ab-ease);
}

.article-buy__select[aria-expanded="true"] .article-buy__select-chev {
    transform: rotate(180deg);
}

.article-buy__options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 5;
    max-height: 320px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--ab-line);
    border-radius: 14px;
    outline: 0;
    background: #fff;
    box-shadow: 0 16px 40px rgba(2, 27, 59, 0.16);
    transform-origin: top center;
    transition: opacity 160ms var(--ab-ease), transform 160ms var(--ab-ease);
}

@starting-style {
    .article-buy__options {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
}

.article-buy__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ab-ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.article-buy__option::before {
    content: none;
}

.article-buy__option:hover,
.article-buy__option.is-active {
    background: var(--ab-sky);
}

.article-buy__option[aria-selected="true"] {
    color: var(--ab-navy);
    font-weight: 700;
}

.article-buy__option-check {
    flex: none;
    visibility: hidden;
    color: var(--ab-navy);
}

.article-buy__option[aria-selected="true"] .article-buy__option-check {
    visibility: visible;
}

/* Цена и кнопки — белая плашка, как результат калькулятора на главной; цена слева, кнопки справа в одну линию */
.article-buy__checkout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff;
}

.article-buy__summary {
    min-width: 0;
}

.article-buy__price-value {
    color: var(--ab-navy);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.article-buy__price-note,
.article-buy__kit {
    margin-top: 4px;
    color: var(--ab-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.article-buy__kit b {
    color: var(--ab-navy);
    font-variant-numeric: tabular-nums;
}

.article-buy__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-buy__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    background: var(--ab-gold);
    color: var(--ab-navy);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms var(--ab-ease), border-color 160ms var(--ab-ease), transform 120ms var(--ab-ease);
}

.article-buy__button:hover {
    background: var(--ab-gold-hover);
}

.article-buy__button--outline {
    border-color: var(--ab-navy);
    background: #fff;
}

.article-buy__button--outline:hover {
    background: var(--ab-sky);
}

.article-buy__button:active {
    transform: scale(0.97);
}

.article-buy__button:focus-visible {
    outline: 2px solid var(--ab-navy);
    outline-offset: 2px;
}

.article-buy__button:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.article-buy__status {
    flex-basis: 100%;
    margin: 0;
    color: var(--ab-navy);
    font-size: 0.875rem;
    font-weight: 600;
}

.article-buy__status:empty {
    display: none;
}

.article-buy__status--error {
    color: #b3261e;
}

.article-buy__more {
    display: inline-block;
    margin-top: 18px;
    color: var(--ab-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-buy__more:hover {
    text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
    .article-buy {
        flex-direction: column;
        gap: 20px;
        padding: 16px 16px 24px;
        border-radius: 20px;
    }

    .article-buy__media {
        flex-basis: auto;
    }

    .article-buy__gallery {
        position: relative;
        top: auto;
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .article-buy__title {
        font-size: 1.375rem;
    }

    .article-buy__checkout {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .article-buy__actions {
        flex-direction: column;
    }

    .article-buy__dropdown,
    .article-buy__button {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-buy__arrow,
    .article-buy__swatch,
    .article-buy__chip-text,
    .article-buy__select,
    .article-buy__select-chev,
    .article-buy__options,
    .article-buy__button {
        transition: none;
    }
}

/* End */
/* /local/templates/.default/components/bitrix/news.detail/gardista.blog-v2/style.css?179551951124388 */
/* /local/templates/.default/components/bitrix/catalog.element/gardista.article/style.css?179483973612437 */
