.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    width: 100%;
    padding-block: 25px;
    padding-inline: max(80px, calc((100% - 1920px) / 2));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: 'fira-code', 'sans-serif';
    color: var(--text-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

.topbar--mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: none;
    width: 100%;
    padding-block: 25px;
    padding-inline: max(80px, calc((100% - 1920px) / 2));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: 'fira-code', 'sans-serif';
    color: var(--text-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}


.topbar__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar__link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    position: relative;
}

.topbar__link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.topbar__link:hover::after {
    opacity: 1;
}

.topbar__link.active {
    color: var(--primary-color);
}

.topbar__lang {
    display: inline-flex;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    overflow: hidden;
}

.topbar__lang-btn {
    color: var(--text-color);
    background: transparent;
    border: 0;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    font-family: 'fira-code', 'sans-serif';
}

.topbar__lang-btn:hover {
    background: rgba(31, 215, 178, 0.12);
}

.topbar__lang-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.topbar__lang-btn--active {
    background: var(--primary-color);
    color: var(--text-color);
    font-weight: bold;
}

.topbar__lang-btn--active:hover {
    background: var(--primary-color);
}

.logo {
    position: relative;
    display: inline-block;
    height: 48px;
    overflow: hidden;
}

.logo__img {
    display: block;
    height: 48px;
    width: auto;
}

.logo__img--base {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 450ms ease, opacity 220ms ease;
}

.logo__img--overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 450ms ease, opacity 220ms ease;
}

.logo:hover .logo__img--base,
.logo:focus-visible .logo__img--base {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
}

.logo:hover .logo__img--overlay,
.logo:focus-visible .logo__img--overlay {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.footer {
    padding-block: 70px;
    padding-inline: max(100px, calc((100% - 1920px) / 2));
}

.footer__container {
    display: flex;
    align-items: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 180px;
}

.footer__tagline,
.footer__location {
    font-family: 'karla', sans-serif;
    font-size: 1rem;
    color: var(--text-color-hoverable);
}

.footer__copyright {
    text-align: center;
    font-family: 'fira-code', sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    flex: 1;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100px;
}

.footer__links a {
    font-family: 'karla', sans-serif;
    font-size: 1rem;
    color: var(--text-color-hoverable);
    text-decoration: none;
    transition: color 220ms ease;
    position: relative;
}

.footer__links a::before {
    content: '';
    position: absolute;
    left: -12.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer__links a:hover {
    color: var(--primary-color);
}

.footer__links a:hover::before {
    opacity: 1;
}

@media (max-width: 700px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .footer__links {
        align-items: center;
    }
}