/* ===== ГЛОБАЛЬНЫЕ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
    background: #fdf8f0;
    color: #3d3d3d;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ФОН ===== */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
}
.shape-1 { width: 400px; height: 400px; background: #f9d4b8; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #b8d9c6; bottom: 0; left: -50px; }
.shape-3 { width: 200px; height: 200px; background: #f7e3b0; top: 40%; left: 20%; }

/* ===== НЕБО ===== */
.sky {
    position: relative;
    min-height: 180px;
    margin-bottom: -60px;
    z-index: 1;
}
.cloud {
    position: absolute;
    animation: floatCloud 18s infinite alternate ease-in-out;
}
.cloud img { width: 100%; height: auto; }
.cloud-1 { width: 120px; top: 20px; left: 5%; animation-duration: 20s; }
.cloud-2 { width: 160px; top: 60px; right: 10%; animation-duration: 25s; }

@keyframes floatCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

.sun {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 70px;
    animation: pulseSun 4s infinite alternate;
}
@keyframes pulseSun {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.bird {
    position: absolute;
    width: 30px;
    animation: flyBird 14s infinite linear;
    opacity: 0.6;
}
.bird-1 { top: 30px; left: 10%; animation-duration: 16s; }
.bird-2 { top: 80px; left: 40%; animation-duration: 20s; animation-delay: 3s; }
.bird-3 { top: 20px; left: 70%; animation-duration: 18s; animation-delay: 6s; }

@keyframes flyBird {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(120px) scale(1.2); }
    100% { transform: translateX(250px) scale(1); }
}

/* ===== HERO ===== */
.hero { position: relative; z-index: 2; padding: 20px 0 40px; text-align: center; }
.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.2rem);
    font-weight: 700;
    color: #5b7a6b;
    line-height: 1.2;
}
.hero h1 span { background: #fdebd0; padding: 0 18px; border-radius: 60px; display: inline-block; transform: rotate(-2deg); }
.hero p { font-size: clamp(1rem, 3vw, 1.4rem); color: #6d7f76; max-width: 600px; margin: 16px auto 28px; background: rgba(255,255,240,0.6); padding: 12px 24px; border-radius: 60px; backdrop-filter: blur(4px); }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: #f8b195; color: #3d2c2a; }
.btn-primary:hover { background: #f5a07f; transform: translateY(-4px); box-shadow: 0 16px 40px #f8b19580; }
.btn-outline { background: transparent; color: #5b7a6b; border: 2px solid #b8d9c6; }
.btn-outline:hover { background: #b8d9c6; color: #2d4a3b; transform: translateY(-4px); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ===== СЕКЦИИ ===== */
section { position: relative; z-index: 2; padding: 60px 0 40px; }
.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #5b7a6b;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}
.section-sub { text-align: center; color: #7b8f84; max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }

/* ===== ГРУППЫ ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.filter-tab {
    background: #f5ede4;
    padding: 10px 28px;
    border-radius: 60px;
    border: none;
    font-weight: 600;
    color: #5b6b5f;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-family: inherit;
}
.filter-tab.active { background: #b8d9c6; color: #2d4a3b; box-shadow: 0 4px 12px #b8d9c680; }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.group-card {
    background: #ffffffd9;
    backdrop-filter: blur(6px);
    padding: 24px;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.03);
    transition: all 0.3s;
    border: 1px solid #f5ede4;
}
.group-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0,0,0,0.05); }
.group-card .group-image { margin-bottom: 12px; border-radius: 20px; overflow: hidden; }
.group-card .group-image img { width: 100%; height: 200px; object-fit: cover; }
.group-card h3 { color: #4d6b5b; font-size: 1.5rem; margin-bottom: 6px; }
.group-card .age {
    display: inline-block;
    background: #fdebd0;
    padding: 4px 16px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9b7b66;
    margin-bottom: 12px;
}
.group-card ul { list-style: none; margin: 12px 0; }
.group-card ul li { padding: 4px 0; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* ===== БЕЗОПАСНОСТЬ ===== */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.safety-item { background: #ffffffd9; padding: 24px 12px; border-radius: 32px; backdrop-filter: blur(4px); border: 1px solid #f5ede4; }
.safety-item .icon { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.safety-item h4 { color: #4d6b5b; font-size: 1rem; }

/* ===== ПЕДАГОГИ ===== */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.teacher-card {
    background: #ffffffd9;
    padding: 20px;
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid #f5ede4;
}
.teacher-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: #fdebd0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 8px 24px #fdebd080;
}
.teacher-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h4 { color: #4d6b5b; }
.teacher-card p { font-size: 0.9rem; color: #7b8f84; }

/* ===== ФОРМА ===== */
.form-box {
    background: #ffffffd9;
    backdrop-filter: blur(6px);
    padding: 40px 30px;
    border-radius: 48px;
    max-width: 540px;
    margin: 0 auto;
    border: 1px solid #f5ede4;
}
.form-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ddd2;
    border-radius: 60px;
    font-size: 1rem;
    margin-bottom: 16px;
    background: #fdfaf6;
    transition: 0.2s;
    font-family: inherit;
}
.form-box input:focus {
    outline: none;
    border-color: #b8d9c6;
    box-shadow: 0 0 0 4px #b8d9c640;
}
.form-box .btn { width: 100%; justify-content: center; }
.form-box .form-note { margin-top: 16px; font-size: 0.9rem; color: #9aaf9f; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: #25d366;
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 8px 32px #25d36680;
    text-decoration: none;
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== ФУТЕР ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #9aaf9f;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid #f5ede4;
}
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-nav { list-style: none; display: flex; gap: 20px; justify-content: center; }
.footer-nav a { color: #9aaf9f; text-decoration: none; }
.footer-nav a:hover { color: #5b7a6b; }

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== АДАПТИВ ===== */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn { padding: 14px 28px; font-size: 1rem; }
    .form-box { padding: 24px 16px; }
    .whatsapp-float { width: 56px; height: 56px; font-size: 2rem; bottom: 16px; right: 16px; }
    .footer-content { flex-direction: column; }
}