.footer {
    background: #171d23;
    border-top: 1px solid #2a3340;
    padding: 44px 0 30px;
}

.footer__intro {
    margin: 0 0 18px;
}

.footer__intro-title {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.15;
    color: #f3f6fb;
}

.footer__intro-legal {
    margin: 0;
    font-size: 14px;
    color: #b6c0cf;
}

.footer__intro-legal a {
    color: #82b7ff;
    text-decoration: none;
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(3, 404px);
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 28px;
    margin: 0 0 26px;
    border-bottom: 1px solid #2a3340;
}

.footer__safety,
.footer__rules,
.footer__support {
    min-height: 268px;
    padding: 20px;
    border-radius: 14px;
    background: #2b2e33;
}

.footer__safety-title,
.footer__rules-title,
.footer__support-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #f3f6fb;
}

.footer__rules-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer__rules-heading-icon {
    width: 36px;
    height: 48px;
    object-fit: contain;
    margin-top: 1px;
}

.footer__rules-heading .footer__rules-title {
    margin: 0;
}

.footer__support-text{
    font-size: 13px;
}
.footer__safety-text,
.footer__support-hours,
.footer__support-legal {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #e4e9f2;
}

.footer__safety-list,
.footer__rules-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__safety-list li,
.footer__rules-list li {
    position: relative;
    margin-top: 33px;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.4;
    color: #e4e9f2;
}

.footer__safety-list li::before,
.footer__rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: 0;
    background: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='2.5' y='2.5' width='15' height='15' rx='3' fill='%23080a0c' stroke='%2320d38a'/%3E%3Cpath d='M6.5 10.2l2.1 2.1 4.9-4.9' stroke='%2320d38a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer__rules-list li::before {
    display: none;
}

.footer__rules-item {
    padding-left: 32px !important;
}

.footer__rules-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.footer__rules-item--phone::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect width='20' height='20' rx='10' fill='%23eaf1ff'/%3E%3Cpath d='M12.99 11.92l-1.02 1.02c-.11.11-.28.15-.43.1-1.16-.39-2.18-1.08-2.95-1.85-.77-.77-1.46-1.79-1.85-2.95-.05-.15-.01-.32.1-.43l1.02-1.02a.5.5 0 000-.71L6.85 4.07a.5.5 0 00-.71 0L5.2 5.01c-.28.28-.4.69-.31 1.08.54 2.32 1.76 4.37 3.5 6.11 1.74 1.74 3.79 2.96 6.11 3.5.39.09.8-.03 1.08-.31l.94-.94a.5.5 0 000-.71l-1.82-1.82a.5.5 0 00-.71 0z' fill='%231368e8'/%3E%3C/svg%3E");
}

.footer__rules-item--message::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect width='20' height='20' rx='10' fill='%23eef2ff'/%3E%3Cpath d='M5.5 6.5A1.5 1.5 0 017 5h6a1.5 1.5 0 011.5 1.5v7A1.5 1.5 0 0113 15H7a1.5 1.5 0 01-1.5-1.5v-7z' stroke='%236366f1' stroke-width='1.2'/%3E%3Cpath d='M6.2 7.1l3.3 2.2c.3.2.7.2 1 0l3.3-2.2' stroke='%236366f1' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.footer__rules-item--check::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='2.5' y='2.5' width='15' height='15' rx='3' fill='%23ecfdf5' stroke='%2310b981'/%3E%3Cpath d='M6.5 10.2l2.1 2.1 4.9-4.9' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer__support-text a,
.footer__support-legal a {
    color: #82b7ff;
    text-decoration: none;
}

.footer__support-text a:hover,
.footer__support-legal a:hover {
    text-decoration: underline;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
    padding: 0 0 30px;
    margin: 0 0 26px;
    border-bottom: 1px solid #2a3340;
}

.footer__links-col h5 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #e8edf5;
}

.footer__links-col h5:not(:first-child) {
    margin-top: 18px;
}

.footer__links-col a {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.35;
    color: #b6c0cf;
    text-decoration: none;
}

.footer__links-col a:hover {
    color: #82b7ff;
}

.footer__cta-row {
    display: grid;
    grid-template-columns: 606px 295px 295px;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid #2a3340;
}

.footer__cta-card {
    height: 144px;
    border-radius: 14px;
    background: #2b2e33;
}

.footer__cta-card--app {
    display: grid;
    grid-template-columns: 96px 1fr 160px;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
}

.footer__cta-card--download {
    background: #2b2e33;
    padding: 16px;
    color: #fff;
}

.footer__cta-card--contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    background: #2b2e33;
}

.footer__app-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
}

.footer__app-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #fff;
}

.footer__store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 114px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    background: #191d22;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.footer__download-title {
    margin: 5px 0 10px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.footer__stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 114px);
    justify-content: center;
    gap: 8px;
}

.footer__store-btn:hover {
    opacity: 0.92;
}

.footer__app-qr img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 10px;
}

.footer__app-promo-image {
    width: 160px;
    height: 144px;
    object-fit: contain;
}

.footer__phone {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #f3f6fb;
    text-decoration: none;
}

.footer__phone:hover {
    color: #82b7ff;
}

.footer__chat {
    display: inline-block;
    margin: 0 0 6px;
    font-size: 14px;
    color: #82b7ff;
    text-decoration: none;
}

.footer__chat-hours {
    margin: 0;
    font-size: 12px;
    color: #f3f6fb;
    line-height: 1.35;
}

.footer__support-hours {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #080a0c;
    color: #f3f6fb;
}

.footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 18px;
}

.footer__bottom-links a {
    font-size: 13px;
    color: #b6c0cf;
    text-decoration: none;
}

.footer__bottom-links a:hover {
    color: #82b7ff;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f3f6fb;
}

.footer__legal,
.footer__cookies {
    margin: 0 0 8px;
    max-width: 1080px;
    font-size: 11px;
    line-height: 1.55;
    color: #8e9aab;
}

@media (max-width: 1279px) {
    .footer__top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer__cta-row {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .footer {
        padding: 36px 0 26px;
    }

    .footer__top,
    .footer__cta-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer__safety,
    .footer__rules,
    .footer__support,
    .footer__cta-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        min-height: unset;
        height: auto;
        overflow: hidden;
    }

    .footer__cta-card--app {
        grid-template-columns: 1fr 160px;
        align-items: center;
        gap: 10px;
        padding: 14px;
    }

    .footer__app-qr {
        display: none;
    }

    .footer__app-title {
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1.2;
    }

    .footer__app-text {
        font-size: 12px;
        line-height: 1.35;
    }

    .footer__app-promo-image {
        display: block;
        width: 160px;
        height: 144px;
        object-fit: contain;
        justify-self: end;
    }

    .footer__cta-card--download {
        padding: 14px;
    }

    .footer__download-title {
        margin: 0 0 10px;
        font-size: 15px;
    }

    .footer__stores-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .footer__store-btn {
        width: 100%;
        min-width: 0;
    }

    .footer__cta-card--contacts {
        padding: 14px;
        gap: 6px;
    }

    .footer__phone {
        max-width: 100%;
        margin-bottom: 2px;
        font-size: 24px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .footer__chat {
        margin-bottom: 2px;
        font-size: 13px;
    }

    .footer__chat-hours {
        margin: 0;
        max-width: 100%;
        font-size: 11px;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .footer__links {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .footer__links-col {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
}