﻿/* TenderUUB AI page */

.ai-info__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================================
   Блок 1: Градієнтний промо-блок
   ============================================================ */

/* Зовнішня обгортка — реалізує веселковий бордюр через padding */
.ai-promo {
    border-radius: 12px;
    padding: 3px;
    background: radial-gradient(circle at 11% 15%, rgba(249, 102, 102, 1) 0%, rgba(251, 236, 62, 1) 32%, rgba(36, 229, 117, 1) 67%, rgba(69, 165, 255, 1) 100%);
    box-shadow: 0px 4px 20px 0px rgba(65, 94, 114, 0.2);
}

/* Внутрішній контейнер — градієнтний фон */
.ai-promo__inner {
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(250, 231, 212, 1) 0%, rgba(238, 255, 246, 1) 48%, rgba(227, 244, 255, 1) 100%);
    padding: 30px;
}

/* Рядок: текст + ілюстрація */
.ai-promo__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 70px;
}

/* Текстова колонка */
.ai-promo__text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 100px;
}

.ai-promo__title {
    font-family: Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    margin: 0;
}

.ai-promo__subtitle {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    margin: 0;
}

.ai-promo__desc {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #1D437C;
    margin: 0;
}

/* Візуальна колонка — ілюстрація */
.ai-promo__visual {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 130px;
}

.ai-promo__img {
    display: block;
    width: 330px;
    height: auto;
}

/* ============================================================
   Блок: Відео-інструкція
   ============================================================ */

.video-instruction {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 20px 0px rgba(65, 94, 114, 0.2);
    padding: 30px 150px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.video-instruction__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.video-instruction__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.video-instruction__text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.video-instruction__title {
    font-family: Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    margin: 0;
}

.video-instruction__desc {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #1D437C;
    margin: 0;
}

.video-instruction__desc b {
    font-weight: 700;
}

.video-instruction__video {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #F2F2F2;
}

.video-instruction__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   Блок 2: Білий блок з картками можливостей
   ============================================================ */

.ai-features {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 20px 0px rgba(65, 94, 114, 0.2);
    padding: 30px 150px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    align-items: stretch;
}

/* Заголовок блоку */
.ai-features__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.ai-features__title {
    font-family: Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    text-align: center;
    margin: 0;
}

.ai-features__subtitle {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    text-align: center;
    margin: 0;
}

/* Три картки в рядок */
.ai-features__cards {
    display: flex;
    flex-direction: row;
    gap: 80px;
    align-items: stretch;
}

.ai-feature-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #F2F2F2;
    border-radius: 12px;
}

.ai-feature-card__icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
}

.ai-feature-card__text {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    text-align: center;
}

/* ============================================================
   Блок: Інструкція з кнопкою завантаження
   ============================================================ */

.ai-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.ai-guide__title {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1D437C;
    text-align: center;
    margin: 0;
}

.ai-guide__btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 11px 28px 11px 26px;
    background: #295FAF;
    border-radius: 8px;
    text-decoration: none;
}

.ai-guide__btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.ai-guide__btn-label {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.17;
    color: #ffffff;
}

/* ============================================================
   Блок 3: CTA — Переходь до закупівель
   ============================================================ */

.ai-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.ai-cta {
    background: #295FAF;
    border-radius: 12px;
    box-shadow: 0px 4px 20px 0px rgba(65, 94, 114, 0.2);
    padding: 30px 36px;
}

.ai-cta_secondary {
    background: #ffffff;
}

.ai-cta__content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.ai-cta__title {
    font-family: Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    max-width: 460px;
}

.ai-cta__title_secondary {
    color: #1D437C;
}

.ai-cta__btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 11px 28px 11px 26px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.ai-cta__btn_secondary {
    background: #295FAF;
}

.ai-cta__btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ai-cta__btn-label {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.17;
    color: #295FAF;
}

.ai-cta__btn-label_secondary {
    color: #ffffff;
}

/* ============================================================
   Адаптивність
   ============================================================ */

@media (max-width: 1399.98px) {

    .ai-promo__text {
        padding-left: 40px;
    }

    .ai-promo__visual {
        padding-right: 40px;
    }

    .ai-features {
        padding: 30px 80px;
    }

    .video-instruction {
        padding: 30px 80px;
    }

    .ai-features__cards {
        gap: 40px;
    }

    .ai-cta-grid {
        gap: 20px;
    }

    .ai-cta {
        padding: 28px 24px;
    }

    .ai-cta__title {
        font-size: 22px;
    }
}

@media (max-width: 991.98px) {

    .ai-promo__row {
        flex-direction: column;
        gap: 30px;
    }

    .ai-promo__text {
        padding-left: 0;
    }

    .ai-promo__visual {
        padding-right: 0;
        justify-content: center;
    }

    .ai-promo__img {
        width: 100%;
        max-width: 330px;
    }

    .ai-features {
        padding: 30px 40px;
        min-height: auto;
    }

    .video-instruction {
        padding: 30px 40px;
    }

    .video-instruction__row {
        flex-direction: column;
        align-items: stretch;
    }

    .video-instruction__text {
        flex: none;
    }

    .video-instruction__video {
        flex: none;
        align-self: stretch;
        width: 100%;
    }

    .ai-features__cards {
        gap: 20px;
    }

    .ai-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ai-features__cards {
        flex-direction: column;
    }

    .ai-features {
        padding: 24px 20px;
    }

    .video-instruction {
        padding: 24px 20px;
    }

    .ai-cta__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ai-cta__title {
        max-width: none;
        font-size: 21px;
    }

    .ai-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {

    .ai-promo__inner {
        padding: 20px;
    }

    .ai-cta {
        padding: 24px 20px;
    }

    .ai-cta__title {
        font-size: 18px;
    }
}
