/* Szklo Dla Ciebie - jasny edytorial, akcent turkus szkla + zolty wyroznik. */

@font-face {
  font-family: 'Anton';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0;
}
@font-face {
  font-family: 'Anton';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0;
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0;
}
@font-face {
  font-family: 'Lato';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Lato';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/lato-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0;
}
@font-face {
  font-family: 'Lato';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/lato-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --ink: #14181C;
  --muted: #5A646D;
  --bg: #F3F5F7;        /* chlodny jasny szary "mrozonego szkla" zamiast czystej bieli */
  --surface: #FFFFFF;   /* karty/panele bieli - odstaja od szarego tla */
  --glass: #1698BC;
  --glass-deep: #0E7495;
  --tint: #E4F1F6;      /* panele cyan - lekko poglebione, zeby czytaly sie na szarym tle */
  --tint-b: #D2EAF2;
  --sun: #FFD64D;
  --line: #E2E7EB;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.display, h1, .site-header .logo, .stat b, .cta-band h2 {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em;
}

a { color: var(--glass-deep); }
img { max-width: 100%; display: block; }

.pane { position: relative; overflow: hidden; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #F8FAFC; position: relative; }
.header-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.logo { display: inline-flex; line-height: 0; text-decoration: none; }
.logo img { width: auto; height: 34px; }
.header-grid .btn-phone { justify-self: end; }

/* Hamburger na srodku - duzy, dwie kreski jak we wzorze. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  justify-self: center; cursor: pointer; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 9px;
}
.nav-burger span {
  display: block; width: 54px; height: 3px; background: var(--ink);
  transition: transform .2s ease;
}
.nav-burger:hover span { background: var(--glass-deep); }
.nav-toggle:checked ~ .nav-burger span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:last-child { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:focus-visible ~ .nav-burger { outline: 3px solid var(--glass); outline-offset: 2px; }

/* Menu: pelnoszerokosciowy panel pod naglowkiem, wielkie linki.
   Animacja w obie strony: opacity + translateY, visibility z opoznieniem na zamykaniu. */
.main-nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #F8FAFC; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 28px 24px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.nav-toggle:checked ~ .main-nav {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .main-nav, .nav-toggle:checked ~ .main-nav, .nav-burger span { transition: none; }
}
.main-nav a {
  font-family: 'Anton', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.5;
  color: var(--ink); text-decoration: none;
}
.main-nav a:hover { color: var(--glass); }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-phone { background: var(--sun); border-color: var(--sun); }
.btn-phone:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--glass-deep); border-color: var(--glass-deep); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 0.85fr 1.6fr 0.85fr;
  gap: 36px; align-items: start;
}
.hero h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: 0.98; }
.hero h1 .accent { color: var(--glass); }
.hero .lead { margin: 22px 0 26px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-card {
  border-radius: var(--radius); background: var(--tint);
  aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 0;
}
.hero-card.small { aspect-ratio: 4 / 3; background: var(--tint-b); }
.hero-card img, .g-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .ph-label { margin: 18px; font-size: 13px; font-weight: 700; color: var(--glass-deep); }
.hero-side p { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--glass); color: var(--glass-deep); background: var(--tint); }
.mini-list { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.mini-list li { font-size: 15px; padding-left: 26px; position: relative; }
.mini-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--tint-b);
}
.mini-list li::after {
  content: ''; position: absolute; left: 4px; top: 8px; width: 8px; height: 4px;
  border-left: 2px solid var(--glass-deep); border-bottom: 2px solid var(--glass-deep);
  transform: rotate(-45deg);
}
.area-chip {
  display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px;
  background: var(--sun); font-size: 13px; font-weight: 700;
}

