/**
 * Gas Impex Core — Программа лояльности для водителей (тёмная тема)
 */

.gi-loyalty {
    --gi-loy-bg: #111;
    --gi-loy-line: #1e1e1e;
    --gi-loy-muted: #b3b3b3;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--gi-loy-bg);
    border: 1px solid var(--gi-loy-line);
    border-radius: 14px;
    font-family: 'Onest', sans-serif;
    color: #fff;
}

.gi-loyalty *,
.gi-loyalty *::before,
.gi-loyalty *::after { box-sizing: border-box; }

.gi-loyalty__title {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 16px;
}

.gi-loyalty__title span { color: var(--gi-blue); }

.gi-loyalty__lead {
    font-size: 16px;
    line-height: 1.6;
    color: #d6d6d6;
    margin: 0 0 24px;
}

.gi-loyalty__lead strong { color: #fff; font-weight: 600; }

.gi-loyalty__bot-intro {
    font-size: 15px;
    line-height: 1.5;
    color: var(--gi-loy-muted);
    margin: 0 0 12px;
}

.gi-loyalty__bot-intro a {
    color: #5aa6f7;
    text-decoration: none;
    font-weight: 500;
}

.gi-loyalty__bot-intro a:hover { text-decoration: underline; text-underline-offset: 3px; }

.gi-loyalty__features {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.gi-loyalty__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
}

.gi-loyalty__feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(var(--gi-blue-rgb), 0.1);
    border: 1px solid rgba(var(--gi-blue-rgb), 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gi-loyalty__feature-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #5aa6f7;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gi-loyalty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    background: var(--gi-blue);
    color: #fff !important; /* !important: глобальный цвет ссылок Elementor-кита */
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.gi-loyalty__btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.gi-loyalty__btn:hover { background: #1560b8; }

.gi-loyalty__btn:focus-visible { outline: 2px solid #5aa6f7; outline-offset: 3px; }

/* QR */
.gi-loyalty__qr {
    width: 220px;
    text-align: center;
}

.gi-loyalty__qr-code {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    line-height: 0;
}

.gi-loyalty__qr-code svg { width: 100%; height: auto; display: block; }

.gi-loyalty__qr-caption {
    font-size: 13px;
    line-height: 1.45;
    color: var(--gi-loy-muted);
    margin: 14px 0 0;
}

/* ── Адаптив ── */
/* Широкий блок (ширина как у секций страницы): пункты бота в строку */
@media (min-width: 1100px) {
    .gi-loyalty__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 24px;
    }
}

@media (max-width: 900px) {
    .gi-loyalty { grid-template-columns: 1fr; gap: 0; padding: 32px 24px; }
    /* С телефона QR не отсканировать — оставляем кнопку */
    .gi-loyalty__qr { display: none; }
}

@media (max-width: 480px) {
    .gi-loyalty { padding: 28px 18px; }
    .gi-loyalty__btn { width: 100%; }
}
