/* ============================================================
   IMMgeo — one-page landing
   Hero = skala 0.75 z Figmy (1728px)
   Sekcje treści (poza hero) = dodatkowe −25% → skala ~0.5625
   ============================================================ */

:root {
  --navy: #002856;
  --orange: #f58220;
  --orange-alt: #ff7311;
  --teal: #14778e;
  --mint: #00deb1;
  --bg: #f4f7f9;
  --white: #ffffff;
  --gray-line: #d4d4d4;
  --shadow-card: 0 3px 11px rgba(0, 40, 86, 0.10);
  --shadow-soft: 0 2px 7px rgba(0, 40, 86, 0.08);
  --container: 1200px;
  --nav-h: 88px;
  --radius-card: 11px;
  --radius-tile: 9px;
  --sec: 90px;            /* pionowy odstęp sekcji (góra/dół): 90 → 60 (≤1680) → 45 (≤1440) */
}

/* responsywna skala odstępów między sekcjami */
@media (max-width: 1680px) { :root { --sec: 60px; } }
@media (max-width: 1440px) { :root { --sec: 45px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.19;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: calc(var(--nav-h) + 6px); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(21px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: linear-gradient(135deg, #f58220 0%, #e36c05 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 12px 32px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(245, 130, 32, .28);
  white-space: nowrap;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(245, 130, 32, .38); }
.btn:active { transform: translateY(0); }
.btn--r12 { border-radius: 8px; }
/* osobna klasa: górna linia na CTA (poza CTA w hero) */
.btn--topline { border-top: 1px solid #eee; }

/* ---------- sekcje z przyciskiem CTA w środku strony ---------- */
.middle-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
}
.middle-cta--white {
  background: var(--white);
}
.middle-cta--bg {
  background: var(--bg);
}

/* przyciski w sekcjach treści — mniejsze */
.contact-form .btn { font-size: 18px; padding: 7px 18px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  z-index: 100;
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 2px 14px rgba(0, 40, 86, .12); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--orange); }

/* „Zaloguj się" — wypełniony przycisk z ikoną użytkownika (jak immrank.com) */
.nav-links a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #f58220 0%, #e36c05 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(245, 130, 32, .28);
  transition: filter .2s ease, transform .2s ease;
}
.nav-links a.nav-login:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.nav-login-ico { width: 18px; height: 18px; flex: none; }

/* „Testuj bezpłatnie" — przycisk z obrysem, po lewej od „Zaloguj się" */
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  color: var(--navy);
  font-weight: 600;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a.nav-cta:hover { background: var(--navy); color: #fff; }

/* przełącznik języka PL | ENG (aktywny = pomarańczowy) */
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-lang { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.nav-lang-link { color: var(--navy); transition: color .2s ease; }
.nav-lang-link:hover { color: var(--orange); }
.nav-lang-link.is-active { color: var(--orange); }
.nav-lang-sep { color: var(--gray-line); }

/* logo IMM GEO */
.logo { display: inline-flex; align-items: center; gap: 5px; }
.logo img {
  width: 166px;
  height: 34px;
}
/* hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO  (bez zmian skali — wg życzenia)
   ============================================================ */
.hero {
  background: var(--bg);
  padding-top: calc(var(--nav-h) + 79px);
  position: relative;
}
/* kolumna hero + laptop: 100% szerokości, max 1440px */
.hero .container { max-width: 1440px; }
.hero-top { position: relative; min-height: 0; max-width: 1440px; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero .btn {
  margin-top: 45px;
}
.hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 400;
  color: var(--navy);
}
.hero-copy-cta { margin-top: 28px; }
.hero-hand {
  position: absolute;
  top: -55px;
  right: calc((100% - 100vw) / 2);   /* dociśnięta do prawej krawędzi viewportu */
  width: clamp(280px, 40vw, 720px);  /* większa */
  pointer-events: none;
  z-index: 1;
}
.hero-screen {
  background: linear-gradient(to bottom, var(--bg) 0, var(--bg) 44%, var(--white) 44%, var(--white) 100%);
  padding-top: 20px;
}
.hero-screen-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-screen img { width: 100%; max-width: 1440px; }
.hero-cta { font-size: 18px; }

/* ============================================================
   MODELE AI
   ============================================================ */
.models { background: var(--white); padding-top: var(--sec); padding-bottom: var(--sec); }
.models h2 {
  font-size: clamp(16px, 1.8vw, 25px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
/* karuzela: grab-scroll, slidesPerView auto, bez strzałek */
.models-carousel {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 28px auto 0;
  padding: 0 16px;
  z-index: 5;
}
.models-swiper { width: 100%; overflow: hidden; padding: 10px 4px; }
.models-swiper .swiper-slide { width: auto; display: flex; justify-content: center; align-items: center; }
.model-card {
  width: 148px;
  height: 68px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 40, 86, .18);
  display: grid;
  place-items: center;
  padding: 13px 22px;
}
.model-card img { max-height: 51px; object-fit: contain; }
.models-nav { display: none; }

/* ============================================================
   PROBLEMY
   ============================================================ */
.problems { background: var(--teal); padding: var(--sec) 0; }
.problems-title {
  text-align: center;
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  margin-bottom: 36px;
}
/* siatka 2×2 „frosted" kart z białą ikoną SVG (styl jak pnb.pl) */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.problem-card {
  background: rgba(255, 255, 255, 0.3);          /* białe tło, opacity 0.3 */
  border: 1px solid rgba(255, 255, 255, 0.4);    /* jaśniejsza wersja koloru tła */
  border-radius: var(--radius-card);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-ico {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  flex: none;
}
.problem-ico svg { width: 24px; height: 24px; }
.problem-title {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  color: var(--white);
}
.problem-card p {
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

/* ============================================================
   STATYSTYKI
   ============================================================ */
.stats { background: var(--white); padding: var(--sec) 0; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; }
.stat { text-align: center; padding: 20px 0;}
.stat-number {
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.19;
}
.stat p {
  font-size: clamp(12px, 1.3vw, 20px);
  font-weight: 300;
  color: var(--navy);
}

/* ============================================================
   FUNKCJE
   ============================================================ */
.features {
  background: var(--bg);
  padding: var(--sec) 0;
}
/* 2 kolumny 50/50, wyśrodkowane: lewo = mockup, prawo = grid 3×3.
   Wysokość kolumn zrównana — siatka dopasowuje się do wysokości obrazka. */
.features-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "ipad  cards";
  column-gap: 40px;
  row-gap: 30px;
  align-items: stretch;
}
.features-title {
  grid-area: title;
  text-align: center;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  color: var(--navy);
}
/* mockup po lewej, wyśrodkowany w swojej połowie, bez cienia */
.features-ipad {
  grid-area: ipad;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features-ipad img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
/* grid 3×3 po prawej — rzędy dzielą wysokość obrazka po równo */
.features-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  text-align: center;
}
.feature-card p {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  max-width: 180px;
}
.feature-icon { width: 36px; height: 36px; flex: none; object-fit: contain; }
.icon-slot {
  width: 43px; height: 43px;
  flex: none;
  border: 2px dashed rgba(20, 119, 142, .45);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 7px;
  letter-spacing: .03em;
}

/* ============================================================
   OPINIE  —  poziomy Swiper
   ============================================================ */
.reviews { background: var(--bg); padding: var(--sec) 0; overflow: hidden; }
.reviews h2, .tutorials h2, .faq h2, .contact h2 {
  font-size: clamp(16px, 1.8vw, 25px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;   /* oś dołu strony spójna z wyśrodkowanymi przyciskami CTA */
}
.reviews-swiper-wrap { margin: 32px auto 0; padding: 0 24px 36px;}
.reviews-swiper { overflow: visible; }
.reviews-swiper .swiper-pagination { bottom: -24px; }
.reviews-swiper .swiper-pagination-bullet { background: var(--navy); opacity: .25; }
.reviews-swiper .swiper-pagination-bullet-active { background: var(--orange); opacity: 1; }
.reviews-swiper .swiper-slide { height: auto; box-sizing: border-box; }
.review-card {
  background: var(--white);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.review-quote {
  color: var(--orange);
  width: 30px;
  height: 30px;
  flex: none;
  margin-bottom: 12px;
}
.review-card p.review-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--navy);
  flex: 1;
  line-height: 1.55;
  margin: 0;
}
.review-name {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ============================================================
   TUTORIALE
   ============================================================ */
.tutorials { background: var(--bg); padding: var(--sec) 0; }
.tutorials-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.tutorial-card {
  background: var(--white);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
}
.tutorial-card > a {
  padding: 10px 11px 18px;
  display: flex;
  flex-direction: column;
  transition: opacity .2s ease;
  opacity: 1;
}

.tutorial-card > a:hover {
  opacity: 0.65;
}
.tutorial-thumb {
  height: 196px;
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  background: repeating-linear-gradient(45deg, #eef3f6 0 9px, #e4ecf1 9px 18px);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
}
.tutorial-card h3 {
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--navy);
}
.tutorial-card p { margin-top: 16px; font-size: 15px; font-weight: 300; color: var(--navy); flex: 1; }
.tutorial-link {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  transition: color .2s ease;
}
.tutorial-link:hover { color: var(--orange-alt); }

/* ============================================================
   CENNIK  —  pełna tabela planów
   ============================================================ */
.pricing { background: var(--navy); padding: var(--sec) 0; }
.pricing-header {
  text-align: center;
  padding: 0 24px 36px;
  max-width: 1680px;
  margin: 0 auto;
}
.pricing-header h2 {
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--white);
}
.pricing-header p {
  margin: 12px auto 0;
  max-width: 500px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 48px 24px 28px;   /* top: na odznakę + ujemny margines featured */
}
.pricing-table {
  display: flex;
  gap: 14px;
  min-width: 860px;
  max-width: 1680px;
  margin: 0 auto;
  align-items: flex-start;
}
.pricing-col {
  flex: 1 0 0;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px 14px 20px;
  position: relative;
  border: 2px solid transparent;
}
.pricing-col--featured { border-color: var(--orange); padding-top: 38px; padding-bottom: 52px; margin-top: -16px; }
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .06em;
}
.pricing-col-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.pricing-price-head {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.pricing-price { text-align: center; margin-bottom: 0; }
.pricing-price-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}
.pricing-price-period { font-size: 12px; font-weight: 300; color: var(--navy); }
.pricing-stat-box {
  background: var(--bg);
  border-radius: var(--radius-tile);
  text-align: center;
  padding: 7px 6px;
  margin-bottom: 7px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pricing-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 7px;
}
.pricing-meta-row .pricing-stat-box { margin-bottom: 0; }
.pricing-big-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1.2;
}
.pricing-big-num--sm { font-size: 16px; }
.pricing-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
}
.pricing-cta-wrap { margin-bottom: 16px; }
.pricing-cta {
  display: block;
  text-align: center;
  border: 2px solid var(--orange);
  border-radius: 6px;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  line-height: 1.3;
}
.pricing-cta:hover { background: var(--orange); color: var(--white); }
.pricing-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 6px;
}
.pricing-models-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}
.pricing-model-icon { height: 22px; width: auto; max-width: 72px; object-fit: contain; border-radius: 2px; display: block; }
.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 2px;
}
.pricing-feature-list li {
  font-size: 12px;
  font-weight: 300;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}
