/* =========================================================
   Szkoła Fizyki — szkolafizyki.pl
   Static marketing site styles
   ========================================================= */

:root {
    /* Palette */
    --bg: #0a0b16;
    --bg-alt: #0e1024;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #eef1ff;
    --text-muted: #a7adce;
    --text-dim: #7a819f;

    --primary: #7c5cff;
    --cyan: #22d3ee;
    --pink: #ff5ca8;
    --lime: #a3e635;

    --gradient: linear-gradient(120deg, #22d3ee 0%, #7c5cff 50%, #ff5ca8 100%);
    --gradient-soft: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(124, 92, 255, 0.16));

    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px -12px rgba(124, 92, 255, 0.55);

    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, .brand__text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

.skip-link {
    position: absolute; left: 12px; top: -60px;
    background: var(--primary); color: #fff;
    padding: 10px 16px; border-radius: 10px; z-index: 200;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; }
.section__sub { color: var(--text-muted); margin-top: 18px; font-size: 1.08rem; }

.eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-fs: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--btn-fs); font-weight: 600;
    padding: 13px 24px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
    white-space: nowrap;
}
.btn--sm { --btn-fs: 0.92rem; padding: 9px 18px; }
.btn--lg { --btn-fs: 1.06rem; padding: 16px 30px; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
    background-size: 160% 160%;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(124, 92, 255, 0.85); }

.btn--ghost {
    background: var(--surface); color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-3px); }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: 16px 0;
    transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(10, 11, 22, 0.72);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
    padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { color: var(--cyan); display: inline-flex; }
.brand__text { font-size: 1.3rem; }
.brand__dot { color: var(--pink); }

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links > a:not(.btn) {
    padding: 8px 14px; border-radius: 10px;
    color: var(--text-muted); font-size: 0.96rem; font-weight: 500;
    transition: color .2s, background .2s;
}
.nav__links > a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
    width: 24px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 14s ease-in-out infinite; }
.blob--1 { width: 520px; height: 520px; background: #4f2bff; top: -140px; right: -80px; }
.blob--2 { width: 460px; height: 460px; background: #0a8fb0; bottom: -160px; left: -100px; animation-delay: -4s; }
.blob--3 { width: 360px; height: 360px; background: #ff2e88; top: 40%; left: 45%; opacity: 0.28; animation-delay: -8s; }

.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero__content { max-width: 640px; }

.badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.86rem; color: var(--text-muted); font-weight: 500;
    margin-bottom: 26px;
}
.badge__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6); animation: pulse 2s infinite; }

.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; }
.hero__title .gradient-text { display: block; }
.hero__lead { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.22rem); margin-top: 22px; max-width: 540px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; color: var(--text-dim); font-size: 0.95rem; }
.hero__facts li { position: relative; padding-left: 16px; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.hero__facts strong { color: var(--text); font-weight: 600; }

/* Hero atom visual */
.hero__visual { position: relative; height: 420px; display: grid; place-items: center; }
.atom { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.atom__nucleus {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gradient); box-shadow: var(--shadow-glow);
    animation: nucleus 3s ease-in-out infinite;
}
.atom__orbit {
    position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 50%;
}
.atom__orbit--1 { animation: spin1 6s linear infinite; }
.atom__orbit--2 { animation: spin2 9s linear infinite; }
.atom__orbit--3 { animation: spin3 12s linear infinite; }
.electron {
    position: absolute; top: -6px; left: 50%; margin-left: -6px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--cyan);
    box-shadow: 0 0 14px 2px var(--cyan);
}
.atom__orbit--2 .electron { background: var(--pink); box-shadow: 0 0 14px 2px var(--pink); }
.atom__orbit--3 .electron { background: var(--lime); box-shadow: 0 0 14px 2px var(--lime); }

