/* ═══════════════════════════════════════════════════════════════
   Nowoczesne Nagrobki — wspólne poprawki (listopad 2026)
   Ładowane na wszystkich stronach PO stylach wbudowanych, więc
   nadpisuje je bez edycji każdego pliku osobno.
   ═══════════════════════════════════════════════════════════════ */

/* ── B. Kontrast (WCAG AA, min. 4,5:1) ── */
:root {
  --text-s: #9a958c;            /* było #6a6660 → 3,4:1, teraz 6,5:1 */
}
[data-theme="light"] {
  --text-s: #5e5a54;            /* 6,0:1 na jasnym tle */
  --gold:   #7a5f2f;            /* 5,3:1 (było 4,3:1) */
  --gold-lt:#8a6d3a;
}

/* ── A. Ekran ładowania: znika najpóźniej po 0,3 s ── */
#pageLoader {
  transition: opacity .2s ease, visibility .2s !important;
  animation: nnLoaderOut .2s .1s forwards !important;
}
#pageLoader .pl-logo, #pageLoader .pl-sub, #pageLoader .pl-line { animation-duration: .15s !important; animation-delay: 0s !important; }
@keyframes nnLoaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ── B. Treść widoczna od razu; animacja tylko jako delikatny efekt ── */
.reveal { opacity: 1 !important; transform: translateY(8px); transition: transform .5s cubic-bezier(0,0,.2,1) !important; transition-delay: 0s !important; }
.reveal.visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none !important; } }

/* ── B. Czytelność: min. 16 px tekst, 14 px etykiety, bez wersalików z dużym odstępem ── */
body { font-size: 17px; }
p, li, dd, td, .faq-a, .body-text, .lead, .feature-desc, .step-desc, .model-desc, .mc-desc,
.sim-desc, .testi-quote, .ps-s, .pc-note, .qr-step-text, .dla-kogo-text, .blog-card p,
.footer-contact, .footer-links a, .realizacje-header p {
  font-size: max(16px, 1em) !important;
}
.faq-q { font-size: 17px !important; }

.eyebrow, .section-label, .product-eyebrow, .pc-eyebrow, .card-eyebrow, .hero-eyebrow,
.model-name-en, .mc-en, .sim-en, .footer-col-title, .spec-title, .option-label, .toc-title,
.step-title, .ps-t, .pq-t, .testi-author, .granite-sub, .filter-label, .filter-btn,
.mc-tag, .gallery-badge, .pg-badge, .soon-badge, .qr-badge, .qr-video-label, .qr-video-link,
.timeline-table th, .nav-logo span, .pl-sub, .card-cta, .model-arrow, .mc-arrow, .sim-arrow,
.realizacje-cta a, .model-card a {
  text-transform: none !important;
  letter-spacing: .02em !important;
  font-size: max(14px, 1em) !important;
}
.eyebrow, .section-label, .product-eyebrow, .pc-eyebrow, .card-eyebrow, .hero-eyebrow { font-size: 15px !important; font-weight: 500 !important; }
.nav-logo span { font-size: 13px !important; }
.step-title, .ps-t { font-size: 17px !important; font-weight: 500 !important; }

.form-label {
  text-transform: none !important; letter-spacing: .01em !important;
  font-size: 15px !important; font-weight: 400 !important; color: var(--text-m) !important;
}

/* Nawigacja */
.nav-links a, .drawer-links a, .mobile-drawer a {
  text-transform: none !important; letter-spacing: .01em !important;
  font-size: 15px !important; font-weight: 400 !important;
}
.drawer-links a, .mobile-drawer a { font-size: 18px !important; }
.nav-links { gap: clamp(16px, 2vw, 30px) !important; }

