/* ==========================================
   DOOR-ROOM — КАТАЛОГ ИНСТРУКЦИЙ
   ========================================== */

.dr-instructions {
    margin: 25px 0 45px;
}

/* Сетка брендов */

.dr-instructions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 45px;
}

.dr-instructions-brand {
    display: flex;
    flex-direction: column;
    position: relative;

    min-height: 135px;
    padding: 20px;

    background: #f7f9fa;
    border: 1px solid #e1e6e9;
    border-radius: 8px;

    color: #333 !important;
    text-decoration: none !important;

    transition: all .2s ease;
}

.dr-instructions-brand-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 15px;
}

.dr-instructions-brand-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.dr-instructions-brand-count {
    margin-top: 7px;
    font-size: 13px;
    color: #777;
}

.dr-instructions-brand-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;

    font-size: 22px;
    color: #1d6e87;

    transition: transform .2s ease;
}

.dr-instructions-brand:hover {
    background: #fff;
    border-color: #1d6e87;

    box-shadow: 0 5px 18px rgba(0,0,0,.08);

    transform: translateY(-3px);
}

.dr-instructions-brand:hover
.dr-instructions-brand-arrow {
    transform: translateX(5px);
}

/* Раздел производителя */

.dr-instructions-section {
    margin: 35px 0;
    scroll-margin-top: 90px;
}

.dr-instructions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 12px;
    margin-bottom: 15px;

    border-bottom: 2px solid #1d6e87;
}

.dr-instructions-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
}

.dr-instructions-heading span {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

/* Список документов */

.dr-instructions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-instructions-document {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 16px;

    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 6px;

    transition: border-color .2s ease;
}

.dr-instructions-document:hover {
    border-color: #1d6e87;
}

.dr-instructions-document-info {
    display: flex;
    align-items: center;

    gap: 12px;
    min-width: 0;
}

.dr-instructions-pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 42px;

    border-radius: 4px;

    background: #fff0ee;
    color: #d84940;

    font-size: 12px;
    font-weight: 700;
}

.dr-instructions-document-title {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Кнопка скачивания */

.dr-instructions-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 10px 16px;

    background: #1d6e87;
    border-radius: 5px;

    color: #fff !important;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none !important;
    white-space: nowrap;

    transition: background .2s ease;
}

.dr-instructions-download:hover {
    background: #15566a;
    color: #fff !important;
}

/* Возврат к брендам */

.dr-instructions-top {
    display: inline-block;
    margin-top: 16px;

    color: #1d6e87;
    font-size: 13px;
    text-decoration: none;
}

/* Планшеты */

@media (max-width: 991px) {

    .dr-instructions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Телефоны */

@media (max-width: 575px) {

    .dr-instructions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dr-instructions-brand {
        min-height: 100px;
    }

    .dr-instructions-document {
        align-items: flex-start;
        flex-direction: column;
    }

    .dr-instructions-download {
        width: 100%;
    }

    .dr-instructions-heading h2 {
        font-size: 20px;
    }

}

/* ==========================================
   РАСКРЫВАЮЩИЙСЯ КАТАЛОГ ИНСТРУКЦИЙ
   ========================================== */

/* Скрываем разделы, когда включён JavaScript */

.dr-instructions.dr-accordion
.dr-instructions-section {
    display: none;
}

/* Показываем выбранный раздел */

.dr-instructions.dr-accordion
.dr-instructions-section.dr-open {
    display: block;
    animation: drInstructionsFade .25s ease;
}

/* Подсветка выбранного бренда */

.dr-instructions-brand.dr-selected {
    background: #eaf3f6;
    border-color: #1d6e87;
    box-shadow: 0 3px 12px rgba(29, 110, 135, .12);
}

/* Плавное появление */

@keyframes drInstructionsFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* Раскрывающийся SEO-текст */

.dr-seo-more {
    margin: 10px 0 25px;
}

.dr-seo-more summary {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    background: #1d6e87;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s;
    list-style: none;
}

.dr-seo-more summary::-webkit-details-marker {
    display: none;
}

.dr-seo-more summary::marker {
    content: "";
}

.dr-seo-more summary:hover {
    background: #15566a;
}

.dr-seo-more-content {
    padding-top: 15px;
}

.dr-seo-more-close {
    display: none;
}

.dr-seo-more[open] .dr-seo-more-open {
    display: none;
}

.dr-seo-more[open] .dr-seo-more-close {
    display: inline;
}