.pricing-feature-list li.excluded { color: #b0b0b0; }
.pricing-feat-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); padding: var(--sec) 0; }
.faq-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-tile); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  text-align: left;
  padding: 8px 10px 8px 14px;
  min-height: 33px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  border-radius: var(--radius-tile);
  transition: background .25s ease, color .25s ease;
}
.faq-item.open .faq-q {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-tile) var(--radius-tile) 0 0;
}
.faq-toggle {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  box-shadow: 0 2px 3px rgba(0, 40, 86, .18);
  display: grid;
  place-items: center;
  transition: transform .3s ease;
}
.faq-toggle::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg) translate(-1px, -1px);
}
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease;}
.faq-a-inner { padding: 15px 17px 22px; font-size: 15px; font-weight: 400; color: var(--navy); line-height: 1.35; }
.faq-a-inner ol,
.faq-a-inner ul {
  margin: 10px 0 0 15px;
}

.faq-a-inner li {
  margin: 5px 0;
}}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--bg); padding: var(--sec) 0; }
.contact-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* dwie kolumny po 50% z odstępem na środku */
  gap: 36px;
}
.form-label { display: block; font-size: 15px; font-weight: 300; color: var(--navy); margin-bottom: 8px; }
.form-field { position: relative; margin-bottom: 19px; }
.form-field .field-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-line);
  display: grid;
  place-items: center;
}
.form-field--area .field-icon { top: 12px; transform: none; }
.form-input, .form-area {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: 8px 12px 8px 43px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-area { padding: 9px 15px; height: 101px; resize: vertical; }
.form-input::placeholder, .form-area::placeholder { color: var(--gray-line); }
.form-input:focus, .form-area:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 130, 32, .18); }
.form-rodo { font-size: 11px; font-weight: 300; color: var(--navy); margin: 5px 0 20px; }
.form-rodo a { color: var(--orange); font-weight: 400; }
.contact-form .btn { min-width: 240px; }
.form-status { margin-top: 11px; font-size: 11px; font-weight: 700; color: var(--teal); min-height: 14px; }

