* {
    margin: 0;
    padding: 0;
}

p {
    margin-top: 5px;
}


body {
    background-color: rgb(212, 212, 212);
}

footer {
    background-color: rgb(222, 135, 43);
}

ul {
    list-style-type: none;
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: rgb(11, 11, 11);
    font-family: 'Roboto', sans-serif;
}

header {
    display: flex;
    background-color: rgb(222, 135, 43);
}

.logo {
    /* position: absolute; */
    width: 160px;
    height: auto;
    flex: 0;
}

.all {
    min-height: calc(100vh - 434px);
    color: rgb(0, 0, 0);
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    background-color: rgba(255, 255, 255, 0.865);
    backdrop-filter: blur(4px);
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.space_div {
    width: 160px;
}

.name_div {
    width: 100%;
    text-align: center;
    padding-top: 6px;
    padding-bottom: 6px;
    background-color: rgb(222, 135, 43);
}

.title {
    font-family: 'Roboto', sans-serif;
    
    /* color: rgb(180, 38, 116) ;
    color: rgb(255, 228, 240); */
    color: rgb(255, 255, 255);
}

.text_div {
    margin-top: 10px;
}

.main_text {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    margin-left: 35px;
}

.footer_main_text {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
}

.minor_text {
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
    text-indent: 35px;
}

.gallery_div {
    margin-top: 10px;
}

.gallery_name {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    text-align: center;
}

.gallery {
    margin-top: 10px;
    display: flex;
    /* writing-mode: horizontal-tb; */
    /* direction: ltr; */
    flex-wrap: wrap;
    place-content: flex-end center;
  }

.block {
    text-align: center;
    max-width: 200px;
    margin-top: 20px;
}

.block_big {
    text-align: center;
    max-width: 280px;
    margin-top: 20px;
}

.item_text {
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
    display: block;
}

.li_element {
    margin-top: 10px;
    margin-left: 40px;
}

.footer_element {
    margin-top: 10px;
}

.inli_element {
    margin-top: 10px;
    list-style-type: "-  "
}

.item_img {
    width: 130px;
    height: 130px;
}

.footer_div {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.gallery_doc {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    place-content: flex-end center;
  }

.item_img_doc {
    width: 100px;
    transition: width 0.4s;
    
}

.item_img_doc:hover {
    width: 500px;
}

.nav_panel {
    gap: 5px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    max-width: 900px;
    justify-content: space-around;
}

.nav_panel a {
    width: 20%;
    display: flex;
}


.nav_link {
    width: 100%;
    font-size: 19px;
    background-color: rgb(222, 135, 43);
    min-height: 30px;
    flex-grow: 1;
    text-align: center;
    border-radius: 0px 0px 10px 10px;
}

.nav_link:hover {
    background-color: rgb(195, 118, 36);
    transition: 0.2s ease;
    
}

.back_all {
    background: url(/img/back.jpg);
    background-repeat: repeat;
    background-size: 100%;
}

.list_disc {
    list-style-type: disc;
    margin-left: 20px;
}

.link_tel {
    color: rgb(255, 255, 255);
}

#inli_fgau {
    list-style-type: none;
}



.object_image {
    width: calc(50% - 2px);
    height: auto; /* автоматическая высота */
    max-height: 300px; /* максимальная высота */
    object-fit: contain; /* сохраняет пропорции полностью */
    object-position: center; /* центрирование картинки */
}

.center_div {
    text-align: center;
}

/* .dve-foti {
    width: 50%;
} */

#fota {
    width: 100%; /* Возвращаем полную ширину */
    margin-left: 5px; /* Сохраняем отступ */
}

/* .flex_div {
    display: flex;
} */

.flex_div {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Первый блок - 2 части, второй - 1 часть */
    gap: 5px;
    grid-column: span 2; /* Растягивание на все 2 колонки */
}

.dve-foti {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 5px;
}

.dve-foti img {
    width: 100%;
}


@media (max-width: 1000px) {
    .logo, .space_div {
        width: 50px;
        height: 50px;
    }

    .title {
        font-size: 24px;
    }
}

@media (max-width: 350px) {
    .space_div, .logo {
        width: 0;
        height: 0;
    }
}

@media (max-width: 585px) {
    .nav_link {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .nav_panel {
        flex-direction: column;
        gap: 0;
    }

    .nav_link {
        font-size: 19px;
        border-radius: 0;
    }

    .nav_panel a {
        width: 100%;
    }

    #last_link {
        border-radius: 0px 0px 10px 10px;
    }

    .li_element {
        margin-left: 0px;
    }
}

@media (max-width: 840px) {
    .item_img_doc {
        width: 80%;
    }

    .item_img_doc:hover {
        width: 80%;
    }

    .block_doc {
        text-align: center;
    }

    .footer_div {
        align-items: center;
        flex-direction: column;
    }
    #map {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .object_gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .object_image {
        width: 100%; /* Полная ширина в своей колонке */
    }
}