/* Secondary hero action, scoped so existing hero typography stays intact. */
.page__container .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: calc(100vw - 48px);
}

.page__container .hero-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    gap: 12px;
    box-sizing: border-box;
    width: 250px;
    max-width: calc(100vw - 48px);
    min-height: 64px;
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid #1b4a63;
    border-radius: 8px;
    background: #0b1820;
    color: #f4f8fb;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    transform: translateY(0);
    transition: background-color 200ms cubic-bezier(.2, .7, .3, 1),
                border-color 200ms cubic-bezier(.2, .7, .3, 1),
                transform 200ms cubic-bezier(.2, .7, .3, 1);
}

.page__container .hero-telegram .hero-telegram__icon {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    background-color: #2aabee;
    -webkit-mask: url('/static/svg/akar-icons_telegram-fill.svg') center / contain no-repeat;
    mask: url('/static/svg/akar-icons_telegram-fill.svg') center / contain no-repeat;
    transform: none;
    transition: background-color 200ms cubic-bezier(.2, .7, .3, 1);
}

.page__container .hero-telegram .hero-telegram__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    color: #f4f8fb;
    font: inherit;
    line-height: 1.25;
    text-align: left;
    text-shadow: none;
    transform: none;
}

.page__container .hero-telegram .hero-telegram__title {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    color: #f4f8fb;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
    text-align: left;
    text-transform: none;
    text-shadow: none;
    transform: none;
    transition: color 200ms cubic-bezier(.2, .7, .3, 1);
}

.page__container .hero-telegram .hero-telegram__subtitle {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    color: #8eafc2;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 18px;
    text-align: left;
    text-transform: none;
    text-shadow: none;
    transform: none;
    transition: color 200ms cubic-bezier(.2, .7, .3, 1);
}

.page__container .hero-telegram .hero-telegram__arrow {
    display: block;
    flex: 0 0 auto;
    height: auto;
    margin: 0 0 0 auto;
    padding: 0;
    color: #6cb9e4;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    text-shadow: none;
    transform: translate(0, 0);
    transition: color 200ms cubic-bezier(.2, .7, .3, 1),
                transform 200ms cubic-bezier(.2, .7, .3, 1);
}

.page__container .hero-telegram:hover {
    border-color: #2d83ad;
    background-color: #102430;
    transform: translateY(-1px);
}

.page__container .hero-telegram:hover .hero-telegram__icon { background-color: #48bbf8; }
.page__container .hero-telegram:hover .hero-telegram__title { color: #fff; }
.page__container .hero-telegram:hover .hero-telegram__subtitle { color: #acd0e5; }
.page__container .hero-telegram:hover .hero-telegram__arrow {
    color: #9ddaff;
    transform: translate(1px, -1px);
}

.page__container .hero-telegram:active {
    border-color: #399dce;
    background-color: #132d3b;
    transform: translateY(0);
}

.page__container .hero-telegram:active .hero-telegram__arrow { transform: translate(0, 0); }

.page__container .hero-telegram:focus-visible {
    outline: 2px solid #54bfff;
    outline-offset: 4px;
}

/* Keep both actions reachable on short desktop and landscape windows. */
@media (min-width: 768px) and (max-height: 620px) {
    .page__container:has(.hero-actions) {
        box-sizing: border-box;
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 56px 24px 112px;
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page__container .hero-telegram,
    .page__container .hero-telegram .hero-telegram__icon,
    .page__container .hero-telegram .hero-telegram__title,
    .page__container .hero-telegram .hero-telegram__subtitle,
    .page__container .hero-telegram .hero-telegram__arrow { transition: none; }

    .page__container .hero-telegram:hover,
    .page__container .hero-telegram:active,
    .page__container .hero-telegram:hover .hero-telegram__arrow,
    .page__container .hero-telegram:active .hero-telegram__arrow { transform: none; }
}