/* Formularz Contact Form 7 (zastępuje statyczny formularz, zachowuje wygląd) */
.contact-form--cf7 .wpcf7 { margin: 0; }
.contact-form--cf7 .wpcf7 > form > p,
.contact-form--cf7 .wpcf7-form p { margin: 0; }
.contact-form--cf7 label {
  display: block;
  font-size: 15px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 19px;
}
.contact-form--cf7 .wpcf7-form-control-wrap { display: block; position: relative; margin-top: 8px; }
.contact-form--cf7 input[type="text"],
.contact-form--cf7 input[type="email"],
.contact-form--cf7 input[type="tel"],
.contact-form--cf7 textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: 8px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form--cf7 textarea { height: 101px; resize: vertical; }
.contact-form--cf7 input::placeholder,
.contact-form--cf7 textarea::placeholder { color: var(--gray-line); }
.contact-form--cf7 input:focus,
.contact-form--cf7 textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, .18);
}
.contact-form--cf7 .wpcf7-acceptance { font-size: 11px; font-weight: 300; color: var(--navy); }
.contact-form--cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact-form--cf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  margin-top: 6px;
  background: var(--orange);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.19;
  padding: 7px 18px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-form--cf7 .wpcf7-submit:hover {
  background: var(--orange-alt);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 130, 32, .35);
}
.contact-form--cf7 .wpcf7-spinner { margin: 0 0 0 10px; }

