
/* ---------------- Footer ---------------- */

footer{

    margin-top:60px;

    background:white;

    border-top:1px solid #ddd;

    padding:25px 0;

}

.footer-content{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;

    color:#666;

    font-size:15px;

}

/* ---------- Баннер ---------- */

.hero{

    background:white;

    border-radius:16px;

    padding:70px;

    text-align:center;

    margin-bottom:50px;

    box-shadow:0 5px 15px rgba(0,0,0,.06);

}

.hero h1{

    font-size:48px;

    margin-bottom:20px;

}

.hero p{

    font-size:20px;

    color:#666;

    margin-bottom:35px;

}

.hero-btn{

    display:inline-block;

    background:#1976d2;

    color:white;

    text-decoration:none;

    padding:15px 35px;

    border-radius:10px;

    font-size:18px;

    transition:.3s;

}

.hero-btn:hover{

    background:#125ea8;

}

.footer-main {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
}

.footer-copyright {
    display: block;
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.footer-link {
    color: #6f665b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-link:hover {
    color: #7f5d2c;
    text-decoration: underline;
}

.footer-documents {
    display: grid;
    gap: 10px;
    flex: 0 0 auto;
    width: auto;
    min-width: 190px;
    margin-left: auto;
    justify-items: start;
    text-align: left;
}

.footer-documents h2 {
    margin: 0;
    color: #4f463e;
    font-size: 16px;
    line-height: 1.25;
}

.footer-document-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.footer-master-login {
    color: #a47c39;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-master-login:hover {
    color: #7f5d2c;
    text-decoration: underline;
}

.footer-external-links {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    grid-auto-columns: max-content;
    align-items: start;
    gap: 10px 16px;
    width: auto;
}

.footer-social {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-social h2 {
    flex: 0 0 auto;
    margin: 8px 0 0;
    color: #4f463e;
    font-size: 16px;
    line-height: 1.25;
}

.footer-external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #6f665b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.footer-external-link img {
    display: block;
    width: auto;
    max-width: 120px;
    height: 38px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .footer-main {
        align-items: center;
        flex-direction: column;
    }

    .footer-links,
    .footer-social {
        width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-external-links {
        max-width: calc(100vw - 100px);
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .footer-documents {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        justify-items: center;
        text-align: center;
    }

    .footer-document-links {
        align-items: center;
    }
}
