:root{--blue:#0057B8;--yellow:#FFD700;--light:#f5f7fa;--dark:#2d3748;}
*{margin:0;padding:0;box-sizing:border-box;}
html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(
        to bottom,
        #fff3b0 0%,
        #ffffff 35%,
        #dbeeff 100%
    );
    color: #333;
    line-height: 1.6;
}header{
    background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
url("school.png");
    background-size:cover;
    background-position:center;
    color:white;
    text-align:center;
    padding:100px 20px;
}
header h1{
    font-size:3.2rem;
    font-weight:700;
    line-height:1.15;
    margin-bottom:18px;
}

header h1 span{
    display:block;
    margin-top:12px;
    margin-bottom:24px;
    font-size:2.1rem;
    font-weight:500;
}
.btn{
display:inline-block;
background:var(--yellow);
color:#000;
padding:12px 24px;
border-radius:30px;
text-decoration:none;
font-weight:bold;
margin-top:auto;
width:max-content;
}
nav{background:white;box-shadow:0 2px 10px rgba(0,0,0,.1);position:sticky;top:0;}
nav ul{display:flex;justify-content:center;flex-wrap:wrap;list-style:none;}
nav li{margin:10px;} nav a{text-decoration:none;color:var(--blue);font-weight:600;}
section{max-width:1200px;margin:auto;padding:70px 20px;}
h2{text-align:center;color:var(--blue);margin-bottom:40px;}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;}
#about .cards{
    margin-top:35px;
}
.card,.doc{
    background:white;
    border-radius:15px;
    padding:25px;
    border:1px solid rgba(0,87,184,.08);
    box-shadow:0 8px 25px rgba(0,87,184,.10);
    display:flex;
    flex-direction:column;
}
.doc{
    padding:20px 28px;
    margin-bottom:16px;
}

.doc h3{
    margin:0 0 14px;
    color:#333;
    font-size:20px;
    font-weight:700;
    border-bottom:1px solid #eef4fb;
    padding-bottom:10px;
}

.doc a,
.doc span{
    display:block;
    padding:12px 0;
    text-decoration:none;
    color:#333;
    font-size:17px;
    transition:.25s;
}

.doc a:hover{
    color:#0057B8;
    padding-left:12px;
}

.doc a + a,
.doc a + span,
.doc span + a{
    border-top:1px solid #eceff3;
}

.documents-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    margin-top:25px;
}

@media (max-width:900px){
    .documents-grid{
        grid-template-columns:1fr;
    }
}
.news{background:var(--light);}
.documents{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:15px;}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:15px;}
.gallery img{width:100%;height:220px;object-fit:cover;border-radius:12px;}
.contact-box{background:var(--light);padding:30px;border-radius:15px;}
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

.gallery-card{
    display:block;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    color:#333;
    box-shadow:0 10px 25px rgba(0,87,184,.12);
    transition:.3s;
}

.gallery-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,87,184,.20);
}

.gallery-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

.gallery-info{
    padding:22px;
}

.gallery-info h3{
    color:#0057B8;
    margin-bottom:10px;
}

.gallery-info p{
    margin:0;
    color:#555;
}
.gallery-subtitle{
    text-align:center;
    max-width:850px;
    margin:0 auto 45px;
    color:#666;
    font-size:18px;
}

.album-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:28px;
}

.album{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    text-decoration:none;
    color:white;
    box-shadow:0 10px 25px rgba(0,87,184,.12);
    transition:.3s;
}

.album:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,87,184,.20);
}

.album img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.album:hover img{
    transform:scale(1.08);
}

.album::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15),
        transparent);
}

.album-title{
    position:absolute;
    left:20px;
    right:20px;
    bottom:20px;
    z-index:2;
    font-size:28px;
    font-weight:700;
    line-height:1.3;
    text-shadow:0 2px 8px rgba(0,0,0,.6);
}
.album-link{
    margin-top:6px;
    font-size:13px;
    font-weight:500;
    opacity:.85;
    letter-spacing:.3px;
    transition:.3s;
}

.album:hover .album-link{
    transform:translateX(6px);
    opacity:1;
}

footer{background:var(--blue);color:white;text-align:center;padding:25px;}