/* --- invalid field --- */
.contact-form--cf7 .wpcf7-not-valid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .15) !important;
}

/* --- error tip pod polem — absolute, Bootstrap danger --- */
.contact-form--cf7 .wpcf7-form-control-wrap:has(.wpcf7-not-valid-tip) {
  padding-bottom: 22px;
}
.contact-form--cf7 .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: #dc3545;
  line-height: 1.3;
  white-space: nowrap;
}

/* --- pasek odpowiedzi --- */
.contact-form--cf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 14px 10px 40px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-tile);
  border: 1px solid transparent;
  position: relative;
}
.contact-form--cf7 .wpcf7-response-output::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
}
/* błąd walidacji */
.contact-form--cf7 .wpcf7-form.invalid .wpcf7-response-output,
.contact-form--cf7 .wpcf7-response-output.wpcf7-validation-errors {
  background: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}
.contact-form--cf7 .wpcf7-form.invalid .wpcf7-response-output::before,
.contact-form--cf7 .wpcf7-response-output.wpcf7-validation-errors::before { content: '⚠'; }
/* sukces */
.contact-form--cf7 .wpcf7-form.sent .wpcf7-response-output,
.contact-form--cf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #d1e7dd;
  border-color: #badbcc;
  color: #0a3622;
}
.contact-form--cf7 .wpcf7-form.sent .wpcf7-response-output::before,
.contact-form--cf7 .wpcf7-response-output.wpcf7-mail-sent-ok::before { content: '✓'; }
/* spam / inne błędy */
.contact-form--cf7 .wpcf7-response-output.wpcf7-spam-blocked,
.contact-form--cf7 .wpcf7-response-output.wpcf7-acceptance-missing {
  background: #fff3cd;
  border-color: #ffcf39;
  color: #664d03;
}
.contact-form--cf7 .wpcf7-response-output.wpcf7-spam-blocked::before,
.contact-form--cf7 .wpcf7-response-output.wpcf7-acceptance-missing::before { content: '⚠'; }

