/* Szkolenia z AI dla rad pedagogicznych — /szkolenia/
   Kanon AI Expert Lab: granat #0a1a3a, złoto #dbae4a, Poppins.
   Topbar i stopka przeniesione z assets/legal.css, żeby strona wyglądała jak reszta serwisu. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1a3a;
  --navy-2: #0c2148;
  --gold: #dbae4a;
  --gold-2: #e6bd5e;
  --gold-ink: #8a6413;
  --bg: #f3f5f9;
  --panel: #ffffff;
  --surface: #eef1f6;
  --border: #d9dde6;
  --ink: #1b2233;
  --muted: #4a5263;
  --accent2: #c86e3c;
  --radius: 16px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 32px rgba(10,26,58,0.08);
  --wrap: 1120px;
  --gutter: clamp(1rem, 5vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent2); }

section[id] { scroll-margin-top: 84px; }

/* ── TOPBAR (jak na pozostałych podstronach) ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  height: 68px;
  background: rgba(6,12,24,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,174,74,0.18);
}
.topbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #f1f5f9; }
.topbar-mark { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.topbar-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar-text strong { display: block; font-size: 15px; line-height: 1.2; color: #f1f5f9; }
.topbar-text small { font-size: 11px; color: rgba(255,255,255,0.55); }
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.68); text-decoration: none;
  transition: color .2s, background .2s;
}
.topbar-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.topbar-nav a.is-current { color: var(--gold); }

/* ── PRZYCISKI ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-family: var(--font); font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-gold {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(219,174,74,0.35);
}
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(219,174,74,0.45); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ── HERO: tekst obok zdjęcia ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 110px var(--gutter) 64px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 20%, rgba(219,174,74,0.12), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.5px; color: #fff;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: clamp(1rem, 1.9vw, 1.15rem); color: rgba(255,255,255,0.82);
  max-width: 520px; line-height: 1.6; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* Wycięty portret na granacie: złoty krąg za sylwetką, dół "wchodzi" w złoty pasek */
.hero-photo {
  position: relative;
  justify-self: center; align-self: end; width: 100%; max-width: 440px;
  margin-bottom: -64px;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-photo::before {
  content: ''; position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%);
  width: 92%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(219,174,74,0.28), rgba(219,174,74,0.06) 60%, transparent 72%);
  border: 2px solid rgba(219,174,74,0.45);
}
.hero-photo img {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.45));
}
.hero-bar { height: 5px; background: var(--gold); }

/* ── SEKCJE ── */
section.block { padding: clamp(52px, 7vw, 88px) var(--gutter); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--navy);
  letter-spacing: -0.3px; line-height: 1.2;
  display: flex; align-items: center; gap: 14px;
}
.section-head h2::before { content: ''; width: 34px; height: 5px; background: var(--gold); border-radius: 3px; flex-shrink: 0; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* ── DWIE KARTY ── */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 5px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.offer-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.offer-meta { color: var(--gold-ink); font-weight: 600; font-size: 0.9rem; }
.offer-card p { color: var(--muted); font-size: 0.95rem; }
.offer-card p strong { color: var(--ink); }
.offer-price {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.offer-price span { color: var(--muted); font-size: 0.9rem; }
.offer-price strong { font-size: 1.55rem; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ── TRZY ZAKRESY + zdjęcie B ── */
.scopes { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scopes-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.scopes-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.scopes-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.scope-list { display: grid; gap: 16px; }
.scope {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.scope-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.scope-icon svg { width: 28px; height: 28px; }
.scope-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); display: block; margin-bottom: 2px; }
.scope h3 { font-size: 1.02rem; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ── OPIS ── */
.desc { max-width: 780px; }
.desc p { color: var(--ink); font-size: 1.02rem; line-height: 1.8; margin-bottom: 18px; }
.desc p:last-child { margin-bottom: 0; }

/* ── PAKIETY ── */
.packages { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pack {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.pack.is-mid { border: 2px solid var(--gold); box-shadow: 0 12px 40px rgba(219,174,74,0.22); }
.pack-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-ink); }
.pack h3 { font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.pack-what { color: var(--muted); font-size: 0.95rem; margin: 6px 0 18px; }
.pack-price { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.5px; margin-top: auto; }
.pack-price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.pack-note { color: var(--muted); font-size: 0.92rem; margin-top: 22px; }

/* ── WARUNKI ── */
.terms { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; max-width: 900px; }
.terms li { position: relative; padding-left: 22px; color: var(--ink); font-size: 0.98rem; }
.terms li::before {
  content: ''; position: absolute; left: 0; top: 0.65em; width: 9px; height: 9px;
  background: var(--gold); border-radius: 50%;
}

/* ── OPINIE (kopia z kursu, jedno źródło danych) ── */
.reviews { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reviews-note { color: var(--muted); font-size: 0.95rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.review-text { color: var(--ink); font-size: 0.95rem; line-height: 1.7; flex: 1; }
.review-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.review-name { color: var(--navy); font-weight: 600; }
.review-date { color: var(--muted); font-size: 0.85rem; }

/* ── KONTAKT ── */
.contact { background: var(--navy); color: #fff; }
.contact-inner {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.contact-avatar {
  width: 156px; height: 156px; border-radius: 50%;
  border: 4px solid var(--gold); background: #fff;
  overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.contact h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.contact-name { color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.contact p.lead { color: rgba(255,255,255,0.85); font-size: 1.02rem; max-width: 640px; line-height: 1.7; margin-bottom: 22px; }
.contact p.lead a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); white-space: nowrap; }
.contact p.lead a:hover { color: var(--gold); }
.contact-lines { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 26px; }
.contact-lines a {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.contact-lines a svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.contact-lines a:hover { color: var(--gold); }

/* ── STOPKA ── */
footer {
  text-align: center; padding: 36px 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted); font-size: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
footer strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin: 4px 0 2px; }
.footer-links a {
  color: var(--accent2); text-decoration: none; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.footer-links a:hover { border-color: var(--accent2); }

/* ── RESPONSYWNOŚĆ ── */
@media (max-width: 940px) {
  .topbar-nav a { padding: 6px 9px; font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; margin-top: 8px; }
  .scopes-inner { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .hero { padding-top: 96px; }
  .offer-grid { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact-lines { justify-content: center; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .contact .btn { width: 100%; }
  .hero-photo { max-width: 280px; }
  .offer-card, .pack { padding: 22px 20px; }
  .offer-price strong { font-size: 1.4rem; }
  .pack-price { font-size: 1.8rem; }
  .contact-avatar { width: 128px; height: 128px; }
}