.formula {
    position: absolute; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    padding: 8px 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    backdrop-filter: blur(8px); color: var(--text); font-size: 0.95rem;
    animation: float 8s ease-in-out infinite;
}
.formula--1 { top: 6%; left: -6%; color: var(--cyan); }
.formula--2 { top: 22%; right: -8%; color: var(--pink); animation-delay: -2s; }
.formula--3 { bottom: 18%; left: -10%; color: var(--lime); animation-delay: -4s; }
.formula--4 { bottom: 4%; right: -2%; color: var(--primary); animation-delay: -6s; }

.scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
    width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
    display: grid; justify-items: center; padding-top: 8px;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--text-muted); animation: scrollDot 1.6s infinite; }

/* ---------- Stats ---------- */
.stats { padding: 30px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 22px 12px; }
.stat__num {
    display: block; font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__label { color: var(--text-muted); font-size: 0.92rem; display: block; margin-top: 6px; max-width: 220px; margin-inline: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card, .feature {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
    position: relative; overflow: hidden;
}
.card::before, .feature::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: var(--gradient-soft); opacity: 0; transition: opacity .3s var(--ease); z-index: 0;
}
.card:hover, .feature:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card:hover::before, .feature:hover::before { opacity: 1; }
.card > *, .feature > * { position: relative; z-index: 1; }

.card__icon, .feature__icon {
    font-size: 1.7rem; width: 54px; height: 54px; border-radius: 14px;
    display: grid; place-items: center; margin-bottom: 18px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.card__title, .feature h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.card p, .feature p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Curriculum ---------- */
.curriculum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 20px;
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.topic:hover { transform: translateY(-4px); border-color: var(--cyan); background: var(--surface-2); }
.topic__no {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
    color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text;
}
.topic h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.topic p { color: var(--text-muted); font-size: 0.9rem; }
.curriculum__note { text-align: center; color: var(--text-dim); margin-top: 28px; font-size: 0.96rem; }

/* ---------- Lab ---------- */
.lab__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.lab__list { margin: 26px 0 30px; display: grid; gap: 14px; }
.lab__list li { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 500; }
.lab__list li span { font-size: 1.3rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }

.lab__visual { position: relative; height: 380px; }
.lab__card {
    position: absolute; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(10px);
    box-shadow: var(--shadow); display: grid; gap: 18px; align-content: center; justify-items: center;
}
.lab__card span { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.lab__card--a { top: 10px; left: 0; width: 62%; animation: float 9s ease-in-out infinite; }
.lab__card--b { bottom: 10px; right: 0; width: 58%; animation: float 9s ease-in-out infinite; animation-delay: -3s; }

.spectrum { width: 100%; height: 60px; border-radius: 12px; background: linear-gradient(90deg, #ff004c, #ff8a00, #ffe600, #37ff00, #00e0ff, #4b3bff, #b026ff); box-shadow: 0 0 30px -6px rgba(124, 92, 255, 0.6); }

.circuit { display: flex; align-items: center; gap: 6px; }
.circuit .node { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--cyan); background: rgba(34, 211, 238, 0.2); }
.circuit .node.pulse { background: var(--cyan); box-shadow: 0 0 16px 2px var(--cyan); animation: pulse 1.8s infinite; }
.circuit .wire { width: 40px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--primary)); }

/* ---------- Pricing ---------- */
.pricing {
    position: relative; max-width: 560px; margin: 0 auto;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: 44px 40px; box-shadow: var(--shadow); overflow: hidden;
}
.pricing__glow { position: absolute; top: -60%; left: 50%; transform: translateX(-50%); width: 120%; height: 120%; background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 60%); pointer-events: none; }
.pricing > * { position: relative; z-index: 1; }
.pricing__badge {
    display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: #0a0b16; background: var(--gradient); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.pricing__head h3 { font-size: 1.5rem; }
.pricing__head p { color: var(--text-muted); margin-top: 8px; }
.pricing__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 26px 0 6px; }
.pricing__amount { font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 700; line-height: 1; }
.pricing__currency { font-size: 1.6rem; font-weight: 600; color: var(--text-muted); }
.pricing__per { width: 100%; color: var(--text-dim); font-size: 0.95rem; }
.pricing__hint { color: var(--cyan); font-size: 0.95rem; margin-bottom: 24px; }
.pricing__list { display: grid; gap: 12px; margin-bottom: 30px; }
.pricing__list li { position: relative; padding-left: 32px; color: var(--text); }
.pricing__list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font-size: 0.75rem; font-weight: 700; color: #0a0b16; background: var(--gradient);
}
.pricing__foot { text-align: center; color: var(--text-dim); font-size: 0.86rem; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s var(--ease); }
.faq__item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item summary {
    list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: 'Space Grotesk', sans-serif;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--cyan);
    transition: transform .3s var(--ease); flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__info .section__title { text-align: left; }
