@media (max-width: 768px) {
    body {
        background-position: center center;
        width: 100%;
    }

    header {
        width: 100dvw;
        height: 72px;
        padding: 0 24px;
        flex-direction: row;
        align-items: center;
        justify-content: left;
        z-index: 10;
    }

    .header__logo {
        margin: 0 auto;
        font-size: 18px;
    }

    .header__nav,
    .header__social-links,
    .header__language {
        display: none;
    }

    main {
        margin-left: 0;
        padding-top: 72px;
        width: 100%;
        min-height: 100dvh;
        display: block;
    }

    .container {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        aspect-ratio: auto;
        margin: 0 auto 0;
    }
}









@media (max-width: 768px) {
    .mobile-header__language {
        display: flex;
        position: fixed;
        left: 24px;
        top: 86px;
        width: 98px;
        height: 27px;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 7px;
        overflow: hidden;
        background: rgba(22,22,22,.8);
        z-index: 800;
    }

    .mobile-header__language .language__slider {
        width: 32px;
        height: 25px;
        position: absolute;
        background: white;
        border-radius: 7px;
    }

    .mobile-header__language button {
        position: relative;
        z-index: 1;
        width: 32px;
        height: 25px;
        padding: 0;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        font-family: inherit;
        color: rgba(255,255,255,.75);
        font-size: 14px;
        font-weight: 550;
    }

    .mobile-header__language button.active {
        color: black;
        font-size: 18px;
    }
}










@media (max-width: 768px) {
    .header__burger {
        display: flex;
        width: 24px;
        height: 24px;
        cursor: pointer;
        background: none;
        border: none;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100dvh;
        background-color: rgba(22,22,22,.8);
        padding: 40px 0 40px 40px;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 20;
        font-family: 'Literata', serif;
        font-weight: 600;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu__logo {
        display: flex;
        font-size: 28px;
        color: #ffffff;
    }

    .header__language {
        display: none;
    }

    .mobile-header__language {
        display: flex;
        position: fixed;
        left: 24px;
        top: 96px;
        width: 98px;
        height: 27px;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 7px;
        overflow: hidden;
        background: rgba(22,22,22,.8);
    }

    .mobile-header__language .language__slider {
        position: absolute;
        width: 32px;
        height: 25px;
        background: #fff;
        border-radius: 7px;
    }

    .mobile-header__language button {
        position: relative;
        z-index: 1;
        width: 32px;
        height: 25px;
        padding: 0;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        font-family: inherit;
        color: rgba(255,255,255,.75);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    .mobile-header__language button.active {
        color: #000;
        font-size: 18px;
        font-weight: 600;
    }

    .mobile-menu .mobile-menu__language {
        display: flex;
        position: relative;
        margin-top: 24px;
        width: 98px;
        height: 27px;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 7px;
        overflow: hidden;
    }

    .mobile-menu .mobile-menu__language .language__slider {
        position: absolute;
        width: 32px;
        height: 25px;
        background: #fff;
        border-radius: 7px;
    }

    .mobile-menu .mobile-menu__language button {
        position: relative;
        z-index: 1;
        width: 32px;
        height: 25px;
        padding: 0;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        font-family: inherit;
        color: rgba(255,255,255,.75);
        font-size: 14px;
        cursor: pointer;
    }

    .mobile-menu .mobile-menu__language button.active {
        color: #000;
        font-size: 18px;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        gap: 35px;
        padding: 0 0 0 32px;
        margin-top: 80px;
        font-size: 14px;
    }

    .mobile-menu__nav a {
        display: block;
        color: rgba(255,255,255,.55);
        text-decoration: none;
    }

    .mobile-menu__nav a.mobile-menu__nav_selected {
        color: rgba(255,255,255,1);
    }

    .mobile-menu__social-links {
        display: flex;
        gap: 17px;
        position: absolute;
        bottom: 40px;
        left: 40px;
        margin: 0;
    }

    .mobile-menu__social-links img {
        width: 24px;
        height: 24px;
    }
}










@media (max-width: 768px) {
    .background__blur { 
        display: block;
        position: fixed;
        width: 100%;
        height: 100dvh;
        inset: none;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
        z-index: -1000;
    }

    .background__blur.active {
        inset: 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        filter: blur(10px);
        z-index: 11;
    }
}










@media (max-width: 768px) {
    .projects__title {
        font-size: 40px;
        line-height: 59px;
        margin: 15px auto 0;
    }

    .projects__hero {
        aspect-ratio: 340/200;
        max-width: 340px;
        margin: 0 auto 0;
        border-radius: 18px;
    }

    .hero__img {
        aspect-ratio: 340/200;
        max-width: 340px;
    }

    .hero__logo {
        aspect-ratio: 41/51;
        max-width: 41px;
        left: 10px;
        top: 10px;
    }

    .hero__text {
        font-size: 18px;
        line-height: 24px;
        max-width: 340px;
        margin: 25px auto 0;
    }

    .card {
        max-width: 340px;
        margin: 60px auto 55px;
        border-radius: 18px;
        padding: 0 0 25px 0;
    }

    .card__rectangle {
        position: relative;
        aspect-ratio: 196/25;
        min-width: 0;
        width: 196px;
        right: 0;
        top: -18px;
        margin: 0 auto 0;
        border-radius: 10px;
    }

    .card__role {
        font-size: 20px;
        line-height: 24px;
    }

    .card__hero {
        aspect-ratio: 310/200;
        max-width: 310px;
        margin: -12px auto 0;
        border-radius: 18px;
    }

    .card__logo {
        aspect-ratio: 41/51;
        max-width: 41px;
        left: auto;
        top: 10px;
        right: 10px;
    }

    .card__image {
        margin: 0 auto 0;
    }

    .card__title {
        font-size: 40px;
        line-height: 45px;
        margin-top: 15px;
    }

    .card__description {
        font-size: 16px;
        line-height: 19px;
        max-width: 300px;
        margin-top: 14px;
    }

    .card__links {
        flex-direction: column;
        font-size: 16px;
        line-height: 17px;
        gap: 18px;
        margin: 20px auto 0;
    }

    .card__links a {
        text-underline-offset: 3px;
    }

    .card__links a:first-child {
        order: 2;
    }
    
    .card__links a:last-child {
        order: 1;
    }
}