/* anetastepska.pl – wspólny arkusz stylów. Bez zewnętrznych fontów i bibliotek.
   Kolorystyka dopasowana do zdjęć: granat na szarym tle, akcenty żółto-pomarańczowe.
   Tryb ciemny: atrybut data-theme="dark" na <html> (ustawiany przez js/theme.js). */

:root {
  --bg: #e7eaee;              /* chłodna szarość jak tło zdjęć */
  --surface: #f8f9fb;
  --surface-alt: #dce1e7;
  --text: #1a2333;
  --text-muted: #475263;
  --primary: #1f3a6b;         /* granat */
  --primary-strong: #152a50;
  --primary-soft: #d6e0f0;
  --on-primary: #ffffff;
  --accent: #e9a23b;          /* żółto-pomarańczowy */
  --accent-strong: #a8520a;   /* pomarańczowy do tekstu – kontrast AA */
  --accent-soft: #fbe5c2;
  --on-accent: #1a2333;
  --link: #1f3a6b;
  --border: #c9d0da;
  --cta-bg: #1f3a6b;
  --cta-text: #e3e9f3;
  --shadow: 0 2px 10px rgba(21, 42, 80, 0.10);
  --shadow-hover: 0 10px 26px rgba(21, 42, 80, 0.18);
  --radius: 14px;
  --max: 1080px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #11161e;
  --surface: #1a212c;
  --surface-alt: #151b24;
  --text: #e6eaf0;
  --text-muted: #a9b4c3;
  --primary: #9dbbec;
  --primary-strong: #c3d5f3;
  --primary-soft: #23324a;
  --on-primary: #11161e;
  --accent: #f0b04f;
  --accent-strong: #f5b95a;
  --accent-soft: rgba(240, 176, 79, 0.16);
  --on-accent: #11161e;
  --link: #9dbbec;
  --border: #2c3747;
  --cta-bg: #182a48;
  --cta-text: #d3ddec;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 26px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--on-primary); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 700px) {
  .container { padding: 0 1.5rem; }
}

.spaced { margin-top: 2.5rem; }

