/*
Theme Name: Geodezja
Author: Gminny Zespół Gospodarczy Sp. z o.o.
Description: Lekki, jednostronicowy motyw (one page) dla Gminnego Zespołu Gospodarczego w Strzyżowie. Trzy sekcje: O firmie, Dla klienta, Kontakt. Bez zależności zewnętrznych, dane firmy edytowalne w Personalizacji.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geodezja
Tags: one-page, business, custom-colors, custom-logo, responsive-layout
*/

/* ==========================================================================
   1. Tokeny
   ========================================================================== */
:root {
  --ink:        #0b1f2d;
  --ink-2:      #12384f;
  --ink-soft:   #1d4e6b;
  --body:       #45606f;
  --muted:      #6c8496;
  --accent:     #e0951b;
  --accent-dk:  #bf7a0a;
  --accent-sft: #fdf3e0;
  --bg:         #ffffff;
  --bg-alt:     #f3f7f9;
  --line:       #e0e9ee;
  --line-dk:    rgba(255, 255, 255, .14);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  --wrap: 100%;
  --gutter: clamp(20px, 4vw, 72px);
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 45, .06), 0 4px 12px rgba(11, 31, 45, .05);
  --shadow-md: 0 2px 6px rgba(11, 31, 45, .07), 0 18px 40px -16px rgba(11, 31, 45, .22);
  --shadow-lg: 0 30px 70px -30px rgba(11, 31, 45, .45);

  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ==========================================================================
   2. Reset / baza
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.25rem, 1.3rem + 3.9vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.3vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }

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

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   3. Układ
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 5vw, 80px); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 860px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: .775rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dk);
}
/* ==========================================================================
   4. Przyciski
   ========================================================================== */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #14212b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .975rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 1px 2px rgba(11, 31, 45, .18), 0 10px 24px -12px rgba(224, 149, 27, .9);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(11, 31, 45, .2), 0 18px 32px -14px rgba(224, 149, 27, .95);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: var(--line-dk);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: none;
}

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: var(--shadow-sm); }
.btn--dark:hover { --btn-bg: var(--ink-2); color: #fff; box-shadow: var(--shadow-md); }

.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   5. Nagłówek / nawigacja
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(11, 31, 45, .07);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
/* Biała plakietka pod sygnetem: granat i zieleń z logo czytają się i na ciemnym,
   i na jasnym nagłówku. */
.brand__mark {
  position: relative;
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6);
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.brand__sub {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .72;
}
.is-stuck .brand,
.is-stuck .brand__name { color: var(--ink); }

/* Nawigacja desktop */
.nav { display: flex; align-items: center; gap: 6px; }
.nav .btn { display: none; } /* telefon w menu pokazujemy tylko na mobile */
.nav a {
  position: relative;
  padding: 9px 14px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.is-stuck .nav a { color: var(--body); }
.is-stuck .nav a:hover,
.is-stuck .nav a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 4px;
  color: #fff;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.header-phone svg { width: 16px; height: 16px; color: var(--accent); }
.header-phone:hover { color: var(--accent); }
.is-stuck .header-phone { color: var(--ink); }
.is-stuck .header-phone:hover { color: var(--accent-dk); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 19px; height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.is-stuck .nav-toggle { color: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88svh, 860px);
  padding-block: calc(var(--header-h) + 56px) 72px;
  background: linear-gradient(160deg, #0a1d2b 0%, #123449 55%, #0b2436 100%);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .62;
  pointer-events: none;
}
.hero__bg svg { width: 100%; height: 100%; }
.hero__glow {
  position: absolute;
  z-index: -1;
  width: 620px; height: 620px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(224, 149, 27, .28), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero__inner--split { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }

.hero__text { min-width: 0; max-width: 940px; }

.hero__kicker {
  margin-bottom: 20px;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.hero h1 {
  color: #fff;
  max-width: 26ch;
  margin-bottom: 26px;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.hero__claim {
  max-width: 40ch;
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-size: clamp(1rem, .95rem + .28vw, 1.14rem);
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: #fff;
}
.hero__lead {
  max-width: 58ch;
  margin-bottom: 36px;
  font-size: clamp(.92rem, .89rem + .14vw, 1rem);
  text-wrap: pretty;
  color: rgba(255, 255, 255, .64);
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero__cta .btn { min-width: 268px; }

.hero__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, max-content));
  gap: 14px 40px;
  max-width: 900px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dk);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
}
.hero__trust svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Zdjęcie na całą sekcję powitalną. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Przyciemnienie: bez niego biały tekst gubi się na jasnym niebie. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(7, 22, 33, .94) 0%,
      rgba(7, 22, 33, .86) 30%,
      rgba(7, 22, 33, .58) 58%,
      rgba(7, 22, 33, .34) 82%,
      rgba(7, 22, 33, .30) 100%),
    linear-gradient(to bottom,
      rgba(7, 22, 33, .40) 0%,
      rgba(7, 22, 33, .10) 26%,
      rgba(7, 22, 33, .12) 70%,
      rgba(7, 22, 33, .50) 100%);
}

/* ==========================================================================
   7. O nas
   ========================================================================== */
.about__top {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.about__lead {
  max-width: 62ch;
  margin-bottom: 18px;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 550;
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.about__top > div > p:last-child { max-width: 66ch; }

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 26px 26px 26px 24px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink);
  color: rgba(255, 255, 255, .84);
  font-size: 1.02rem;
  line-height: 1.55;
  box-shadow: var(--shadow-md);
}
.quote footer {
  margin-top: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Trzy równe kafelki w jednym rzędzie. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat b {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--ink);
}
.stat span {
  margin-top: 8px;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Atuty w takich samych kartach jak kafelki wyżej. */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (min-width: 1500px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: #cfdde5;
  box-shadow: var(--shadow-md);
}
.feature__ic {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--accent-sft);
  color: var(--accent-dk);
}
.feature__ic svg { width: 21px; height: 21px; }
.feature h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}
.feature p {
  font-size: .96rem;
  line-height: 1.6;
  color: var(--body);
}

