/* =====================================================================
   Vitamis – arkusz stylów. Kolory zmienisz w sekcji :root.
   Granat z logo, żółć łaty niwelacyjnej, znak punktu osnowy.
   ===================================================================== */
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #194F75;        /* granat z logo Vitamis */
  --navy-dark: #0F3550;
  --navy-soft: #E7EEF4;
  --yellow: #F2C200;      /* łata niwelacyjna */
  --yellow-soft: #FFF6CC;
  --red: #C8302B;
  --ink: #12202C;
  --muted: #546372;
  --paper: #F3F5F7;
  --line: #D8DFE6;
  --white: #fff;
  --wrap: 1160px;
  --r: 8px;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; font-weight: 750; letter-spacing: -.015em; margin: 1.5em 0 .5em; color: var(--navy-dark); }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.7rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; line-height: 1.55; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border: 2px solid transparent; border-radius: 4px;
  font: 650 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; margin: 0 .35rem .45rem 0;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFD21F; color: var(--ink); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }
.btn-block { width: 100%; margin: 1rem 0 0; }

/* ---------- nagłówek ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand .mark { width: 34px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .75rem; color: var(--ink); text-decoration: none; font-weight: 550; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--navy-dark); }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy-dark); text-decoration: none; white-space: nowrap; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem; padding: .55rem .85rem;
  border: 2px solid var(--line); border-radius: 4px; background: var(--white); font: 650 1rem var(--font); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------- hero: tekst | łata niwelacyjna | zdjęcie ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.05fr); background: var(--navy); color: var(--white); min-height: 460px; }
.hero-text { padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem); padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); align-self: center; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); margin: 0 0 1rem; max-width: 16ch; }
.hero-lead { font-size: 1.15rem; color: #D6E3EE; max-width: 46ch; }
.hero-actions { margin-top: 1.5rem; }
.staff { /* łata niwelacyjna: pola co 10 cm */
  background:
    repeating-linear-gradient(to bottom, transparent 0 9px, rgba(18,32,44,.85) 9px 11px, transparent 11px 20px) right / 9px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--yellow) 0 40px, var(--white) 40px 80px);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset -1px 0 0 rgba(0,0,0,.15);
}
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- treść ---------- */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; margin-block: 2.5rem 3.5rem; align-items: start; }
.main--full { grid-template-columns: minmax(0, 1fr); }
.content { background: var(--white); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2.5rem); min-width: 0; border: 1px solid var(--line); }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content p, .content li { max-width: 72ch; }
.note { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: .9rem 1.1rem; font-weight: 550; border-radius: 0 6px 6px 0; }

/* znak punktu osnowy (trójkąt z kropką) jako wypunktowanie */
.points { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 2rem; }
.points li { position: relative; padding-left: 1.9rem; }
.points li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 2 20 18H2z' fill='none' stroke='%23194F75' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='12.5' r='2.4' fill='%23194F75'/%3E%3C/svg%3E") no-repeat center / contain;
}
.points a { color: var(--ink); text-decoration: none; font-weight: 550; }
.points a:hover { color: var(--navy); text-decoration: underline; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 1.75rem 0; border-top: 4px solid var(--navy); background: var(--navy-soft); }
.facts div { padding: 1rem 1.2rem; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-size: 1.35rem; font-weight: 750; color: var(--navy-dark); }

.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1rem 0 1.25rem; }
.teaser .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }

.service { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; scroll-margin-top: 1rem; position: relative; padding-left: 2.2rem; }
.service::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; width: 1.3rem; height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 2 20 18H2z' fill='%23F2C200' stroke='%23194F75' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='12.5' r='2.4' fill='%23194F75'/%3E%3C/svg%3E") no-repeat center / contain;
}
.service h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.service p { margin-bottom: .4rem; }
.service:target h2 { background: var(--yellow-soft); }

