:root {
    --bg: #060a12;
    --bg-deep: #03060b;
    --surface: #0b1422;
    --surface-2: #0f1c2e;
    --surface-3: #132239;
    --cyan: #22d3ee;
    --cyan-bright: #67e8f9;
    --blue: #3b82f6;
    --success: #34d399;
    --text: #edf6ff;
    --muted: #96a6bb;
    --border: rgba(103, 232, 249, .16);
    --border-strong: rgba(103, 232, 249, .32);
    --shadow: 0 24px 70px rgba(0, 0, 0, .35);
    --radius: 20px;
    --container: 1180px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(2.6rem, 11vw, 5.3rem); }
h2 { margin-bottom: 20px; font-size: clamp(2.05rem, 7.5vw, 3.8rem); }
h3 { font-size: 1.22rem; }
p { color: var(--muted); }
::selection { color: #00141a; background: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.narrow { max-width: 840px; text-align: center; }
.section { position: relative; padding: 92px 0; }
.section-alt { background: linear-gradient(180deg, rgba(11, 20, 34, .76), rgba(6, 10, 18, .6)); border-block: 1px solid rgba(255,255,255,.035); }
.section-grid::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(34,211,238,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
    content: "";
}
.section-kicker, .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.section-kicker::before { width: 28px; height: 1px; background: var(--cyan); content: ""; }
.narrow .section-kicker, .section-heading .section-kicker { justify-content: center; }
.section-lead { margin: 0 auto; font-size: clamp(1.06rem, 2.5vw, 1.28rem); }
.section-heading { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.section-copy { max-width: 580px; margin-bottom: 0; font-size: 1.05rem; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 16px; color: #00141a; background: var(--cyan); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.noise { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .022; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.scroll-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 1001; height: 2px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }

.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; border-bottom: 1px solid transparent; transition: background .25s, border .25s, backdrop-filter .25s; }
.site-header.scrolled { background: rgba(6, 10, 18, .84); border-color: rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 24px rgba(34,211,238,.22); }
.brand > span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 1.12rem; letter-spacing: -.02em; }
.brand b span { color: var(--cyan); }
.brand small { margin-top: 5px; color: var(--muted); font-size: .56rem; letter-spacing: .38em; }
.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; gap: 5px; align-items: center; color: #6f8299; font-family: var(--mono); font-size: .78rem; }
.language-switch a { padding: 8px 2px; transition: color .2s; }
.language-switch a:hover, .language-switch a[aria-current="page"] { color: var(--cyan); }
.menu-toggle { position: relative; z-index: 1002; display: grid; gap: 5px; width: 44px; height: 44px; padding: 12px 10px; border: 1px solid var(--border); border-radius: 12px; color: inherit; background: var(--surface); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid var(--cyan); border-radius: 12px; color: #00141a; background: linear-gradient(135deg, var(--cyan-bright), var(--cyan)); box-shadow: 0 10px 35px rgba(34,211,238,.16); font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.button:hover { box-shadow: 0 14px 42px rgba(34,211,238,.28); filter: brightness(1.06); transform: translateY(-2px); }
.button-small { display: none; min-height: 42px; padding: 9px 16px; font-size: .84rem; }
.button-ghost { color: var(--text); background: rgba(10, 23, 39, .65); border-color: var(--border-strong); box-shadow: none; }

.hero { display: flex; min-height: 100svh; align-items: center; padding: 112px 0 70px; overflow: hidden; isolation: isolate; }
.hero::after { position: absolute; top: -20%; left: 50%; z-index: -2; width: 820px; height: 820px; background: radial-gradient(circle, rgba(37,99,235,.16), transparent 68%); content: ""; transform: translateX(-20%); }
.hero-grid { display: grid; gap: 54px; align-items: center; }
.eyebrow span { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 13px var(--success); animation: pulse 2s infinite; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, var(--cyan-bright), var(--blue)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 660px; margin-bottom: 30px; font-size: clamp(1.04rem, 3.4vw, 1.24rem); }
.hero-buttons { display: flex; flex-direction: column; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.hero-badges li { display: flex; gap: 8px; align-items: center; }
.hero-badges span { color: var(--success); }
.hero-visual { position: relative; padding: 54px 0 48px; }
.terminal-card { overflow: hidden; background: rgba(5, 12, 22, .93); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow), 0 0 80px rgba(37,99,235,.08); }
.terminal-head { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; height: 50px; padding: 0 14px; color: #7588a0; background: rgba(15, 28, 46, .86); border-bottom: 1px solid rgba(255,255,255,.065); font-family: var(--mono); font-size: .67rem; }
.terminal-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.terminal-head em { color: var(--success); font-size: .58rem; font-style: normal; letter-spacing: .08em; }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 8px; height: 8px; background: #ff5f57; border-radius: 50%; }
.terminal-dots i:nth-child(2) { background: #febc2e; }
.terminal-dots i:nth-child(3) { background: #28c840; }
.terminal-body { min-height: 250px; padding: 24px 19px; font-family: var(--mono); font-size: clamp(.74rem, 3vw, .88rem); line-height: 1.85; }
.terminal-body p { margin: 0 0 4px; color: #bfcee0; }
.prompt { color: var(--cyan); }
.terminal-muted { color: #65788f !important; }
.terminal-success { color: var(--success) !important; }
.terminal-info { color: #8ebfff !important; }
.cursor { color: var(--cyan); animation: blink 1s steps(1) infinite; }
.logo-float { position: absolute; right: -4px; bottom: -10px; width: 106px; padding: 5px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 50%; box-shadow: 0 0 40px rgba(34,211,238,.22); }
.logo-float img { border-radius: 50%; }
.data-chip { position: absolute; display: none; align-items: center; gap: 8px; padding: 8px 12px; color: #bbcadb; background: rgba(8,17,29,.92); border: 1px solid var(--border); border-radius: 99px; box-shadow: 0 14px 35px rgba(0,0,0,.28); font-family: var(--mono); font-size: .72rem; animation: float 4s ease-in-out infinite; }
.data-chip span { color: var(--cyan); }
.chip-one { top: 18px; right: 7%; }
.chip-two { bottom: 21px; left: -4%; animation-delay: -1.2s; }
.chip-three { top: 39%; right: -8%; animation-delay: -2.3s; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; display: none; width: 25px; height: 40px; border: 1px solid var(--border-strong); border-radius: 99px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: var(--cyan); border-radius: 99px; animation: scroll 1.8s infinite; }
.orb { position: absolute; z-index: -1; width: 330px; height: 330px; background: rgba(34,211,238,.08); border-radius: 50%; filter: blur(90px); }
.orb-one { top: 25%; left: -180px; }

.intro { padding-block: 102px; }
.direction-grid { display: grid; gap: 14px; }
.direction-card { position: relative; min-height: 220px; padding: 26px; overflow: hidden; background: linear-gradient(145deg, rgba(15,28,46,.9), rgba(7,14,25,.9)); border: 1px solid rgba(255,255,255,.065); border-radius: 18px; transition: transform .25s, border-color .25s, background .25s; }
.direction-card::after { position: absolute; right: -55px; bottom: -65px; width: 150px; height: 150px; background: radial-gradient(circle, rgba(34,211,238,.13), transparent 70%); content: ""; }
.direction-card:hover { border-color: var(--border-strong); background: linear-gradient(145deg, rgba(18,36,57,.95), rgba(8,17,29,.95)); transform: translateY(-5px); }
.card-index { color: var(--cyan); font-family: var(--mono); font-size: .75rem; }
.direction-card h3 { margin: 32px 0 12px; }
.direction-card p { margin: 0; font-size: .92rem; }
.direction-card > i { position: absolute; right: 22px; bottom: 18px; color: rgba(103,232,249,.45); font-style: normal; }
.split-heading { display: grid; gap: 15px; margin-bottom: 46px; }
.split-heading h2 { margin-bottom: 0; }
.process-grid { display: grid; gap: 16px; }
.process-step { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 23px 0; border-top: 1px solid rgba(255,255,255,.08); }
.process-step > span { color: var(--cyan); font-family: var(--mono); }
.process-step h3 { margin-bottom: 8px; }
.process-step p { margin: 0; font-size: .94rem; }

.lab-section { background: radial-gradient(circle at 80% 50%, rgba(37,99,235,.12), transparent 38%), var(--bg-deep); overflow: hidden; }
.lab-grid { display: grid; gap: 36px; align-items: center; }
.lab-copy > p:not(.section-kicker) { max-width: 590px; }
.command-label { margin: 30px 0 12px; color: #d8e6f6 !important; font-family: var(--mono); font-size: .77rem; }
.command-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.command-buttons button { min-height: 42px; padding: 8px 12px; color: var(--cyan-bright); background: rgba(14,32,51,.86); border: 1px solid var(--border); border-radius: 9px; font-family: var(--mono); font-size: .76rem; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.command-buttons button:hover, .command-buttons button.active { background: rgba(34,211,238,.13); border-color: var(--cyan); transform: translateY(-2px); }
.demo-terminal .terminal-body { min-height: 310px; }
.roadmap { position: relative; display: grid; gap: 0; }
.roadmap::before { position: absolute; top: 0; bottom: 0; left: 20px; width: 1px; background: linear-gradient(var(--cyan), rgba(59,130,246,.12)); content: ""; }
.roadmap-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 0 0 34px; }
.roadmap-item > span { position: relative; z-index: 1; display: grid; width: 41px; height: 41px; place-items: center; color: var(--cyan); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 50%; font-family: var(--mono); font-size: .7rem; }
.roadmap-item h3 { margin: 7px 0 7px; }
.roadmap-item p { margin: 0; font-size: .94rem; }

.safety-section { padding-top: 0; }
.safety-card { display: grid; gap: 28px; padding: 30px 24px; overflow: hidden; background: linear-gradient(135deg, rgba(8,30,42,.96), rgba(8,15,28,.96)); border: 1px solid rgba(52,211,153,.25); border-radius: 24px; box-shadow: 0 25px 70px rgba(0,0,0,.24); }
.safety-icon { display: grid; width: 72px; height: 82px; place-items: center; border: 3px solid var(--success); border-radius: 32px 32px 42px 42px; clip-path: polygon(50% 0, 100% 20%, 88% 75%, 50% 100%, 12% 75%, 0 20%); }
.safety-icon span { width: 24px; height: 28px; border: 3px solid var(--success); border-radius: 6px; }
.safety-copy h2 { max-width: 670px; }
.safety-copy > p:last-child { margin-bottom: 0; }
.safety-card ul, .format-card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.safety-card li, .format-card li { display: flex; gap: 10px; color: #c1d0df; }
.safety-card li span, .format-card li span { color: var(--success); }

.format-grid { display: grid; gap: 18px; max-width: 940px; margin: 0 auto; }
.format-card { position: relative; padding: 30px 25px; background: rgba(10,20,34,.88); border: 1px solid rgba(255,255,255,.075); border-radius: 20px; }
.format-card.featured { border-color: var(--border-strong); box-shadow: 0 20px 60px rgba(34,211,238,.07); }
.format-symbol { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 34px; color: var(--cyan); background: rgba(34,211,238,.08); border: 1px solid var(--border); border-radius: 12px; font-family: var(--mono); font-size: .75rem; }
.format-card > p { min-height: 80px; }
.format-card ul { padding: 20px 0; border-block: 1px solid rgba(255,255,255,.07); }
.format-card > a { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; color: var(--cyan-bright); font-weight: 700; }
.price-note { margin: 28px 0 0; text-align: center; font-size: .9rem; }

.parents-grid { display: grid; gap: 46px; }
.note-box { display: grid; grid-template-columns: 30px 1fr; gap: 13px; margin-top: 28px; padding: 17px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: 14px; }
.note-box span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--cyan); border: 1px solid var(--border-strong); border-radius: 50%; font-family: var(--mono); }
.note-box p { margin: 0; font-size: .88rem; }
.outcome-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.08); }
.outcome-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 17px 5px; color: #cfdae7; border-bottom: 1px solid rgba(255,255,255,.08); }
.outcome-list span { color: var(--cyan); font-family: var(--mono); font-size: .76rem; }

.teacher-section { overflow: hidden; background: linear-gradient(180deg, rgba(7,14,25,.7), rgba(4,8,15,.9)); }
.teacher-grid { display: grid; gap: 42px; align-items: center; }
.teacher-visual { position: relative; display: grid; min-height: 330px; place-items: center; background: radial-gradient(circle at 50% 46%, rgba(34,211,238,.14), transparent 57%); border: 1px solid rgba(255,255,255,.06); border-radius: 24px; }
.teacher-monogram { display: grid; width: 180px; height: 180px; place-items: center; color: var(--text); background: rgba(8,18,31,.75); border: 1px solid var(--border-strong); border-radius: 50%; box-shadow: 0 0 65px rgba(34,211,238,.12); font-size: 6rem; font-weight: 800; letter-spacing: -.08em; }
.teacher-monogram span { color: var(--cyan); }
.teacher-code { position: absolute; right: 16px; bottom: 20px; left: 16px; display: flex; flex-direction: column; padding: 14px 17px; background: rgba(3,8,15,.92); border: 1px solid var(--border); border-radius: 11px; font-family: var(--mono); font-size: .72rem; }
.teacher-code span { color: #6083a5; }
.teacher-code b { color: var(--success); font-weight: 500; }
.teacher-copy > p:not(.section-kicker) { font-size: 1.03rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag-list span { padding: 7px 11px; color: #b7cadc; background: rgba(34,211,238,.06); border: 1px solid var(--border); border-radius: 99px; font-family: var(--mono); font-size: .7rem; }

.faq-layout { display: grid; gap: 35px; }
.faq-heading { max-width: 500px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-item summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; color: #e3edf8; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { position: relative; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%; }
.faq-item summary span::before, .faq-item summary span::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 1px; background: var(--cyan); content: ""; transform: translate(-50%,-50%); transition: transform .2s; }
.faq-item summary span::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] summary span::after { transform: translate(-50%,-50%) rotate(0); }
.faq-item p { max-width: 720px; margin: 0; padding: 0 35px 20px 2px; }

.contact-section { padding-top: 30px; }
.contact-card { display: grid; gap: 36px; padding: 36px 24px; background: radial-gradient(circle at 5% 5%, rgba(34,211,238,.12), transparent 34%), linear-gradient(135deg, #0c1a2a, #08101d); border: 1px solid var(--border-strong); border-radius: 26px; box-shadow: var(--shadow); }
.contact-copy > p:not(.section-kicker) { max-width: 590px; }
.contact-buttons { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 25px; }
.contact-lines { display: flex; flex-direction: column; gap: 7px; color: var(--cyan-bright); font-family: var(--mono); font-size: .86rem; }
.contact-form { display: grid; gap: 15px; padding: 25px 20px; background: rgba(3,8,15,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.contact-form h3 { margin-bottom: 3px; }
.form-row { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; color: #c8d6e5; font-size: .82rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 13px; color: var(--text); background: #091321; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.1); }
.contact-form :invalid:not(:placeholder-shown) { border-color: #fb7185; }
.contact-form .button { width: 100%; margin-top: 5px; }
.form-note { margin: 0; font-size: .72rem; text-align: center; }

.site-footer { padding: 70px 0 28px; background: var(--bg-deep); border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; gap: 38px; }
.footer-grid > div:first-child p { max-width: 380px; margin: 18px 0 0; font-size: .88rem; }
.footer-links { display: flex; flex-direction: column; gap: 11px; color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-direction: column; gap: 3px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom p { margin: 0; font-size: .72rem; }
.floating-whatsapp { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 900; display: grid; width: 54px; height: 54px; place-items: center; color: #001a12; background: var(--success); border: 3px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 10px 36px rgba(52,211,153,.28); font-size: 1.25rem; transition: transform .2s; }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.03); }
.privacy-main { padding-top: 140px; }
.privacy-article { max-width: 820px; text-align: left; }
.privacy-article h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
.privacy-article section { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); }
.privacy-article section h2 { margin-bottom: 10px; font-size: 1.3rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.75); } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,15px); } }

@media (min-width: 560px) {
    .hero-buttons, .contact-buttons { flex-direction: row; }
    .button-small { display: inline-flex; }
    .direction-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1.45fr .75fr; }
    .data-chip { display: flex; }
    .terminal-body { padding: 26px; }
}

@media (min-width: 760px) {
    .section { padding: 118px 0; }
    .hero { padding-top: 128px; }
    .hero-grid { grid-template-columns: 1.03fr .97fr; gap: 46px; }
    .hero-visual { min-width: 0; }
    .logo-float { right: -20px; width: 130px; }
    .split-heading { grid-template-columns: 1fr .8fr; align-items: end; justify-content: space-between; }
    .process-grid { grid-template-columns: repeat(2, 1fr); column-gap: 46px; }
    .lab-grid { grid-template-columns: .84fr 1.16fr; gap: 58px; }
    .roadmap { grid-template-columns: repeat(2, 1fr); gap: 0 45px; }
    .roadmap::before { display: none; }
    .roadmap-item { grid-template-columns: 54px 1fr; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08); }
    .roadmap-item > span { width: 45px; height: 45px; }
    .safety-card { grid-template-columns: 86px 1.2fr .9fr; align-items: center; padding: 48px; }
    .format-grid { grid-template-columns: repeat(2, 1fr); }
    .parents-grid { grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: center; }
    .teacher-grid { grid-template-columns: .82fr 1.18fr; gap: 70px; }
    .faq-layout { grid-template-columns: .65fr 1.35fr; gap: 80px; }
    .faq-heading { position: sticky; top: 120px; align-self: start; }
    .contact-card { grid-template-columns: 1fr .88fr; gap: 60px; padding: 58px; }
    .footer-grid { grid-template-columns: 1.5fr .7fr .7fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1040px) {
    .container { width: min(calc(100% - 64px), var(--container)); }
    .header-inner { min-height: 84px; }
    .menu-toggle { display: none; }
    .primary-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; margin-right: 27px; color: #a5b5c7; font-size: .83rem; }
    .primary-nav a { position: relative; padding: 12px 0; }
    .primary-nav a::after { position: absolute; right: 100%; bottom: 7px; left: 0; height: 1px; background: var(--cyan); content: ""; transition: right .2s; }
    .primary-nav a:hover { color: var(--text); }
    .primary-nav a:hover::after { right: 0; }
    .hero-grid { gap: 80px; }
    .hero-terminal { transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
    .terminal-body { min-height: 290px; }
    .direction-grid { grid-template-columns: repeat(4, 1fr); }
    .direction-card { min-height: 245px; }
    .scroll-hint { display: block; }
}

@media (max-width: 1039px) {
    .primary-nav {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 90px 30px;
        background: rgba(3, 7, 13, .97);
        backdrop-filter: blur(20px);
        font-size: 1.35rem;
        font-weight: 700;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px);
        transition: opacity .25s, transform .25s;
    }
    .primary-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

@media (max-width: 430px) {
    .header-actions .language-switch { position: absolute; right: 68px; }
    .hero-badges { flex-direction: column; }
    .contact-card { width: calc(100% - 20px); }
}

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

/* =========================================================
   CYBERLAB MOBILE FIX V2
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

main,
.site-header,
.site-footer,
section {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.container,
.hero-grid,
.hero-copy,
.hero-visual,
.terminal-card,
.direction-card,
.safety-card,
.contact-card,
.contact-form {
    min-width: 0;
    max-width: 100%;
}

h1,
h2,
h3,
p,
li,
.button,
.terminal-body {
    overflow-wrap: anywhere;
}

/* Круглый логотип без растягивания */
.logo-float {
    width: 106px;
    height: 106px;
    aspect-ratio: 1 / 1;
    padding: 5px;
    overflow: hidden;
    border-radius: 50%;
}

.logo-float img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

/* Понятный значок безопасности */
.safety-icon {
    width: 64px;
    height: 64px;
    clip-path: none;
    border-radius: 50%;
}

.safety-icon span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
}

.safety-icon span::before {
    color: var(--success);
    content: "✓";
    font-size: 2rem;
    font-weight: 800;
}

/* Компактная и понятная кнопка WhatsApp */
.floating-whatsapp {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    color: #003b2c;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 900;
}

/* Основная мобильная адаптация */
@media (max-width: 759px) {
    .container {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
    }

    .section {
        padding: 72px 0;
    }

    .site-header {
        overflow: visible;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        object-fit: cover;
    }

    .brand b {
        font-size: 1.02rem;
    }

    .brand small {
        font-size: .52rem;
    }

    .hero {
        display: block;
        min-height: auto;
        padding: 108px 0 56px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero h1 {
        margin-bottom: 20px;
        font-size: clamp(2.15rem, 10vw, 2.7rem);
        line-height: 1.08;
        letter-spacing: -.045em;
    }

    .hero-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .eyebrow,
    .section-kicker {
        letter-spacing: .08em;
        line-height: 1.5;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        padding: 28px 0 34px;
    }

    .terminal-card {
        width: 100%;
    }

    .terminal-head {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 0 12px;
    }

    .terminal-head em {
        display: none;
    }

    .terminal-body {
        width: 100%;
        min-height: 245px;
        padding: 22px 18px;
        overflow-x: auto;
        font-size: .75rem;
    }

    .terminal-body p {
        max-width: 100%;
        white-space: normal;
    }

    .logo-float {
        right: 8px;
        bottom: 0;
        width: 92px;
        height: 92px;
    }

    .data-chip,
    .scroll-hint {
        display: none;
    }

    .direction-card {
        min-height: 200px;
        padding: 24px;
    }

    .safety-card {
        width: 100%;
        padding: 26px 22px;
    }

    .safety-card li {
        align-items: flex-start;
    }

    .contact-card {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px);
        margin-inline: auto;
        padding: 28px 20px;
    }

    .contact-form {
        width: 100%;
        padding: 22px 16px;
    }

    .contact-buttons .button {
        width: 100%;
        padding-inline: 14px;
    }

    .teacher-monogram {
        width: 150px;
        height: 150px;
        font-size: 5rem;
    }
}

@media (max-width: 374px) {
    .container {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

    .brand > span {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contact-card {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px);
    }
}

/* =========================================================
   CYBERLAB MOBILE HEADER + FOOTER FIX V3
   ========================================================= */

/* Футерные ссылки должны находиться поверх декораций */
.site-footer {
    position: relative;
    z-index: 5;
}

.footer-grid,
.footer-links,
.footer-bottom {
    position: relative;
    z-index: 6;
}

.footer-links a {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    padding: 7px 0;
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--cyan);
}

/* Нормальная иконка на плавающей кнопке WhatsApp */
.floating-whatsapp {
    color: #ffffff;
}

.floating-whatsapp svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* Исправление шапки на телефоне */
@media (max-width: 759px) {
    .header-inner {
        position: relative;
        padding-right: 112px;
    }

    .menu-toggle {
        position: absolute;
        top: 50%;
        right: 0;
        margin: 0;
        transform: translateY(-50%);
    }

    .header-actions {
        margin: 0;
    }

    .header-actions .language-switch {
        position: absolute;
        top: 50%;
        right: 58px;
        gap: 4px;
        margin: 0;
        white-space: nowrap;
        transform: translateY(-50%);
    }

    .language-switch a {
        min-width: 28px;
        padding: 10px 3px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .header-inner {
        padding-right: 106px;
    }

    .brand {
        gap: 7px;
    }

    .brand img {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .brand b {
        font-size: .95rem;
    }

    .brand small {
        font-size: .48rem;
    }

    .header-actions .language-switch {
        right: 54px;
    }
}

@media (max-width: 350px) {
    .brand > span {
        display: none;
    }
}
