main {
    max-width: 1400px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.orders-container {
    width: 100%;
    margin-top: 30px;
    padding-bottom: 12px;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.orders-container h2 {
    width: 100%;
    text-align: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0;
}

.order-link {
    text-decoration: none;
    color: inherit;
    width: 30%;
    min-width: 300px;
    height: 420px;
}

.order-link:hover .order {
    border-color: #5c5c5f;
}

.order {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 12px;
    position: relative;
    transition: 0.3s ease-in-out;
}

.blinked {
    animation: smooth-blink 5s linear infinite;
}

@keyframes smooth-blink {
  50% { opacity: 0; }
}

.order::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 30px;
    height: 30px;
    background-color: var(--button-color);
    border-top-right-radius: 12px;
    border-left: 12px solid transparent; /* Компенсация скругления */
    border-bottom: 12px solid transparent; /* Компенсация скругления */
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.order-features {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8px;
}

.order span {
    font-size: 1.125rem;
    margin-bottom: 0;
    margin-top: 0;
    /*color: rgba(0, 0, 0, 0.6);*/
    color: var(--button-color);
    border: 1px solid var(--button-color);
    border-radius: 6px;
    align-self: start;
    padding: 5px 10px;
}

.paid {
    color: #33FF33!important;
    border-color: #33FF33!important;
}

.biblio-element {
    list-style: none;
    padding-left: 0;
}

.order h3 {
    align-self: start;
    color: white;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-top: 15px;
    margin-bottom: 0;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order a {
    text-decoration: none;
    color: black;
}

.intro {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.1875rem;
    line-height: 1.3;
    color: var(--text-color);
}

.order-footer {
    width: 100%;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-footer p {
    font-size: 1.125rem;
    margin-bottom: 0;
    margin-top: 0;
    color: #bbb8c5;
}

.no-works {
    text-align: center;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    height: 40vh;
}

.no-works a {
    text-decoration: none;
    color: var(--button-color);
    border: 2px solid var(--button-color);
    border-radius: 12px;
    padding: 10px 20px;
    min-width: 290px;
    transition: 0.4s ease-in-out;
}

.no-works a:hover {
    background-color: var(--button-color);
    color: black;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: 1.375rem;
    color: var(--text-color);
    column-gap: 10px;
}

.pagination a {
    text-decoration: none;
    color: var(--button-color);
    border: 2px solid var(--button-color);
    border-radius: 6px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.pagination a:hover {
    background-color: var(--button-color);
    color: black;
}

#active-page {
    font-weight: bold;
    background-color: var(--button-color);
    color: black;
}

@media screen and (max-width: 768px) {
    .order {
        padding: 12px;
    }
    .order h3 {
        font-size: 1.125rem;
        margin-top: 0;
    }
    .intro {
        font-size: 1.125rem;
        margin-top: 0;
        margin-bottom: 0;
    }
    .order-features span, .order-footer p {
        font-size: 1.0625rem;
    }
}

@media screen and (max-width: 500px) {
    .order-link {
        height: 370px;
    }
    .order {
        padding: 10px;
    }
    .order h3 {
        font-size: 1.0625rem;
        margin-top: 0;
        height: 40px;
    }
    .intro {
        font-size: 1.0625rem;
        margin-top: 0;
        margin-bottom: 0;
    }
    .order-features span, .order-footer p {
        font-size: 1rem;
    }
}