/* ==========================================================================
   8. Oferta
   ========================================================================== */
.offer__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-md);
}
.offer__note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -.02em;
}
.offer__note p { font-size: .95rem; max-width: 74ch; }

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}
.panel {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.panel__head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.panel__ic {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
}
.panel__ic svg { width: 26px; height: 26px; }
.panel__head h3 { font-size: 1.32rem; margin-bottom: 6px; letter-spacing: -.025em; }
.panel__head p { font-size: .95rem; color: var(--muted); }

.panel__list { display: grid; gap: 13px; }
.panel__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .97rem;
  line-height: 1.55;
}
.panel__foot {
  margin-top: auto;
  padding-top: 20px;
}
.panel__foot a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: .93rem;
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.panel__foot a:hover {
  border-color: var(--accent);
  background: var(--accent-sft);
  color: var(--ink);
}
.panel__foot svg {
  width: 17px; height: 17px;
  flex: none;
  color: var(--accent-dk);
}
.panel__foot b {
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.panel__list svg {
  width: 15px; height: 15px;
  margin-top: 5px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-sft);
  color: var(--accent-dk);
  stroke-width: 3;
  box-sizing: content-box;
}

/* ==========================================================================
   9. Kontakt
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.team {
  margin-bottom: 18px;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.team__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  letter-spacing: -.015em;
}
.team__name .ic {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent);
}
.team__name .ic svg { width: 19px; height: 19px; }

.team__list { display: grid; }
.person + .person { border-top: 1px solid var(--line); }
.person__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 13px 10px;
  margin-inline: -10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background-color .2s var(--ease);
}
.person__row:hover { background: var(--bg-alt); color: inherit; }
.person__name { font-weight: 650; color: var(--ink); }
.person__name em {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-sft);
  color: var(--accent-dk);
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.person__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.person__tel svg { width: 16px; height: 16px; color: var(--accent-dk); }
.person__row:hover .person__tel { color: var(--accent-dk); }
.person__note {
  margin: 0 0 14px;
  font-size: .89rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Adres, dostępność, e-mail w takich samych kartach co reszta strony. */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.info-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.info-card__ic {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--accent-sft);
  color: var(--accent-dk);
}
.info-card__ic svg { width: 19px; height: 19px; }
.info-card__label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card b {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
}
.info-card b a { color: inherit; text-decoration: none; }
.info-card b a:hover { color: var(--accent-dk); }
.info-card > span:last-child:not(.info-card__label):not(.info-card__ic) {
  margin-top: 3px;
  font-size: .94rem;
  color: var(--body);
}

.map {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}
.map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 26vw, 340px);
  border: 0;
  filter: saturate(.94);
}
.map__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: .92rem;
}
.map__foot > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--body);
}
.map__foot svg { width: 16px; height: 16px; flex: none; color: var(--accent-dk); }
.map__foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.map__foot a:hover { color: var(--accent-dk); }
.map__foot a svg { width: 15px; height: 15px; color: currentColor; }

