/* ===== Нұр әлем — дизайн-система ===== */
:root {
    --yellow: #FFC93C;
    --yellow-soft: #FFE9A8;
    --mint: #6EC1B0;
    --mint-soft: #C9EDE4;
    --coral: #FF6B6B;
    --coral-soft: #FFD5D0;
    --sky: #4EA8DE;
    --sky-soft: #CDE8F7;
    --cream: #FFF9F0;
    --ink: #33404A;
    --ink-soft: #6B7885;
    --white: #ffffff;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 14px 34px rgba(51, 64, 74, .10);
    --shadow-soft: 0 6px 18px rgba(51, 64, 74, .08);
    --maxw: 1120px;
    --font-head: 'Baloo 2', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .4em; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: 12px 24px; border-radius: 999px; font-weight: 800;
    font-family: var(--font-head); border: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease; font-size: 1rem;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(255,107,107,.35); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }

/* ===== Шапка ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 249, 240, .9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--yellow-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { font-size: 1.9rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; }
.brand-text small { color: var(--ink-soft); font-size: .72rem; letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
    color: var(--ink); font-weight: 700; padding: 9px 14px; border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.main-nav > a:hover { text-decoration: none; background: var(--yellow-soft); }
.main-nav > a.active { background: var(--yellow); color: var(--ink); }
.main-nav > a.att { background: var(--mint-soft); color: #256b5c; }
.main-nav > a.att.active { background: var(--mint); color: #fff; }

.lang-switch { display: inline-flex; margin-left: 8px; background: #fff; border-radius: 999px; padding: 3px; box-shadow: var(--shadow-soft); }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: .82rem; color: var(--ink-soft); }
.lang-switch a:hover { text-decoration: none; }
.lang-switch a.active { background: var(--sky); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: #fff; border: none; padding: 11px; border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-soft); }
.nav-toggle span { width: 22px; height: 3px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 40px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-block; background: #fff; color: var(--coral); font-weight: 800; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-soft); margin-bottom: 16px; }
.hero-text h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero-text .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Фото в hero */
.hero-photo {
    border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
    border: 6px solid #fff; transform: rotate(-2deg); aspect-ratio: 4/3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; width: 62px; height: 62px; background: #fff; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.9rem; box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}
.hero-badge-1 { top: -18px; right: 8px; background: var(--yellow-soft); }
.hero-badge-2 { bottom: -14px; left: 12px; background: var(--coral-soft); animation-delay: .8s; }

.hero-art { position: relative; height: 340px; }
.art-card {
    position: absolute; width: 92px; height: 92px; background: #fff; border-radius: 24px;
    display: grid; place-items: center; font-size: 2.4rem; box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}
.art-1 { top: 20px; left: 30px; background: var(--yellow-soft); }
.art-2 { top: 60px; right: 40px; background: var(--mint-soft); animation-delay: .6s; }
.art-3 { bottom: 40px; left: 70px; background: var(--coral-soft); animation-delay: 1.1s; }
.art-4 { bottom: 20px; right: 60px; background: var(--sky-soft); animation-delay: 1.6s; }
.art-sun { position: absolute; top: 40%; left: 45%; font-size: 4.5rem; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; z-index: 1; }
.blob-1 { width: 320px; height: 320px; background: var(--yellow-soft); top: -80px; right: -60px; }
.blob-2 { width: 260px; height: 260px; background: var(--mint-soft); bottom: -100px; left: -80px; }
.blob-3 { width: 180px; height: 180px; background: var(--coral-soft); top: 120px; left: 40%; opacity: .35; }

/* ===== Секции ===== */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin-bottom: 36px; }

