.main{
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: auto;
    height: fit-content;
    min-height: 700px;
    -webkit-box-shadow: 5px -6px 40px 7px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 5px -6px 40px 7px rgba(34, 60, 80, 0.2);
    box-shadow: 5px -6px 40px 7px rgba(34, 60, 80, 0.2);
    border-radius: 5px;
    margin-top: 15px;
    .main-navs{
        display: flex;
        width: 100%;
        justify-content: space-evenly;
        padding: 20px;
        letter-spacing: 2px;
        font-size: 20px;
        font-weight: 600;
        font-family: Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        border-bottom: 1px solid #dbded572;
    }
    .main-nav:hover{
                text-decoration: none;
                color:#B2D430 !important;
                cursor: pointer;
            
        }
}
.main-blockk{
    display: flex;
    flex-wrap: wrap ;
    margin-left: 40px;
    .blockk{
        width: 17%;
        box-sizing: border-box;
            min-height: 400px;
            height: fit-content;
            display: flex;
            flex-direction: column;
            margin: 20px;
            -webkit-box-shadow: 7px 6px 27px -7px rgba(34, 60, 80, 0.3);
            -moz-box-shadow: 7px 6px 27px -7px rgba(34, 60, 80, 0.3);
            box-shadow: 7px 6px 27px -7px rgba(34, 60, 80, 0.3);
            .block-img{
                height: 300px;
                width: 100%;
                border-bottom: 1px solid #c4bfbf;
                margin-bottom: 20px;
                position: relative;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            .block-text{
                padding-left: 10px;
                font-size: 18px;
                font-weight: 500;
                letter-spacing: 1px;
                font-family: sans-serif;
                display: flex;
                justify-content: space-between;
                
            }
    }
}

.zatir2-blocks{
    display: flex;
    padding: 10px;
    margin-top: 15px;
    background-color: #ffffff78 !important;
    border-radius: 5px;
    width: 50%;
    .zatir2all{
        display: flex;
        margin-left: 10px;
    }
    .zatir2name{
        font-weight: 400;
        font-family: Arial, Helvetica, sans-serif;
        letter-spacing: 1px;
        margin-left: 10px;
    }
}
.zatir2{
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: sans-serif;
    letter-spacing: 2px;
   
}
#zatir2-container {
    position: relative; /* Чтобы позиционировать close-button относительно этого контейнера */
    width: 100%;
    margin-top: 20px;
    margin-right: 70px;
    margin-left: 20px;
}
.zatir2-block {
    background-color: #b2d4302e;
    padding: 15px;
   
}
.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}
.zatir2-blocks {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #fff;
}



@media only screen and (max-width: 768px) {
    /* Уменьшаем размер изображений и шапки блока */
    .block-img img {
        max-width: 100%;
        height: auto;
    }

    .block-img{
        margin-bottom:0px !important;
    }
    /* Изменяем количество блоков в строке */
    .main-blockk .blockk {
        width: calc(50% - 40px); /* Два блока в ряду с отступами */
        margin: 20px;
    }

    /* Уменьшаем размер шрифта */
    .block-text {
        font-size: 16px;
    }

    /* Центрируем контент */
    .main-blockk {
        justify-content: center;
    }

    /* Округленные углы и красивый эффект теней */
    .blockk {
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Увеличенные поля для удобства чтения */
    .block-text {
        padding: 15px;
        font-size:16px !important;
    }

    .main-navs {
        flex-direction: column; /* Переключаемся на вертикальное размещение */
        align-items: center; /* Выравниваем пункты меню по центру */
        padding: 10px; /* Добавляем внутренние отступы */
        gap: 10px; /* Расстояние между пунктами меню */
    }

    /* Меняем размер и выравнивание пунктов меню */
    .main-navs a {
        font-size: 16px; /* Уменьшаем размер шрифта */
        text-align: center; /* Центрирование текста */
    }

    /* Изменяем отображение объекта "zatir2" */
    .zatir2-blocks {
        flex-direction: column; /* Объекты размещаем вертикально */
        align-items: stretch; /* Растягиваем элементы на всю доступную ширину */
        gap: 10px; /* Промежуток между элементами */
        width:150px !important;
    }

    /* Изменяем название и описание */
    .zatir2name {
        font-size: 16px; /* Средний размер шрифта */
        font-weight: bold; /* Жирный шрифт */
        margin-bottom: 5px; /* Немного увеличиваем расстояние до описания */
    }

    /* Делаем картинку компактнее */
    .zatir2-block img {
        max-width: 100%; /* Масштабируем изображение под блок */
        height: auto; /* Сохраняем пропорции */
    }

    /* Приспосабливаем абзацы */
    .zatir2-block p {
        font-size: 14px; /* Чуть уменьшаем шрифт */
        line-height: 1.5; /* Легко воспринимаемый интервал строк */
        margin-bottom: 10px; /* Небольшой промежуток перед следующим элементом */
    }

    /* Удобные отступы и закругления для всего блока */
    .zatir2-block {
        padding: 15px; /* Компактные отступы */
        border-radius: 5px; /* Мягкий скруглённый угол */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тонкая тень для объёма */
    }

    /* Коррекция положения кнопки закрытия */
    .close-button {
        top: 5px;
        right: 5px;
        padding: 5px 10px;
        border-radius: 20px;
        z-index: 10;
    }
}


.like{
    cursor: pointer;
    width: 35px;
    height: 35px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    background-image: url(icon-2.png);
    border: 0;
    background-color: transparent;
    margin-right: 20px;
}

.active{
    background-image: url(icon-1.png);
}

