:root {
    --site-ease: cubic-bezier(.22, .74, .24, 1);
    scroll-padding-top: 80px;
}

.company-footer { padding-block: clamp(28px, 5vw, 48px); }
.company-footer .footer-layout { align-items: start; gap: clamp(18px, 3vw, 32px); }

.company-card {
    box-sizing: border-box;
    padding: clamp(16px, 2vw, 22px);
    border-radius: 20px;
    border: 1px solid #dce4f1;
    background: #f4f7fc;
    color: #172842;
    font-size: 14px;
}

.company-card-heading,
.company-social,
.company-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.company-card-heading { justify-content: space-between; margin-bottom: 10px; }
.company-card h2 { margin: 0; font-size: 16px; font-weight: 750; }
.company-card address { color: #41516b; font-style: normal; line-height: 1.5; }
.company-card a { overflow-wrap: anywhere; }
.company-email { display: inline-block; margin-block: 8px 12px; font-weight: 650; color: #2c4e91; }

.company-social-link,
.company-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #dce4f1;
    color: #2d466e;
    background: #fff;
    transition: color .16s var(--site-ease), background-color .16s var(--site-ease);
}

.company-social-link { width: 38px; }
.company-actions a { padding-inline: 10px; font-size: 12px; font-weight: 650; }
.company-actions .company-primary { color: #fff; background: #294f96; border-color: #294f96; }
.company-card a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.dark .company-card { background: #131e31; border-color: #2b3b55; color: #f0f4fc; }
.dark .company-card address { color: #b4c1d6; }
.dark .company-email { color: #a8c5ff; }
.dark .company-social-link,
.dark .company-actions a { color: #e7efff; background: #202f48; border-color: #334664; }
.dark .company-actions .company-primary { color: #fff; background: #3761af; border-color: #3761af; }

@media (hover: hover) {
    .company-email:hover { text-decoration: underline; }
    .company-social-link:hover, .company-actions a:hover { background: #e3edff; }
    .dark .company-social-link:hover, .dark .company-actions a:hover { background: #304467; }
    .company-actions .company-primary:hover { background: #214282; }
    .dark .company-actions .company-primary:hover { background: #2e5296; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .company-footer .footer-layout { grid-template-columns: 1.5fr 1fr 1fr; }
    .company-footer .footer-brand,
    .company-footer .footer-links { grid-column: auto; grid-row: auto; }
    .company-footer .footer-contact { grid-column: 1 / -1; grid-row: auto; }
}

@media (min-width: 1024px) {
    .company-footer .footer-layout { grid-template-columns: 1.05fr .55fr .65fr minmax(0, 1.65fr); }
}

@keyframes site-surface-in {
    from { opacity: 0; translate: 0 6px; }
    to { opacity: 1; translate: none; }
}

@keyframes site-panel-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hs-dialog-overlay { backdrop-filter: none; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    @view-transition { navigation: auto; }

    html:not(.hn-theme-reveal)::view-transition-old(root) {
        animation-duration: 130ms;
        animation-timing-function: ease-out;
    }

    html:not(.hn-theme-reveal)::view-transition-new(root) {
        animation-duration: 200ms;
        animation-timing-function: var(--site-ease);
    }

    :where([role="tabpanel"]:not([hidden], .hidden), details[open] > :not(summary)),
    #lbRankingList > * {
        animation: site-panel-in 160ms var(--site-ease) both;
    }

    :where([role="menu"], [popover]:popover-open, #floatingMenu, #profileDropdownMenu, #countryDropdownMenu, [data-language-panel], dialog[open]):not(.hidden, [hidden]),
    :where([id$="Modal"], .modal-shell):not(.hidden, [hidden], [aria-hidden="true"]) > :where(.modal-card, [id$="Card"], [id$="Content"], div) {
        animation: site-surface-in 200ms var(--site-ease) both;
    }

    #popup-saluran { transition: background-color .2s var(--site-ease); }
    #popup-saluran > div { transition: opacity .2s var(--site-ease), transform .2s var(--site-ease); }
    .hs-dialog-card, .hs-modal-enter { animation: site-surface-in 200ms var(--site-ease) both; }
    .hs-dialog-overlay.is-closing .hs-dialog-card { animation: site-surface-in 180ms ease reverse both; }
}

@media (prefers-reduced-motion: reduce) {
    html, .scroll-smooth { scroll-behavior: auto !important; }
    :is(.hs-dialog-overlay, .hs-dialog-card, .hs-modal-enter, #popup-saluran, #popup-saluran > div) {
        animation: none !important;
        transition: none !important;
    }
}
