/* ==========================================================================
   DOHO Studio — base.css
   Layout, typografia, komponenty. Bez Bootstrapa, bez jQuery.
   Kolorystyka zachowana 1:1 z oryginału.
   ========================================================================== */

:root {
  --brand:        #582b36;  /* burgund - kolor marki */
  --brand-soft:   #edeae6;  /* ciepła kość słoniowa - tła sekcji */
  --ink:          #1c1c1c;  /* czerń tekstu / obramowań */
  --ink-body:     #343434;  /* body text */
  --ink-muted:    #676767;  /* przechodzi WCAG 4.5:1 na białym I na beżu (#777 nie przechodził) */
  --paper:        #fff;
  --line:         #eee;
  --shadow:       0 10px 30px -8px rgba(0,0,0,.1);

  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-head:    'Montserrat', system-ui, -apple-system, sans-serif;

  --wrap:         1170px;
  --gutter:       15px;
  --nav-h:        70px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Cele linków kotwiczących (#portfolio, #klienci, #kontakt, itd.) —
   navbar jest fixed (70px), więc bez tego natywny skok do sekcji chowa
   jej nagłówek pod navbarem. +24px to oddech, żeby tekst nie stykał się
   z krawędzią paska. Poza media query - to offset docelowy, nie
   animacja, więc ma działać też przy prefers-reduced-motion. */
#home, #o-mnie, #oferta, #portfolio, #klienci, #kontakt {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;              /* było 15px - mniejsza różnica z nagłówkami */
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--paper);
  overflow-x: hidden;
}

/* Pas bezpieczeństwa: animacje wjazdu (motion.css) przesuwają elementy
   w bok zanim wejdą w viewport. Bez tego dokument rozszerza się w poziomie. */
main, section, footer, .numbers { overflow-x: clip; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.25;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout (zastępuje .container / .row / .col-*) ------------------------ */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-fluid {
  width: 100%;
  padding-inline: var(--gutter);
}

.section-padding { padding: 55px 0 0; }
.pb-70 { padding-bottom: 50px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }
.mt-30 { margin-top: 30px; }
.text-center { text-align: center; }

/* Siatki — zamiast col-md-4 / col-md-5 / col-md-7 itd. */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* było 5fr 7fr - zdjęcie "O mnie" wyglądało za małe obok tekstu */
  gap: 40px;
  align-items: center;
}