/* ── B. Przyciski min. 48 px, większe pola formularza ── */
.btn-primary, .btn-secondary, .btn-gold, .btn-outline, .btn-ghost, .nav-cta, .nav-cta-mobile,
.fab-contact, .drawer-cta, .drawer-theme, .drawer-fb, #cookieBanner button {
  text-transform: none !important; letter-spacing: .02em !important;
  font-size: 16px !important; font-weight: 500 !important;
  min-height: 48px;
}
.btn-primary, .btn-secondary, .btn-gold, .btn-outline, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; }
.nav-cta { min-height: 44px; font-size: 15px !important; padding: 10px 20px !important; }
.form-input, .form-select, .form-textarea, input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font-size: 17px !important; min-height: 52px;
}
.form-textarea, textarea { min-height: 110px; }
.form-attach { min-height: 48px; font-size: 15px !important; }

/* ── Kursywa tylko w krótkich cytatach ── */
.footer-tagline, .ph-label, .cta-note { font-style: normal !important; }

/* Ciasteczka — czytelny tekst */
#cookieBanner p { font-size: 15px !important; color: #c9c4ba !important; }
#cookieBanner button[onclick="rejectCookies()"] { color: #c9c4ba !important; }

/* ═══ A. Telefon w nagłówku ═══ */
.nn-nav-phone {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 16px; font-weight: 500; color: var(--text) !important; text-decoration: none;
  padding: 8px 4px; min-height: 44px;
}
.nn-nav-phone svg { color: var(--gold); flex-shrink: 0; }
.nn-nav-phone:hover { color: var(--gold) !important; }
@media (max-width: 1180px) { .nn-nav-phone .nn-ph-label { display: none; } }
@media (max-width: 1024px) { .nav-right .nn-nav-phone { display: none; } }
.nn-drawer-phone { display: block; margin-top: 18px; font-size: 22px; font-weight: 500; color: var(--gold) !important; text-decoration: none; }

/* ═══ A. Pasek mobilny: Zadzwoń · WhatsApp · Wycena ═══ */
.nn-mbar { display: none; }
@media (max-width: 900px) {
  .nn-mbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 9990;
    background: var(--bg2); border-top: 1px solid var(--border-m);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 24px rgba(0,0,0,.25);
  }
  .nn-mbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 60px; font-size: 14px; font-weight: 500; color: var(--text) !important; text-decoration: none;
  }
  .nn-mbar a + a { border-left: 1px solid var(--border); }
  .nn-mbar a svg { width: 20px; height: 20px; }
  .nn-mbar .nn-mb-call svg { color: var(--gold); }
  .nn-mbar .nn-mb-wa svg { color: #25D366; }
  .nn-mbar .nn-mb-quote { background: var(--gold); color: var(--bg) !important; }
  [data-theme="light"] .nn-mbar .nn-mb-quote { color: #fff !important; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .fab-contact { display: none !important; }
  .fab-top { bottom: 76px !important; }
  #cookieBanner { bottom: calc(60px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 900px) {
  .nn-mbar { transition: transform .3s ease, box-shadow .3s ease; }
  .nn-bar-off .nn-mbar { transform: translateY(110%); box-shadow: none; }
  .nn-bar-off #cookieBanner { bottom: 0 !important; }
  .nn-bar-off .fab-top { bottom: 16px !important; }
}

/* ═══ A. Linia z ceną pod nagłówkiem hero ═══ */
.nn-hero-price {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 28px; font-size: 18px; font-weight: 400; color: var(--text);
}
.nn-hero-price strong { color: var(--gold-lt); font-weight: 500; }
.nn-hero-price .nn-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
@media (max-width: 680px) { .nn-hero-price { font-size: 16px; margin-bottom: 20px; } }

/* ═══ Wspólne elementy sekcji ═══ */
.nn-section { padding: 88px 0; }
.nn-section.alt { background: var(--bg2); }
.nn-wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 680px) { .nn-wrap { padding: 0 20px; } .nn-section { padding: 64px 0; } }
.nn-h2 { font-family: var(--ff-head); font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; line-height: 1.2; color: var(--text); margin: 0 0 16px; }
.nn-lead { font-size: 18px; color: var(--text-m); line-height: 1.7; max-width: 640px; }

