/* RemiMat – strona główna */

/* ---------- hero ---------- */
.hero { padding: 96px 0 104px; overflow: hidden; background: radial-gradient(900px 500px at 85% -10%, rgba(122, 90, 240, .10), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(76, 95, 213, .08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; word-spacing: .06em; }
.hero h1 .grad-text { white-space: nowrap; }
.hero-lead { font-size: 18px; max-width: 490px; margin-top: 24px; color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.trust { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.trust b { color: var(--ink); }
.avatars { display: flex; }
.avatars img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; box-shadow: 0 2px 6px rgba(14, 26, 58, .12); }
.avatars img:first-child { margin-left: 0; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); vertical-align: -2px; margin-right: 6px; }
.stars .ic { width: 14px; height: 14px; }

.hero-media { position: relative; isolation: isolate; }
.hero-media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: 32px; background: var(--grad); opacity: .14; z-index: -1; }
.hero-media > img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-note { position: absolute; left: -36px; bottom: 36px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--muted); }
.hero-note-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; }
.hero-note-row b { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.hero-note-row b.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-note-row .ic { width: 18px; height: 18px; color: var(--accent); }
.hero-note small { font-size: 12px; }
/* symbole matematyczne – dekoracja */
.hero-math { position: absolute; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); font-family: 'Times New Roman', Georgia, serif; font-style: italic; font-size: 30px; color: var(--accent-ink); animation: hero-float 6s ease-in-out infinite; }
.hero-math--a { top: 28px; right: -24px; }
.hero-math--b { top: 44%; right: -32px; width: 52px; height: 52px; font-size: 24px; color: var(--violet); animation-delay: -3s; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-math { animation: none; } }
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media > img { aspect-ratio: 4 / 3; }
  .hero-media > img { object-position: 50% 35%; }
  .hero-media::before { inset: 14px -10px -14px 10px; }
  .hero-note { left: auto; right: 12px; bottom: 12px; padding: 12px 16px; }
  .hero-math--a { top: -18px; right: 14px; width: 54px; height: 54px; font-size: 26px; }
  .hero-math--b { display: none; }
}
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } .trust { flex-wrap: wrap; } }

/* ---------- liczby ---------- */
.stats { position: relative; z-index: 1; margin-top: -40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.stats-grid div { padding: 28px 24px; text-align: center; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats-grid b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- metoda ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.pillar-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 24px; box-shadow: 0 10px 20px -8px rgba(58, 75, 194, .6); }
.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- historie ---------- */
.stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.story { position: relative; padding: 0; border: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 15; cursor: pointer; background: var(--ink); text-align: left; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.story:hover { box-shadow: var(--shadow-lg); }
.story video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .5s ease; }
.story:hover video { transform: scale(1.03); }
.story::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(14, 26, 58, 0), rgba(14, 26, 58, .8)); }
.story-meta { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px; }
.story-play { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.story-play .ic { width: 14px; height: 14px; margin-left: 2px; }
@media (max-width: 860px) { .stories { grid-template-columns: repeat(4, 60%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .story { scroll-snap-align: start; } }

/* ---------- opinie ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.quote { position: relative; margin: 20px 0 0; padding: 22px 24px 20px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.quote::before { content: '\201E'; position: absolute; left: 18px; top: -6px; font-family: Georgia, serif; font-size: 64px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote blockquote { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.55; font-weight: 500; }
.quote figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.proofs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proof { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); aspect-ratio: 9 / 16; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.proof:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proof img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proof:nth-child(even) { margin-top: 32px; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .proofs { grid-template-columns: repeat(4, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .proof { scroll-snap-align: start; } .proof:nth-child(even) { margin-top: 0; } }

/* ---------- o nas / nauczyciele ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.about .sec-lead { margin-top: 0; }
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--bg-2); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.teacher-photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(14, 26, 58, .06); pointer-events: none; }
.teacher-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.teacher:hover .teacher-photo img { transform: scale(1.03); }
.teacher h3 { font-size: 18px; }
.role { font-size: 13px; color: var(--accent-ink); font-weight: 600; margin: 4px 0 10px; }
.teacher p:last-child { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } .teachers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .teachers { grid-template-columns: 1fr; } }

/* ---------- cennik ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; transition: box-shadow .25s; }
.plan:hover { box-shadow: var(--shadow); }
.plan-featured { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 20px; }
.plan-tag { font-size: 12px; font-weight: 600; color: #fff; background: var(--grad); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.plan-tag-soft { background: var(--accent-soft); color: var(--accent-ink); }
.plan-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 28px 0 24px; }
.plan-price b { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.035em; }
.plan-price s { color: var(--muted); font-size: 16px; }
.plan-price span { width: 100%; font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; color: var(--ink); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .ic { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); margin-top: 1px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px 22px; } }

.how { display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; margin-top: 48px; }
.how div { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.how b { color: var(--ink); font-weight: 600; }
.how span { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; box-shadow: 0 6px 14px -6px rgba(58, 75, 194, .7); }

/* ---------- kontakt ---------- */
.cta { --grid-line: rgba(255, 255, 255, .06); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: radial-gradient(600px 400px at 100% 0%, rgba(122, 90, 240, .45), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(76, 95, 213, .35), transparent 60%), var(--ink); border-radius: 28px; padding: 60px; box-shadow: var(--shadow-lg); }
.cta.grid-paper::before { -webkit-mask-image: none; mask-image: none; }
.cta .kicker { background: rgba(255, 255, 255, .1); color: #fff; }
.cta .sec-title { color: #fff; }
.cta .sec-lead { color: #B7BEDA; }
.cta-links { display: grid; gap: 10px; }
.cta-links a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.cta-links a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateX(3px); }
.cta-links .ic { width: 22px; height: 22px; color: var(--accent-2); }
.cta-links small { display: block; font-size: 12px; font-weight: 500; color: #B7BEDA; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; border-radius: 20px; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(9, 16, 36, .9); display: grid; place-items: center; padding: 24px; }
.modal-box { max-width: min(92vw, 960px); max-height: 88vh; display: grid; place-items: center; }
.modal-box video, .modal-box img { max-height: 88vh; max-width: 100%; border-radius: 14px; background: #000; }
.modal-msg { background: #fff; border-radius: 16px; padding: 28px; max-width: 420px; text-align: center; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, .24); }
