*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


.container1{
    max-width:1200px;
    margin:auto;
    width:90%;
    padding:50px 50px 20px 20px;
}

.hero{
    background:#17365d;
    color:white;
    text-align:center;
    padding:80px 20px;
}

.hero h1{
    font-size:48px;
    margin-bottom:20px;
}

.hero p{
    max-width:800px;
    margin:0 auto 30px;
}

.search-wrapper{
    max-width:700px;
    margin:auto;
}

.search-wrapper input{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    font-size:16px;
}

.section{
    padding:60px 0;
}

.section-light{
    background:white;
}

.section h2{
    margin-bottom:30px;
    text-align:center;
    color:#17365d;
}

.categories{
    padding:70px 0;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.category-card{
    background:white;
    text-decoration:none;
    color:#333;
    padding:30px;
    text-align:center;
    border-radius:12px;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.category-card:hover{
    transform:translateY(-5px);
}

.category-card span{
    font-size:42px;
}

.materials-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.material-card{
    background:white;
    border-radius:12px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.material-card h3{
    margin-bottom:10px;
    color:#17365d;
}

.material-card p{
    margin-bottom:20px;
}

.material-card a{
    text-decoration:none;
    color:#1e73be;
    font-weight:bold;
}

.faq-item{
    margin-bottom:15px;
}

.faq-question{
    width:100%;
    text-align:left;
    padding:15px;
    border:none;
    background:#eef2f7;
    cursor:pointer;
    font-size:16px;
    border-radius:8px;
}

.faq-answer{
    display:none;
    padding:15px;
    background:white;
    border-left:3px solid #17365d;
}

.consultation{
    text-align:center;
    padding:80px 20px;
    background:#17365d;
    color:white;
}

.btn1{
    display:inline-block;
    margin-top:20px;
    padding:14px 30px;
    background:white;
    color:#17365d;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}

.hidden{
    display:none;
}


/* Кнопка "До бази знань" */

.back-btn{
    display:inline-block;
 padding:10px 24px;
min-width:260px;
    background:#D4AF37;
    color:#1E2F63;

    text-decoration:none;
    font-size:15px;
    font-weight:600;

    border-radius:25px;
    border:1px solid #C9A227;

    box-shadow:0 2px 8px rgba(0,0,0,.2);
    transition:all .25s ease;
}

.back-btn:hover{
    background:#E4C158;
    color:#10224D;
    transform:translateX(-3px);
    box-shadow:0 6px 16px rgba(0,0,0,.25);
}



.back-link{
    display:inline-block;
    margin-bottom:35px;

    color:#08a58b;
    text-decoration:none;
    font-size:18px;
    font-weight:600;

    transition:color .2s ease, transform .2s ease;
}

.back-link:hover{
    color:#2662d1;
    transform:translateX(-3px);
    text-decoration:underline;
    text-underline-offset:4px;
}

@media print {

    .back-link {
        display: none !important;
        visibility: hidden !important;
    }

}