*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #d43f2e;
    --primary-dark: #b13222;
    --secondary: #ffb347;
    --accent: #f9d423;
    --dark: #1a1a1a;
    --light: #fef9f2;
    --gray: #4a4a4a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 18px;
    --transition: 0.3s ease;
}
body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, .montserrat { font-family: 'Montserrat', sans-serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    font-weight: 600; font-size: 1rem; letter-spacing: 0.5px;
    transition: all var(--transition); cursor: pointer; border: none;
    background: var(--primary); color: white; box-shadow: 0 6px 18px rgba(212,63,46,0.3);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(212,63,46,0.4); }
.btn-outline {
    background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: white; }

.nav {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(26,26,26,0.92); backdrop-filter: blur(10px);
    padding: 14px 0; transition: all var(--transition);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.8rem;
    color: var(--white); letter-spacing: -1px;
}
.logo span { color: var(--secondary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--secondary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.menu-toggle span { width: 28px; height: 3px; background: var(--white); border-radius: 2px; }

.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    color: white; padding-top: 80px;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.hero h1 span { color: var(--secondary); display: block; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 32px; max-width: 480px; }
.hero-image {
    background: url('img/bg.jpg') center/cover no-repeat;
    border-radius: 60% 40% 50% 50% / 50% 40% 60% 50%;
    height: 480px; box-shadow: 0 30px 50px rgba(0,0,0,0.4);
    animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 50% 50% / 50% 40% 60% 50%; }
    25% { border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%; }
    50% { border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
    75% { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; }
}

.section { padding: 100px 0; }
.section-dark { background: var(--dark); color: white; clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); }
.section-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; text-align: center; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 60px; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.class-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform var(--transition);
    position: relative;
}
.class-card:hover { transform: translateY(-8px); }
.class-card-img { height: 220px; background-size: cover; background-position: center; }
.class-card-body { padding: 28px; }
.class-card h3 { font-size: 1.7rem; margin-bottom: 8px; }
.class-card .tag { display: inline-block; background: var(--secondary); color: var(--dark); padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; }
.class-card p { color: var(--gray); margin-bottom: 20px; }

.schedule-preview {
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.schedule-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #eee; }
.schedule-item:last-child { border: none; }
.schedule-time { font-weight: 700; color: var(--primary); min-width: 100px; }

.testimonial-slider { display: flex; gap: 24px; overflow-x: auto; padding: 20px 0; scroll-snap-type: x mandatory; }
.testimonial {
    flex: 0 0 360px; background: white; padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow); scroll-snap-align: start;
}
.testimonial p { font-style: italic; margin-bottom: 16px; }
.testimonial .author { font-weight: 700; color: var(--primary); }

.footer {
    background: #111; color: #ccc; padding: 60px 0 20px;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.footer a { color: #aaa; display: block; margin-bottom: 10px; transition: color var(--transition); }
.footer a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.9rem; }

.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 600px;
    background: white; box-shadow: 0 15px 40px rgba(0,0,0,0.2); border-radius: var(--radius);
    padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    z-index: 2000; transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-banner.active { transform: translateY(0); }
.cookie-banner p { flex: 1 1 280px; margin: 0; color: var(--gray); }
.cookie-banner .btn-group { display: flex; gap: 10px; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; z-index: 3000;
    opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: white; border-radius: var(--radius); padding: 48px; max-width: 500px;
    width: 90%; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9); transition: transform var(--transition);
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 20px; background: none; border: none;
    font-size: 2rem; line-height: 1; cursor: pointer; color: var(--gray);
}
.modal-box h2 { font-size: 2rem; margin-bottom: 16px; color: var(--primary); }
.modal-box p { margin-bottom: 24px; color: var(--gray); }
.form-group { margin-bottom: 18px; }
.form-group input,
.form-group select {
    width: 100%; padding: 14px 18px; border: 1px solid #ddd; border-radius: 40px;
    font-family: 'Poppins', sans-serif; font-size: 1rem; outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }
.error-message { color: var(--primary); font-size: 0.85rem; margin-top: 4px; display: none; }

@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .hero-image { height: 320px; order: -1; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(26,26,26,0.95); padding: 24px; gap: 16px; }
    .nav-links.open { display: flex; }
    .menu-toggle { display: flex; }
}