@font-face {
    font-family: Montserrat-Regular;
    src: url(static/fonts/Montserrat-Regular.ttf);
}


@font-face {
    font-family: Montserrat-Medium;
    src: url(static/fonts/Montserrat-Medium.ttf);
}

p, h1, h2, h3, h4, h5 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat-Regular', sans-serif !important;

}

.full {
    background-color: white;
    padding-bottom: 30px;
    height: 65vh;
}

.block {
    max-width: 1400px;
    margin: 0 auto;
}

.first-block-container {

    background-size: cover;
    background-repeat: no-repeat;
    background-position: -40px center;
    padding-top: 40px;
}

.navbar-container {

    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testant-icon {
    width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-left, .item-right {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.nav-text-details {
    animation: fadeIn 1.3s ease-in-out forwards;
}

.item-left {
    cursor: pointer;
    display: flex;
    gap: 66px;
    align-items: center;
    font-size: 19px;
}

.item-left span {
    transition: color 0.3s ease, transform 0.3s ease;
}

.item-left span:hover {
    color: #DA764B;
    transform: translateY(-3px);
}

.item-left a {
    text-decoration: none;
    color: black;
    transition: color 0.3s ease, transform 0.3s ease;
}

.item-left a:hover {
    color: #DA764B;
    transform: translateY(-3px);
}

.item-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.button {
    font-size: 19px;
    border-radius: 12px;
    width: fit-content;
    padding: 10px 25px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}


.grey {
    background-color: #F0F0F0;
}

.blue {
    color: white;
    background-color: #DA764B;
}

.button:hover {
    transform: scale(1.05);
}

.grey:hover {
    background-color: #e0e0e0;
}

.blue:hover {
    background-color: #c96b43;
}

.nav-text {
    margin-top: 161px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-text-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-text-details h1 {
    width: 100%;
    max-width: 1100px;
    font-size: 71px;
    font-weight: 400;
    text-align: center;
    margin: 0 auto;
    line-height: 1.2;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 9999;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

.burger-menu .hidden {
    display: none;
}

.burger-menu .rotate {
    transform: rotate(45deg);
    position: relative;
    background-color: white;
    top: 0;
}

.burger-menu .rotate-reverse {
    transform: rotate(-45deg);
    background-color: white;
    position: relative;
    bottom: 8px;
}

.nav-items {
    display: none;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav-items.hidden {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.card-container {
    margin-top: 100px;
}

.card-container h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.admin-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.admin-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    min-height: 100px;
    flex: 1 1 calc(30% - 20px);
    max-width: calc(30% - 20px);
    cursor: pointer;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
}

.admin-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: #DA764B;
}

.text h5 {
    font-size: 18px;
    color: #222;
    margin: 0;
    font-weight: 600;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DA764B;
    border-radius: 12px;
}

.faq-icon {
    font-size: 24px;
    color: white;
}

.footer-block {
    margin-bottom: 0;
    background-color: #212121;
    height: fit-content;
    padding: 50px 0 130px 0;
}

.footer-container {
    margin-top: 0;
    margin-bottom: 100px;

    display: flex;
    flex-wrap: wrap;

    gap: 150px;
    row-gap: 50px;

    color: white;
    background-color: #212121;

    width: 1120px;
    margin: 40px auto 0px auto;
}

.footer-container img {
    height: 83px;
}

.footer-container b {
    font-size: 25px;
    margin-top: 0;
}

.footer-container p {
    font-size: 20px;
    margin: 8px 0;
}

.footer-container a {
    color: #DA764B;
}

.footer-container .navigation a {
    text-decoration: none;
    color: white;
}

.footer-container .contacts {
    max-width: 227px;
}


.no-scroll {
    overflow: hidden;
    height: 100vh;
}

@media (max-width: 1024px) {
    .admin-box {
        flex: 1 1 calc(45% - 20px);
        max-width: calc(45% - 20px);
    }

    .full{
        margin-bottom: 130px;
    }
}

@media (max-width: 768px) {
    .admin-box {
        flex: 1 1 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    .full{
        margin-bottom: 250px;
    }
}

@media (max-width: 1150px) {
    .footer-container {
        width: 850px;
        gap: 115px;
        row-gap: 50px;
    }
}

@media (max-width: 950px) {
    .footer-container {
        width: 600px;
    }

    .footer-container .top {
        gap: 70px;
        row-gap: 45px;
    }

    .footer-container p, .footer-container * {
        font-size: 17px;
    }

    .footer-container h2 {
        font-size: 20px;
    }
}

@media (max-width: 680px) {
    .footer-container {
        row-gap: 50px;
        width: 480px;
    }
}

@media (max-width: 630px) {
    .container {
        width: calc(100% - 40px);
    }

    .container.white_container {
        width: calc(100% - 40px - 85px);
    }

    .p_header {
        font-size: 20px;
    }

    .container.navbar-container.white_container {
        margin-top: 20px !important;
        margin: 0 auto !important;
        border-bottom: none !important;
    }
}

@media (max-width: 550px) {
    .footer-container {
        gap: 25px;
        width: 350px;
    }

    .footer-container {
        row-gap: 60px;
    }

    .footer-container .contacts {
        width: 100%;
    }

    .footer-container .bottom {
        flex-direction: column-reverse;
        align-items: baseline;
        gap: 15px;
    }

    .footer-container .logo-img img {
        width: 70%;
        height: auto;
    }
}
