.black_friday-banner-block{
    display: flex;
}
.black_friday-banner__wrapper{
    position: relative;
    flex-grow: 1;
    width: 100%;
}
.black_friday-banner__img{
    height: 100%;
}
.black_friday-banner__img img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.black_friday-sidebar{
    display: flex;
    flex-direction: column;
    padding: 40px;
    height: fit-content;
    border-radius: 4px;
    border-width: 1px;
    gap: 32px;
    border: 1px solid #DBDBDB;
    margin-left: 20px;
}
.black_friday-sidebar__text{
    font-weight: 700;
    font-size: 20px;
    vertical-align: middle;
    color: #333333;
}
.black_friday-sidebar__form{
    width: 348px;
    height: 160px;
    display: flex;
    flex-direction: column;
    position:relative;
}
.black_friday-sidebar__form input{
    height: 46px;
    border-radius: 4px;
    border-width: 1px;
    padding-top: 14px;
    padding-right: 18px;
    padding-bottom: 14px;
    padding-left: 18px;
    border: 1px solid #DBDBDB;
    margin-bottom: 10px;
}
.black_friday-sidebar__form input:focus {
    outline-width: 0;
}
.black_friday-sidebar__form input.invalid_val {
  border: 1px solid #B20000;
}
.black_friday-sidebar__form button{
    height: 46px;
    border-radius: 4px;
    border: none;
    padding-top: 14px;
    padding-right: 18px;
    padding-bottom: 14px;
    padding-left: 18px;
    background: #00913D;
    color: #FFFFFF;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 14px;
    line-height: 130%;
    vertical-align: middle;
}
.black_friday-sidebar__form button:hover{
    background: #007732;
}
.black_friday-sidebar__form p{
    font-weight: 500;
    font-size: 12px;
    line-height: 130%;
    vertical-align: middle;
    margin:0;
    padding-top: 10px;
}
.black_friday-sidebar__form a{
    font-weight: 500;
    font-size: 12px;
    line-height: 130%;
    vertical-align: middle;
    text-decoration: underline;
    text-underline-offset: 1px;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
    text-decoration-skip-ink: auto;
    color: #00913D;
}

.black_friday-product-block__title h2{
    font-weight: 700;
    font-size: 32px;
    line-height: 130%;
    vertical-align: middle;
    margin-top: 64px;
    margin-bottom: 32px;
}
.black_friday-product-block__sub-title{
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    vertical-align: middle;
}
.black_friday-product-block__list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid #DBDBDB;
    border-top: 1px solid #DBDBDB;
    margin-bottom: 88px;
}
.black_friday-product-block__elem{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-right: 1px solid #DBDBDB;
    border-bottom: 1px solid #DBDBDB;
}
.black_friday-product-block_elem__adout{
    margin-top: 16px;
    margin-bottom: 16px;
}
.black_friday-product-block_elem__name{
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    margin-top: 12px;
}
.black_friday-product-block_elem__type, .black_friday-product-block_elem__class{
    font-weight: 500;
    font-size: 10px;
    line-height: 130%;
    color: #999999;
}
.black_friday-product-block_elem__button{
    background: #00913D;
    width: 100%;
    height: 46px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    vertical-align: middle;
    padding-top: 14px;
    padding-right: 18px;
    padding-bottom: 14px;
    padding-left: 18px;
    text-align: center;
    cursor: pointer;
}
.black_friday-product-block_elem__button:hover {
    background: #007732;
}
.black_friday-modal{
    display: none;
}
.black_friday-modal.fancybox-content{
    padding: 0px;
}
.black_friday-modal.fancybox-content .sidebar-page-form{
    margin-left: unset;
    height: 336px;
    gap: 24px;
}

@media (max-width: 1160px){
    .black_friday-banner-block{
        flex-direction: column;
        align-items: center;
    }
    .black_friday-banner__img img{
        height: auto;
    }
    .black_friday-banner-block .sidebar-page-form{
        margin-top: 24px;
    }
    .black_friday-product-block__list{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 880px){
    .black_friday-product-block__list{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px){
    .black_friday-banner-block{
        flex-direction: column;
        align-items: center;
    }
    .black_friday-banner__img img{
        width: 100%;
        max-width: 100%;
    }

    .black_friday-sidebar{
        margin-top: 30px;
        margin-left: 0px;
    }
    .black_friday-modal .sidebar-page-form{
        margin-top: 0px;
    }
    .black_friday-sidebar__form{
        width: auto;
        display: flex;
        flex-direction: column;
    }
    .black_friday-sidebar__form p{
        position: unset;
    }
    .black_friday-about-block {
        margin-top: 40px;
    }
    .black_friday-product-block__title h2 {
        text-align: center;
        margin-bottom: 24px;
    }
    
}
@media (max-width: 593px){
    .black_friday-product-block__list{
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 468px){
    .black_friday-banner__img img{
        height: auto;
    }
}

@media (max-width: 360px){
    .black_friday-modal.fancybox-content .sidebar-page-form{
        height: 376px;
    }
}

/* Нижний блок Правила акции*/

/* Секция */
.eld-section-rules {
    padding: 28px 16px 38px;
}

.eld-promo-container {
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0px 0px 8px 0px #00000026;
}

/* Блок */
.eld-rules {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Заголовок */
.eld-rules-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    transition: background var(--transition);
}

.eld-rules-title:hover {
    background: #f0f0f1;
}

/* Иконка стрелки */
.eld-rules-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #c5c7cc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.eld-rules-icon::before {
    content: "";
    width: 6px;
    height: 6px;
    border: 2px solid #1e1f23;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.eld-rules--open .eld-rules-icon {
    background: #e9e9ea;
}

.eld-rules--open .eld-rules-icon::before {
    transform: rotate(225deg);
}

/* Контейнер контента */
.eld-rules-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    border-top: 1px solid #e2e4e8;
}

/* Список */
.eld-rules-list {
    padding: 18px 24px 24px 40px;
    margin: 0;
    list-style: decimal;
    font-size: 14px;
    line-height: 1.5;
}

.eld-rules-list li {
    margin-bottom: 8px;
}

.eld-rules-list li:last-child {
    margin-bottom: 0;
}

/* Таблицы внутри */
.eld-rules-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.eld-rules-list td {
    border: 1px solid #e2e4e8;
    padding: 8px;
}

.eld-rules-list tr:first-child td {
    background: #f4f4f5;
    font-weight: 600;
}