/* ============================================================
   Промо-страница «Прощаем микрозайм каждую неделю»
   Figma: Микрозайм — 140:7721 (desktop), 188:4283 (mobile)
   ============================================================ */

:root {
    --promo-green: #52ae30;
    --promo-green-dark: #006648;
    --promo-text: #151617;
    --promo-text-2: #50545d;
    --promo-text-3: #6b7079;
    --promo-text-disabled: #c1c4c9;
    --promo-surface: #f6f7fa;
    --promo-title: #242424;
    --promo-font-head: 'Squad', 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
    --promo-font-body: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
}

/* Длинные слова без пробелов не должны ломать сетку
   (anywhere, а не break-word: влияет на min-content в flex/grid) */
.promo,
.promo-footer,
.promo-modal .modal-content,
.video-modal .modal-content {
    overflow-wrap: anywhere;
}

.section {
    padding: 1.5rem 0;
}

.section .section__header {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section .section__title {
    font-size: 1.75rem;
    font-family: var(--hero-font-family);
    line-height: 1;
    font-weight: 600;
    margin: 0;
}

.section .section__subtitle {
    font-size: 1rem;
    line-height: 1.37;
    margin: 0;
}

.section .section__title,
.section .section__subtitle {
    text-align: inherit;
}

/* ---------- Модальные окна ---------- */

.promo-modal .modal-dialog {
    max-width: 480px;
}

.promo-modal .modal-content {
    border: 0;
    border-radius: 2rem;
    box-shadow: 0 16px 20px rgba(0, 0, 0, .25);
}

.promo-modal .modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
}

.promo-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e8eb;
    border-radius: 50%;
    background: none;
    color: var(--promo-text);
    cursor: pointer;
}

.promo-modal__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    width: 100%;
    text-align: center;
}

.promo-modal__title {
    margin: 0;
    font-family: var(--promo-font-head);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--promo-text);
}

.promo-modal__subtitle {
    margin: 0;
    font-size: .875rem;
    line-height: 1.28;
    color: var(--promo-text-2);
}

.modal-backdrop.show {
    opacity: .85;
}

@media (min-width: 768px) {
    .promo-modal__title {
        font-size: 1.875rem;
    }
}

@media (max-width: 767.98px) {
    .promo-modal .modal-body {
        padding: 2rem 1.5rem;
    }
}

/* FAQ-секция */

.promo-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-acc--lg {
    background: var(--promo-surface);
    border-radius: 1.5rem;
}

/* CTA-баннер с QR и телефонами */

.promo-banner__rays {
    position: absolute;
    top: -5.9375rem;
    right: -10rem;
    width: 560px;
    max-width: none;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.promo-qr {
    display: none;
    align-items: flex-start;
    gap: 1rem;
    width: fit-content;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #fff;
}

.promo-qr__code {
    width: 120px;
    height: 120px;
}

.promo-qr__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    padding: 0.25rem 0;
}

.promo-qr__text {
    width: 130px;
    font-family: var(--promo-font-head);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    color: #010101;
}

.promo-qr__stores {
    display: flex;
    gap: 0.5rem;
}

.promo-qr__stores img {
    width: 32px;
    height: 32px;
}

.promo-banner__mobile-btn {
    width: 100%;
}

.promo-banner__phones {
    position: relative;
    height: 260px;
    margin-top: 1.5rem;
}

.promo-phone {
    position: absolute;
    width: 160px;
}

.promo-phone__frame {
    position: relative;
    z-index: 2;
    width: 100%;
}

.promo-phone__screen {
    position: absolute;
    z-index: 1;
    top: 2%;
    left: 5%;
    width: 90%;
    border-radius: 1.25rem;
}

.promo-phone--front {
    right: 8%;
    top: 0;
    z-index: 2;
}

.promo-phone--back {
    left: 8%;
    top: 4.375rem;
    z-index: 1;
}

.promo-hero-section.section {
    padding-bottom: 0;
}

/* ============================================================
   Планшет
   ============================================================ */

@media (min-width: 768px) {

    .section {
        padding: 4rem 0;
    }

    .section .section__header {
        gap: 1.25rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .section .section__title {
        font-size: 2.5rem;
        line-height: 1.1;
        max-width: 900px;
        align-self: center;
    }

    .section .section__subtitle {
        font-size: 1.125rem;
        line-height: 1.5rem;
        max-width: 720px;
        align-self: center;
    }

    .promo-hero-section.section {
        padding-top: .75rem;
    }

    .promo-facts-section.section {
        padding-top: 2rem;
    }

    .accordion-item {
        border-radius: 2rem;
    }

    .accordion-button {
        font-weight: 700;
    }


    /* FAQ */

    .promo-acc--lg {
        border-radius: 2rem;
        padding: 2rem;
    }

    .promo-acc--lg .promo-acc__q {
        font-family: var(--promo-font-body);
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.33;
    }

    .promo-acc--lg .promo-acc__a {
        font-size: 1.125rem;
        line-height: 1.33;
    }

    /* CTA-баннер */

    .promo-banner--cta .promo-banner__title {
        font-size: 2.5rem;
        max-width: 647px;
    }

    .promo-banner--cta .promo-banner__text {
        max-width: 412px;
    }

    .promo-qr {
        display: flex;
    }

    .promo-banner__mobile-btn {
        display: none;
    }

    .promo-banner__rays {
        top: -5.9375rem;
        left: 45%;
        right: auto;
        width: 730px;
    }

    .promo-banner__phones {
        flex-shrink: 0;
        width: 472px;
        height: 358px;
        margin-top: 0;
    }

    .promo-phone {
        width: 255px;
    }

    .promo-phone--front {
        right: 0;
        top: 0.625rem;
    }

    .promo-phone--back {
        left: 0;
        right: auto;
        top: 6.875rem;
    }
}