.narrow {
  max-width: 83.33%;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-split { grid-template-columns: 1fr; }
  .narrow { max-width: 100%; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Nagłówek sekcji ------------------------------------------------------ */

.section-head {
  margin-bottom: 45px;          /* było 80px - klient prosił o mniej pustki */
  text-align: center;
}

.section-head h3 {
  font-weight: 800;
  font-size: clamp(26px, 3vw, 33px);   /* było 40px - mniejszy kontrast z tekstem */
  position: relative;
  display: inline-block;
  z-index: 4;
  margin: 0;
}

.section-head h3::after {
  content: '';
  width: 100%;
  height: 30px;
  background-image: url(../img/dots11.png);
  background-repeat: repeat;
  position: absolute;
  bottom: -10px;
  left: 0;
  z-index: -1;
}

@media (max-width: 560px) {
  .section-head { margin-bottom: 32px; }
  .section-head h3 { font-size: 26px; }
}

/* --- Przyciski ------------------------------------------------------------ */

.buton {
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 17px;
  transition: background .4s, color .4s;
}

.buton:hover { background: var(--brand); color: var(--line); }

.buton-bg {
  background: var(--brand);
  color: var(--line);
  border-color: var(--brand);
}

.buton-bg:hover {
  background: transparent;
  color: var(--ink-body);
}

.styled-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 22px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  transition: background .35s, color .35s;
}

.styled-button:hover { background: var(--brand); color: #fff; }

.inline-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

/* --- Oferta: tło strony beżowe, karty białe -------------------------------
   Beż jest tłem całej podstrony, a białe karty "wypływają" na nim.
   Sekcje, które wcześniej używały beżu do wyróżnienia (.process-section,
   .sub-hero), tracą własne tło - inaczej zlałyby się z tłem strony i
   powstałyby niewidoczne "szwy". Podział niosą teraz białe karty. */

body.page-oferta { background: var(--brand-soft); }

body.page-oferta .process-section,
body.page-oferta .sub-hero { background: transparent; }

/* Odstęp sub-hero -> karty: na jednolitym beżu 105px wygląda na dużo więcej
   niż wyglądało, gdy sekcje miały różne kolory (kolor sam w sobie był
   granicą). Ścieśniamy do ~60px. */
body.page-oferta .sub-hero { padding-bottom: 26px; }
body.page-oferta .section-padding { padding-top: 34px; }

/* Białe bloki na beżu */
body.page-oferta .offer-card,
body.page-oferta .process-box {
  background: var(--paper);
}

/* Cień musi być wyraźniejszy - na beżu biały blok inaczej "pływa" bez oparcia */
body.page-oferta .offer-card {
  box-shadow: 0 4px 20px -6px rgba(88, 43, 54, .13);
}

body.page-oferta .offer-card:hover {
  box-shadow: 0 14px 34px -10px rgba(88, 43, 54, .22);
}

body.page-oferta .process-box {
  box-shadow: 0 3px 16px -6px rgba(88, 43, 54, .11);
}

/* Ikona: beżowe kółko na białej karcie (bez zmian - kontrast zachowany) */

/* --- Nawigacja ------------------------------------------------------------ */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color .35s, box-shadow .35s;
}

.navbar.scrolled {
  background-color: var(--brand);
  box-shadow: 0 1px 12px rgba(0,0,0,.12);
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img,
.logo svg { height: 30px; width: auto; }

.logo img { filter: brightness(0) invert(1); }   /* logo zawsze białe: hero i bordo */

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #fff;
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}

.navbar.scrolled .nav-links a { color: #fff; }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #fff;
  transition: width .35s;
}

.navbar.scrolled .nav-links a:hover::after,
.navbar.scrolled .nav-links a.active::after { width: 100%; }

.navbar:not(.scrolled) .nav-links a::after { background: #fff; }
.navbar:not(.scrolled) .nav-links a:hover::after,
.navbar:not(.scrolled) .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform .3s, opacity .3s, background .3s;
}

.navbar.scrolled .nav-toggle span { background: #fff; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .nav-links[data-open="true"] {
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }

  .nav-links li { display: block; }

  .nav-links a {
    display: block;               /* bez tego padding nie tworzy wysokości */
    color: #fff !important;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .nav-links li:last-child a { border-bottom: 0; }

  .nav-links a::after { display: none; }
}

/* --- Hero / slider -------------------------------------------------------- */

#home {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;   /* było 1s - klient: przejścia za wolne */
  will-change: opacity;
}

.slide picture,
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide.is-active { opacity: 1; }

#home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

.caption {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 100%;
  padding-inline: var(--gutter);
}

.caption h5 {
  color: #fff;
  font-size: clamp(15px, 1.6vw, 19px);   /* było za małe względem H1 */
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.caption h1 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 50px);   /* mniejsza różnica względem H5 */
  font-weight: 800;
  margin-bottom: 30px;
}

/* Rotujący czasownik — zmienia się razem ze slajdem (app.js).
   .words jest teraz samym <h1>, nie <span> w środku. */
.words {
  position: relative;
  display: block;
  min-height: 1.25em;                    /* rezerwuje miejsce — brak skoku */
}

.words b {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  color: #fff;
  white-space: nowrap;
  transition: opacity .5s, transform .5s;
  transform: translateY(6px);
}

.words b.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.social-icon {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-icon a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  transition: background .3s, color .3s, border-color .3s;
}

.social-icon a:hover {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.social-icon svg { width: 17px; height: 17px; }

/* kropki paginacji */
.slider-dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 11;
}

.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background .3s, transform .3s;
}

.slider-dots button[aria-current="true"] {
  background: #fff;
  transform: scale(1.3);
}

/* --- Sekcja "O mnie" ------------------------------------------------------ */

.hero .hero-img {
  padding-left: 30px;
  position: relative;
}

.hero .hero-img::after {
  content: '';
  width: 80%; height: 80%;
  position: absolute;
  left: 0; bottom: 0;
  background-image: url(../img/dots11.png);
  background-repeat: repeat;
  z-index: -1;
}

.hero .content h3 {
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 30px;
}

.availability-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.availability-info svg {
  flex: none;
  width: 22px; height: 22px;
  color: var(--brand);
  margin-top: 2px;
}

/* --- Oferta (karty) ------------------------------------------------------- */