/* ---------- Social proof: socials pionowo + statystyki, pod karta w lewej kolumnie hero ---------- */
.proof { display: flex; gap: 28px; margin-top: 24px; align-items: flex-start; }
.socials { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.soc {
  width: 44px; height: 44px; border-radius: 50%; background: var(--tint-b);
  display: flex; align-items: center; justify-content: center;
}
.soc:hover { background: var(--glass); }
.soc svg { width: 21px; height: 21px; fill: var(--glass-deep); }
.soc:hover svg { fill: #fff; }
.down-arrow { color: var(--ink); width: 12px; margin-top: 4px; }
.stats { display: flex; flex-direction: column; gap: 18px; padding-top: 2px; }
.stat b { display: block; font-size: 34px; color: var(--glass); line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sekcje ---------- */
section { padding: 64px 0; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--glass-deep); margin-bottom: 10px;
}
h2 { font-size: 30px; line-height: 1.2; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* Uslugi: akordeon <details> - nazwa + zajawka, pelny opis po kliknieciu. */
.services-acc { border-bottom: 1px solid var(--line); }
.service { border-top: 1px solid var(--line); }
.service summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 1.7fr 44px; gap: 32px; align-items: center;
  padding: 24px 18px; margin: 6px 0; border-radius: var(--radius);
  transition: background .18s ease;
}
.service summary::-webkit-details-marker { display: none; }
.service summary:hover, .service[open] summary { background: var(--tint); }
.service .s-name { font-size: 22px; line-height: 1.25; }
.service summary:hover .s-name { color: var(--glass-deep); }
.service .s-short { font-size: 15px; color: var(--muted); }
.s-plus { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--tint-b); justify-self: end; }
.s-plus::before, .s-plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--glass-deep);
  transform: translate(-50%, -50%); transition: transform .18s ease;
}
.s-plus::before { width: 14px; height: 2px; }
.s-plus::after { width: 2px; height: 14px; }
.service[open] .s-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service .s-long {
  padding: 4px 18px 26px; margin: 0; color: var(--muted); max-width: 60em;
  animation: acc-in .22s ease;
}
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .service .s-long { animation: none; } }

/* Galeria */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-card {
  border-radius: var(--radius); aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; padding: 0;
}
.g-card.tint-a { background: var(--tint); }
.g-card.tint-b { background: var(--tint-b); }
.g-card.tint-c { background: linear-gradient(160deg, var(--tint), var(--tint-b)); }
.g-card figcaption, .g-card .ph-label { font-size: 14px; font-weight: 700; color: var(--glass-deep); }
.g-card figcaption { position: absolute; z-index: 1; left: 16px; bottom: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.gallery-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Opinie: poziomy przewijak (scroll-snap) + strzalki. */
.reviews { background: var(--tint); border-radius: var(--radius); }
.reviews-inner { padding: 48px; }
.review-empty { max-width: 40em; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 24px; }
.review-nav { display: flex; gap: 10px; }
.review-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink);
  background: transparent; font-size: 18px; cursor: pointer; color: var(--ink);
}
.review-btn:hover { background: var(--ink); color: #fff; }
.review-strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin;
}
.review-card {
  flex: 0 0 340px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); padding: 24px;
}
.review-card p { font-size: 15px; margin-top: 10px; }
.review-card .stars { color: var(--sun); letter-spacing: 2px; }
.review-card .who { margin-top: 12px; font-size: 14px; font-weight: 700; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); }
.cta-inner { padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); }
.cta-band h2 .accent { color: var(--sun); }
.cta-band p { color: #B9C3CA; margin-top: 8px; }

/* Blog */
.blog-teaser-grid, .blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--surface);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px;
}
.blog-card:hover { border-color: var(--glass); }
.blog-card .blog-date { font-size: 13px; color: var(--muted); }
.blog-card h2, .blog-card h3 { font-size: 19px; line-height: 1.35; }
.blog-card p { font-size: 15px; color: var(--muted); }
.blog-card .blog-more { margin-top: auto; font-weight: 700; color: var(--glass-deep); }

.blog-index { padding: 56px 0; }
.blog-index .head { margin-bottom: 36px; max-width: 46em; }
.blog-index h1 { font-size: clamp(36px, 5vw, 58px); }

