/* =========================
   Base
========================= */
* {
    box-sizing: border-box;
}

body {
    height: 100%;
    margin:0;
    overflow-x:hidden;
    font-family:Arial, sans-serif;
}
.notice {
    background: #fff8e6;
    border-left: 4px solid #f0ad4e;
    color: #6b4f00;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}
/* =========================
   Layout
========================= */
.layout {
    display:flex;
    height: 100vh;
}
/* =========================
   Sidebar
========================= */
.sidebar {
    width:280px;
    flex-shrink: 0;
    overflow-y: auto;
    background:#222;
    color:white;
    padding:20px;
}
.logo {
    margin-bottom:30px;
}
.brand {
    display:flex;
    align-items:center;
    gap:12px;
    color:white;
    text-decoration:none;
}
.brand img {
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
}

.brand span {
    font-size:18px;
    font-weight:bold;
    white-space:nowrap;
}
.menu a {
    display:block;
    padding:12px 15px;
    margin-bottom:5px;
    color:white;
    text-decoration:none;
    border-radius:6px;
    cursor:pointer;
}

.menu a:hover {
    background:#444;
}
/* =========================
   Main Content
========================= */
.main {
    flex:1;
    overflow-y: auto;
}
.content {
    min-height:40vh;
    padding:40px;
    background:#f5f5f5;
}
/* =========================
   About
========================= */
.about-intro,
.about-achievements {
    background:white;
    padding:25px;
    border-radius:10px;
    margin-bottom:30px;
}
.achievement-year {
    margin-bottom:25px;
    padding-left:15px;
    border-left:4px solid #333;
}
.achievement-year h3 {
    margin-top:0;
}
/* =========================
   Contacts
========================= */
.contact-block {
    background:white;
    padding:25px;
    margin-bottom:20px;
    border-radius:10px;
}
.contact-block h2 {
    margin-top:0;
}
.contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
}
.school {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}
.school-info {
    width: 350px;
    flex-shrink: 0;
}
.school-info h3 {
    margin-top: 0;
}
.school-map {
    width: auto;
    flex-shrink: 0;
}
.school-map iframe {
    border-radius: 10px;
}
.social a {
    color:#222;
    text-decoration:none;
    font-size:18px;

    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.social a:hover {
    text-decoration:underline;
}
.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
/* =========================
   News
========================= */
.news-list {
    display:flex;
    flex-direction:column;
    gap:20px;
}
.news-card {
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
.news-image {
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    display:block;
    border-radius:10px;
    margin-bottom:15px;
}
.news-date {
    font-size:14px;
    color:#777;
    margin-bottom:10px;
}
.news-card h3 {
    margin:0 0 10px;
}
.news-card p {
    margin:0;
    line-height:1.5;
}
/* ==========================
   Gallery
========================== */
.video-slider,
.photo-slider {
    display:flex;
    align-items:center;
    gap:15px;
    justify-content:flex-start;
    margin-bottom:30px;
}
/* Общий контейнер */
.video-container,
.photo-container {
    width:500px;
    height:320px;
    background:white;
    padding:15px;
    border-radius:10px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
}
/* Заголовок */
.video-container h3,
.photo-container h3 {
    margin:0 0 10px 0;
    font-size:18px;
}
/* Видео */
.video-container iframe {
    width:100%;
    height:240px;
    border:0;
    border-radius:8px;
}
/* Фото */
.photo-container img {
    width:100%;
    height:240px;
    object-fit:contain;
    border-radius:8px;
    background:#eee;
}
/* Кнопки */
.video-btn {
    width:45px;
    height:45px;
    flex-shrink:0;
    border:none;
    border-radius:50%;
    background:#222;
    color:white;
    font-size:20px;
    cursor:pointer;
}
.video-btn:hover {
    background:#555;
}

/* =========================
Schedule
========================= */
.schedule-school {
    background:white;
    padding:25px;
    border-radius:10px;
    margin-bottom:30px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.schedule-school h2 {
    margin-top:0;
    margin-bottom:5px;
}

.schedule-address {
    color:#777;
    margin-bottom:20px;
}


.schedule-group {
    margin-top:25px;
    padding:20px;
    background:#fafafa;
    border-radius:10px;
    border-left:4px solid #222;
}


.schedule-group h3 {
    margin-top:0;
    margin-bottom:10px;
}


.schedule-description {
    white-space: pre-line;
    color:#555;
    line-height:1.5;
    margin-bottom:15px;
}


.schedule-list {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}


.schedule-item {
    background:#222;
    color:white;
    padding:8px 14px;
    border-radius:20px;
    font-size:14px;
}
/* =========================
Groups
========================= */

.groups-list {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:25px;
}


.group-card {
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}


.group-title {
    font-size:22px;
    font-weight:bold;
    margin-bottom:12px;
    color:#222;
}


.group-school {
    font-size:16px;
    color:#555;
    margin-bottom:5px;
}


.group-address {
    font-size:14px;
    color:#888;
    margin-bottom:15px;
}


.group-description {
    white-space: pre-line;
    line-height:1.6;
    color:#444;
    border-top:1px solid #eee;
    padding-top:15px;
}
/* =========================
   Mobile
========================= */
.mobile-menu-btn {
    display:none;
}
@media(max-width:768px) {
    .layout {
        display:block;
    }
    .mobile-menu-btn {
        display:block;
        position:fixed;
        top:10px;
        left:10px;
        z-index:1001;
        width:45px;
        height:45px;
        background:#222;
        color:white;
        border-radius:8px;
        text-align:center;
        line-height:45px;
        font-size:26px;
        cursor:pointer;
    }
    .sidebar {
        position:fixed;
        top:0;
        left:-300px;
        width:280px;
        height:100vh;
        z-index:1000;
        transition:.3s;
        overflow-y:auto;
    }

    .sidebar.open {
        left:0;
    }

    .main {
        width:100%;
    }

    .content {
        padding:20px;
        padding-top:70px;
    }

    .brand img {
        width:60px;
        height:60px;
    }
    .brand span {
        font-size:16px;
    }
    .video-slider,
    .photo-slider {
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .video-container,
    .photo-container {
        width:100%;
        height:280px;
    }
    .video-btn {
        width:40px;
        height:40px;
    }
    .school {
        flex-direction: column;
    }
    .school-map {
        width: 100%;
    }
    .schedule-school {
        padding:20px;
    }

    .schedule-group {
        padding:15px;
    }

    .schedule-list {
        flex-direction:column;
    }

    .schedule-item {
        width:100%;
        text-align:center;
    }
}