.contact-aside img.contact-map { width: 100%; border-radius: var(--radius-tile); box-shadow: var(--shadow-soft); }
.contact-aside h3 { margin-top: 15px; font-size: 15px; font-weight: 700; color: var(--navy); }
.contact-address {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 300;
  color: var(--navy);
  white-space: pre-line;
}
.contact-card {
  margin-top: 15px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
  align-items: center;
}
.contact-card-col {
  font-size: 11px;
  font-weight: 300;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-card-col.contact-card-col--social {
  flex-direction: row;
  gap: 10px;
  padding-left: 10x;
}

.contact-card-col--social .cc-row a { display: flex; align-items: center; gap: 6px; color: var(--navy); }
.contact-card-divider { width: 1px; height: 49px; background: var(--gray-line); }
.cc-row { display: flex; align-items: center; gap: 6px; margin:5px 0; font-size: 14px;}
.cc-icon { color: var(--orange); flex: none; display: grid; place-items: center; }
.cc-social-icon { width: 16px; height: 16px; object-fit: contain; }

/* ============================================================
   STOPKA
   ============================================================ */
.footer { background: var(--navy); padding: 15px 0 22px; color: var(--white); margin-top: 45px;}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { font-size: 11px; font-weight: 700; color: var(--white); transition: color .2s ease; }
.footer-links a:hover { color: var(--orange); }
.footer-links a.nav-login { color: var(--orange); }
.footer-bottom {
  margin-top: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-address { font-size: 11px; font-weight: 300; max-width: 240px; }
.footer-contact { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-contact .cc-row { font-size: 11px; font-weight: 300; }
.footer-legal { display: flex; gap: 22px; list-style: none; margin-top: 12px; flex-wrap: wrap; }
.footer-legal a { font-size: 11px; font-weight: 300; color: var(--white); opacity: .7; transition: opacity .2s ease, color .2s ease; }
.footer-legal a:hover { opacity: 1; color: var(--orange); }

/* ============================================================
   STRONY TREŚCI  (page.php / index.php — np. Polityka prywatności)
   Renderowane między stałym navbarem a stopką; własna, czytelna typografia
   dla długich tekstów prawnych.
   ============================================================ */
.page-main {
  padding-top: var(--nav-h);   /* odsłonięcie spod stałego navbara */
  background: var(--bg);
  min-height: 60vh;
}
.page-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* nagłówek strony */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
}
.page-hero .page-narrow {
  padding-top: 52px;
  padding-bottom: 40px;
}
.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.page-title span { color: var(--orange); }
.page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 18px;
  background: var(--orange);
  border-radius: 2px;
}

/* karta z treścią */
.entry-wrap { padding: 44px 0 72px; }
.entry-content {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 52px);
  color: var(--navy);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--gray-line);
}
.entry-content h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: var(--teal);
  margin: 28px 0 10px;
}
.entry-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 8px;
}
.entry-content p { margin: 0 0 16px; }
.entry-content ul,
.entry-content ol { margin: 0 0 18px; padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content li::marker { color: var(--orange); }
.entry-content a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.entry-content a:hover { color: var(--orange); }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content img { border-radius: var(--radius-tile); margin: 18px 0; }
.entry-content blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--orange);
  background: var(--bg);
  border-radius: 0 var(--radius-tile) var(--radius-tile) 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.entry-content th,