/* ---------- Nagłówek i nawigacja ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--surface-alt); color: var(--text); }
.site-nav a[aria-current="page"] {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

/* ---------- Przełącznik trybu jasny/ciemny ---------- */

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  flex-shrink: 0;
}
.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 3;
}
.slider {
  position: absolute;
  inset: 0;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  transition: background-color 0.3s ease;
}
.slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  z-index: 2;
}
.sun-icon, .moon-icon { width: 16px; height: 16px; z-index: 1; }
.sun-icon { color: #d97706; }
.moon-icon { color: var(--text-muted); opacity: 0.6; }
.theme-switch input:focus-visible + .slider { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Na telefonie przełącznik w prawym górnym rogu, obok nazwiska */
@media (max-width: 699px) {
  .site-header .container { position: relative; }
  .theme-switch { position: absolute; top: 1rem; right: 1rem; }
}

[data-theme="dark"] .slider { background-color: var(--primary-soft); }
[data-theme="dark"] .slider::before { transform: translateX(28px); }
[data-theme="dark"] .sun-icon { opacity: 0.5; }
[data-theme="dark"] .moon-icon { opacity: 1; color: var(--accent); }

/* ---------- Sekcje ---------- */

main { display: block; }

.section { padding: 3rem 0; }
.section--alt { background: var(--surface-alt); }
@media (min-width: 700px) {
  .section { padding: 4.5rem 0; }
}

.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
@media (min-width: 700px) {
  .hero { padding: 5rem 0 4rem; }
}

/* ---------- Strona główna: zdjęcie + imię, kafelki ---------- */

.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 0 1.25rem;
}
@media (min-width: 640px) {
  .home-hero { gap: 2.25rem; padding: 3rem 0 2rem; }
}
.home-hero .portrait {
  width: 110px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 18px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .home-hero .portrait { width: 180px; }
}
.home-hero h1 { margin-bottom: 0.15em; }
.home-hero p { color: var(--text-muted); margin: 0; }

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0 3rem;
}
@media (min-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 640px) {
  .tile { padding: 1.5rem 1.75rem; }
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}
.tile-icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  color: var(--accent-strong);
}
.tile h2 { font-size: 1.45rem; margin: 0; }
.tile p { grid-column: 2; margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.97rem; }
.tile .badge { position: absolute; top: 0.8rem; right: 0.9rem; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Karty i listy ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card ul { padding-left: 1.2rem; margin: 0 0 1em; }
.card li { margin-bottom: 0.3em; }
.note { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Opinie ---------- */

.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.quote {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
}
.quote::before {
  content: "\201E";
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  position: absolute;
  top: -0.2rem;
  left: 1.1rem;
}
.quote blockquote { margin: 1.4rem 0 0.75rem; font-style: italic; }
.quote figcaption { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Cennik ---------- */

.price-group { margin-top: 2rem; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table caption {
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0 0 0.6rem;
}
.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.price-table thead th {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { font-weight: 400; }
.price-table td {
  white-space: nowrap;
  text-align: right;
  font-weight: 700;
  color: var(--accent-strong);
}
.price-table thead th:last-child { text-align: right; }

.rules {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.rules li {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

/* ---------- Przyciski i CTA ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--on-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.center .btn-row { justify-content: center; }

.cta {
  background: var(--cta-bg);
  color: var(--cta-text);
}
.cta h2 { color: #ffffff; }
.cta p { color: var(--cta-text); }
.cta a:not(.btn) { color: var(--accent); }
.cta .btn:hover { background: #ffffff; border-color: #ffffff; color: #152a50; }

/* Miejsce na przyszły widżet rezerwacji */
.booking-slot {
  margin: 2rem auto 0;
  max-width: 640px;
  padding: 1.5rem;
  border: 2px dashed rgba(233, 162, 59, 0.6);
  border-radius: var(--radius);
}
.booking-slot p { margin: 0 0 0.5rem; }

/* ---------- Wkrótce ---------- */

.coming-soon {
  text-align: center;
  padding: 4rem 0 5rem;
}
.coming-soon .badge { font-size: 0.9rem; margin-bottom: 1rem; }

/* ---------- Treść prawna ---------- */

.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4em; }

/* ---------- Stopka ---------- */

.site-footer {
  border-top: 3px solid var(--primary);
  background: var(--surface);
  padding: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0 0 0.3rem; }
.site-footer strong { color: var(--primary); }

/* ---------- Szkolenia ---------- */

@media (min-width: 900px) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
}
.tile--soon { opacity: 0.8; box-shadow: none; }
.tile--soon:hover { transform: none; border-color: var(--border); border-left-color: var(--primary); box-shadow: none; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}
/* Grafika ma przezroczyste tło – działa w trybie jasnym i ciemnym */
.figure-plate {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 420px;
  justify-self: center;
}
.figure-plate img { display: block; margin: 0 auto; }
.figure-plate figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.energies {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .energies { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.energy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--energy);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.energy h3 { color: var(--text); }
.energy h3::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--energy);
  margin-right: 0.45em;
  vertical-align: 0.02em;
}
.energy h3 span { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.energy p { margin: 0; }
.energy--red { --energy: #c8323a; }
.energy--yellow { --energy: #f2c230; }
.energy--green { --energy: #6a9a1f; }
.energy--blue { --energy: #23629a; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.5em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.35em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent-strong);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.card ul.plain { padding-left: 1.2rem; }

@media (min-width: 1000px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.card-sub { font-style: italic; color: var(--accent-strong); margin-top: -0.2rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3.25rem;
  border-left: 2px solid var(--border);
  margin-left: 1.1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -1.15rem;
  top: -0.15rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--primary);
}
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { margin: 0; padding: 0.9rem 1.1rem; }
