/* Małe Oczka — rehabilitacja wzroku słabowidzących */
:root {
  --cream: #fff7e6;
  --cream-2: #fdeccb;
  --paper: #ffffff;
  --navy: #0d2b45;
  --navy-2: #24425e;
  --muted: #4a5f73;
  --line: #ecdcbc;
  --orange: #e2551f;
  --yellow: #f4b400;
  --pink: #d02c74;
  --purple: #7a3ea8;
  --green: #1f8a52;
  --blue: #1f57b8;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .06), 0 10px 30px -12px rgba(13, 43, 69, .18);
  --wrap: 1080px;
  font-size: 112.5%; /* 18px base — czytelność dla słabowidzących */
}
html.text-lg { font-size: 131.25%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: .6em 1em; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 247, 230, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 62px; }
.brand strong { display: block; font-size: 1.2rem; line-height: 1.1; }
.brand span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: .92rem; padding: .45em .8em; border-radius: 999px; }
.nav a:hover { background: var(--cream-2); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.tools { display: flex; gap: 8px; }
.btn-text {
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  border-radius: 999px; padding: .3em .8em; min-height: 40px;
}
.btn-text[aria-pressed="true"] { background: var(--navy); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; font-size: 1rem; }
}
@media (max-width: 460px) { .brand span { display: none; } .brand img { width: 52px; } }

/* ---------- Hero (home) ---------- */
.hero { text-align: center; padding: 28px 0 8px; }
.hero .logo { width: min(440px, 86%); margin: 0 auto 4px; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--navy-2); max-width: 640px; margin: 0 auto 1.2em; }
.who { font-weight: 700; margin: 18px 0 .2em; }

.contact-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.pill {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none;
  background: var(--paper); color: var(--navy); border: 1px solid var(--line);
  padding: .6em 1.1em; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); min-height: 48px;
}
.pill svg { width: 20px; height: 20px; flex: none; }
.pill.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill:hover { transform: translateY(-1px); color: inherit; }
.pill.primary:hover { color: #fff; background: var(--navy-2); }
.pill { transition: transform .15s ease, background .15s ease; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 40px auto 56px; }
@media (max-width: 680px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  --c: var(--orange);
  position: relative; display: flex; gap: 18px; align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: 24px 24px 24px 22px;
  text-decoration: none; color: var(--navy); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--c); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,43,69,.06), 0 18px 40px -14px rgba(13,43,69,.28); color: var(--navy); }
.tile .ico { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.tile .ico svg { width: 34px; height: 34px; }
.tile .num { font-size: .8rem; font-weight: 700; color: var(--c); letter-spacing: .08em; }
.tile h2 { font-size: 1.12rem; margin: .1em 0 .2em; }
.tile p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.tile .arrow { margin-left: auto; flex: none; font-size: 1.4rem; color: var(--c); transition: transform .2s ease; }
.tile:hover .arrow { transform: translateX(4px); }
.t1 { --c: var(--orange); } .t2 { --c: var(--purple); } .t3 { --c: var(--green); } .t4 { --c: var(--pink); }

/* ---------- Info cards (home) ---------- */
.info { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-bottom: 64px; }
@media (max-width: 780px) { .info { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; font-size: 1.25rem; }
.card address { font-style: normal; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: .35em 1.2em; margin: 0; }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; }

/* ---------- Subpages ---------- */
.page-head { padding: 44px 0 10px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8em; }
.crumbs a { color: var(--muted); }
.page-head .kicker { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--orange)); margin-bottom: .4em; }
.content { padding-bottom: 40px; }
.content > p:first-of-type { font-size: 1.08rem; }
.content ul.dots { padding: 0; list-style: none; }
.content ul.dots li { position: relative; padding-left: 1.7em; margin-bottom: .7em; }
.content ul.dots li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .6em; height: .6em; border-radius: 50%; background: var(--accent, var(--orange)); }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 14px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent, var(--green)); color: #fff; font-weight: 700; display: grid; place-items: center; }

.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 .35em; display: flex; gap: .55em; align-items: baseline; }
.feature h3::before { content: ""; flex: none; width: .65em; height: .65em; border-radius: 50%; background: var(--accent, var(--green)); transform: translateY(-.05em); }
.feature p { margin: 0; }

.note { background: var(--cream-2); border-radius: 18px; padding: 18px 22px; border-left: 6px solid var(--accent, var(--orange)); }
.note p:last-child { margin-bottom: 0; }

.tools-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .tools-list { grid-template-columns: 1fr; } }
.tools-list .feature { margin: 0; }
.tools-list .feature h3 { font-size: 1.02rem; }
.tools-list .feature p { font-size: .94rem; }

/* Cennik */
.prices { list-style: none; padding: 0; margin: 0 0 1.5em; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prices li { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.prices li:last-child { border-bottom: 0; }
.prices .name { font-weight: 700; }
.prices .name small { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; }
.prices .price { margin-left: auto; white-space: nowrap; font-weight: 700; font-size: 1.25rem; background: var(--cream-2); padding: .2em .7em; border-radius: 12px; }

/* CTA */
.cta { margin: 44px 0 60px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 .2em; font-size: 1.3rem; }
.cta p { margin: 0; color: #d6e2ee; }
.cta .pill { box-shadow: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Standardy */
.legal h2 { font-size: 1.3rem; padding-top: .6em; border-top: 2px dashed var(--line); }
.legal h2 small { font-size: .82em; color: var(--navy-2); }
.legal h3 { font-size: 1.05rem; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal .toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.legal .toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: .9rem; }
.legal td { border: 1px solid #cdbf9f; padding: .5em .7em; vertical-align: top; min-width: 120px; }
.legal td ul { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6e2ee; padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6em; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer .legal-link { display: inline-flex; gap: .5em; align-items: center; margin-top: 4px; background: rgba(255,255,255,.08); padding: .5em .9em; border-radius: 12px; text-decoration: none; font-weight: 700; }
.site-footer .legal-link:hover { background: rgba(255,255,255,.16); color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.rainbow { height: 6px; background: linear-gradient(90deg, var(--purple), var(--blue), var(--green), var(--yellow), var(--orange), var(--pink)); }

@media print {
  .site-header, .site-footer, .cta, .skip, .rainbow { display: none !important; }
  body { background: #fff; }
}

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.4em 0 .5em; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--navy); }
a.contact-item:hover { border-color: var(--accent, var(--blue)); color: var(--navy); }
.ci-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--accent, var(--blue)); }
.ci-ico svg { width: 22px; height: 22px; }
.ci-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.ci-value { display: block; font-weight: 600; font-size: 1.05rem; font-style: normal; }
.ci-note { display: block; font-size: .88rem; color: var(--muted); }
.map-box { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
@media (max-width: 640px) { .map-box { aspect-ratio: 4 / 5; } }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 4px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; background-color: var(--paper); }
.map-placeholder p { margin: 0; background: var(--paper); padding: 0 8px; }
.map-placeholder .map-note { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map-load { font: inherit; cursor: pointer; }
.map-under { margin-top: .8em; font-size: .95rem; }
