/* ==========================================================================
   Mistrzowie Logiki — arkusz stylów v2 (nowoczesny)
   Indygo-fiolet + elektryczna limonka, duże zaokrąglenia, miękkie cienie,
   rozmyte plamy koloru w tle. Fiolet = szachy, koral = matematyka.
   ========================================================================== */

:root {
  --ink: #120B26;
  --ink-2: #1D1240;
  --ink-3: #241653;
  --ink-soft: #675F8C;
  --violet: #6C4CF1;
  --violet-deep: #4E31C9;
  --violet-tint: #EFEBFE;
  --coral: #FF6B4A;
  --coral-deep: #E1502F;
  --coral-tint: #FFEDE7;
  --lime: #C6FF3D;
  --lime-deep: #9FD400;
  --paper: #F7F6FB;
  --paper-2: #FFFFFF;
  --line: rgba(18, 11, 38, 0.08);
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: min(1240px, 94vw);
  --measure: 820px;
  --serif: "Space Grotesk", "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 20px 45px -20px rgba(18, 11, 38, 0.28);
  --shadow-card: 0 14px 34px -18px rgba(18, 11, 38, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; max-width: 68ch; color: var(--ink); }
a { color: var(--violet-deep); text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

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

/* dawny motyw kraty - wyłączony w wersji nowoczesnej, zastąpiony plamami */
.grid-bg, .grid-bg-dark { background-image: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--lime); color: var(--ink);
  padding: 10px 16px; z-index: 1000; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--radius-sm); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(18, 11, 38, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem;
}
.brand:hover { color: var(--lime); }
.brand img { height: 32px; width: 32px; object-fit: contain; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }

.nav-links a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding: 9px 16px; display: block; border-radius: var(--radius-pill);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,0.1); color: var(--white); }

.nav-links .cta-nav {
  background: var(--lime); color: var(--ink); font-weight: 700;
  margin-left: 8px;
}
.nav-links .cta-nav:hover { background: var(--white); color: var(--ink); }

.nav-toggle {
  display: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 8px 14px; font-size: 0.9rem; cursor: pointer; border-radius: var(--radius-pill);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    background: var(--ink-2); flex-direction: column; align-items: stretch;
    border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; border-radius: var(--radius-sm); }
  .nav-links .cta-nav { margin: 6px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  padding: 14px 28px; border: 2px solid var(--ink); border-radius: var(--radius-pill);
  text-decoration: none; color: var(--ink); background: transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(198,255,61,0.55); }
.btn-primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-secondary { border-color: var(--violet); color: var(--violet-deep); }
.btn-secondary:hover { background: var(--violet); color: var(--white); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--violet); top: -140px; right: -80px; }
.hero::after { width: 320px; height: 320px; background: var(--coral); bottom: -140px; left: 8%; opacity: 0.35; }

.hero .container {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  position: relative; z-index: 2;
}
.hero .container.hero-solo { display: block; max-width: var(--measure); }
.hero h1 { color: var(--white); }
.hero .eyebrow-line {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
  font-weight: 700; margin-bottom: 20px; font-size: 0.88rem;
  background: var(--lime); padding: 7px 16px; border-radius: var(--radius-pill);
}
.hero .eyebrow-line .dot { display: none; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.14rem; max-width: 46ch; }

