:root {
    --primary-color: #0066cc;
    --secondary-color: #003d7a;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
}

.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    text-decoration: none;
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 80px;
}

/* Стили для активного языка */
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.dropdown-item.active:hover {
    background-color: var(--secondary-color);
    color: white;
}



.main-category {
    padding-left: 120px;
    padding-right: 120px;
}

.main-category .title {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding-right: 10px;
    font-size: 20px;
}

.main-category .mct {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-flow: wrap;
}

.main-category .mct li {
    display: block;
    list-style-type: none;
    max-width: 166px;
    min-width: 24%;
    height: 169px;
    margin: 1px;
}

.main-category .mct a {
    height: 169px;
    padding: 32px 0 32px 32px;
    background-color: #096BB4;
    background-size: 36%;

    background-position: right top;
    box-sizing: border-box;
    position: relative;
    background-repeat: no-repeat;
    display: block;
    color: white;
    font-weight: bold;
    font-size: 17px;
    line-height: 1.59;
    text-transform: uppercase;
}

.main-category .mct a li {
    list-style-type: none;
}

.main-category .mct a:hover {
    background-color: #033F85;
    transition: all 400ms ease;
}

@media (max-width: 1400px) {
    .main-category {
        padding-left: 120px;
        padding-right: auto;
    }

    .main-category .title {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        padding-right: 10px;
        font-size: 20px;
    }

    .main-category .mct {
        display: flex;
        margin: 0;
        padding: 0;
        align-items: center;
        flex-flow: wrap;
    }

    .main-category .mct li {
        display: block;
        list-style-type: none;
        max-width: 166px;
        min-width: 24%;
        height: 169px;
        margin: 1px;
    }

    .main-category .mct a {
        background-color: #096BB4;
        padding: 32px 0 32px 32px;
        box-sizing: border-box;
        height: 169px;
        position: relative;
        background-repeat: no-repeat;
        background-position: calc(100% + 60px) -21px;
        display: block;
        color: white;
        font-weight: bold;
        font-size: 17px;
        line-height: 1.59;
        text-transform: uppercase;
    }

    .main-category .mct a li {
        list-style-type: none;
    }

    .main-category .mct a:hover {
        background-color: #033F85;
        transition: all 400ms ease;
    }
}

@media (max-width: 1210px) {
    .main-category {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .main-category .title {
        padding-left: 32px;
    }

    .main-category .mct li {
        display: block;
        list-style-type: none;
        max-width: 166px;
        min-width: 24.5%;
        height: 169px;
        margin: 1px;
    }

    .main-category .mct a {
        text-decoration: none;
        background-color: #096BB4;
        padding: 32px 32px 32px 32px;
        box-sizing: border-box;
        height: 169px;
        position: relative;
        background-repeat: no-repeat;
        background-position: calc(100% + 60px) -21px;
        display: block;
        color: white;
        font-weight: bold;
        font-size: 17px;
        line-height: 1.59;
        text-transform: uppercase;
    }

    .main-category .mct a li {
        list-style-type: none;
    }
}

@media (max-width: 990px) {
    .main-category .title {
        padding-left: 32px;
        font-size: 15px;
    }
}

@media (max-width: 848px) {
    .main-category .mct li {
        min-width: 32.9%;
    }
}

@media (max-width: 760px) {
    .main-category .mct li {
        min-width: 32.8% !important;
    }
}

@media (max-width: 640px) {
    .main-category .mct li {
        min-width: 32.7% !important;
    }
}

@media (max-width: 604px) {
    .main-category .mct li {
        min-width: 49.55% !important;
    }
}

@media (max-width: 553px) {
    .main-category .title {
        padding-left: 28px;
        font-size: 10px;
    }

    .main-category .mct a {
        min-width: 49.5% !important;
    }
}

@media (max-width: 496px) {
    .main-category .mct li {
        min-width: 49.4% !important;
    }
}

@media (max-width: 450px) {
    .main-category {
        padding-bottom: 20px;
    }

    .main-category .title {
        padding-left: 31px;
        font-size: 12px;
        padding-top: 30px;
        padding-bottom: 15px;
    }

    .main-category .mct .title {
        font-size: 15px;
    }

    .main-category .mct li {
        display: block;
        list-style-type: none;
        max-width: 100%;
        margin: 1px;
        width: 100%;
        height: 90px;
    }

    .main-category .mct a {
        width: 100%;
        height: 90px;
        font-size: 16px;
        line-height: 1.59;
        max-width: 100%;
        background-size: 123px;
        background-position: calc(100% + 33px) -16px;
    }

    .main-category .mct a li {
        list-style-type: none;
    }
}

@media (max-width: 320px) {
    .main-category .title {
        padding-left: 14px;
        font-size: 12px;
        padding-top: 30px;
        padding-bottom: 15px;
    }

    .main-category .mct li {
        align-content: center;
        display: grid;
        background-size: 34%;
        padding: 33px 0 32px 15px;
    }
}
