﻿.catalog-block {
    width: 100%;
    min-height: 749px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 30px 0 30px;
    position: relative;
}

.catalog-grid {
    max-width: 1120px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
}

.catalog-btn {
    position: relative;
    color: #003b7f;
    height: 78px;
    background-color: rgb(240 239 236 / 22%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-left: 50px;
    display: flex;
    align-items: center;
}

.catalog-btn a {
    color: #003b7f;
    text-decoration: none;
}

@media (max-width: 1199px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .catalog-btn {
        height: 65px;
    }

    .catalog-grid {
        gap: 15px;
    }
}

.catalog-btn span {
    display: block;
    width: 100%;
    text-align: left;
    line-height: 1.2em;
}

.catalog-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #b6bac3;
    transition: all 0.3s ease;
}

.catalog-btn::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 0;
    width: 22px;
    height: 50%;
    background-color: #b6bac3;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transition: all 0.3s ease;
}

.catalog-btn:hover::before {
    width: 40px;
    height: 80%;
    top: 5%;
    bottom: 10%; /
    left: 0;
}

.catalog-btn:hover::after {
    height: 7px;
}

.catalog-btn:hover {
    padding-bottom: 7px;
}

.catalog-btn:nth-child(1)::before,
.catalog-btn:nth-child(1)::after {
    background-color: rgb(254, 210, 8);
}

.catalog-btn:nth-child(2)::before,
.catalog-btn:nth-child(2)::after {
    background-color: rgb(239, 47, 8);
}

.catalog-btn:nth-child(3)::before,
.catalog-btn:nth-child(3)::after {
    background-color: #b6bac3;
}

.catalog-btn:nth-child(4)::before,
.catalog-btn:nth-child(4)::after {
    background-color: rgb(16, 139, 208);
}

.catalog-btn:nth-child(5)::before,
.catalog-btn:nth-child(5)::after {
    background-color: rgb(168, 17, 58);
}

.catalog-btn:nth-child(6)::before,
.catalog-btn:nth-child(6)::after {
    background-color: rgb(21, 151, 131);
}

.catalog-btn:nth-child(7)::before,
.catalog-btn:nth-child(7)::after {
    background-color: rgb(112, 90, 75);
}

.catalog-btn:nth-child(8)::before,
.catalog-btn:nth-child(8)::after {
    background-color: rgb(180, 204, 79);
}

.catalog-btn:nth-child(9)::before,
.catalog-btn:nth-child(9)::after {
    background-color: rgb(26, 201, 6);
}

.catalog-btn:nth-child(10)::before,
.catalog-btn:nth-child(10)::after {
    background-color: #ff1f11;
}

.catalog-btn:nth-child(11)::before,
.catalog-btn:nth-child(11)::after {
    background-color: rgb(0, 0, 150);
}

.catalog-btn:nth-child(12)::before,
.catalog-btn:nth-child(12)::after {
    background-color: #000;
}

.catalog-btn {
    border-radius: 10px; /* закругляем кнопки */
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.catalog-block {
    background: #fdfdfd;
}