.hero-figure {
  border: none; padding: 0; background: transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.hero-figure img, .hero-figure svg { width: 100%; height: 360px; display: block; border-radius: var(--radius); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { height: 240px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.section-ink::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--violet); filter: blur(90px); opacity: 0.45; top: -100px; left: 50%; transform: translateX(-50%);
}
.section-ink .container { position: relative; z-index: 1; }
.section-ink h2 { color: var(--white); }
.section-ink p { color: rgba(255,255,255,0.78); }

.section-head { max-width: var(--measure); margin-bottom: 44px; }
.section-head .kicker {
  display: inline-block; color: var(--violet-deep); background: var(--violet-tint);
  font-weight: 700; font-size: 0.85rem; padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-ink .section-head .kicker { color: var(--ink); background: var(--lime); }

/* ---------- Offer / feature cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px;
  background: transparent; border: none;
}
.card {
  background: var(--white); padding: 32px 28px; border-top: none;
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card.is-chess { background: var(--violet-tint); }
.card.is-math { background: var(--coral-tint); }
.card h3 { margin-bottom: 10px; }
.card.is-chess h3 { color: var(--violet-deep); }
.card.is-math h3 { color: var(--coral-deep); }
.card ul { padding-left: 0; list-style: none; margin: 14px 0 18px; }
.card li { padding: 7px 0 7px 24px; position: relative; font-size: 0.96rem; border-bottom: 1px solid rgba(18,11,38,0.07); }
.card li:last-child { border-bottom: none; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet);
}
.card.is-math li::before { background: var(--coral); }
.card .price { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.card a.card-link { font-weight: 700; }
.card.is-chess a.card-link { color: var(--violet-deep); }
.card.is-math a.card-link { color: var(--coral-deep); }

/* ---------- Two column with image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split img, .split svg { border: none; border-radius: var(--radius); width: 100%; height: 340px; display: block; object-fit: cover; box-shadow: var(--shadow-card); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
}

/* ---------- Plain text section (no image slot) ---------- */
.text-block { max-width: var(--measure); }
.text-block p { max-width: none; }

/* ---------- Stat row ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px;
  border-top: none; border-bottom: none; padding: 8px 0; margin: 40px 0 0;
}
.stat {
  background: var(--white); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-card);
}
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--violet-deep); }
.stat span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin: 8px 0 40px; }
.price-table caption {
  text-align: left; font-family: var(--serif); font-size: 1.3rem; padding: 22px 0 12px; color: var(--ink);
}
.price-table th, .price-table td { text-align: left; padding: 16px 20px; font-size: 0.96rem; border: none; }
.price-table thead th { background: var(--ink); color: var(--white); font-weight: 700; }
.price-table thead tr th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.price-table thead tr th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.price-table tbody tr { background: var(--white); box-shadow: var(--shadow-card); }
.price-table tbody tr td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.price-table tbody tr td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.price-table td.amount { font-weight: 700; white-space: nowrap; font-family: var(--serif); color: var(--violet-deep); }

/* ---------- Locations ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  border: none; background: var(--white); padding: 10px 20px; font-size: 0.9rem; font-weight: 700;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-card); color: var(--violet-deep);
}
.section-ink .chip { background: rgba(255,255,255,0.1); color: var(--white); box-shadow: none; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 36px; }
.faq-group h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 18px; }
details.faq-item {
  border: none; background: var(--white); border-radius: var(--radius-sm);
  margin-bottom: 10px; box-shadow: var(--shadow-card); padding: 4px 22px;
}
details.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 30px 16px 0; position: relative; list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--serif); font-size: 1.5rem; color: var(--violet-deep);
}
details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item .faq-answer { padding: 0 0 20px; color: var(--ink-soft); white-space: pre-line; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: none; border-radius: var(--radius); padding: 40px; max-width: 640px; box-shadow: var(--shadow-card); }
.widget-frame { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.widget-frame img { margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 0.94rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Contact info block ---------- */
.contact-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; margin: 36px 0; }
.contact-item { border-left: none; padding: 24px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.contact-item h3 { margin-bottom: 6px; font-size: 1.05rem; color: var(--violet-deep); }
.contact-item a { font-size: 1.05rem; font-weight: 700; }

/* ---------- Documents list ---------- */
.doc-list { list-style: none; padding: 0; margin: 28px 0; }
.doc-list li {
  border: none; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
  padding: 18px 22px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.doc-list a { font-weight: 700; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.75);
  padding: 64px 0 30px; border-top: none;
  border-radius: 40px 40px 0 0; margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; font-family: var(--sans); font-weight: 800; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,0.5);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
