.montserrat-400 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.montserrat-600 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.montserrat-700 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.montserrat-900 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}
body {
    background-color: #F2F2F2;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
header {
    background-color: white;
    height: 120px;
    border-bottom: 1px solid #939393;
    line-height: 120px;
    font-weight: bold;
    position: fixed;
    width: 100%;
    z-index: 3;
}

footer {
    border-top: 1px solid #939393;
    height: 60px;
    line-height: 30px;
    background-color: white;
    text-align: center;
    font-size: 14px;
    padding: 10px 0;
}
a {
    color: #0A1533;
}
#header {
    max-width: 1440px;
    padding: 0 20px;
    margin: 0 auto;
    height: 120px;
}
.logo {
    margin-top: 26px;
    float: left;
}
.menu {
    text-decoration: none;
    margin-left: 50px;
}
.menu:hover {
    text-decoration: underline;
}
.contacts {
    padding: 0 24px;
    border: 1px solid #939393;
    line-height: 42px;
    float: right;
    border-radius: 21px;
    display: inline-block;
    margin-top: 39px;
    text-decoration: none;
}
.contacts:hover {
    padding: 0 24px;
    border: 1px solid #939393;
    line-height: 42px;
    float: right;
    background-color: #fafafa;
}
main {
    padding: 20px;
    max-width: 1460px;
    margin: 0 auto;
    padding-top: 140px;
}
.item {
    height: 440px;
    width: calc(25% - 20px);
    float: left;
    margin: 0 10px 30px 10px;
    /*border: 1px solid #939393;*/
    border-radius: 20px;
    box-sizing: border-box;
    padding: 30px 0;
    line-height: 21px;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: 0.5s;
    background-color: rgba(255,255,255,0.3);
}
.item:hover {
    cursor: pointer;
    transform: scale(1.05);
}
.clear {
    clear: both;
}
.item-pic {
    display: block;
    margin: 0 auto;
    height: 340px;
    margin-bottom: 10px;
}
.item p {
    margin: 0;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.pagination span {
    display: inline-block;
}

.pagination a {
    padding: 8px 12px;
    text-decoration: none;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #0A1533;
    color: white;
}

.pagination .active a {
    background-color: #0A1533;
    color: white;
}

.pagination .disabled a {
    background-color: #e9ecef;
    color: #6c757d;
}

@media (max-width: 1460px) {
    main {
        padding: 20px 10px;
        padding-top: 140px;
    }
}


@media (max-width: 1200px) {
    .item {
        width: calc(50% - 20px);
    }
}



@media (max-width: 768px) {
    .pagination a {
        padding: 6px 10px;
    }
    .item {
        width: calc(100% - 20px);
    }
    .logo {
        display: block;
        float: none;
        margin-top: 0;
        padding-top: 20px;
        height: 40px;
        margin-bottom: 18px;
    }
    #header {
        line-height: 50px;
    }
    .menu {
        margin-left: 0;
        margin-right: 10px;
        font-size: 14px;
    }
    .menu:hover {
        text-decoration: underline;
    }
    .contacts {
        font-weight: normal;
        text-decoration: none;
        margin-left: 0;
        font-weight: bold;
        margin-right: 8px;
        padding: 0;
        border: none;
        line-height: auto;
        float: none;
        display: inline;
        margin-top: auto;
        font-size: 14px;
    }
    .contacts:hover {
        text-decoration: underline;
        margin-left: 0;
        margin-right: 8px;
        padding: 0;
        border: none;
        line-height: auto;
        float: none;
        display: inline;
        margin-top: auto;
    }
    
    #header {
        line-height: 0;
    }
    
    
}