/* Artykul */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.article-meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.article h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; margin-bottom: 20px; }
.article-hero { border-radius: var(--radius); margin: 8px 0 24px; }
.article-body h2 { font-size: 24px; margin: 34px 0 12px; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-cta {
  margin-top: 40px; background: var(--tint); border-radius: var(--radius);
  padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.article-more { margin-top: 44px; }
.article-more h2 { font-size: 22px; margin-bottom: 16px; }
.more-list { display: grid; gap: 10px; }
.more-card { display: flex; gap: 14px; align-items: baseline; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.more-card:hover { border-color: var(--glass); }
.more-card .more-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.more-card .more-title { font-weight: 600; color: var(--ink); }

/* Kontakt */
.contact-page { padding: 56px 0 72px; }
.contact-page h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 12px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 36px; }
.contact-phone { font-family: 'Anton', 'Arial Narrow', sans-serif; font-size: clamp(34px, 4.5vw, 52px); text-decoration: none; color: var(--glass-deep); }
.contact-card { background: var(--tint); border-radius: var(--radius); padding: 34px; }
.contact-card .socials-row { flex-direction: row; margin: 18px 0 6px; }
.contact-card .soc { background: #fff; }
.contact-card .soc:hover { background: var(--glass); }
.panel-title { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glass-deep); margin-bottom: 8px; }
.city-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.city-card {
  background: var(--tint-b); border-radius: var(--radius); padding: 30px;
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
}
.city-card .city-name {
  font-family: 'Anton', 'Arial Narrow', sans-serif; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 36px); color: var(--ink); line-height: 1.1;
}
.city-card:hover .city-name { color: var(--glass-deep); }

/* Landingi lokalne */
.landing-hero { padding: 56px 0 8px; }
.landing-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; margin: 14px 0 0; }
.landing-hero h1 .accent { color: var(--glass); }
.landing-hero .lead { margin: 18px 0 24px; font-size: 18px; color: var(--muted); max-width: 42em; }
.landing-body { padding-top: 40px; }
.landing-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.landing-grid h2 { margin-bottom: 12px; }
.landing-city-blurb { margin-top: 14px; color: var(--muted); }
.panel { background: var(--tint); border-radius: var(--radius); padding: 26px; }
.panel-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.chip-static { cursor: default; background: #fff; border-color: transparent; }
/* Chip-static jako link (dzielnice w panelu) - biala pigulka, klikalna. */
a.chip-static { cursor: pointer; }
a.chip-static:hover { background: var(--glass); color: #fff; border-color: var(--glass); }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--surface);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px;
}
.service-card:hover { border-color: var(--glass); background: var(--tint); }
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 15px; color: var(--muted); }
.service-card .blog-more { margin-top: auto; font-weight: 700; color: var(--glass-deep); font-size: 15px; }
.landing-steps { padding-top: 8px; }
.landing-steps h2 { margin-bottom: 20px; }
.steps-row { grid-template-columns: repeat(3, 1fr); }
.steps-row .step { grid-template-columns: 44px 1fr; }
.landing-links { padding-top: 0; }
.landing-links .chips { margin-top: 10px; }
.s-links { padding: 0 18px 26px; font-size: 15px; }
.faq-item summary { grid-template-columns: 1fr 44px; padding: 18px; }
.faq-q { font-size: 18px; }
.landing-faq { padding-bottom: 8px; }
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 20px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: 'Anton', 'Arial Narrow', sans-serif; font-size: 22px;
  width: 44px; height: 44px; border-radius: 10px; background: var(--tint);
  color: var(--glass-deep); display: flex; align-items: center; justify-content: center;
}
.step b { display: block; }
.step span { color: var(--muted); font-size: 15px; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 32px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { width: auto; height: 30px; max-width: 100%; }
.site-footer nav, .footer-services { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--glass-deep); }
.site-footer p { color: var(--muted); font-size: 15px; }
.footer-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-note p { font-size: 13px; }

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

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  /* Mobile header: logo lewo + hamburger prawo (rzad 1), telefon pod spodem (rzad 2). */
  .header-grid { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 12px 10px; }
  .logo { grid-column: 1; grid-row: 1; align-self: center; }
  .nav-burger { grid-column: 2; grid-row: 1; justify-self: end; padding: 10px 4px; }
  .nav-burger span { width: 34px; }
  .header-grid .btn-phone { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; text-align: center; padding: 12px 14px; }
  .logo img { height: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .hero-visual .hero-card { display: none; }
  .hero-side { display: none; }
  .service summary { grid-template-columns: 1fr 44px; gap: 10px; padding: 18px 14px; }
  .service .s-short { grid-column: 1 / -1; }
  .service .s-long { padding: 4px 14px 22px; }
  .gallery-grid, .blog-teaser-grid, .blog-list { grid-template-columns: 1fr 1fr; }
  .contact-grid, .footer-grid, .landing-grid, .city-cards, .steps-row { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .reviews-inner, .cta-inner { padding: 28px; }
}
@media (max-width: 560px) {
  .gallery-grid, .blog-teaser-grid, .blog-list { grid-template-columns: 1fr; }
  .review-card { flex-basis: 280px; }
  /* .btn-phone w headerze jest teraz pelnej szerokosci - pelny tekst "Zadzwon:" zostaje. */
}

/* Miniatury bloga: img/blog/<slug>.webp podpina sie samo; brak pliku = tint placeholder. */
.blog-thumb {
  display: block; width: calc(100% + 48px); margin: -24px -24px 4px;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.blog-thumb-ph { background: linear-gradient(160deg, var(--tint), var(--tint-b)); }

/* Galeria: karty klikalne + lightbox (natywny <dialog>). */
.g-card { position: relative; }
.g-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  color: #fff; font-size: 14px; font-weight: 700;
  background: linear-gradient(transparent, rgba(20,24,28,.65));
  border-radius: 0 0 var(--radius) var(--radius); pointer-events: none;
}
.g-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.g-zoom img { transition: transform .25s ease; }
.g-zoom:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .g-zoom img { transition: none; } }
.lightbox {
  border: 0; border-radius: var(--radius); padding: 0;
  max-width: min(92vw, 1100px); background: var(--ink);
  margin: auto; /* reset *{margin:0} zjada domyslne centrowanie dialogu */
}
.lightbox[open] { animation: lb-in .28s cubic-bezier(.2, .9, .3, 1.1); }
.lightbox::backdrop { background: rgba(10, 14, 17, .82); }
.lightbox[open]::backdrop { animation: lb-fade .28s ease; }
@keyframes lb-in {
  from { opacity: 0; transform: scale(.92) translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open], .lightbox[open]::backdrop { animation: none; }
}
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox-caption { color: #B9C3CA; font-size: 14px; padding: 12px 16px; text-align: center; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(20,24,28,.7); color: #fff; font-size: 22px; line-height: 1;
}
.lightbox-close:hover { background: var(--glass-deep); }

