:root {
    --primary: #2f7f7a;
    --primary-dark: #123c3b;
    --primary-deep: #082f31;
    --accent: #d9ad58;
    --sand: #f0d99f;
    --cream: #fbf8f1;
    --ink: #1d2c2d;
    --muted: #637173;
    --line: #dfe6e3;
    --white: #fff;
    --radius: 28px;
    --shadow: 0 24px 80px rgba(10, 48, 48, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Alexandria", sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    transition: .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 32px rgba(10, 40, 40, .06); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 188px; flex: 0 0 auto; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.brand-icon {
    width: 48px; height: 52px; border-radius: 24px 24px 12px 12px;
    color: var(--white); background: var(--primary); display: grid; place-items: center;
    font-family: "Noto Kufi Arabic", sans-serif; font-size: 28px; font-weight: 800;
    position: relative; box-shadow: inset 0 -5px 0 rgba(0,0,0,.08);
}
.brand-icon::after { content: ""; position: absolute; width: 22px; height: 3px; background: var(--accent); bottom: 10px; border-radius: 4px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { font-family: "Noto Kufi Arabic", sans-serif; font-size: 23px; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .01em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 17px; margin-inline: auto; min-width: 0; }
.main-nav a { position: relative; flex: 0 0 auto; white-space: nowrap; font-size: 12px; font-weight: 700; color: #334547; transition: .2s; }
.main-nav a:hover { color: var(--primary); }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 -10px; width: 0; height: 2px; background: var(--accent); transition: .2s; }
.main-nav a:hover::after { width: 100%; }
.header-cta, .btn {
    border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    gap: 12px; padding: 14px 24px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s;
}
.header-cta { flex: 0 0 auto; white-space: nowrap; color: var(--white); background: var(--primary); padding: 12px 19px; font-size: 12px; }
.language-switch {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
    white-space: nowrap; color: var(--primary-deep); background: #fff; font-size: 11px; font-weight: 800; transition: .2s;
}
.language-switch:hover { color: var(--primary); border-color: var(--primary); background: #f4f9f7; }
.language-switch span { color: var(--accent); font-size: 16px; }
.header-cta:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21, 89, 86, .2); }
.header-cta span, .btn span { font-size: 20px; line-height: 1; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 28px; color: var(--ink); }

.hero {
    position: relative; min-height: 820px; padding: 150px 0 80px;
    display: grid; align-items: center; background: linear-gradient(140deg, #fff 0%, #fff 55%, #f3f7f4 100%);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217,173,88,.18), transparent 68%);
    inset: -160px -120px auto auto;
}
.hero-pattern {
    position: absolute; width: 420px; height: 420px; left: -120px; bottom: -160px; opacity: .11;
    background:
        linear-gradient(30deg, transparent 47%, var(--primary) 48%, var(--primary) 52%, transparent 53%),
        linear-gradient(150deg, transparent 47%, var(--primary) 48%, var(--primary) 52%, transparent 53%);
    background-size: 58px 100px;
    transform: rotate(18deg);
}
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 70px; position: relative; }
.section-kicker { margin: 0 0 16px; color: var(--primary); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-kicker span { display: block; width: 34px; height: 2px; background: var(--accent); }
.section-kicker.light { color: var(--sand); }
.hero h1, .section-heading h2, .contact-copy h2 {
    font-family: "Noto Kufi Arabic", sans-serif; line-height: 1.45; letter-spacing: -.04em;
}
.lang-en .hero h1, .lang-en .section-heading h2, .lang-en .contact-copy h2,
.lang-en .brand-copy strong { font-family: "Alexandria", sans-serif; line-height: 1.18; letter-spacing: -.035em; }
.lang-en .hero h1 { font-size: clamp(38px, 4.2vw, 54px); line-height: 1.14; }
.hero h1 { margin: 0; max-width: 630px; font-size: clamp(42px, 5vw, 66px); color: var(--primary-deep); }
.hero h1::first-line { color: var(--ink); }
.hero-subtitle { margin: 14px 0 0; color: var(--accent); font-size: 20px; font-weight: 700; }
.hero-body { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-sand { background: var(--sand); color: var(--primary-deep); }
.text-link { color: var(--primary-deep); font-weight: 700; font-size: 14px; }
.text-link span { color: var(--accent); margin-inline-start: 5px; }
.trust-line { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.trust-line p { margin: 0; font-size: 12px; line-height: 1.65; }
.trust-line strong { color: var(--ink); font-size: 13px; }
.avatar-stack { display: flex; padding-inline-start: 10px; }
.avatar-stack span {
    width: 34px; height: 34px; display: grid; place-items: center; margin-inline-start: -10px;
    border: 3px solid var(--white); border-radius: 50%; background: #e6c174; color: var(--primary-deep); font-weight: 800;
}
.avatar-stack span:nth-child(2) { background: #badbd7; }
.avatar-stack span:nth-child(3) { background: #eadfd0; }
.image-frame { position: relative; border-radius: 210px 36px 210px 36px; padding: 12px; border: 1px solid rgba(47,127,122,.2); }
.image-frame::before {
    content: ""; position: absolute; inset: -18px 48px 42px -18px; border-radius: inherit;
    background: var(--accent); z-index: -1; opacity: .24;
}
.image-frame img { width: 100%; height: 545px; object-fit: cover; object-position: left center; border-radius: 200px 28px 200px 28px; }
.floating-card {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.floating-card > span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #e6f1ef; color: var(--primary); font-weight: 800; }
.floating-card p { margin: 0; line-height: 1.5; }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: 13px; }
.floating-card small { font-size: 10px; color: var(--muted); }
.card-top { top: 76px; left: -38px; }
.card-bottom { bottom: 64px; right: -28px; }

.stats-section { position: relative; z-index: 4; padding: 0 0 30px; margin-top: -40px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
    border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 20px 60px rgba(15,50,50,.09);
}
.stat-card { min-height: 150px; padding: 28px 24px; text-align: center; position: relative; }
.stat-card:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 35px; bottom: 35px; width: 1px; background: var(--line); }
.stat-icon { margin: 0 auto 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef5f3; color: var(--primary); font-weight: 800; }
.stat-card strong { display: block; color: var(--primary); font-family: "Noto Kufi Arabic", sans-serif; font-size: 26px; line-height: 1.4; }
.stat-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2, .contact-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); color: var(--primary-deep); }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.heading-row { max-width: none; display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 80px; }
.heading-row > p { margin: 0 0 6px !important; }

.features-section { background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { min-height: 330px; padding: 26px; border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .25s; }
.feature-card:hover { transform: translateY(-7px); }
.tone-1 { background: var(--primary-deep); color: var(--white); }
.tone-2 { background: #dfeeea; color: var(--primary-deep); }
.tone-3 { background: #efd89f; color: var(--primary-deep); }
.tone-4 { background: #fff; color: var(--primary-deep); border: 1px solid var(--line); }
.feature-number { position: absolute; top: 20px; left: 22px; color: currentColor; opacity: .35; font-weight: 700; }
.feature-icon { width: 66px; height: 66px; margin-top: 42px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.22); font-size: 27px; font-weight: 800; }
.tone-2 .feature-icon, .tone-3 .feature-icon, .tone-4 .feature-icon { background: rgba(255,255,255,.7); color: var(--primary); }
.feature-card h3 { margin: 26px 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: inherit; opacity: .75; font-size: 13px; }

.programs-section { background: var(--primary-deep); color: var(--white); position: relative; overflow: hidden; }
.programs-section::before { content: ""; position: absolute; width: 580px; height: 580px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; left: -250px; top: -200px; box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.015); }
.programs-section .section-heading h2 { color: var(--white); }
.programs-section .section-heading > p { color: rgba(255,255,255,.63); }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.program-card { background: var(--white); color: var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.16); transition: transform .25s; }
.program-card:hover { transform: translateY(-8px); }
.program-art { height: 210px; position: relative; overflow: hidden; display: grid; place-items: center; }
.program-art img { width: 100%; height: 100%; object-fit: cover; }
.art-1 { background: #e4b85f; }
.art-2 { background: #6fa8a3; }
.art-3 { background: #d8e7dc; }
.art-4 { background: #e7d6ae; }
.program-letter { width: 92px; height: 112px; border-radius: 48px 48px 18px 18px; display: grid; place-items: center; position: relative; z-index: 2; background: rgba(255,255,255,.92); color: var(--primary-deep); font-family: "Noto Kufi Arabic", sans-serif; font-size: 44px; box-shadow: 0 18px 38px rgba(0,0,0,.14); }
.program-art i { position: absolute; width: 70px; height: 70px; border: 2px solid rgba(255,255,255,.45); transform: rotate(45deg); }
.program-art i:nth-of-type(1) { top: -24px; right: 28px; }
.program-art i:nth-of-type(2) { bottom: -32px; left: 28px; width: 110px; height: 110px; }
.program-art i:nth-of-type(3) { top: 54px; left: -22px; border-radius: 50%; }
.program-content { padding: 26px; }
.pill { display: inline-block; padding: 6px 11px; border-radius: 999px; background: #edf5f2; color: var(--primary); font-size: 10px; font-weight: 700; }
.program-card h3 { margin: 15px 0 8px; font-size: 19px; }
.program-card p { margin: 0; color: var(--muted); font-size: 13px; min-height: 72px; }
.program-card footer { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.program-card footer span { font-size: 11px; color: var(--muted); }
.program-card footer a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--white); }
.center-action { text-align: center; margin-top: 40px; }

.pricing-section { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); position: relative; overflow: hidden; }
.pricing-section::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(217,173,88,.15), transparent 68%); top: -180px; right: -130px; }
.pricing-heading { max-width: 820px; margin-inline: auto; text-align: center; position: relative; }
.pricing-heading .section-kicker { justify-content: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.price-card { min-height: 390px; padding: 34px; border: 1px solid var(--line); border-top: 5px solid var(--primary); border-radius: var(--radius); background: var(--white); box-shadow: 0 18px 50px rgba(10,48,48,.08); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.price-tone-2 { border-top-color: var(--accent); }
.price-tone-3 { border-top-color: var(--primary-deep); }
.price-label { align-self: flex-start; padding: 6px 11px; border-radius: 999px; color: var(--primary); background: #edf5f2; font-size: 10px; font-weight: 700; }
.price-card h3 { margin: 22px 0 10px; color: var(--primary-deep); font-size: 20px; }
.price-value { display: block; color: var(--primary); font-family: "Noto Kufi Arabic", sans-serif; font-size: clamp(36px, 4vw, 50px); line-height: 1.35; }
.lang-en .price-value { font-family: "Alexandria", sans-serif; line-height: 1.15; }
.price-card p { margin: 18px 0 28px; color: var(--muted); font-size: 13px; }
.price-button { width: 100%; margin-top: auto; color: var(--white); background: var(--primary-deep); font-size: 12px; }
.price-tone-2 .price-button { background: var(--primary); }

.testimonials-section { background: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); position: relative; }
.testimonial-card:nth-child(2) { transform: translateY(24px); background: var(--cream); }
.quote-mark { position: absolute; top: 12px; left: 25px; color: var(--sand); font: 80px/1 Georgia, serif; opacity: .7; }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 13px; }
.testimonial-card > p { min-height: 145px; margin: 18px 0 24px; color: #435153; font-size: 14px; }
.testimonial-card footer { display: flex; align-items: center; gap: 12px; }
.person-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.testimonial-card footer strong, .testimonial-card footer small { display: block; }
.testimonial-card footer strong { font-size: 13px; }
.testimonial-card footer small { color: var(--muted); font-size: 10px; margin-top: 3px; }

.teachers-section { background: var(--cream); }
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teacher-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.teacher-photo { height: 235px; display: grid; place-items: center; position: relative; overflow: hidden; }
.teacher-photo::before, .teacher-photo::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.5); transform: rotate(45deg); }
.teacher-photo::before { width: 130px; height: 130px; top: -40px; right: -20px; }
.teacher-photo::after { width: 90px; height: 90px; bottom: -25px; left: 10px; border-radius: 50%; }
.photo-1 { background: #b5d7d1; }
.photo-2 { background: #ead29a; }
.photo-3 { background: #d7e1c7; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.symbolic-badge {
    position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 5px 10px;
    border-radius: 999px; color: #fff; background: rgba(6,31,33,.82); font-size: 9px; font-weight: 700;
    backdrop-filter: blur(6px);
}
.teacher-photo > span { width: 112px; height: 132px; border-radius: 56px 56px 20px 20px; background: rgba(255,255,255,.78); color: var(--primary); display: grid; place-items: center; font-size: 48px; font-weight: 800; position: relative; z-index: 1; }
.teacher-copy { padding: 24px; }
.teacher-copy > span { color: var(--primary); font-size: 11px; font-weight: 700; }
.teacher-copy h3 { margin: 7px 0; font-size: 18px; }
.teacher-copy p { min-height: 72px; margin: 0; color: var(--muted); font-size: 12px; }
.teacher-copy small { display: inline-block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; color: var(--accent); font-weight: 700; }

.contact-section { background: var(--primary-deep); color: var(--white); position: relative; overflow: hidden; }
.contact-section::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); right: -220px; bottom: -300px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; position: relative; }
.contact-copy h2 { color: var(--white); }
.contact-copy > p { color: rgba(255,255,255,.68); }
.contact-copy ul { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-copy li { display: flex; gap: 12px; align-items: center; margin: 13px 0; color: rgba(255,255,255,.83); font-size: 13px; }
.contact-copy li span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--sand); }
.contact-form { background: var(--white); color: var(--ink); border-radius: 30px; padding: 34px; box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 7px; margin-bottom: 14px; font-size: 11px; font-weight: 700; color: #445354; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; border: 1px solid #d9e2df; border-radius: 12px; background: #fbfcfc; color: var(--ink); padding: 13px 14px; outline: none; transition: .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,127,122,.1); }
.contact-form textarea { resize: vertical; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; opacity: 0 !important; pointer-events: none !important; }
.wide { width: 100%; }
.privacy-note { display: block; text-align: center; color: #7b8889; font-size: 9px; margin-top: 10px; }
.privacy-note a { color: var(--primary); text-decoration: underline; }
.form-success { background: #e8f5ef; color: #176343; border: 1px solid #b8e1cb; border-radius: 12px; padding: 12px; margin-bottom: 15px; font-size: 12px; }
.form-error { background: #fff0f1; color: #912e36; border: 1px solid #f0c6ca; border-radius: 12px; padding: 12px; margin-bottom: 15px; font-size: 12px; }

.custom-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.custom-grid.single { grid-template-columns: minmax(0, 760px); }
.custom-image { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 500px; object-fit: cover; }
.custom-section:nth-of-type(even) { background: var(--cream); }

.site-footer { padding: 70px 0 20px; background: #061f21; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; padding-bottom: 45px; }
.brand.inverse .brand-icon { background: var(--accent); color: var(--primary-deep); }
.brand.inverse .brand-copy strong { color: var(--white); }
.brand.inverse .brand-copy small { color: rgba(255,255,255,.45); }
.footer-brand p { max-width: 330px; margin: 20px 0 0; font-size: 13px; }
.footer-grid h3 { color: var(--white); font-size: 14px; margin: 0 0 18px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
.footer-grid a:hover { color: var(--sand); }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 10px; }
.social-links .quick-contact { width: auto; min-width: 42px; padding-inline: 10px; border-radius: 999px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 10px; }
.footer-bottom p { margin: 0; }
.whatsapp { position: fixed; z-index: 50; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; color: var(--white); background: #178d58; padding: 10px 16px 10px 10px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: 11px; }
.whatsapp span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.legal-page { background: var(--cream); }
.legal-header { position: static; background: #fff; border-bottom: 1px solid var(--line); }
.legal-header .nav-wrap { justify-content: space-between; }
.legal-main { padding: 72px 0 100px; }
.legal-card { max-width: 900px; margin-inline: auto; padding: clamp(28px, 5vw, 60px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.legal-card .section-kicker { margin-bottom: 10px; }
.legal-card h1 { margin: 0 0 16px; color: var(--primary-deep); font-size: clamp(32px, 5vw, 50px); }
.legal-card .legal-intro { margin: 0 0 34px; color: var(--muted); font-size: 15px; }
.legal-card h2 { margin: 30px 0 8px; color: var(--primary-deep); font-size: 19px; }
.legal-card p, .legal-card li { color: #4d5d5e; font-size: 14px; }
.legal-card ul { padding-inline-start: 22px; }
.legal-card a { color: var(--primary); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 13px; font-weight: 700; }

@media (max-width: 1100px) {
    .nav-wrap { min-height: 72px; gap: 12px; }
    .nav-toggle { display: block; margin-inline-start: auto; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; top: 72px; right: 14px; left: 14px; display: flex; flex-direction: column; align-items: stretch;
        gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white);
        box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s;
    }
    .main-nav.open { opacity: 1; visibility: visible; transform: none; }
    .main-nav a { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
    .main-nav a:last-child { border: 0; }
    .main-nav a::after { display: none; }
}

@media (max-width: 1020px) {
    .hero-grid { gap: 35px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:nth-child(2)::after { display: none; }
    .programs-grid, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .teacher-card:last-child { grid-column: span 2; max-width: calc(50% - 10px); width: 100%; margin-inline: auto; }
    .contact-grid { gap: 40px; }
}

@media (max-width: 800px) {
    .container { width: min(100% - 28px, 680px); }
    .section { padding: 78px 0; }
    .nav-wrap { min-height: 72px; gap: 12px; }
    .nav-toggle { display: block; margin-inline-start: auto; }
    .header-cta { display: none; }
    .language-switch { min-height: 38px; padding: 7px 10px; font-size: 10px; }
    .main-nav {
        position: fixed; top: 72px; right: 14px; left: 14px; display: flex; flex-direction: column; align-items: stretch;
        gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white);
        box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s;
    }
    .main-nav.open { opacity: 1; visibility: visible; transform: none; }
    .main-nav a { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
    .main-nav a:last-child { border: 0; }
    .main-nav a::after { display: none; }
    .brand-icon { width: 42px; height: 46px; font-size: 23px; }
    .brand-copy strong { font-size: 19px; }
    .hero { min-height: 0; padding: 120px 0 90px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .section-kicker { justify-content: center; }
    .hero-body { margin-inline: auto; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .trust-line { justify-content: center; }
    .image-frame { max-width: 580px; margin-inline: auto; }
    .image-frame img { height: 470px; }
    .stats-section { margin-top: -45px; }
    .heading-row { grid-template-columns: 1fr; gap: 18px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card:nth-child(2) { transform: none; }
    .testimonial-card > p { min-height: 0; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .price-card { min-height: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 560px) {
    html { scroll-padding-top: 80px; }
    .hero h1 { font-size: 36px; }
    .brand { min-width: 0; }
    .brand-copy small { display: none; }
    .hero-subtitle { font-size: 17px; }
    .hero-body { font-size: 14px; }
    .hero-actions { flex-direction: column; }
    .image-frame { border-radius: 120px 22px 120px 22px; }
    .image-frame img { height: 390px; border-radius: 112px 16px 112px 16px; }
    .floating-card { padding: 10px; }
    .floating-card > span { width: 34px; height: 34px; }
    .card-top { left: -5px; top: 38px; }
    .card-bottom { right: -5px; bottom: 30px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 140px; padding: 22px 12px; }
    .stat-card:nth-child(odd)::after { display: block; }
    .stat-card:nth-child(even)::after { display: none; }
    .stat-card strong { font-size: 21px; }
    .features-grid, .programs-grid, .teachers-grid { grid-template-columns: 1fr; }
    .teacher-card:last-child { grid-column: auto; max-width: none; }
    .section-heading h2, .contact-copy h2 { font-size: 30px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .whatsapp b { display: none; }
    .whatsapp { padding: 8px; left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