.services .item {
  padding: 50px 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: 5px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services .item p { flex: 1; }

.services .item .icon {
  display: grid;
  place-items: center;
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background .4s, color .4s;
}

.services .item .icon svg { width: 30px; height: 30px; }

.services .item:hover .icon {
  background: var(--brand);
  color: var(--line);
}

.services .item h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.services .item .subtitle {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 14px;
}

/* --- Portfolio ------------------------------------------------------------ */

.portfolio { overflow: hidden; }

.filtering {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
}

.filtering button {
  color: #222;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  padding: 2px 0;
  z-index: 2;
}

.filtering button::before {
  content: '';
  width: 0; height: 2px;
  background: #111;
  position: absolute;
  left: 0; bottom: 2px;
  transition: width .4s;
  z-index: -1;
}

.filtering button[aria-pressed="true"]::before,
.filtering button:hover::before { width: 95%; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.gallery .items[hidden] { display: none; }

.item-img {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: 4px;
  cursor: pointer;   /* cały kafelek jest klikalny (otwiera lightbox) */
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.item-img-overlay {
  position: absolute;
  inset: 5px;
  display: grid;
  place-content: center;
  background: rgba(255,255,255,.95);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s, transform .5s;
  z-index: 2;
}

.item-img:hover .item-img-overlay,
.item-img:focus-within .item-img-overlay {
  opacity: 1;
  transform: translateY(0);
}

.item-img:hover img { transform: scale(1.05); }

.overlay-info h6 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  transform: translateY(-15px);
  transition: transform .5s;
}

.overlay-info .zoom {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #111;
  background: #111;
  color: var(--line);
  transform: translateY(15px);
  transition: transform .5s, background .3s, color .3s;
}

.overlay-info .zoom svg { width: 15px; height: 15px; }

.item-img:hover .overlay-info h6,
.item-img:hover .overlay-info .zoom { transform: translateY(0); }

.overlay-info .zoom:hover { background: transparent; color: #000; }

.after-offer-note {
  margin-top: 20px;
  color: var(--ink-muted);
}

/* Podpis pod galerią ("Wnętrza wykończone przez SML Studio").
   Osobna klasa, żeby nie kolidować z .after-offer-note z podstrony oferty. */
.gallery-credit {
  margin: 40px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
}

/* --- Lightbox (natywny <dialog>) ------------------------------------------ */

dialog.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}

dialog.lightbox::backdrop {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(2px);
}

dialog.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  transition: background .25s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.35); }

.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.lb-close svg, .lb-prev svg, .lb-next svg { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* --- Opinie (karuzela) ---------------------------------------------------- */

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

.reviews-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.citem {
  flex: 0 0 100%;
  padding: 0 40px;
  text-align: center;
}

.citem p {
  font-style: italic;
  font-size: 18px;              /* było 15px - klient prosił o czytelniejszy tekst */
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 22px;
}

.citem h6 {
  font-size: 15px;              /* było 14px */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}

.author-img img {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.reviews-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  transition: background .3s, transform .3s;
}

.reviews-dots button[aria-current="true"] {
  background: var(--brand);
  transform: scale(1.3);
}

@media (max-width: 560px) { .citem { padding: 0 10px; } }

/* --- Liczby --------------------------------------------------------------- */

.numbers .item .icon {
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
}

.numbers .item .icon svg {
  width: 34px; height: 34px;
  margin: 0 auto;
}

.numbers .counter {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 4px;
}

.numbers .item p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}

/* --- Kontakt -------------------------------------------------------------- */

.contact .item .icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--brand);
  transition: background .35s, color .35s;
}

.contact .item .icon svg { width: 24px; height: 24px; }

.contact .item:hover .icon { background: var(--brand); color: #fff; }

.contact .item h6 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.contact .item p { margin: 0; }

/* --- Stopka --------------------------------------------------------------- */

footer {
  background: var(--brand);
  padding: 30px 0 50px;
  position: relative;
  color: #fff;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

footer a { text-decoration: underline; }

.social-footer-box {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.social-footer-box a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transition: background .3s, color .3s;
}

.social-footer-box a:hover { background: #fff; color: var(--brand); }

.social-footer-box svg { width: 16px; height: 16px; }

/* --- Powrót na górę ------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}

.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

/* --- Podstrony ------------------------------------------------------------ */

.page-header {
  padding: calc(var(--nav-h) + 70px) 0 60px;
  background: var(--brand-soft);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin: 0;
}

.prose { max-width: 820px; margin-inline: auto; }
.prose p { text-align: justify; margin-bottom: 18px; }
.prose h2 { font-size: 26px; margin: 40px 0 16px; }

/* --- Ukrywanie ------------------------------------------------------------ */

[hidden] { display: none !important; }

/* ==========================================================================
   PODSTRONY
   ========================================================================== */

/* --- Wspólny hero podstrony ---------------------------------------------- */

.sub-hero {
  padding: 70px 0 50px;         /* navbar jest sticky, nie fixed - nie trzeba offsetu */
  background: var(--brand-soft);
  text-align: center;
}

.sub-hero h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.3;
}

.sub-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;              /* klient: "trochę za mała" */
  color: var(--ink-body);
}

/* --- O mnie: naprzemienne bloki tekst/obraz ------------------------------ */

.about-content { padding: 45px 0; }

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.about-section.reverse .about-image { order: -1; }

.about-text h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  margin-bottom: 18px;
}