.contact__info .section__sub { margin-left: 0; }

.contact__meta { display: grid; gap: 18px; margin: 30px 0; }
.contact__meta li { display: flex; gap: 14px; align-items: flex-start; }
.contact__meta-ico { font-size: 1.2rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }
.contact__meta div { color: var(--text-muted); font-size: 0.95rem; }
.contact__meta strong { color: var(--text); }
.contact__meta a:hover { color: var(--cyan); }

.google-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border-strong);
    font-weight: 600; transition: transform .2s var(--ease), background .2s;
}
.google-link:hover { transform: translateY(-2px); background: var(--surface-2); }
.google-link__ico { color: var(--cyan); display: inline-flex; }

.contact__form-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px;
    background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border);
    color: var(--text); font-family: inherit; font-size: 0.98rem; resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2); }
.contact__note { text-align: center; color: var(--text-dim); font-size: 0.86rem; margin-top: 14px; }
.contact__note.is-success { color: var(--lime); }
.contact__note.is-error { color: var(--pink); }

/* ---------- Reviews ---------- */
.reviews__rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.reviews__stars { color: #ffce54; letter-spacing: 2px; font-size: 1.15rem; }
.reviews__score { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--text-muted); }
.reviews__score strong { font-size: 1.35rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.reviews__count { color: var(--text-dim); font-size: 0.9rem; width: 100%; text-align: center; }

.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 24px;
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.review:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.review__stars { color: #ffce54; letter-spacing: 2px; font-size: 0.95rem; }
.review blockquote { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
.review figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.review__name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text); }
.review__date { color: var(--text-dim); font-size: 0.82rem; flex-shrink: 0; }
.reviews__cta { text-align: center; margin-top: 44px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 12px; max-width: 320px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: var(--text-muted); font-size: 0.95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.86rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes nucleus { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(163, 230, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* Tilted orbits: each electron circles on its own rotated ring. */
@keyframes spin1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin2 { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes spin3 { from { transform: rotate(120deg); } to { transform: rotate(480deg); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .cards--3 { grid-template-columns: repeat(2, 1fr); }
    .reviews__grid { grid-template-columns: repeat(2, 1fr); }
    .curriculum { grid-template-columns: repeat(3, 1fr); }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display: none; }
    .lab__inner { grid-template-columns: 1fr; }
    .lab__visual { height: 320px; max-width: 460px; }
    .contact__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav__toggle { display: flex; }
    .nav__links {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 6px; padding: 90px 24px 40px;
        background: rgba(12, 14, 32, 0.96); backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        transform: translateX(100%); transition: transform .35s var(--ease);
    }
    .nav__links.is-open { transform: translateX(0); }
    .nav__links > a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
    .nav__cta { margin: 12px 0 0; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .cards--4, .cards--3 { grid-template-columns: 1fr; }
    .reviews__grid { grid-template-columns: 1fr; }
    .curriculum { grid-template-columns: repeat(2, 1fr); }
    .hero__facts { gap: 14px 22px; }
    .pricing { padding: 32px 24px; }
    .contact__form-wrap { padding: 24px; }
    .footer__bottom { flex-direction: column; }
}

@media (max-width: 380px) {
    .curriculum { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
