section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 30px 0 30px 0;
}

.headText {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.pageWay {
    font-size: 12px;
    font-weight: 600;
    margin: 20px 0px 10px 280px;
}

.pageWay a {
    color: white;
    transition: .3s all;
}

.pageWay a:hover {
    color: var(--main-color)
}

.pageText {
    font-size: 50px;
    font-weight: 500;
    margin: 0px 0px 32px 280px;
}

.pageContent {
    width: 80%;
    min-height: calc(100vh - 415px);
    background: white;
    color: #293241;
    border-radius: 32px;
    padding: 40px 60px 40px 60px;
    font-size: 18px;
    line-height: 200%;
}

.pageContent img {
    max-width: 80%;
}

/* Тёмный блок для страниц */
.pageBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding: 40px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, .4);
    box-shadow: 0 50px 80px rgb(0 0 0 / 50%);
}

/* Кнопки в ряд */
.btnsRow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Кнопка */
.pageBtn {
    width: 420px;
    margin: 10px 0 10px 0;
    padding: 10px;
    border-radius: 10px;
    background: #2ca348;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: white;
    transition: all .3s;
}

.pageBtn:hover {
    scale: .95;
}





/* Документы */

.documentBox {
    display: flex;
    padding-top: 50px;
    gap: 52px 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.document {
    position: relative;
    width: 320px;
    border-radius: 16px;
    background: #1b2332;
    padding: 10px;
    line-height: 140%;
}

.document:hover .docType {
    transform: translateY(-10px);
}

.document p {
    position: absolute;
    right: 70px;
    top: 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-text);
}

.document h1 {
    position: relative;
    top: -20px;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: white;
}

/* Пиктограмма документа */
.docType {
    position: relative;
    left: 10px;
    top: -40px;
    width: 90px;
    height: 110px;
    transition: .3s transform;
}

.docType::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px 0px 16px 16px;
    font-weight: 500;
    color: white;
}

.docType::after {
    content: '';
    position: absolute;
    left: 60px;
    top: 0px;
    border: 15px solid #ffffff;
}

.docType.pdf::before {
    content: "PDF";
    background: linear-gradient(0deg, #ff0000, #ff3434);
}

.docType.pdf::after {
    border-left-color: #b92121;
    border-bottom-color: #b92121;
}

.docType.doc::before {
    content: "DOC";
    background: linear-gradient(0deg, #0c44f3, #138de5);
}

.docType.doc::after {
    border-left-color: #0e61bb;
    border-bottom-color: #0e61bb;
}

.docType.img::before {
    content: "IMG";
    background: linear-gradient(0deg, #029925, #4ce07b);
}

.docType.img::after {
    border-left-color: #2da350;
    border-bottom-color: #2da350;
}

/* Phone */
@media (max-width: 767px) {
    .pageWay {
        margin: 20px 0px 15px 24px;
    }

    .pageText {
        font-size: 30px;
        margin: 0px 0px 32px 24px;
    }

    .pageContent {
        width: 100%;
        padding: 40px 24px 40px 24px;
        border-radius: 0;
    }

    .pageBtn {
        width: 300px;
    }
}

/* iPad */
@media (min-width: 768px) and (max-width: 1279px) {
    .pageWay {
        margin: 20px 0px 15px 35px;
    }

    .pageText {
        font-size: 30px;
        margin: 0px 0px 32px 35px;
    }

    .pageContent {
        width: 90%;
        padding: 40px 24px 40px 24px;
        border-radius: 0;
    }
}