.page-head { padding: 46px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-head .lead { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; font-size: 1.12rem; }
.page-head-att h1 { color: #256b5c; }

/* ===== Карточки ===== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-soft);
    border-bottom: 5px solid transparent; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-soft); margin: 0; }
.card-emoji { font-size: 2.4rem; margin-bottom: 12px; }
.card-c1 { border-bottom-color: var(--yellow); }
.card-c2 { border-bottom-color: var(--mint); }
.card-c3 { border-bottom-color: var(--coral); }
.card-c4 { border-bottom-color: var(--sky); }

/* ===== Быстрые плитки ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-tile {
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    padding: 30px 18px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700;
    color: var(--ink); box-shadow: var(--shadow-soft); transition: transform .18s ease;
}
.quick-tile:hover { text-decoration: none; transform: translateY(-6px); }
.quick-emoji { font-size: 2.6rem; }
.tile-att { background: var(--mint-soft); }
.tile-teach { background: var(--yellow-soft); }
.tile-about { background: var(--coral-soft); }
.tile-contact { background: var(--sky-soft); }

/* ===== Аккордеон документов ===== */
.accordion { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.acc-head {
    width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: none;
    border: none; cursor: pointer; text-align: left; font-family: var(--font-head); font-weight: 700;
    font-size: 1.12rem; color: var(--ink);
}
.acc-head:hover { background: var(--cream); }
.acc-title { flex: 1; }
.acc-count { background: var(--mint-soft); color: #256b5c; font-size: .8rem; padding: 3px 11px; border-radius: 999px; }
.acc-chevron { transition: transform .2s ease; color: var(--ink-soft); }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-item.open .acc-body { max-height: 3000px; }

.doc-list { list-style: none; margin: 0; padding: 0 22px 18px; }
.media-sub { padding: 0 22px; margin: 8px 0 12px; color: var(--ink-soft); }
.doc-row {
    display: flex; align-items: center; gap: 14px; padding: 13px 0;
    border-top: 1px solid #f2ede4;
}
.doc-icon { font-size: 1.3rem; }
.doc-name { flex: 1; font-weight: 600; }
.doc-row.is-empty .doc-name { color: var(--ink-soft); }
.badge-y3 {
    display: inline-block; margin-left: 8px; background: var(--yellow); color: #7a5b00;
    font-size: .68rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
}
.doc-btn {
    display: inline-flex; align-items: center; padding: 7px 18px; border-radius: 999px;
    background: var(--sky); color: #fff; font-weight: 800; font-size: .85rem; white-space: nowrap;
}
.doc-btn:hover { text-decoration: none; background: #3f97cd; }
.doc-btn.is-disabled { background: #eee7db; color: var(--ink-soft); cursor: default; }

/* ===== Педагоги ===== */
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teacher-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); text-align: center; }
.teacher-photo {
    width: 130px; height: 130px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
    background: var(--mint-soft); display: grid; place-items: center; border: 4px solid var(--yellow-soft);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph { font-size: 3rem; }
.teacher-name { font-size: 1.15rem; margin-bottom: 2px; }
.teacher-role { color: var(--ink-soft); margin: 0 0 14px; }
.teacher-details { max-height: 0; overflow: hidden; transition: max-height .3s ease; text-align: left; }
.teacher-card.open .teacher-details { max-height: 1000px; margin-top: 16px; }
.tdoc-list { list-style: none; margin: 0 0 8px; padding: 0; }
.tdoc-h { font-size: .95rem; margin: 12px 0 6px; color: var(--ink-soft); }
.tdoc { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f2ede4; }
.tdoc-label { flex: 1; font-weight: 600; font-size: .92rem; }
.tdoc.is-empty .tdoc-label { color: var(--ink-soft); }

/* ===== Галерея / плейсхолдеры ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 22px 8px; }
.section .container > .gallery-grid { padding: 0; }
.gallery-item {
    aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.gallery-item { cursor: pointer; box-shadow: var(--shadow-soft); background: #fff; }
a.gallery-item:hover { text-decoration: none; }
a.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.is-empty { background: #fff; border: 2px dashed #e5dccb; color: var(--ink-soft); }
.gallery-item.is-empty span { font-size: 2rem; }
.gallery-item.video.is-empty { background: #fff8ea; }
.gallery-more { text-align: center; margin-top: 26px; }

/* Лайтбокс */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(28,34,40,.92);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
    position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
    background: #fff; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink);
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ===== Контакты ===== */
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-soft); text-align: center; }
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { margin: 0; word-break: break-word; }
.map-ph {
    background: #fff; border: 2px dashed #e5dccb; border-radius: var(--radius); min-height: 260px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft);
}
.map-ph span { font-size: 3rem; }

/* ===== Футер ===== */
.site-footer { background: #2c3742; color: #cfd8df; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 46px 20px 30px; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #9fd3ef; }
.footer-brand { color: #fff; margin-bottom: 10px; }
.footer-brand strong { font-family: var(--font-head); }
.site-footer .muted { color: #97a4ae; }
.footer-bottom { border-top: 1px solid #3c4954; padding: 16px 0; font-size: .88rem; color: #97a4ae; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .cards-grid, .quick-grid, .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { height: 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--cream); padding: 12px 16px 18px; gap: 6px; box-shadow: var(--shadow);
        border-bottom: 2px solid var(--yellow-soft); display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav > a { padding: 12px 14px; }
    .lang-switch { margin: 6px 0 0; align-self: flex-start; }
    .cards-grid, .about-grid, .teachers-grid, .contacts-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
