:root {
  --color-primary: #0d3b66;
  --color-primary-light: #1a5a96;
  --color-primary-dark: #08284a;
  --color-accent: #21a0a0;
  --color-accent-dark: #178080;
  --color-accent2: #e8762d;
  --color-ink: #0b0f17;
}

:root {
  --c-cta: var(--color-accent);
  --c-cta-dark: var(--color-accent-dark);
  --ink: var(--color-ink);
  --brand: var(--color-primary);
  --brand-light: var(--color-primary-light);
  --brand-dark: var(--color-primary-dark);

  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eef3f9;
  --text: #1a2230;
  --muted: #67748a;
  --line: #e7ecf3;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-md: 0 4px 16px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.04);
  --shadow-lg: 0 24px 60px -12px rgba(16,24,40,.18), 0 8px 24px -8px rgba(16,24,40,.10);

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --wrap: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Poppins', system-ui, sans-serif; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* --- pills / badges --- */
.pill {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; margin-bottom: 20px;
}
.pill--soft { background: var(--bg-tint); color: var(--brand); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; padding: 12px 22px;
  border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-cta); color: #fff; box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--c-cta) 50%, transparent); }
.btn--primary:hover { background: var(--c-cta-dark); transform: translateY(-2px); box-shadow: 0 12px 28px -6px color-mix(in srgb, var(--c-cta) 55%, transparent); }
.btn--ghost { background: var(--white); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- sticky call (mobile) --- */
.sticky-call {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 80;
  display: none; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-cta); color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 15px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
}

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 70;
  background: color-mix(in srgb, var(--white) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand { font-family: 'Poppins'; font-weight: 800; font-size: 1.2rem; color: var(--brand); letter-spacing: -.03em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* hamburger + mobilne menu */
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.nav__mobile a:not(.btn) { padding: 12px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 12px; }
.nav__mobile.is-open { display: flex; }

/* focus-visible (accessibility) */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-cta) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

/* --- hero --- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
    radial-gradient(50% 40% at 95% 20%, color-mix(in srgb, var(--c-cta) 10%, transparent), transparent 70%);
}
/* hero z wygenerowanym tlem 4K - ciemna nakladka pod bialy tekst */
.hero--bg { padding: 100px 0 110px; }
.hero--bg::before {
  background:
    linear-gradient(105deg, rgba(8,16,32,.92) 0%, rgba(8,16,32,.78) 45%, rgba(8,16,32,.45) 100%),
    var(--hero-bg) center/cover no-repeat;
}
.hero--bg .hero__title, .hero--bg .pill { color: #fff; }
.hero--bg .pill { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.hero--bg .hero__sub { color: rgba(255,255,255,.85); }
.hero--bg .hero__trust li { color: rgba(255,255,255,.92); }
.hero--bg .btn--ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.hero--bg .btn--ghost:hover { background: rgba(255,255,255,.2); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero__sub { font-size: 1.18rem; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--text); }
.hero__trust svg { color: var(--c-cta); flex-shrink: 0; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--white); border-radius: var(--r); padding: 14px 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.1;
}
.hero__badge strong { font-family: 'Poppins'; font-size: 1.7rem; color: var(--brand); }
.hero__badge span { font-size: .78rem; color: var(--muted); }

/* --- formularz w hero --- */
.hero__form { background: var(--white); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 11px; }
.hero__form-title { font-size: 1.4rem; color: var(--text); }
.hero__form-sub { color: var(--muted); font-size: .92rem; margin-top: -4px; margin-bottom: 4px; }
.hero__form input { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--bg-soft); color: var(--text); transition: border-color .2s, background .2s; }
.hero__form input:focus { outline: none; border-color: var(--c-cta); background: #fff; }
.hero__form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* --- galeria Przed/Po --- */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-bottom: 22px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.ba-pair__half { position: relative; margin: 0; aspect-ratio: 3/4; }
.ba-pair__half img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair__half figcaption { position: absolute; top: 12px; left: 12px; background: rgba(8,16,32,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); letter-spacing: .03em; }
.ba-pair__half:last-child figcaption { background: var(--c-cta); }

/* --- trustbar --- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trustbar__inner { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; }
.trustbar__label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.trustbar__brand { font-family: 'Poppins'; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.trustbar__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }

/* --- sections --- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-soft); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* --- service cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, #fff), color-mix(in srgb, var(--c-cta) 12%, #fff));
  color: var(--brand); margin-bottom: 18px;
}
.card__title { font-size: 1.2rem; margin-bottom: 10px; }
.card__desc { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.card__list { list-style: none; padding: 0; margin: 0; }
.card__list li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: .92rem; }
.card__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-cta); }

/* --- about --- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checklist svg { color: var(--c-cta); flex-shrink: 0; margin-top: 3px; }
.about__media { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.about__media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.about__media img:first-child { grid-row: span 2; }

/* --- galeria realizacji --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 2; }
}

/* --- logo w nav --- */
.nav__logo { height: 38px; width: auto; display: block; }

/* --- quote --- */
.quote { max-width: 720px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 48px 40px; box-shadow: var(--shadow-md); }
.quote__stars { color: var(--c-cta); font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 18px; }
.quote__text { font-family: 'Poppins'; font-size: 1.5rem; font-weight: 600; line-height: 1.4; margin-bottom: 18px; letter-spacing: -.01em; }
.quote__author { color: var(--muted); font-size: .95rem; }

/* --- faq --- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-md); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem;
  list-style: none; color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { color: var(--brand); }
.faq__chevron { flex-shrink: 0; color: var(--muted); transition: transform .3s var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--brand); }
.faq__answer { padding: 0 24px 22px; }
.faq__answer p { color: var(--muted); max-width: none; }

/* --- cta --- */
.cta { padding: 96px 0; background: linear-gradient(160deg, var(--brand-dark), var(--brand) 55%, var(--brand-light)); color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.cta__sub { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 28px; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 16px; }
.cta__phone { font-family: 'Poppins'; font-size: 1.8rem; font-weight: 800; color: #fff; }
.cta__mail { color: rgba(255,255,255,.9); font-weight: 500; align-self: center; }
.cta__meta { color: rgba(255,255,255,.7); font-size: .92rem; }
.cta__form { background: var(--white); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.cta__form-title { font-size: 1.3rem; color: var(--text); margin-bottom: 4px; }
.cta__form input, .cta__form textarea { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--bg-soft); color: var(--text); transition: border-color .2s, background .2s; }
.cta__form input:focus, .cta__form textarea:focus { outline: none; border-color: var(--c-cta); background: #fff; }
.cta__form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 2px; }

/* --- karta jako link (na glownej i podstronach) --- */
.card--link { display: flex; flex-direction: column; }
.card--link .card__more { margin-top: auto; padding-top: 14px; color: var(--c-cta); font-weight: 600; font-size: .92rem; }
.card--link:hover .card__more { color: var(--c-cta-dark); }

/* --- podstrona uslugi --- */
.svc-hero { padding: 56px 0 64px; background:
  radial-gradient(60% 60% at 10% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%),
  radial-gradient(50% 50% at 100% 0%, color-mix(in srgb, var(--c-cta) 9%, transparent), transparent 70%); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; opacity: .5; }
.svc-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; max-width: 16ch; }
.svc-hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.svc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.svc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.checklist--lg li { font-size: 1.05rem; margin-bottom: 14px; }
.svc-outro { margin-top: 26px; font-size: 1.05rem; color: var(--text); font-weight: 500; }
.svc-aside { position: sticky; top: 90px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.svc-card__phone { display: block; font-family: 'Poppins'; font-size: 1.6rem; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.svc-card__mail { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.svc-card__area { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 14px; }

@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; gap: 32px; } .svc-aside { position: static; } }

/* --- footer --- */
.footer { background: var(--brand-dark); color: rgba(255,255,255,.75); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__brand { font-family: 'Poppins'; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 6px; }
.footer__meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer__meta a { color: rgba(255,255,255,.85); }

/* --- scroll reveal --- */
/* domyslnie WIDOCZNE (bezpiecznie - bez JS strona dziala). Klasa js-anim wlacza animacje dopiero gdy JS startuje */
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .cta__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; }
  .footer__meta { text-align: left; }
}
/* na mobile: gdy w hero jest FORMULARZ, copy (naglowek) idzie pierwszy */
@media (max-width: 900px) {
  .hero__grid:has(.hero__form) .hero__copy { order: -1; }
  .hero__grid:has(.hero__form) .hero__media { order: 0; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .sticky-call { display: flex; }
  body { padding-bottom: 80px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 70px; }
  .about__media { grid-template-columns: 1fr; }
  .about__media img:first-child { grid-row: auto; }
  .cta__form { padding: 24px; }
  .ba-pair { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