.about-text p { text-align: justify; margin-bottom: 16px; }

.about-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.benefits-list svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 4px;
  color: var(--brand);
}

@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .about-section.reverse .about-image { order: 0; }
  .about-content { padding: 30px 0; }
}

/* --- Oferta: karty -------------------------------------------------------- */

.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 1000px) { .offer-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .offer-cards { grid-template-columns: 1fr; } }

.offer-card {
  display: flex;
  flex-direction: column;
  padding: 40px 28px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.18);
}

.offer-card .icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.offer-card .icon svg { width: 28px; height: 28px; }

.offer-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.offer-card .subtitle {
  display: block;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.offer-card > p { margin-bottom: 16px; }

.offer-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.offer-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
}

.offer-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.offer-price {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.7;
}

.after-offer { padding: 50px 0; }

.after-offer-note {
  max-width: var(--wrap);
  margin: 0 auto 50px;
  padding-inline: var(--gutter);
  font-size: 13px;
  color: var(--ink-muted);
}

.after-offer-note p { margin: 0 0 6px; }

.after-offer-cta h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  margin-bottom: 24px;
}

/* --- Oferta: proces krok po kroku ---------------------------------------- */

.process-section {
  padding: 80px 0;
  background: var(--brand-soft);
}

.process-section > h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  margin-bottom: 60px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .process-grid { grid-template-columns: 1fr; } }

.process-box {
  position: relative;
  padding: 34px 26px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow);
  counter-increment: step;
}

.process-box::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 900;
  color: rgba(88, 43, 54, .1);
  line-height: 1;
}

.process-grid { counter-reset: step; }

.process-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.process-icon svg { width: 24px; height: 24px; }

.process-box h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-box p { font-size: 14px; margin: 0; }

.btn-contact {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
}

/* --- Popup "Rysunki techniczne" ------------------------------------------ */

dialog.popup {
  padding: 34px 30px;
  border: 0;
  border-radius: 8px;
  max-width: 560px;
  width: 92vw;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

dialog.popup::backdrop { background: rgba(0,0,0,.6); }

dialog.popup h3 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  padding-right: 24px;
}

dialog.popup ul { padding-left: 20px; margin: 0; }
dialog.popup ul li { margin-bottom: 6px; font-size: 14px; }

.popup-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-muted);
}

.popup-close:hover { color: var(--ink); }

/* --- Polityka prywatności ------------------------------------------------ */

.policy { padding: 60px 0 80px; }

.policy .card {
  max-width: 860px;
  margin-inline: auto;
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.policy h2:first-of-type { margin-top: 20px; }
.policy p { margin-bottom: 14px; }
.policy ul { padding-left: 22px; margin-bottom: 14px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--brand); text-decoration: underline; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

@media (max-width: 560px) { .policy .card { padding: 26px 20px; } }

/* Podstrony: navbar w kolorze marki (bordo) — bez hero pod spodem. */
.navbar.static {
  position: sticky;
  background-color: var(--brand);
  box-shadow: 0 1px 12px rgba(0,0,0,.12);
}

.navbar.static .logo { filter: brightness(0) invert(1); }
.navbar.static .nav-links a { color: #fff; }
.navbar.static .nav-toggle span { background: #fff; }
.navbar.static .nav-links a::after { background: #fff; }
.navbar.static .nav-links a:hover::after,
.navbar.static .nav-links a.active::after { width: 100%; }

@media (max-width: 900px) {
  /* rozwinięte menu mobilne na podstronach — też bordo */
  .navbar.static .nav-links {
    background: var(--brand);
  }
  .navbar.static .nav-links a {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.18);
  }
}

/* Awatar w opiniach — inicjał zamiast generycznego placeholdera */
.avatar {
  display: grid;
  place-items: center;
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  user-select: none;
}

/* Drobny przypis przy cenie (oferta) */
.price-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Kontakt: 2 kafelki po usunięciu adresu */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}
