/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-ext-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1d2a2e;
  --ink-2: #4a5a5f;
  --muted: #6d7b80;
  --line: #e6dfd4;
  --brand: #1aa3b8;       /* logo teal */
  --brand-deep: #0f6b76;  /* accessible teal for text/buttons */
  --brand-tint: #e3f4f6;
  --warm: #d9a066;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(29 42 46 / .04), 0 8px 24px -8px rgb(29 42 46 / .12);
  --header-h: 72px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -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(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw + .8rem, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
address { font-style: normal; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 640px; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: .75em;
}
.muted { color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: 0 6px 16px -6px rgb(15 107 118 / .55); }
.btn-primary:hover { background: #0c5a63; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.text-link { font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 248 243 / .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgb(29 42 46 / .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav ul a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding-block: 6px; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat;
  transition: color .2s, background-size .25s;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--ink); background-size: 100% 2px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgb(29 42 46 / .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); background: none; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw + .6rem, 4rem); line-height: 1.06; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--brand-deep); font-weight: 400; }
.hero-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.open-status {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 24px; margin-bottom: 0;
  font-size: .95rem; color: var(--ink-2);
}
.open-status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted);
}
.open-status.is-open::before { background: #2fa36b; box-shadow: 0 0 0 4px rgb(47 163 107 / .18); }
.open-status[hidden] { display: none; }

.hero-portrait { margin: 0; position: relative; justify-self: center; width: min(100%, 440px); }
.hero-portrait::before {
  content: ""; position: absolute; inset: 8% -8% -6% 10%;
  background: var(--brand-tint); border-radius: 240px 240px 32px 32px; z-index: -1;
}
.hero-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 240px 240px 28px 28px; box-shadow: var(--shadow);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; width: min(72%, 300px); }
}

/* ---------- About ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 80px); }
.about-head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.about-body { color: var(--ink-2); font-size: 1.1rem; }
.signature {
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem;
  color: var(--ink); margin-top: 1.25em;
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0;
}
.facts div { padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts dt { font-family: var(--font-display); font-size: 1.8rem; color: var(--brand-deep); line-height: 1.1; }
.facts dd { margin: 6px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.4; }

.quote {
  margin: clamp(48px, 7vw, 88px) auto 0; max-width: 860px; text-align: center; position: relative;
  padding-top: 40px;
}
.quote::before {
  content: "“"; position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--brand);
}
.quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 1.6vw + .9rem, 1.9rem); line-height: 1.4; color: var(--ink); margin: 0;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep); margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.service-card ul { list-style: none; margin: 0; padding: 0; }
.service-card li {
  position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line);
  font-size: .98rem; color: var(--ink);
}
.service-card li:first-child { border-top: 0; }
.service-card li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
}
.service-card small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; margin-top: 4px; }

/* ---------- NFZ ---------- */
.nfz { padding-top: 0; }
.nfz-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px);
}
.nfz-lead { font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; color: var(--ink-2); }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b76' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  background: #fff7ec; border: 1px solid #f1dcc0; color: #6b4a1f;
  padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500;
}
.notice svg { margin-top: .15em; color: var(--warm); }
.nfz-logo { display: grid; place-items: center; padding: 24px; }
.nfz-logo img { width: min(100%, 320px); }

@media (max-width: 800px) {
  .nfz-panel { grid-template-columns: 1fr; }
  .nfz-logo { order: -1; padding: 0; justify-items: start; }
  .nfz-logo img { width: 180px; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--surface-2); }
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px;
}
.gallery-grid li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid li:nth-child(6),
.gallery-grid li:nth-child(7) { grid-column: span 2; }
.gallery-grid a { display: block; height: 100%; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(transparent, rgb(0 0 0 / .55));
  opacity: 0; transition: opacity .25s;
}
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.04); }
.gallery-grid a:hover::after, .gallery-grid a:focus-visible::after { opacity: 1; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-grid li:nth-child(6),
  .gallery-grid li:nth-child(7) { grid-column: span 2; }
}

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(12 18 20 / .94); color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 64px 16px; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 8px; }
.lightbox figcaption { font-size: .95rem; opacity: .85; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgb(255 255 255 / .12); color: #fff;
  transition: background-color .2s;
}
.lb-btn:hover { background: rgb(255 255 255 / .24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.info-card h3 { display: flex; align-items: center; gap: 10px; color: var(--brand-deep); font-size: 1rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card address { font-size: 1.1rem; margin-bottom: .75em; }
.big-link {
  display: block; font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.big-link:hover { color: var(--brand-deep); }
.hours-card { grid-column: 1 / -1; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 12px; border-top: 1px solid var(--line); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-today { background: var(--brand-tint); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand-deep); font-weight: 650; }
.hours tr.is-today th::after {
  content: "dziś"; margin-left: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  background: var(--brand-deep); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: 2px;
}
.hours tr.is-today th, .hours tr.is-today td { border-radius: 0; }

.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); min-height: 380px; display: grid;
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.map-placeholder {
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgb(26 163 184 / .12), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(29 42 46 / .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgb(29 42 46 / .05) 39px 40px);
}
.map-placeholder > svg { width: 40px; height: 40px; color: var(--brand-deep); }
.map-placeholder p { max-width: 32ch; color: var(--ink-2); margin: 0; font-size: .95rem; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3d5; padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-inner p { margin: 0; font-size: .92rem; }
.site-footer .muted { color: #8a9a9e; }
.site-footer a { color: #c9d3d5; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 3.6vw + 1rem, 3.2rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal-updated { color: var(--muted); font-size: .95rem; }
.legal-lead {
  font-size: 1.12rem; color: var(--ink-2); margin-top: 28px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.legal ul { padding-left: 1.3em; color: var(--ink-2); }
.legal li { margin-bottom: .35em; }
.legal li::marker { color: var(--brand); }
.legal-facts { display: grid; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.legal-facts div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.legal-facts div:first-child { border-top: 0; }
.legal-facts dt { font-weight: 600; color: var(--brand-deep); }
.legal-facts dd { margin: 0; color: var(--ink-2); }
.legal-back { margin-top: 48px; }
.todo { background: #ffe58a; color: #5c4400; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
@media (max-width: 600px) {
  .legal-facts div { grid-template-columns: 1fr; gap: 2px; }
}