.links { padding-left: 1.2rem; }
.links li { margin-bottom: .6rem; }
.rules { padding-left: 1.4rem; }
.rules li { margin-bottom: .7rem; }
.people { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.people li { padding: .6rem 0; border-top: 1px solid var(--line); }

/* ---------- galerie ---------- */
.gallery { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.gallery--zdjecia { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery--zdjecia img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 6px; display: block; }
.gallery--dokumenty { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery--dokumenty a { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--paper); border-radius: 6px; padding: .6rem; }
.gallery--dokumenty img { max-height: 100%; width: auto; box-shadow: 0 2px 8px rgba(18,32,44,.18); }
.gallery a { display: block; transition: transform .2s; }
.gallery a:hover { transform: translateY(-2px); }

/* ---------- prawa kolumna, kontakt ---------- */
.sidebar { display: grid; gap: 1.25rem; position: sticky; top: 1rem; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.35rem; }
.side-box h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.hours-status { display: flex; align-items: flex-start; gap: .5rem; font-weight: 650; color: var(--muted); margin: 0 0 .6rem; }
.hours-status.is-open { color: #1E7A45; }
.hours-status .dot { margin-top: .5em; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: #9AA6B0; }
.hours-status.is-open .dot { background: #25A55B; }
.hours-week { list-style: none; margin: 0; padding: 0; }
.hours-week li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .55rem; border-radius: 4px; max-width: none; }
.hours-week li.is-today { background: var(--yellow-soft); font-weight: 650; }
.hours-week em { font-style: normal; color: var(--navy); font-weight: 550; }
.hours-week .time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-note { font-size: .9rem; color: var(--muted); margin: .7rem 0 0; }
.contact-name { font-weight: 700; margin: 0; }
.contact-owner { color: var(--muted); margin: 0 0 .4rem; }
.contact-address { margin: .3rem 0 .4rem; }
.contact-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; max-width: none; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 650; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--navy); }
.contact-ids { font-size: .88rem; color: var(--muted); margin: .7rem 0 0; }
.contact-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.contact-layout h2 { margin-top: 0; }
.contact-layout section > h2 ~ h2 { margin-top: 1.5rem; }

/* ---------- stopka ---------- */
.site-footer { background: var(--navy-dark); color: #C8D6E2; padding: 2.5rem 0 1rem; font-size: .98rem; border-top: 6px solid var(--yellow); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.footer-brand .mark { width: 28px; height: 35px; color: var(--white); }
.footer-brand .mark path:last-child { fill: var(--navy-dark); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .35rem; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .88rem; color: #93A7B8; }
.call-bar { display: none; }

/* ---------- podgląd zdjęć ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 22, 32, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 3.5rem 3.5rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox figcaption { color: #E3EAF0; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; border: 0; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .8rem; top: 50%; translate: 0 -50%; }

/* ---------- tablet ---------- */
@media (max-width: 1050px) {
  .header-phone { display: none; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 14px 260px; }
  .hero-text { padding: 2rem 1.25rem; }
  .staff { background:
    repeating-linear-gradient(to right, transparent 0 9px, rgba(18,32,44,.85) 9px 11px, transparent 11px 20px) bottom / 100% 7px no-repeat,
    repeating-linear-gradient(to right, var(--yellow) 0 40px, var(--white) 40px 80px); }
  .main { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; padding-bottom: 4.4rem; }
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .brand-sub { font-size: .75rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem .75rem .8rem; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left: 4px solid var(--yellow); padding-left: .8rem; }
  .hero-text { padding: 1.75rem .75rem; }
  .hero-actions .btn { width: 100%; margin-right: 0; }
  .hero { grid-template-rows: auto 14px 220px; }
  .points, .teaser { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sidebar, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .gallery--zdjecia { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .gallery--dokumenty { grid-template-columns: repeat(2, 1fr); }
  .call-bar {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--navy-dark);
  }
  .call-bar .btn { margin: 0; }
  .call-bar .btn-yellow { flex: 1; }
  .lightbox figure { padding: 3.5rem .5rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: .8rem; translate: none; }
}

@media print {
  .site-nav, .call-bar, .nav-toggle, .sidebar, .staff { display: none !important; }
  .main { grid-template-columns: 1fr; }
}
