/*
.line {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    background: #f9f9ff;
}
*/
.line h1 {
    font-size: 32px;
    /*color: #333;*/
    display: flex;
    align-items: center;
    /*gap: 15px;*/
    margin-bottom: 30px;
    /*border-left: 5px solid #59f;*/
    /*padding-left: 15px;*/
}

.line h2 {
    font-size: 26px;
    /*color: #444;*/
    display: inline-block;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    /*border-bottom: 2px solid #59f;*/
    padding-bottom: 8px;
}

p img {
    width: 150px;
    height: 150px;
    float: left;
    margin-left:10px;
}

.line p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
    /*color: #444;*/
}

/* Галерея изображений */
.image-block, .image-block_h  {
    display: inline-block;
    width: 100%;
    /*width: calc(20% - 10px);*/
    margin: 1% 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.image-block_h img, .image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
    height: auto;
    width: auto;
}
.image-block_h {text-align:center; box-shadow:unset;}
.image-block_h img{display:inline-block;    max-width: 43%;}

/* Блоки категорий */
.category-block {
display: inline-block;
    width: 23%;
    margin-right: 1%;
    margin-bottom: 1%;
    height: 310px;
    background: white;
    text-align: center;
    box-shadow: inset 0 1px 0 0 #ececec, inset 0 -1px 0 0 #ececec, inset -1px 0 0 0 #ececec, inset 1px 0 0 0 #ececec;
    transition: box-shadow 0.3s, transform 0.3s;
}

.category-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.category-img {
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.category-img img {
    /*height: auto;*/
    display: block;
    margin: 0 auto;
    width:100%;
}

.category-title {
    padding: 10px 0;
    font-weight: 600;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.category-block a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Вертикальное центрирование */
    height: 100%;
    text-decoration: none;
}
.size_r{height:auto;border-radius:3px;}
.size_img_r{border-radius:3px;}
/* Адаптивность */
@media screen and (max-width: 768px) {
    .image-block,
    .category-block {
        width: calc(50% - 12px);
    }
}

@media screen and (max-width: 480px) {
    .image-block,
    .category-block {
        width: 100%;
        margin: 10px 0;
    }

    .line h1,
    .line h2 {
        font-size: 20px;
        flex-wrap: wrap;
    }
}
