/* Internetowy Serwis Edukacyjny — redesign 2026 */
:root {
  --ink: #0e2433;
  --ink-2: #3c5262;
  --muted: #6b7f8d;
  --line: #e3e9ee;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --brand: #12466b;
  --brand-2: #1d6fa5;
  --accent: #d6324a;
  --accent-soft: #fde9ec;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14,36,51,.06), 0 12px 32px -12px rgba(14,36,51,.18);
  --max: 1160px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-size: 15px; line-height: 1.2; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--brand); background: #e8f1f8; }
.nav .btn { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(18,70,107,.6); }
.btn-primary:hover { background: #0d3754; }
.btn-ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c9d4dc; }
.nav .btn { padding: 9px 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(29,111,165,.14), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(214,50,74,.08), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: #e8f1f8; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero .lead { font-size: 19px; max-width: 580px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.hero-card .seal { width: 92px; margin: -64px auto 12px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; color: var(--ink); }
.check-list li svg { flex: none; margin-top: 2px; color: #1a9b6b; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p { font-size: 18px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 18px; }

/* Cards grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15.5px; margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #e8f1f8; color: var(--brand); margin-bottom: 18px;
}
.icon.red { background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 24px; height: 24px; }

/* Security split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }

/* ---------- Promo band ---------- */
.promo {
  background: linear-gradient(135deg, var(--brand) 0%, #0b2f4a 100%);
  color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden;
}
.promo::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.promo-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; z-index: 1; }
.promo h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; }
.promo p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0; }
.promo .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.promo .tags li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.discount {
  text-align: center; background: #fff; color: var(--ink); border-radius: 22px; padding: 26px 30px; min-width: 220px;
}
.discount strong { display: block; font-size: 56px; line-height: 1; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.discount span { display: block; font-size: 14px; color: var(--muted); margin: 6px 0 16px; }

/* ---------- Contact ---------- */
.contact {
  text-align: center; max-width: 640px; margin: 0 auto;
}
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.mail-pill {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 24px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow);
  word-break: break-all;
}
.mail-pill:hover { text-decoration: none; border-color: var(--brand-2); }
.mail-pill svg { color: var(--brand-2); flex: none; }

/* ---------- Feature page ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; background:
    radial-gradient(800px 360px at 50% -20%, rgba(29,111,165,.14), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; }
.page-hero .lead { max-width: 760px; margin: 0 auto 12px; font-size: 18px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.toc a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px;
}
.toc a:hover { text-decoration: none; border-color: var(--brand-2); color: var(--brand); }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; }
.feature.reverse .feature-text { order: 2; }
.feature-text .num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.feature-text h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-top: 6px; }
.feature-text p { font-size: 16.5px; }

.browser {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dde3; }
.browser-bar i:nth-child(1) { background: #ff6058; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c940; }
.browser img { width: 100%; height: auto; cursor: zoom-in; }

.more-title { text-align: center; margin: 24px 0 32px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,20,30,.86); display: none;
  align-items: center; justify-content: center; padding: 24px; z-index: 100; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 12px; background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0 32px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.site-footer .brand img { background: #fff; border-radius: 50%; }
.site-footer a { color: #fff; }
.site-footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .feature, .promo-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-text { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-card { margin-top: 40px; }
  .promo { padding: 40px 28px; }
  .discount { justify-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  .feature { padding: 48px 0; }
  .brand span { font-size: 14px; }
}
