
/* Anchor navigation */

#contacts {
    scroll-margin-top: 96px;
}

/* Quick contact CTA */

.direct-contact__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    width: max-content;
    max-width: none;
}

.direct-contact__button {
    display: inline-flex;
    flex: 0 0 auto;

    min-width: 0;
    min-height: 48px;

    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 999px;

    background: #fff;
    color: #111;

    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.direct-contact__button:hover {
    background: rgb(255 255 255 / 92%);

    box-shadow:
        0 8px 24px rgb(0 0 0 / 15%);

    transform: translateY(-2px);
}

.direct-contact__button:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    .direct-contact__actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .direct-contact__button {
        min-height: 44px;
        padding-inline: 14px;
        font-size: 0.9rem;
    }
}


/* Portfolio CTA */

.portfolio-cta__button {
    display: inline-flex;
    width: auto;
    min-width: 220px;
    min-height: 52px;

    align-items: center;
    justify-content: center;

    padding: 0 26px;

    white-space: nowrap;
    text-align: center;
    line-height: 1;

    box-sizing: border-box;
}

@media (max-width: 640px) {
    .portfolio-cta__button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* Footer bottom links */

.site-footer__bottom-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.site-footer__bottom-link {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.site-footer__bottom-link:hover {
    color: inherit;
    opacity: 0.78;
}

.site-footer__bottom-separator {
    margin-inline: 8px;
    color: inherit;
}

.site-footer__bottom-location {
    flex: 0 0 auto;
}

@media (max-width: 800px) {
    .site-footer__bottom {
        gap: 12px;
    }

    .site-footer__bottom-left {
        row-gap: 6px;
    }
}


/* Mobile language toggle */

.mobile-language-toggle {
    display: none;
}

@media (max-width: 800px) {
    .mobile-language-toggle {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;

        display: grid;
        place-items: center;

        border: 1px solid var(--border);
        border-radius: 50%;

        background: transparent;
        color: var(--text);

        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;

        cursor: pointer;

        transition:
            background-color var(--transition),
            border-color var(--transition),
            color var(--transition);
    }

    .mobile-language-toggle:hover {
        border-color: var(--brand);
        background: var(--surface-raised);
    }

    .mobile-language-toggle:active {
        background: var(--surface);
    }

    /* Однакова геометрія верхніх круглих контролів */
    .theme-toggle {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
}