.entry-content td { border: 1px solid var(--gray-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg); font-weight: 700; }
.entry-content hr { border: none; border-top: 1px solid var(--gray-line); margin: 30px 0; }

/* lista wpisów (fallback index.php) */
.entry-list-title { font-size: 22px; font-weight: 700; margin: 0 0 14px; }
.entry-list-title a { color: var(--navy); transition: color .2s ease; }
.entry-list-title a:hover { color: var(--orange); }
.entry-content + .entry-content { margin-top: 28px; }
.page-links { margin-top: 24px; font-weight: 700; }

/* ukrycie etykiet tylko dla czytników ekranu (a11y) */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* wyszukiwarka (searchform.php) */
.imm-search { display: flex; gap: 10px; margin: 22px 0 4px; max-width: 520px; }
.imm-search-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.imm-search-field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, .18);
}
.imm-search-submit {
  flex: none;
  padding: 12px 24px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #f58220 0%, #e36c05 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.imm-search-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* wyniki wyszukiwania (search.php) */
.search-count { margin-top: 14px; color: var(--teal); font-weight: 700; }
.search-result .search-excerpt { color: var(--navy); margin: 0 0 12px; }
.search-result .search-more { color: var(--teal); font-weight: 700; text-decoration: none; }
.search-result .search-more:hover { color: var(--orange); }

/* przyciski akcji na stronie 404 */
.error-404-actions { margin-top: 26px; }

/* paginacja (search.php / archiwa) */
.page-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.page-pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.page-pagination .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.page-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

@media (max-width: 1440px) {
  .nav-links {
    gap: 34px;
  }
}

@media (max-width: 1280px) {
  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 16px;
  }
}

/* -------------------- TABLET (≤991px) -------------------- */
@media (max-width: 991px) {
  :root { --nav-h: 72px; }

  /* NAV → hamburger + menu pełnoekranowe (overlay 100dvh) */
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 28px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 99;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(0, 40, 86, .08); }
  .nav-links a { display: block; padding: 18px 2px; font-size: 20px; }
  /* „Testuj bezpłatnie" / „Zaloguj się" — pełna szerokość, wyśrodkowane, bez linii-separatora rzędu */
  .nav-links li:has(> a.nav-cta),
  .nav-links li:has(> a.nav-login) { border-bottom: none; }
  .nav-links a.nav-cta,
  .nav-links a.nav-login {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 16px 2px;
    font-size: 17px;
  }
  .nav-links a.nav-cta { margin-top: 24px; }
  .nav-links a.nav-login { margin-top: 12px; }
  /* blokada scrolla tła przy otwartym menu pełnoekranowym (auto-zwalniana >991px) */
  body.nav-scroll-lock { overflow: hidden; }

  /* HERO → chowamy rękę, treść i grafika 100% */
  .hero { padding-top: calc(var(--nav-h) + 34px); }
  .hero-top { min-height: 0; }
  .hero-hand { display: none; }
  .hero-copy { max-width: 100%; }
  .hero-screen { background: linear-gradient(to bottom, var(--bg) 0, var(--bg) 36%, var(--white) 36%); }

  /* PROBLEMY → siatka 2 kolumny utrzymana na tablecie, mniejsze odstępy */
  .problems { padding: var(--sec) 0; }
  .problems-grid { gap: 18px; }
  .problem-card { padding: 24px 24px; }

  /* FUNKCJE → stack: tytuł, mockup, kafelki 2 kolumny (reset siatki 3×3) */
  .features { padding: var(--sec) 0; }
  .features-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "ipad"
      "cards";
    gap: 28px;
  }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; }
  .feature-card { min-height: 0; padding: 16px 16px; justify-content: flex-start; }
  .feature-card p { font-size: 13px; max-width: none; }

  /* OPINIE → Swiper bez zmian (zachowuje 3 slajdy na tablecie) */

  /* TUTORIALE → 3 kolumny na tablecie (bez „sieroty”), 1 kolumna ≤640px (osobny breakpoint) */
  .tutorials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* CENNIK → scroll poziomy z podglądem kolumn */
  .pricing-table-wrap { padding: 48px 16px 24px; }
  .pricing-col { min-width: 190px; }

  .hero h1 {
    font-size: 32px !important;
  }

  section h2 {
    text-align: center;
    font-size: 28px !important;
  }
}

