body {
    margin: 0;

    font-family: "Manrope", serif;
    font-size: 18px;
    color: #000;
    -webkit-font-smoothing: antialiased;

    background-color: rgba(250, 250, 250, 1);
}

*,.grid-gallery .item img
*:before,
*:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0 0 10px;
}

a, button {
    all: unset;
    cursor: pointer;
}

/* Container
===================*/
.container {
    width: 100%;
    max-width: 1307px;
    margin: 0 auto;
    padding: 0 15px;
}

.container_small {
    width: 100%;
    max-width: 1066px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 0px;
    z-index: 999;
        backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: .5s ease;
}

.header_logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #757575;
    margin-right: 30px;
}

.switch a {
    font-family: Manrope;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -5%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #757575;

}

.switch a.active {
    color: #161616;
}

.header_logo img {
    width: 64px;
}

.header_nav {
    display: flex;
    gap: 28px;
}

.header_col {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header_nav a {
    font-family: Manrope;
    font-weight: 600;
    font-size: 15px;
    line-height: 15px;
    letter-spacing: -5%;
    text-transform: uppercase;
    position: relative;
    color: #161616;
}

.header_nav a:hover::after {
    width: 100%;
}

.header_nav a:after {
    content: "";
    width: 0;
    height: 1px;
    background-color: #161616;
    position: absolute;
    bottom: -5px;
    left: 0;
    z-index: 1;
    transition: width .2s linear;
}

ul {
    list-style: none; /* Removes default bullet points */
}


.header_menu {
    display: none;
}

a.adress {
  font-family: Manrope;
font-weight: 800;
font-size: 13px;
line-height: 15.6px;
letter-spacing: -2%;
text-align: center;
}

.burger-menu {
    display: none;
}

a {
    transition: .3s ease;
}

.intro_btn:hover img, .under_services_r button:hover img, .partner_under a:hover img, .contact_links_action a:hover img, .contacts_r button:hover img {
    transform: translate(2px, -2px);
}

a img {
    transition: .3s ease;
}

button img {
    transition: .3s ease;
}

.project {
    padding-top: 169px;
}

.project_title {
    font-family: Manrope;
    font-weight: 800;
    font-style: ExtraBold;
    font-size: 52px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -5%;
    text-transform: uppercase;
    color: #161616;
    margin-bottom: 15px;
    text-align: center;
}

.project_subtitle {
    font-family: Manrope;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 112.00000000000001%;
    letter-spacing: -2%;
    color: #000000;
    text-align: center;
}

.project_col {
    padding-top: 52px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid #CCCCCC
}

.project_description {
    font-family: Manrope;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 128%;
    letter-spacing: 0%;
   color: #00000099;
   max-width: 655px;
   padding-right: 30px;
}

.project_action {
    margin-top: 8px;
}

.project_action a {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(22, 22, 22, 1);
    font-family: Manrope;
    font-weight: 800;
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: -2%;
    text-align: center;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    width: 100%;
    padding: 0px 43px;
    text-align: center;
    justify-content: center;
    height: 55px;
    width: max-content;
}


.project_action:hover img  {
    transform: translate(2px, -2px);
}

a img {
    transition: .3s ease;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px; /* базовая высота строки, т.е. 1x = 200px */
    gap: 7px;
    width: 100%;
    margin: auto;
    margin-bottom: 80px;
    margin-top: 24px;
    grid-auto-flow: dense;
}

.grid-gallery .item {
    position: relative;
    overflow: hidden;
}

.grid-gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0px;
    transition: .3s ease;
}

.grid-gallery .item img:hover {
    transform: scale(1.05);
}

/* Высоты элементов: */
.grid-gallery .h1 { grid-row: span 1; }     /* 200px */
.grid-gallery .h1-5 { grid-row: span 1.5; } /* 300px (200 + 100) */
.grid-gallery .h2 { grid-row: span 2; }     /* 400px */

footer {
    padding-top: 60px;
    padding-bottom: 44px;
}

