/* Strona produktu www.pomiarix.pl (#25). Wartości z Figmy: "Pomiarix – Landing" (Desktop 1440 / Mobile 390). */
:root {
  --niebieski: #2f5bea;
  --niebieski-ciemny: #1e3fb8;
  --niebieski-jasny: #eef2ff;
  --tekst: #0f172a;
  --tekst-2: #334155;
  --szary: #64748b;
  --szary-2: #94a3b8;
  --ramka: #e2e8f0;
  --ramka-pola: #cbd5e1;
  --tlo-szare: #f5f7fb;
  --zielony: #16a34a;
  --szerokosc: 1200px;
  --margines: 120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tekst);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { display: none; }
:focus-visible { outline: 3px solid rgba(47, 91, 234, .45); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.pomin { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tekst); color: #fff; padding: 10px 14px; border-radius: 8px; }
.pomin:focus { top: 12px; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; background: none; font-size: 15px; font-weight: 600; line-height: 18px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn--primary { background: var(--niebieski); color: #fff; }
.btn--primary:hover { background: #2549d4; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--secondary { background: #fff; border-color: var(--ramka); color: var(--tekst); }
.btn--secondary:hover { border-color: var(--ramka-pola); }
.btn--ghost { color: var(--tekst); }
.btn--ghost:hover { background: var(--tlo-szare); }
.btn--duzy { padding: 16px 28px; border-radius: 12px; font-size: 17px; line-height: 21px; }
.btn--pelny { width: 100%; }
.link { background: none; border: 0; padding: 0; text-align: left; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__znak { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--niebieski); color: #fff; font-size: 18px; }
.logo__znak svg { stroke-width: 1.75; }
.logo__nazwa { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.logo--jasne { color: #fff; }
.logo--jasne .logo__nazwa { font-size: 20px; }

/* Nawigacja */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ramka); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--szerokosc) + 2 * var(--margines));
  margin: 0 auto; padding: 20px var(--margines); }
.nav__linki { display: flex; gap: 36px; font-size: 15px; font-weight: 500; color: var(--tekst-2); }
.nav__linki a:hover { color: var(--niebieski); }
.nav__akcje { display: flex; gap: 12px; }
.nav__burger, .nav__zaloguj-m { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--niebieski-jasny) 0%, #fff 100%); overflow: hidden; }
.hero__in { display: flex; align-items: center; gap: 48px; max-width: calc(var(--szerokosc) + 2 * var(--margines)); margin: 0 auto;
  padding: 80px var(--margines) 88px; }
.hero__tekst { flex: 0 1 560px; display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff;
  border: 1px solid #c7d2fe; color: var(--niebieski-ciemny); font-size: 14px; font-weight: 500; line-height: 17px; }
.badge__kropka { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
h1 { font-size: 52px; line-height: 60px; font-weight: 700; letter-spacing: -.025em; }
.hero__lead { max-width: 540px; font-size: 19px; line-height: 30px; color: var(--tekst-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 500; color: var(--tekst-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { font-size: 18px; color: var(--zielony); stroke-width: 2.5; }

/* Makieta w hero: rozmiary z Figmy (pole 592x540), przeliczane na % i cqw, żeby skalowała się w całości */
.makieta { position: relative; flex: 0 1 592px; aspect-ratio: 592 / 540; container-type: inline-size; }
.makieta__okno { position: absolute; left: 2.7%; top: 0; width: 97.64%; border-radius: 2.7cqw; overflow: hidden; background: #fff;
  border: 1px solid var(--ramka); box-shadow: 0 24px 60px -8px rgba(15, 23, 51, .18); }
.makieta__pasek { display: flex; align-items: center; gap: 1.2cqw; height: 6.9cqw; padding: 0 2.7cqw; background: #f5f7fb; border-bottom: 1px solid var(--ramka); }
.makieta__pasek i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #ef4444; }
.makieta__pasek i:nth-child(2) { background: #f59e0b; }
.makieta__pasek i:nth-child(3) { background: #22c55e; }
.makieta__pasek span { margin-left: 2cqw; padding: .8cqw 2.4cqw; border-radius: 1.4cqw; background: #fff; font-size: 2.1cqw; color: var(--szary); }
.makieta__tablet { position: absolute; left: -4.73%; top: 59.26%; width: 57.43%; padding: 1.69cqw; border-radius: 3cqw; background: #0b1220;
  box-shadow: 0 20px 40px -6px rgba(15, 23, 51, .28); }
.makieta__tablet img { border-radius: 1.35cqw; }
.makieta__agent { position: absolute; left: 59.46%; top: 55.56%; width: 42.57%; display: flex; align-items: center; gap: 2cqw; padding: 2.36cqw;
  border-radius: 2.36cqw; background: #fff; border: 1px solid #ddd6fe; box-shadow: 0 12px 30px -4px rgba(15, 23, 51, .16);
  font-size: 2.2cqw; line-height: 1.35; font-weight: 500; color: var(--tekst); }
.makieta__agent b { display: block; margin-bottom: .3cqw; font-size: 1.69cqw; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7c3aed; }
.makieta__agent-ik { display: grid; place-items: center; flex: none; width: 5.07cqw; height: 5.07cqw; border-radius: 1.35cqw; background: #7c3aed; color: #fff; font-size: 2.7cqw; }

/* Ścieżka zlecenia */
.sciezka { padding: 56px var(--margines); border-bottom: 1px solid var(--ramka); text-align: center; }
.nadtytul { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--niebieski); }
.nadtytul--szary { color: var(--szary); }
.nadtytul--jasny { color: #93a8f8; }
.sciezka__kroki { display: flex; align-items: flex-start; justify-content: space-between; max-width: var(--szerokosc); margin: 28px auto 0; }
.sciezka__kroki li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.sciezka__kroki li + li::before { content: ""; position: absolute; top: 24px; left: calc(-50% + 51px); right: calc(50% + 51px); height: 2px; background: var(--ramka); }
.kolko { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--niebieski-jasny); color: var(--niebieski); font-size: 22px; }
.kolko svg { stroke-width: 1.8; }
.kolko--zielone { background: var(--zielony); color: #fff; }

/* Sekcje */
.sekcja { padding: 112px var(--margines); }
.sekcja--szara { background: var(--tlo-szare); }
.naglowek { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 900px; margin: 0 auto 56px; text-align: center; }
.naglowek h2 { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -.02em; }
.naglowek__lead { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--szary); }
.naglowek--lewo { align-items: flex-start; margin: 0; text-align: left; }

/* Funkcje */
.siatka { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: var(--szerokosc); margin: 0 auto; }
.karta { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--ramka); }
.karta div { display: flex; flex-direction: column; gap: 14px; }
.karta h3 { font-size: 19px; line-height: 26px; font-weight: 600; }
.karta p { font-size: 15px; line-height: 23px; color: var(--szary); }
.ikona { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 24px; flex: none; }
.ikona svg { stroke-width: 1.8; }
.ikona--mala { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
.k-niebieski { background: rgba(47, 91, 234, .1); color: #2f5bea; }
.k-blekit { background: rgba(2, 132, 199, .1); color: #0284c7; }
.k-pomarancz { background: rgba(217, 119, 6, .1); color: #d97706; }
.k-zielony { background: rgba(22, 163, 74, .1); color: #16a34a; }
.k-czerwony { background: rgba(220, 38, 38, .1); color: #dc2626; }
.k-fiolet { background: rgba(124, 58, 237, .1); color: #7c3aed; }
.k-grafit { background: rgba(51, 65, 85, .1); color: #334155; }

/* Aplikacja dla ekip */
.aplikacja__in { display: flex; align-items: center; gap: 72px; max-width: var(--szerokosc); margin: 0 auto; }
.aplikacja__tekst { flex: 0 1 480px; display: flex; flex-direction: column; gap: 32px; }
.punkty { display: flex; flex-direction: column; gap: 20px; max-width: 456px; }
.punkty li { display: flex; gap: 16px; }
.punkty div { display: flex; flex-direction: column; gap: 4px; }
.punkty h3 { font-size: 17px; line-height: 21px; font-weight: 600; }
.punkty p { font-size: 15px; line-height: 22px; color: var(--szary); }
.tablet { flex: 1 1 672px; max-width: 672px; padding: 16px; border-radius: 28px; background: #0b1220; box-shadow: 0 30px 60px -10px rgba(15, 23, 51, .25); }
.tablet img { border-radius: 10px; }

/* Jak to działa */
.kroki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--szerokosc); margin: 0 auto; }
.krok { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 18px; background: #fff; border: 1px solid var(--ramka); }
.krok__nr { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--niebieski); color: #fff; font-size: 18px; font-weight: 700; }
.krok h3 { font-size: 22px; line-height: 27px; font-weight: 600; }
.krok p { font-size: 16px; line-height: 25px; color: var(--szary); }

/* Kontakt */
.kontakt { padding: 112px var(--margines); background: linear-gradient(135deg, #0b1220 0%, #16245c 100%); color: #fff; }
.kontakt__in { display: flex; align-items: center; gap: 72px; max-width: var(--szerokosc); margin: 0 auto; }
.kontakt__tekst { flex: 0 1 470px; display: flex; flex-direction: column; gap: 32px; }
.kontakt h2 { font-size: 44px; line-height: 52px; color: #fff; }
.kontakt .naglowek__lead { color: #cbd5e1; }
.korzysci { display: flex; flex-direction: column; gap: 14px; font-size: 16px; font-weight: 500; color: var(--ramka); }
.korzysci li { display: flex; align-items: center; gap: 12px; }
.korzysci__ik { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(22, 163, 74, .2); color: #4ade80; font-size: 14px; flex: none; }
.korzysci__ik svg { stroke-width: 3; }
.kontakt hr { width: 100%; max-width: 460px; height: 1px; margin: 0; border: 0; background: rgba(255, 255, 255, .12); }
.dane-lista { display: flex; flex-direction: column; gap: 16px; }
.dane[hidden], [hidden] { display: none !important; }
.dane { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; font-size: 17px; font-weight: 600; }
.dane small { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--szary-2); }
.dane:hover { color: #c7d2fe; }
.dane__ik { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #93a8f8; font-size: 20px; }

.formularz { flex: 1 1 658px; max-width: 658px; display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: 24px; background: #fff;
  color: var(--tekst); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .3); }
.formularz h3 { font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: -.01em; }
.formularz__info { margin-top: -8px; font-size: 14px; color: var(--szary); }
.pola { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.pole { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tekst-2); }
.pole--szerokie { grid-column: 1 / -1; }
.pole input, .pole select, .pole textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ramka-pola);
  background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: var(--tekst); }
.pole textarea { height: 120px; padding: 14px; resize: vertical; }
.pole select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.pole select:invalid, .pole select.pusty { color: var(--szary-2); }
.pole ::placeholder { color: var(--szary-2); opacity: 1; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: none; border-color: var(--niebieski); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.pole .blad, .pole input[aria-invalid="true"] { border-color: #dc2626; }
.zgoda { display: flex; gap: 12px; font-size: 13px; line-height: 20px; color: var(--szary); cursor: pointer; }
.zgoda input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--niebieski); cursor: pointer; }
.zgoda input[aria-invalid="true"] { outline: 2px solid #dc2626; outline-offset: 1px; }
.pulapka { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.zgoda a { color: var(--niebieski); text-decoration: underline; }
.formularz { position: relative; }
.formularz__stopka a { color: inherit; text-decoration: underline; }
.formularz__stopka { font-size: 13px; text-align: center; color: var(--szary-2); }
.formularz__stopka.blad { color: #dc2626; }
.formularz__stopka.ok { color: var(--zielony); }

/* Stopka */
.stopka { padding: 48px var(--margines) 40px; background: #070c17; color: #cbd5e1; }
.stopka__gora, .stopka__dol { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--szerokosc); margin: 0 auto; }
.stopka__gora { padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.stopka__linki { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; font-weight: 500; }
.stopka__linki a:hover, .stopka__linki .link:hover { color: #fff; }
.stopka__dol { padding-top: 32px; font-size: 14px; color: var(--szary); }
.stopka__prawne { display: flex; gap: 24px; }
.stopka__prawne a:hover { color: #cbd5e1; }

/* Okno "Zaloguj się" */
.logowanie { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 60px -10px rgba(15, 23, 51, .35); color: var(--tekst); }
.logowanie::backdrop { background: rgba(11, 18, 32, .55); }
.logowanie__form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.logowanie h3 { padding-right: 32px; font-size: 22px; line-height: 28px; font-weight: 700; }
.logowanie p { font-size: 15px; line-height: 22px; color: var(--szary); }
.logowanie__zamknij { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: none; color: var(--szary); font-size: 20px; }
.logowanie__zamknij:hover { background: var(--tlo-szare); }
.adres { display: flex; align-items: center; border: 1px solid var(--ramka-pola); border-radius: 10px; overflow: hidden; }
.adres:focus-within { border-color: var(--niebieski); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.pole .adres input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.adres__domena { padding: 0 14px 0 2px; font-size: 15px; font-weight: 500; color: var(--szary); white-space: nowrap; }
.logowanie__blad { min-height: 0; color: #dc2626 !important; }
.logowanie__blad:empty { display: none; }

/* Do 1279 px: mniejsze marginesy */
@media (max-width: 1279px) {
  :root { --margines: 48px; }
  .nav__linki { gap: 24px; }
  .siatka { grid-template-columns: repeat(2, 1fr); }
  .aplikacja__in, .kontakt__in { gap: 48px; }
}

/* Do 1023 px: kolumny jedna pod drugą */
@media (max-width: 1023px) {
  .nav__linki { display: none; }
  .nav__akcje .btn--ghost { display: none; }
  .nav__burger { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ramka); border-radius: 10px; background: #fff; font-size: 20px; }
  .nav__burger .ik-x, .nav--otwarte .nav__burger .ik-menu { display: none; }
  .nav--otwarte .nav__burger .ik-x { display: block; }
  .nav--otwarte .nav__linki { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px var(--margines) 20px;
    background: #fff; border-bottom: 1px solid var(--ramka); box-shadow: 0 20px 30px -20px rgba(15, 23, 51, .2); }
  .nav--otwarte .nav__linki a { padding: 12px 0; font-size: 17px; }
  .nav--otwarte .nav__zaloguj-m { display: inline-flex; align-self: flex-start; margin-top: 8px; padding-left: 0; }
  .nav__in { position: relative; }
  .hero__in { flex-direction: column; align-items: stretch; gap: 56px; padding-top: 56px; }
  .hero__tekst { flex: none; max-width: 640px; }
  .makieta { flex: none; width: min(100%, 592px); margin: 0 auto; }
  .sciezka__kroki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 8px; }
  .sciezka__kroki li + li::before { display: none; }
  .aplikacja__in, .kontakt__in { flex-direction: column; align-items: stretch; }
  .aplikacja__tekst, .kontakt__tekst { flex: none; }
  .tablet { flex: none; width: 100%; }
  .formularz { flex: none; max-width: none; }
}

/* Telefon (Figma: Mobile 390) */
@media (max-width: 639px) {
  :root { --margines: 20px; }
  html { scroll-padding-top: 72px; }
  .nav__in { padding-top: 14px; padding-bottom: 14px; }
  .logo__znak { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
  .logo__nazwa { font-size: 19px; }
  .nav__akcje .btn--primary { display: none; }
  .hero__in { padding-top: 32px; padding-bottom: 48px; gap: 40px; }
  .hero__tekst { gap: 20px; }
  .badge { font-size: 12px; padding: 6px 12px; }
  h1 { font-size: 34px; line-height: 40px; }
  .hero__lead { font-size: 16px; line-height: 25px; }
  .hero__cta .btn { width: 100%; }
  .trust { flex-direction: column; gap: 10px; }
  .makieta { width: calc(100% - 16px); margin-left: 16px; }
  .sciezka { padding-top: 40px; padding-bottom: 40px; }
  .sciezka__kroki li { font-size: 13px; }
  .kolko { width: 44px; height: 44px; font-size: 20px; }
  .sekcja, .kontakt { padding-top: 64px; padding-bottom: 64px; }
  .naglowek { align-items: flex-start; margin-bottom: 32px; text-align: left; }
  .naglowek h2 { font-size: 30px; line-height: 36px; }
  .kontakt h2 { font-size: 32px; line-height: 38px; }
  .naglowek__lead { font-size: 16px; line-height: 25px; }
  .siatka { grid-template-columns: 1fr; gap: 12px; }
  .karta { flex-direction: row; gap: 14px; padding: 18px; border-radius: 14px; }
  .karta div { gap: 4px; }
  .karta h3 { font-size: 16px; line-height: 22px; }
  .karta p { font-size: 14px; line-height: 21px; }
  .karta .ikona { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
  .tablet { padding: 8px; border-radius: 16px; }
  .tablet img { border-radius: 8px; }
  .kroki { grid-template-columns: 1fr; gap: 12px; }
  .krok { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 20px; border-radius: 14px; }
  .krok__nr { grid-row: span 2; min-width: 32px; height: 32px; font-size: 15px; }
  .krok h3 { font-size: 18px; line-height: 24px; }
  .krok p { font-size: 15px; line-height: 22px; }
  .formularz { padding: 24px 20px; border-radius: 18px; }
  .formularz h3 { font-size: 20px; }
  .pola { grid-template-columns: 1fr; gap: 16px; }
  .stopka__gora { flex-direction: column; align-items: flex-start; }
  .stopka__linki { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stopka__dol { flex-direction: column; align-items: flex-start; }
  .logowanie__form { padding: 24px 20px; }
}

/* Strona 404 */
.brak { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: linear-gradient(180deg, var(--niebieski-jasny) 0%, #fff 100%); }
.brak__in { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; }
.brak__in h1 { font-size: 40px; line-height: 48px; }
.brak__in p:not(.nadtytul) { font-size: 17px; line-height: 27px; color: var(--tekst-2); }