/* Gwarancje / atuty w liczbach */
.nn-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 22px 0; }
.nn-trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg3); }
.nn-trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.nn-trust-item b { display: block; font-size: 16px; font-weight: 500; color: var(--text); }
.nn-trust-item span { display: block; font-size: 15px; color: var(--text-m); line-height: 1.45; }

/* Cena „od" na kartach modeli */
.nn-price-from { display: block; margin: -4px 0 14px; font-size: 16px; color: var(--text-m); }
.nn-price-from strong { color: var(--gold-lt); font-weight: 500; font-size: 18px; }
[data-theme="light"] .nn-price-from strong { color: var(--gold); }

/* Link do porównania granitu */
.nn-compare-link { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 18px; font-size: 16px; color: var(--gold) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ═══ C. Opinie Google ═══ */
.nn-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: 36px; }
.nn-review { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.nn-review-stars { color: #f4b400; letter-spacing: 2px; font-size: 18px; }
.nn-review p { color: var(--text); font-size: 17px; line-height: 1.65; margin: 0; }
.nn-review-meta { margin-top: auto; font-size: 15px; color: var(--text-m); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nn-review-meta b { color: var(--text); font-weight: 500; }
.nn-google-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--border-m); border-radius: 4px; }
.nn-google-cta p { margin: 0; color: var(--text-m); font-size: 16px; flex: 1 1 260px; }
.nn-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--gold); color: var(--gold) !important; border-radius: 2px; font-size: 16px; font-weight: 500; text-decoration: none; background: transparent; cursor: pointer; }
.nn-btn-outline:hover { background: rgba(184,151,90,.1); }
.nn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; background: var(--gold); color: var(--bg) !important; border: none; border-radius: 2px; font-family: var(--ff-body); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s; }
.nn-btn:hover { background: var(--gold-lt); }
[data-theme="light"] .nn-btn { color: #fff !important; }
.nn-btn[disabled] { opacity: .55; cursor: wait; }

/* ═══ C. Zobacz na żywo (wystawa) ═══ */
.nn-live { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: stretch; }
.nn-live > * { min-width: 0; }
.nn-live-map { min-height: 380px; border: 1px solid var(--border-m); border-radius: 4px; overflow: hidden; background: var(--bg3); }
.nn-live-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35); }
.nn-live-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.nn-live-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.nn-live-list svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.nn-live-list small { display: block; color: var(--text-m); font-size: 15px; }
.nn-live-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .nn-live { grid-template-columns: 1fr; gap: 32px; } .nn-live-map, .nn-live-map iframe { min-height: 300px; } }

/* ═══ C. Rozmawiasz z… ═══ */
.nn-person { display: flex; gap: 16px; align-items: center; margin: 18px 0 22px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg3); }
.nn-person img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-m); }
.nn-person b { display: block; font-size: 17px; font-weight: 500; color: var(--text); }
.nn-person span { display: block; font-size: 15px; color: var(--text-m); line-height: 1.45; }

