.banner-index,
.primary-section {
    margin-bottom: 72px;
}

.primary-section_gray,
.hero-section {
    background: #F2F3F7;
    padding: 48px 0;
}

h2.primary-section__title {
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 8px;
}

.banner {
	display: flex;
	justify-content: center;
}

.banner img {
	display: block;
}

.primary-section__head h1 {
    font-weight: 700;
}

.primary-section__text {
    line-height: 24px;
    color: #74767A;
}

.primary-section__head {
    margin-bottom: 32px;
}

.btn.btn-secondary:hover {
    background: #e30611;
    color: #fff;
}

.advantages-grid.advantages-promo-block {
    display: grid;
    grid-template-columns: auto 340px;
    gap: 16px;
}

.advantages {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.advantages.advantages-2 {
    grid-template-columns: 1fr 1fr;
}

.advantages-item {
    padding: 14px;
    background: #F2F3F7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 145px;
}

.advantages-item__title {
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
}

.advantages-item__text {
    color: #74767A;
}

.advantages-promo {
    margin-top: 40px;
    display: none;
}

.b-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.b-advantages-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.b-advantages .advantages-item {
    padding: 13px 16px;
    min-height: auto;
}

.b-advantages svg {
    width: 32px;
    height: 32px;
}

.b-advantages .advantages-item__title {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 20px;
}

.b-advantages .advantages-item__text {
    font-size: 12px;
}

.advantages-grid {
    display: flex;
    gap: 16px;
}

.advantages-grid__image {
    width: 100%;
    max-width: 320px;
}

.advantages-list {
    width: 100%;
    display: grid;
    grid-template-columns: 208px 345px 208px;
    gap: 16px;
}

.advantages-list__item:nth-child(1),
.advantages-list__item:nth-child(4) {
    grid-column: span 2;
}

.advantages-list__item {
    background-repeat: no-repeat;
    background-position: right center;
    background-color: #FFF;
    padding: 24px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advantages-list__item span {
    margin-top: auto;
}

.promo-block {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    background: #E30611;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promo-mobile {
    display: none;
}

.promo-block__image-1 {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;

}

.promo-block__image-2 {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 18px;

}

.promo-block__image-3 {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 10px;

}

.promo-block__sub {
    color: #FEED00;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

.promo-block__title {
    display: flex;
    align-items: flex-end;
    line-height: 46px;
    justify-content: center;
    margin: 16px 0;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    text-align: center;
}

.promo-block__btn {
    margin: 36px auto 0;
    width: 216px;
    border-radius: 100px;
    height: 48px;
    font-weight: 500;
    font-size: 16px;
}

/* before-after */

.before-after {
    display: flex;
    margin-bottom: 32px;
}

.before-after__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.before-after__item:first-child {
    margin-right: 24px;
    padding-right: 24px;
    border-right: 1px solid #E5E5E8;
}

.before-after__card-title {
    margin-bottom: 6px;
    color: #74767A;
    font-size: 14px;
    line-height: 20px;
}

.before-after__card-image {
    border-radius: 12px;
    max-width: 263px;
}

.before-after-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.before-after-footer__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

.before-after-footer__form.btn {
    height: 48px;
    font-weight: 500;
    border-radius: 100px;
    width: 220px;
    font-size: 16px;
}

.before-after-footer__call.btn {
    height: 48px;
    font-weight: 500;
    background: #fff;
    border-radius: 100px;
    border: 1px solid #E30611;
    color: #1D2023;
    width: 160px;
    font-size: 16px;
}

.before-after-footer__tel.btn {
    display: none;
}

/* b-glazing */

.b-glazing {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.b-glazing-item {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.balcony-product__text {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* price-table */
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.price-table {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #EEEEEF;
}

.price-table.is-best {
    border-radius: 16px;
    border: 1px solid #E30611;
    box-shadow: 0 77px 22px 0 rgba(0, 0, 0, 0.00), 0 49px 20px 0 rgba(0, 0, 0, 0.01), 0 28px 17px 0 rgba(0, 0, 0, 0.05), 0 12px 12px 0 rgba(0, 0, 0, 0.09), 0 3px 7px 0 rgba(0, 0, 0, 0.10);
}

.price-table__name {
    font-size: 24px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 6px;
}

.price-table__row {
    padding: 10px 0;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    font-size: 16px;
    line-height: 24px;
}

.price-table__row-title span {
    display: none;
}

.price-table__row:not(:last-child) {
    border-bottom: 1px solid #F0F0F2;
}

.price-table__row-title {
    color: #74767A;
    font-weight: 500;
}

.price-table__row-value {
    text-align: right;
}

.primary-color {
    color: #E30611;
}

.roof-block {
    padding: 32px 0 0 32px;
    border-radius: 16px;
    background: #FFF;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.roof-block-text {
    margin-bottom: 16px;
    line-height: 24px;
}

.roof-block-text span {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 8px;
}

.roof-info-wrap {
    width: 100%;
    max-width: 480px;
    padding-bottom: 32px;
}

.roof-info {
    padding: 24px;
    border-radius: 16px;
    background: #F2F3F7;
}

.roof-info:not(:last-child) {
    margin-bottom: 8px;
}

.roof-info__title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 500;
    font-size: 20px;
}

.roof-info__title svg {
    transition: transform 0.5s;
}

.roof-info__title.active svg {
    transform: rotateX(180deg);
}

.roof-info__text {
    margin-top: 4px;
    display: none;
    color: #74767A;
}

.roof__image {
    display: flex;
    align-items: flex-end;
}

.b-price {
    border-radius: 16px;
    border: 1px solid #E8E8EA;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
    height: 280px;
    background-color: #F2F3F7;
    background-image: url(/balkony/obshivka-profnastilom/pic/bg.png);
    background-repeat: no-repeat;
    background-position: 480px top;
}

.b-price__title {
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    margin-bottom: 16px;
}

.b-price__value {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background: #FEED00;
    font-weight: 500;
    line-height: 24px;
}

.tabs-block__title {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

.tabs {
    border-radius: 16px;
    background: #FFF;
    padding: 32px 0 32px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tabs .hand-cursor {
    display: none;
    margin-top: 12px;
}

.tabs-list {
    max-width: 480px;
    width: 100%;
}

.tabs-list__item {
    padding: 24px;
    border-radius: 16px;
    background: #F2F3F7;
}

.tabs-list__item:not(:last-child) {
    margin-bottom: 16px;
}

.tabs-list__item-head {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tabs-list__item-head.active svg {
    transform: translateX(180deg);
}

.tabs-list__item-text {
    display: none;
    color: #74767A;
    font-size: 16px;
    line-height: 24px;
}

.tabs-slider {
    max-width: 416px;
}

.tabs-slide {
    display: grid;
    gap: 16px;
}

.tabs-slide-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.tabs-slide-card__problem,
.tabs-slide-card__decision {
    position: absolute;
    top: 16px;
    left: 16px;
    border-radius: 8px;
    padding: 2px 10px;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.tabs-slide-card__problem {
    background: #E30611;
}

.tabs-slide-card__decision {
    background: #4AC99B;
}

.tabs-slide-card__text {
    display: none;
}

.warm-balcony {
    padding: 0;
    justify-content: flex-start;
    gap: 16px;
}

.warm-balcony .roof-info-wrap {
    max-width: 664px;
}

.warm-balcony .roof__image {
    width: 100%;
    max-width: 400px;
    max-height: 313px;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 1279px) {
    .advantages-list {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }

    .advantages-list__item:nth-child(1),
    .advantages-list__item:nth-child(4) {
        grid-column: span 1;
        background-image: none !important;
    }
}

@media (max-width: 1023px) {

    .banner-index,
    .primary-section {
        margin-bottom: 64px;
    }

    .primary-section_gray {
        padding: 24px 0;
    }

    .primary-section__head {
        margin-bottom: 16px;
    }

    h2.primary-section__title {
        font-size: 24px;
        line-height: 1;
    }

    .advantages-grid.advantages-promo-block {
        grid-template-columns: 5fr 3fr;
    }

    .b-price {
        background-position: 340px top;
    }

    .advantages-list__item {
        padding: 16px;
        font-size: 16px;
    }

    .roof-block {
        padding: 16px;
    }

    .roof-info {
        padding: 16px;
    }

    .roof-info__title,
    .roof-info__text {
        font-size: 14px;
    }
}

@media (max-width: 767px) {

    .banner,
    .primary-section {
        margin-bottom: 48px;
    }

    .hero-section {
        background: transparent;
        padding: 0;
    }

    .advantages-grid.advantages-promo-block {
        grid-template-columns: 1fr;
    }

    .advantages {
        grid-template-columns: 1fr 1fr;
    }

    .advantages-item {
        min-height: 96px;
    }

    .advantages-item>svg {
        width: 24px;
        height: 24px;
    }

    .advantages-item__title {
        font-size: 14px;
    }

    .advantages-item__text {
        font-size: 12px;
    }

    .advantages-grid {
        display: none;
    }

    .advantages-promo {
        display: flex;
        justify-content: center;
    }

    .advantages-promo img {
        max-width: 480px;
        width: 100%;
    }

    .b-advantages {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .promo-block {
        border-radius: 16px;
        background: #F2F3F7;
        padding: 16px;
    }

    .promo-mobile {
        display: block;
    }

    .promo-block__image-1,
    .promo-block__image-2,
    .promo-block__image-3,
    .promo-block__sub,
    .promo-block__title {
        display: none;
    }

    .promo-block__btn {
        color: #fff;
        margin-top: 16px;
        width: 100%;
        background: #E30611;
    }

    .before-after {
        display: block;
    }

    .before-after__item:first-child {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #E5E5E8;
    }

    .before-after__card-image {
        width: 100%;
    }

    .before-after-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .before-after-footer__title {
        font-size: 20px;
        line-height: 28px;
    }

    .before-after-footer__form.btn,
    .before-after-footer__call.btn {
        width: 100%;
    }

    .before-after-footer__call.btn {
        display: none;
    }

    .before-after-footer__tel.btn {
        display: flex;
    }

    .b-glazing {
        grid-template-columns: 1fr;
    }

    .b-glazing-item {
        height: auto;
        padding-top: 37%;
    }

    .price-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .price-table {
        padding: 16px;
        background: #F2F3F7;
    }

    .price-table__name {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .price-table__row {
        padding: 0;
        display: block;
        font-size: 14px;
        line-height: 20px;
    }

    .price-table__row-title span {
        display: inline;
    }

    .price-table__row:not(:last-child) {
        border-bottom: none;
        margin-bottom: 4px;
    }

    .price-table__row-value {
        text-align: left;
    }

    .price-footer__title {
        padding: 16px;
        border-radius: 16px;
        background: #F2F3F7;
        font-size: 16px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
    }

    .price-footer__title::after {
        content: "";
        display: inline-block;
        width: 40px;
        height: 40px;
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' rx='20' fill='%23E30611'/%3E%3Cpath d='M20.0005 27.3335C21.0143 27.3335 21.8345 28.1536 21.8345 29.1675C21.8343 30.1811 21.0142 31.0005 20.0005 31.0005C18.987 31.0002 18.1677 30.181 18.1675 29.1675C18.1675 28.1538 18.9869 27.3337 20.0005 27.3335ZM20.0005 8.99951C23.5386 8.99975 26.4165 11.8783 26.4165 15.4165C26.4164 18.313 24.4733 20.738 21.8335 21.5337V23.6665C21.8333 24.68 21.014 25.4993 20.0005 25.4995C18.9868 25.4995 18.1667 24.6802 18.1665 23.6665V19.9995C18.1665 18.9857 18.9867 18.1665 20.0005 18.1665C21.5163 18.1663 22.7503 16.9324 22.7505 15.4165C22.7505 13.9005 21.5164 12.6667 20.0005 12.6665C18.4843 12.6665 17.2505 13.9003 17.2505 15.4165C17.2503 16.4302 16.4302 17.2495 15.4165 17.2495C14.4029 17.2494 13.5837 16.4301 13.5835 15.4165C13.5835 11.8782 16.4622 8.99951 20.0005 8.99951Z' fill='white'/%3E%3C/svg%3E%0A");
    }

    .b-price {
        position: relative;
        padding: 12px;
        justify-content: flex-end;
        height: 236px;
        background-position: center;
        background-size: cover;
    }

    .b-price::after {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        border-radius: 12px;
        background: linear-gradient(0deg, #1D2023 -11.86%, rgba(29, 32, 35, 0) 75.97%);
    }

    .b-price__title {
        margin-bottom: 2px;
        color: #fff;
        font-size: 16px;
        line-height: 24px;
        position: relative;
        z-index: 1;
    }

    .b-price__value {
        position: relative;
        z-index: 1;
    }

    .b-price__title br {
        display: none;
    }

    .b-review-video {
        margin: 0 auto;
        max-width: 328px;
        max-height: none;
    }

    .b-reviews-left>.b-reviews__title {
        display: none;
    }

    .tabs-list {
        display: none;
    }

    .tabs {
        display: block;
        padding: 0;
    }

    .tabs .hand-cursor {
        display: block;
    }

    .tabs-open.active .tab-tooltip {
        display: block;
    }

    .tab-tooltip {
        position: absolute;
        right: 0;
        border-radius: 4px;
        background: #FFF;
        padding: 12px;
        width: 246px;
        text-align: left;
        font-size: 14px;
        color: #1D2023;
    }

    .tab-tooltip__title {
        font-weight: 500;
    }

    .tabs-slide {
        gap: 24px;
        padding: 24px;
        border-radius: 16px;
        background: #F2F3F7;
    }

    .tabs-slide-card__problem,
    .tabs-slide-card__decision {
        position: static;
        background: transparent;
        font-size: 20px;
        margin-bottom: 8px;
        padding: 0;
    }

    .tabs-slide-card__problem {
        color: #E30611;
    }

    .tabs-slide-card__decision {
        color: #4AC99B;
    }

    .tabs-slide-card__text {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .roof-block__text {
        display: block;
    }

    .roof-block {
        padding: 0;
    }

    .roof-block-text {
        color: #74767A;
        font-size: 14px;
        line-height: 20px;
    }

    .roof-block-text span {
        font-weight: 400;
        font-size: 14px;
    }

    .roof-block {
        flex-direction: column-reverse;
    }

    .roof__image {
        display: flex;
        justify-content: flex-end;
        border-radius: 16px;
        background: #F2F3F7;
        overflow: hidden;
    }

    .roof-info-wrap {
        max-width: 100%;
        padding-bottom: 0;
    }

    .warm-balcony .roof__image {
        border-radius: 20px;
        max-width: 100%;
        max-height: none;
    }
}