/* -------- 767px: kontakt 1 kolumna, kafelki funkcji 2 kolumny -------- */
@media (max-width: 767px) {
  .contact-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  section h2 {
    font-size: 24px !important;
  }
}

/* -------- TUTORIALE: 3 kol. powyżej 640px, 1 kol. poniżej (bez „sieroty” 2+1) -------- */
@media (max-width: 640px) {
  .tutorials-grid { grid-template-columns: 1fr; }
}

/* -------------------- TELEFON (≤560px) -------------------- */
@media (max-width: 560px) {
  .container { padding: 0 16px; }

  .middle-cta { padding: 36px 16px; }

  .model-card { width: 120px; height: 60px; padding: 10px 14px; }

  /* PROBLEMY → 1 kolumna 100% na telefonie */
  .problems-grid { grid-template-columns: 1fr; gap: 14px; }
  .problem-card { padding: 22px 20px; }

  /* STATYSTYKI → 1 kolumna */
  .stats-row { grid-template-columns: 1fr; gap: 26px; }
  .stat-number { font-size: 48px; }

  /* FUNKCJE → wyśrodkowany stack na telefonie */
  .features-inner { padding: 0 16px; gap: 22px; }
  /* kafelki funkcji: 2 kolumny na telefonie */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-card { padding: 14px 12px; }
  .feature-icon, .icon-slot { width: 34px; height: 34px; }

  .feature-card p {
    font-size: 12px;
  }

  /* TUTORIALE → typografia (liczba kolumn sterowana breakpointem ≤640px) */
  .tutorial-card h3 { margin-top: 16px; }
  .tutorial-card p, .tutorial-link, .faq-q, .faq-a-inner { font-size: 14px; }

  /* CENNIK → snap-scroll carousel 1 kolumna + peek następnej */
  .pricing-header { padding: 0 16px 24px; }
  .pricing-table-wrap {
    padding: 28px 16px 24px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
  }
  .pricing-table { gap: 10px; }
  .pricing-col {
    min-width: calc(100vw - 64px);
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .pricing-col--featured { margin-top: 0; }   /* bez ujemnego marginesu na mobile */
  .pricing-big-num { font-size: 22px; }
  .pricing-price-val { font-size: 18px; }
  .pricing-price-head { min-height: 64px; }

  .page-hero .page-narrow { padding-top: 34px; padding-bottom: 28px; }
  .entry-wrap { padding: 28px 0 48px; }
  .entry-content { font-size: 15px; line-height: 1.68; }
  .imm-search { flex-direction: column; }
  .imm-search-submit { width: 100%; }

  /* KONTAKT → drobne korekty (stack obsługuje breakpoint ≤767px) */
  .contact-form .btn { min-width: 0; width: 100%; }
  .contact-form--cf7 .wpcf7-submit { min-width: 0; width: 100%; }
  .form-label, .form-input, .form-area { font-size: 14px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card-divider { width: 100%; height: 1px; }

  /* STOPKA */
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-links a { display: block; padding: 8px 0; }
}

@media (max-width: 340px) {
 .hero h1 {
   font-size: 28px !important;
 }

 .features-grid {
   grid-template-columns: repeat(1, 1fr);
 }
}