/* Lightbox: strzalki + miniatury (miniatury ukryte na telefonie). */
.lb-stage { position: relative; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(20,24,28,.7); color: #fff; font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-nav:hover { background: var(--glass-deep); }
.lb-thumbs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 0 16px 16px;
}
.lb-thumbs img {
  margin: 0; width: 72px; height: 52px; object-fit: cover; border-radius: 8px;
  cursor: pointer; opacity: .55; border: 2px solid transparent;
  transition: opacity .15s ease;
}
.lb-thumbs img:hover { opacity: .85; }
.lb-thumbs img.active { opacity: 1; border-color: var(--glass); }
@media (max-width: 560px) {
  .lb-thumbs { display: none !important; }
  .lb-nav { width: 40px; height: 40px; }
}

/* Blog: infinity scroll po 6 (karty w HTML, ukryte CSS-em). */
.blog-card-hidden { display: none; }
.blog-show-more {
  display: block; margin: 32px auto 0; padding: 13px 26px;
  border: 2px solid var(--ink); border-radius: 10px; background: transparent;
  font-family: inherit; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink);
}
.blog-show-more:hover { background: var(--ink); color: #fff; }

/* Pływający przycisk telefonu (mobile) - prawy dolny róg, pod kciukiem.
   Ukryty na górze strony, wjeżdża po zescrollowaniu (klasa .call-fab-on z JS). */
.call-fab { display: none; }
@media (max-width: 900px) {
  .call-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 90;
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--sun); color: var(--ink);
    box-shadow: 0 6px 18px rgba(20, 24, 28, .28);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .call-fab.call-fab-on {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  .call-fab svg { width: 28px; height: 28px; fill: var(--ink); }
  .call-fab:active { transform: scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab { transition: opacity .25s ease; }
  .call-fab.call-fab-on { transform: none; }
  .call-fab:active { transform: none; }
}

/* ---------- Cookies / RODO ---------- */
.legal-page { padding-top: 8px; }
.legal-page .article-body code {
  font-size: 0.92em; padding: 2px 6px; border-radius: 6px;
  background: var(--tint); color: var(--glass-deep);
}

.cookie-banner {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(20, 24, 28, .08);
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-banner-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.cookie-banner-text { flex: 1 1 280px; font-size: 14px; color: var(--muted); max-width: 52em; }
.cookie-banner-text a { font-weight: 700; }
.cookie-banner-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.cookie-banner-actions .btn { padding: 11px 18px; font-size: 15px; cursor: pointer; }

.cookie-panel {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(20, 24, 28, .55);
}
.cookie-panel[hidden] { display: none; }
.cookie-panel-card {
  width: min(100%, 520px); max-height: min(88vh, 720px); overflow: auto;
  background: var(--surface); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 16px 48px rgba(20, 24, 28, .22);
}
.cookie-panel-title { font-size: 24px; margin-bottom: 10px; }
.cookie-panel-lead { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.cookie-option {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
}
.cookie-option p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.cookie-option-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cookie-always {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--glass-deep); white-space: nowrap;
}
.cookie-switch { position: relative; display: inline-flex; cursor: pointer; }
.cookie-switch input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.cookie-switch-ui {
  position: relative;
  width: 48px; height: 28px; border-radius: 999px;
  background: var(--line); transition: background .18s ease;
}
.cookie-switch-ui::after {
  content: ''; position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(20, 24, 28, .2);
  transition: transform .18s ease;
}
.cookie-switch input:checked + .cookie-switch-ui { background: var(--glass); }
.cookie-switch input:checked + .cookie-switch-ui::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch-ui { outline: 3px solid var(--glass); outline-offset: 2px; }
.cookie-panel-actions {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-panel-actions .btn { cursor: pointer; }

@media (max-width: 560px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 calc(50% - 5px); text-align: center; }
  .cookie-banner-actions .btn-solid { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-switch-ui, .cookie-switch-ui::after { transition: none; }
}