/* Formularz */
.form-card {
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.35rem; margin-bottom: 6px; letter-spacing: -.025em; }
.form-card > p { font-size: .95rem; color: var(--muted); margin-bottom: 26px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .85rem;
  font-weight: 650;
  color: var(--ink-2);
}
.field label .req { color: var(--accent-dk); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-alt);
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c8496' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 149, 27, .16);
}
.field input::placeholder,
.field textarea::placeholder { color: #9fb3bf; }

.form-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
}
.form-consent input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent-dk);
  appearance: auto;
}
.wpcf7 .form-consent { display: block; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.form-foot small { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.field__err { font-size: .82rem; font-weight: 600; color: #8f2020; }

/* --------------------------------------------------------------------------
   Contact Form 7 – dopasowanie znaczników wtyczki do stylów motywu
   -------------------------------------------------------------------------- */
.wpcf7 form.wpcf7-form { margin: 0; }
.wpcf7-form-control-wrap { display: block; width: 100%; }

/* Komunikat zbiorczy nad formularzem. */
.wpcf7-response-output {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
  padding: 15px 18px;
  border: 1px solid #f4c8c8;
  border-radius: var(--radius);
  background: #fdecec;
  color: #8f2020;
  font-size: .94rem;
  line-height: 1.5;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #bfe6cf;
  background: #e8f7ee;
  color: #17603a;
}

/* Komunikat przy pojedynczym polu. */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #8f2020;
}
.field input.wpcf7-not-valid,
.field select.wpcf7-not-valid,
.field textarea.wpcf7-not-valid {
  border-color: #d98a8a;
  background: #fdf7f7;
}

/* Zgoda: znacznik wtyczki zamiast zwykłego pola wyboru. */
.form-consent .wpcf7-acceptance { grid-column: 1; }
.form-consent .wpcf7-list-item { margin: 0; }
.form-consent .wpcf7-list-item label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.form-consent .wpcf7-list-item input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent-dk);
  appearance: auto;
}
.form-consent .wpcf7-list-item-label {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Przycisk i kręciołek obok niego. */
.form-foot input.btn[type="submit"] { -webkit-appearance: none; appearance: none; }
.wpcf7-spinner { margin: 0 0 0 12px; }

.notice {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  margin-bottom: 24px;
  border-radius: 12px;
  font-size: .94rem;
  line-height: 1.5;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice--ok { background: #e8f7ee; color: #17603a; border: 1px solid #bfe6cf; }
.notice--err { background: #fdecec; color: #8f2020; border: 1px solid #f4c8c8; }

/* ==========================================================================
   10. Stopka
   ========================================================================== */
.site-footer {
  padding-block: 44px 24px;
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  font-size: .92rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dk);
}
.footer__top p { max-width: 42ch; margin-top: 18px; font-size: .92rem; }
.site-footer h4 {
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
}

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-md);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #14212b; }
.to-top svg { width: 19px; height: 19px; }

/* ==========================================================================
   11. Animacje
   ========================================================================== */
/* Animacja startuje dopiero, gdy JS działa – bez niego treść jest po prostu widoczna. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   12. Responsywność
   ========================================================================== */
@media (max-width: 1040px) {
  .about__top,
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(11, 31, 45, .5);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: all .25s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a {
    padding: 14px 12px;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
  }
  .nav a.is-active { color: var(--accent-dk); }
  .nav .btn {
    display: inline-flex;
    margin-top: 10px;
    border-radius: 0;
    color: #14212b;
    justify-content: center;
  }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__media-img { object-position: 34% 46%; }
  .hero { min-height: 0; padding-block: calc(var(--header-h) + 48px) 56px; }
  .hero__cta { align-items: stretch; }
  .hero__cta .btn { min-width: 0; width: 100%; }
  .hero__trust { gap: 12px; }
  .hero__trust li { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .panel__head { grid-template-columns: 44px 1fr; gap: 14px; }
  .panel__ic { width: 44px; height: 44px; border-radius: 12px; }
  .person__row { padding: 12px 8px; }
  .person__tel { font-size: .97rem; }
  .form-grid { grid-template-columns: 1fr; }
  .offer__note { padding: 22px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .info-cards { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}

/* Niskie okna (np. laptop 1366x768 z paskami przeglądarki): cała treść hero
   musi zmieścić się nad zgięciem, razem z oboma przyciskami i paskiem zaufania. */
@media (min-width: 641px) and (max-height: 820px) {
  .hero {
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 26px) 38px;
  }
  .hero h1 {
    font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
    margin-bottom: 18px;
  }
  .hero__kicker { margin-bottom: 14px; }
  .hero__claim { margin-bottom: 14px; line-height: 1.4; }
  .hero__lead { margin-bottom: 24px; line-height: 1.6; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { padding: 13px 26px; }
  .hero__trust { margin-top: 26px; padding-top: 18px; }
}

@media (min-width: 641px) and (max-height: 690px) {
  .hero { padding-block: calc(var(--header-h) + 16px) 26px; }
  .hero h1 {
    font-size: clamp(1.85rem, 1.1rem + 2vw, 2.45rem);
    margin-bottom: 14px;
  }
  .hero__claim { margin-bottom: 12px; }
  .hero__lead { margin-bottom: 18px; }
  .hero__trust { margin-top: 18px; padding-top: 14px; }
}

/* ==========================================================================
   13. Druk
   ========================================================================== */
@media print {
  .site-header, .to-top, .hero__bg, .map, .form-card { display: none !important; }
  .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .hero__lead { color: #000 !important; }
}