/* ═══ E. Formularz kontaktowy ═══ */
.nn-form { display: grid; gap: 18px; margin-top: 8px; }
.nn-form .nn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .nn-form .nn-row { grid-template-columns: 1fr; } }
.nn-field { display: grid; gap: 7px; }
.nn-field label, .nn-legend { font-size: 15px; font-weight: 400; color: var(--text-m); }
.nn-field input, .nn-field select, .nn-field textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border-m); border-radius: 2px;
  color: var(--text); font-family: var(--ff-body); padding: 13px 16px; outline: none;
}
.nn-field input:focus, .nn-field select:focus, .nn-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,151,90,.18); }
.nn-field input.invalid { border-color: #e08080; }
.nn-field .nn-err { font-size: 14px; color: #e89a9a; min-height: 0; }
[data-theme="light"] .nn-field .nn-err { color: #a33; }
.nn-field .nn-hint { font-size: 14px; color: var(--text-s); }
.nn-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.nn-chips legend { margin-bottom: 8px; }
.nn-chip { position: relative; }
.nn-chip input { position: absolute; opacity: 0; pointer-events: none; }
.nn-chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--border-m);
  border-radius: 2px; font-size: 16px; color: var(--text); cursor: pointer; background: var(--bg3); transition: border-color .15s, background .15s;
}
.nn-chip input:checked + span { border-color: var(--gold); background: rgba(184,151,90,.16); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.nn-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.nn-more { border: 1px solid var(--border); border-radius: 2px; }
.nn-more summary { cursor: pointer; padding: 13px 16px; font-size: 16px; color: var(--text-m); list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.nn-more summary::-webkit-details-marker { display: none; }
.nn-more summary::after { content: '+'; color: var(--gold); font-size: 20px; }
.nn-more[open] summary::after { content: '−'; }
.nn-more-body { display: grid; gap: 16px; padding: 4px 16px 18px; }
.nn-file { font-size: 15px; color: var(--text-m); }
.nn-form-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.nn-rodo { font-size: 14px !important; line-height: 1.55; color: var(--text-s); margin: 0; }
.nn-rodo a { color: var(--gold); text-decoration: underline; }
.nn-form-status { display: none; padding: 14px 16px; border-radius: 2px; font-size: 16px; }
.nn-form-status.show { display: block; }
.nn-form-status.err { background: rgba(224,128,128,.12); border: 1px solid rgba(224,128,128,.4); color: var(--text); }
.nn-form-status.ok { background: rgba(184,151,90,.12); border: 1px solid var(--border-m); color: var(--text); }
.nn-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.nn-quick a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--border-m); border-radius: 2px; color: var(--text) !important; font-size: 16px; text-decoration: none; }
.nn-quick a:hover { border-color: var(--gold); }
.nn-quick svg { width: 18px; height: 18px; }
.nn-quick .wa svg { color: #25D366; }
.nn-quick .tel svg { color: var(--gold); }

/* Stopka — dane firmy */
.nn-company { font-size: 14px !important; color: var(--text-s); }

/* Ogólne poprawki na telefonie */
@media (max-width: 680px) {
  .hero-sub { font-size: 16px !important; }
}

/* Hero ma zawsze ciemne zdjęcie w tle — także w jasnym motywie tekst musi być jasny */
.hero .nn-hero-price { color: #f0ece4; }
.hero .nn-hero-price strong { color: #d4b47a; }
[data-theme="light"] .hero .btn-secondary { color: #f0ece4 !important; border-color: rgba(240,236,228,.55) !important; }
[data-theme="light"] .hero .hero-eyebrow { color: #d4b47a !important; }
[data-theme="light"] .hero .hero-sub { color: #e6e1d8 !important; }

/* Atrybut hidden zawsze ukrywa (nadpisuje display:grid/flex z klas) */
[hidden] { display: none !important; }
.nn-field input, .nn-field select, .nn-field textarea { font-size: 17px !important; min-height: 52px; }
.nn-field textarea { min-height: 110px; }

/* Wizualizacje modeli w naturalnym otoczeniu (karty modeli) */
.nn-viz { position: relative; background: var(--bg3) !important; }
.nn-viz img { object-fit: cover !important; padding: 0 !important; }
.nn-viz::after {
  content: 'Wizualizacja'; position: absolute; left: 10px; bottom: 10px;
  font-size: 13px; line-height: 1; padding: 6px 9px; border-radius: 2px;
  background: rgba(14,14,13,.72); color: #f0ece4; letter-spacing: .02em; pointer-events: none;
}

/* Kontakt w jednej kolumnie, FAQ pod spodem (strona główna i karty modeli) */
.faq-contact-grid, .contact-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 72px !important;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.faq-contact-grid > :first-child, .contact-grid > :first-child { order: 2; }
@media (max-width: 680px) { .faq-contact-grid, .contact-grid { gap: 56px !important; } }

/* Karta modelu: wizualizacja jako pierwsze zdjęcie galerii */
.gallery-main img#mainImg[src*="wizualizacje"] { object-fit: cover !important; padding: 0 !important; width: 100% !important; height: 100% !important; }
.gallery-main:has(img#mainImg[src*="wizualizacje"])::after {
  content: 'Wizualizacja'; position: absolute; right: 12px; bottom: 12px; z-index: 3;
  font-size: 13px; line-height: 1; padding: 6px 9px; border-radius: 2px;
  background: rgba(14,14,13,.72); color: #f0ece4; pointer-events: none;
}
.thumb-item.nn-thumb-viz { padding: 0; }
.thumb-item.nn-thumb-viz img { object-fit: cover; }

/* Lista modeli: kontakt w jednej kolumnie, FAQ pod spodem (jak na stronie głównej) */
#contactGrid { grid-template-columns: minmax(0, 1fr) !important; gap: 72px !important; max-width: 760px; margin-left: auto; margin-right: auto; }
#contactGrid > :first-child { order: 2; }

/* Hero: zdjęcie nagrobka na cmentarzu jako całe tło (zamiast renderu na tle lasu) */
.hero .hero-bg { background-image: url('../img/general/hero-dzien.webp?v=2') !important; background-position: 100% 35% !important; transform: none !important; filter: none !important; }
.hero .hero-overlay2 { background: linear-gradient(to top, rgba(8,8,7,.35) 0%, transparent 25%) !important; }
.hero .hero-overlay { background: linear-gradient(90deg, rgba(8,8,7,.85) 0%, rgba(8,8,7,.62) 34%, rgba(8,8,7,.15) 58%, rgba(8,8,7,0) 70%) !important; }
.hero .hero-right { visibility: hidden; }


/* ═══ Telefon: hero — jasne zdjęcie w całości (stały kadr, nic nie obcina), tekst pod zdjęciem ═══ */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0 !important; background: var(--bg) !important; }
  .hero .hero-bg {
    position: relative !important; inset: auto; display: block; width: 100%;
    aspect-ratio: 694 / 522; height: auto !important; margin-top: 64px;
    background-image: url('../img/general/hero-dzien-m.webp?v=1') !important;
    background-size: 100% 100% !important; background-position: center !important; background-repeat: no-repeat;
  }
  .hero .hero-overlay, .hero .hero-overlay2, .hero .hero-right, .hero .hero-scroll, .hero .hero-eyebrow, .hero .hero-sub { display: none !important; }
  .hero .hero-container { min-height: 0 !important; display: block; padding: 22px 20px 36px !important; margin-top: 0; }
  .hero .hero-left { padding: 0 !important; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px) !important; line-height: 1.12; margin-bottom: 12px; color: var(--text) !important; }
  .hero .nn-hero-price { display: block; font-size: 15px; line-height: 1.5; margin-bottom: 18px; color: var(--text) !important; }
  .hero .nn-hero-price strong { color: var(--gold) !important; }
  .hero .nn-hero-price .nn-dot { display: none; }
  .hero .nn-hero-price span { display: block; }
  .hero .nn-hero-price span:last-child { color: var(--text-m) !important; }
  .hero .hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .hero-btns a { width: 100%; justify-content: center; padding-left: 8px !important; padding-right: 8px !important; font-size: 15px; white-space: nowrap; }
  .hero .btn-secondary, [data-theme="light"] .hero .btn-secondary { color: var(--text) !important; border-color: var(--border-m) !important; }
}
@media (max-width: 380px) { .hero .hero-btns { grid-template-columns: 1fr; } }

/* ═══ Telefon: kontakt tylko raz — dolny pasek zostaje, reszta znika ═══ */
@media (max-width: 900px) {
  .nav-cta-mobile { display: none !important; }
  .nn-quick { display: none !important; }
  #kontakt .nn-person { margin: 12px 0 16px; padding: 12px; }
  #kontakt .nn-person img { width: 52px; height: 52px; }
  #kontakt .nn-person span { display: none; }
}
@media (max-width: 900px) {
}
@media (max-width: 900px) {
  #kontakt .nn-form-foot .nn-btn { width: 100%; }
  #kontakt .nn-rodo { font-size: 13px !important; color: var(--text-s); }
}
