.section--design .tabs {
    flex-direction: column;
}

.section--design .tab-buttons,
.section--design .tab-content {
    width: 100%;
    max-width: none;
    flex-basis: auto;
}

.section--design .tab {
    align-items: stretch;
    min-height: 0;
    gap: 50px;
    padding: 50px;
    overflow: hidden;
}

.section--design .tab.active {
    display: flex;
}

.section--design .tab-content__inner,
.section--design .tab-content__media {
    flex-basis: calc((100% - 50px) / 2);
    max-width: calc((100% - 50px) / 2);
}

.section--design .tab-content__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.section--design .tab-content__inner:only-child {
    flex-basis: 100%;
    max-width: 100%;
}

.section--design .tab--without-image.active {
    max-width: 1200px;
}

.section--design .tab-content__media {
    align-self: stretch;
    position: relative;
    min-height: 0;
    background-color: var(--colorGrayLight);
    border-radius: 12px;
    overflow: hidden;
}

.section--design .tab-content__image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section--design .tab-content__title {
    max-width: 80%;
}

/* BEGIN: индивидуальное оформление кнопок блока «Проектирование». */
.section--design .content__button-box .button {
    border: 1px solid var(--colorBlackFourth) !important;
    border-radius: 1000px !important;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.section--design .content__button-box .button[data-form-name="Оставить заявку"] {
    color: var(--colorWhite) !important;
    background: var(--colorBlackFourth) !important;
}

.section--design .content__button-box .button[data-form-name="Оставить заявку"] .button__text {
    color: inherit !important;
}

.section--design .content__button-box .button[data-form-name="Оставить заявку"] .button__decor {
    background-color: var(--colorWhite) !important;
}

.section--design .content__button-box .button[data-form-name="Оставить заявку"]:hover {
    color: var(--colorBlackFourth) !important;
    background: var(--colorYellow) !important;
    border-color: var(--colorYellow) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.section--design .content__button-box .button[data-form-name="Оставить заявку"]:hover .button__decor {
    background-color: var(--colorBlackFourth) !important;
}

.section--design .content__button-box .button[data-form-name="Задать вопрос"] {
    color: var(--colorBlackFourth) !important;
    background: var(--colorWhite) !important;
}

.section--design .content__button-box .button[data-form-name="Задать вопрос"] .button__text {
    color: inherit !important;
}

.section--design .content__button-box .button[data-form-name="Задать вопрос"] .button__decor {
    background-color: var(--colorBlackFourth) !important;
}

.section--design .content__button-box .button[data-form-name="Задать вопрос"]:hover {
    color: var(--colorWhite) !important;
    background: var(--colorBlackFourth) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.section--design .content__button-box .button[data-form-name="Задать вопрос"]:hover .button__decor {
    background-color: var(--colorYellow) !important;
}
/* END: индивидуальное оформление кнопок блока «Проектирование». */

/* Скрываем добавленную темой чёрную стрелку у первой кнопки, не удаляя исходный стиль темы. */
.section--design .content__button-box .button[data-form-name="Оставить заявку"]::after {
    display: none !important;
}

@media (max-width: 1024px) {
    .section--design .tab-buttons {
        flex-basis: auto;
        max-width: none;
    }
}

@media (max-width: 1199px) {
    .section--design .tab {
        flex-direction: column;
    }

    .section--design .tab-content__inner,
    .section--design .tab-content__media {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }

    .section--design .tab-content__media {
        align-self: stretch;
        position: static;
        aspect-ratio: 16 / 9;
    }

    .section--design .tab-content__image {
        position: static;
        inset: auto;
    }
}

@media (max-width: 767px) {
    .section--design .tab-buttons {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 10px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--colorBlackSecondary) transparent;
    }

    .section--design .tab-content {
        display: block;
        overflow: visible;
        padding-bottom: 0;
    }

    .section--design .tab {
        display: none !important;
        flex-direction: column;
        gap: 25px;
        padding: 25px;
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

    .section--design .tab.active {
        display: flex !important;
    }

    .section--design .tab-content__inner,
    .section--design .tab-content__media {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }

    .section--design .tab-content__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .section--design .content__button-box {
        flex-direction: column;
        width: 100%;
    }

    .section--design .content__button-box .button {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .section--design .tab {
        min-width: 0;
    }

}