.footer_first {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_col {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer_nav {
    display: flex;
    gap: 17.5px;
    text-transform: uppercase;
    align-items: center;
}

.footer_nav a {
    font-family: Manrope;
    font-weight: 600;
    font-size: 15px;
    line-height: 15px;
    letter-spacing: -3%;
    position: relative;
}

.footer_nav a:hover::after {
    width: 100%;
}

.footer_nav a:after {
    content: "";
    width: 0;
    height: 1px;
    background-color: #000;
    position: absolute;
    bottom: -5px;
    left: 0;
    z-index: 1;
    transition: width .2s linear;
}


.footer_logo img {
    display: flex;

}

.footer_logo, .footer_nav, .footer_social {
    flex: .5;
}

.footer_nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer_social a {
    aspect-ratio: 1;
    background: rgba(32, 32, 32, 1);
    min-width: 31px;
    display: flex;
    justify-content: center;
    align-items: center;
}
    
.footer_social a img {
    display: flex;
}

.footer_social {
    display: flex
;
    gap: 2.75px;
    align-items: center;
    justify-content: flex-end;
}


.footer_author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.footer_second {
    display: flex
;
    align-items: flex-end;
    justify-content: space-between;
}

.author_img {
    border-radius: 1px;
    overflow: hidden;
    max-width: 45px;
}

.author_img img {
    display: flex;
    width: 100%;
}

.author_info {
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 16.64px;
    letter-spacing: -5%;
    color: rgba(38, 38, 38, 1);
}

.footer_rights {
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 16.64px;
    letter-spacing: -5%;
    color: rgba(38, 38, 38, 1);
    margin-bottom: 5px;
}

.br_footer_on {
    display: none;
}

@media (max-width: 768px) {
    .br_footer_on {
        display: block;
    }
}

@media(max-width: 768px) {
    .project_title {
        font-size: 32px;
        line-height: 100%;
    }
    .project_col {
    padding-top: 52px;
    display: flex
;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid #CCCCCC;
    flex-direction: column;
}
    .project_description {
        padding-right: 0;
    }
    .project_action a {
        display: flex
    ;
        align-items: center;
        gap: 3px;
        background: rgba(22, 22, 22, 1);
        font-family: Manrope;
        font-weight: 800;
        font-size: 16px;
        line-height: 19.2px;
        letter-spacing: -2%;
        text-align: center;
        color: rgba(255, 255, 255, 1);
        text-transform: uppercase;
        width: 100%;
        padding: 0px 43px;
        text-align: center;
        justify-content: center;
        height: 55px;
        width: -webkit-fill-available;
        margin-top: 15px;
    }
    .burger-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgb(48 48 48 / 90%);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        z-index: 99999;
        visibility: hidden;
        transition: opacity 0.3sease-in-out, visibility 0.3sease-in-out;
    }

    /* Стили для фона бургера */
    .burger-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    /* Активный класс */
    .burger-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* Стили для ссылок */
    .burger-menu nav {
        text-align: center;
        display: flex
;
        flex-direction: column;
        align-items: center;
    }

    .burger-menu nav a {
        display: block;
        margin: 20px 0;
        font-family: Manrope;
        font-weight: 600;
        font-size: 18px;
        line-height: 15px;
        letter-spacing: -5%;
        text-transform: uppercase;
        text-align: center;
        width: fit-content;
        color: white;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s;
        position: relative;
    }

    .burger-menu a:hover::after {
        width: 100%;
    }

    .burger-menu a:after {
        content: "";
        width: 0;
        height: 1px;
        background-color: #fff;
        position: absolute;
        bottom: -5px;
        left: 0;
        z-index: 1;
        transition: width .2s linear;
    }


    .close-btn {
        position: absolute;
        top: -5px;
        left: 15px;
        background: none;
        border: none;
        font-size: 50px;
        font-weight: 100;
        color: white;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .close-btn:hover {
        transform: scale(1.2);
    }
    .header_nav {
        display: none;
    }
    .header_menu {
        display: flex;
    }
    
    .footer_first {
        display: flex
    ;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        g: center;
        gap: 60px;
    }
    .footer_nav {
        flex: 1;
        display: flex
    ;
        justify-content: center;
        flex-direction: column;
        gap: 24px;
    }
    .author_img {
        border-radius: 1px;
        overflow: hidden;
        max-width: 35px;
        min-width: 35px;
    }
    .author_info {
        font-family: Manrope;
        font-weight: 500;
        font-size: 14px;
        line-height: 14.56px;
        letter-spacing: -.3px;
        min-width: 110px;
    }
    .footer_author {
        gap: 8px;
    }

    .footer_rights {
        font-family: Manrope;
        font-weight: 500;
        font-size: 14px;
        line-height: 14.56px;
        letter-spacing: -1px;
        margin-bottom: 3px;
    }
    .footer_second {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .grid-gallery {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto; /* высота авто под изображение */
    }
.header_logo img {
        height: 45px;
    }
        .br_footer {
            display: none;
        }
    .grid-gallery .item {
        grid-column: span 1 !important;
        grid-row: span 2 !important;
    }

    .grid-gallery .item img {
        height: auto;
        /*aspect-ratio: 1/1;*/
        object-fit: cover;
    }
    .footer_social a {
        min-width: 40px;
    }
        .author_info {
        font-family: Manrope;
        font-weight: 500;
        font-size: 14px;
        line-height: 14.56px;
        letter-spacing: -.3px;
        min-width: 110px;
    }
}
