/* Telegram banner — responsive */
.ac-tg {
    padding-top: 1.5rem;
}

.ac-tg--compact {
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
}

.ac-tg__card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon content"
        "btn btn";
    gap: 0.875rem 1rem;
    align-items: center;
    width: 100%;
    padding: 1.125rem 1.125rem 1.125rem 1.25rem;
    border-radius: 0.75rem;
    background: #2c2b3c;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(44, 43, 60, 0.16);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ac-tg__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2aabee, #229ed9);
}

.ac-tg__card:hover,
.ac-tg__card:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 34px rgba(44, 43, 60, 0.22);
}

.ac-tg__icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2aabee;
    box-shadow: 0 6px 14px rgba(42, 171, 238, 0.35);
    flex-shrink: 0;
}

.ac-tg__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.ac-tg__content {
    grid-area: content;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ac-tg__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffd300;
    line-height: 1.2;
}

.ac-tg__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.ac-tg__highlight {
    color: #ffd300;
}

.ac-tg__text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    opacity: 0.85;
}

.ac-tg__btn {
    grid-area: btn;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid #d22e28;
    background: #d22e28;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ac-tg__card:hover .ac-tg__btn,
.ac-tg__card:focus-visible .ac-tg__btn {
    background: #b82520;
    border-color: #b82520;
}

/* Tablet+ : icon | text | button in one row */
@media (min-width: 640px) {
    .ac-tg {
        padding-top: 2rem;
    }

    .ac-tg__card {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "icon content btn";
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }

    .ac-tg__icon {
        width: 52px;
        height: 52px;
    }

    .ac-tg__icon svg {
        width: 26px;
        height: 26px;
    }

    .ac-tg__title {
        font-size: 1.125rem;
    }

    .ac-tg__text {
        font-size: 0.875rem;
    }

    .ac-tg__btn {
        min-width: 148px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .ac-tg {
        padding-top: 3rem;
    }

    .ac-tg__card {
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }

    .ac-tg__icon {
        width: 56px;
        height: 56px;
    }

    .ac-tg__icon svg {
        width: 28px;
        height: 28px;
    }

    .ac-tg__label {
        font-size: 0.75rem;
    }

    .ac-tg__title {
        font-size: 1.25rem;
    }

    .ac-tg__text {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1200px) {
    .ac-tg {
        padding-top: 4rem;
    }

    .ac-tg__title {
        font-size: 1.375rem;
    }
}

.ac-tg--compact .ac-tg__card {
    padding: 1rem 1.125rem;
    gap: 0.75rem 1rem;
}

.ac-tg--compact .ac-tg__icon {
    width: 44px;
    height: 44px;
}

.ac-tg--compact .ac-tg__icon svg {
    width: 22px;
    height: 22px;
}

.ac-tg--compact .ac-tg__title {
    font-size: 0.9375rem;
}

.ac-tg--compact .ac-tg__text {
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .ac-tg--compact {
        padding-top: 1.5rem;
    }

    .ac-tg--compact .ac-tg__card {
        padding: 1.125rem 1.25rem;
    }

    .ac-tg--compact .ac-tg__title {
        font-size: 1.0625rem;
    }

    .ac-tg--compact .ac-tg__text {
        font-size: 0.8125rem;
    }
}

@media (min-width: 992px) {
    .ac-tg--compact {
        padding-top: 2rem;
    }
}

/* Very small phones */
@media (max-width: 379px) {
    .ac-tg__title {
        font-size: 0.9375rem;
    }

    .ac-tg__text {
        font-size: 0.75rem;
    }
}
