/*
Theme Name: Ubezpieczony Klient
Theme URI: https://ubezpieczonyklient.pl
Author: ubezpieczonyklient.pl
Description: Lekki, responsywny motyw dla agenta ubezpieczeniowego: floty i transport, rolnicy, OC/AC. Strony, menu i formularze tworzą się automatycznie po aktywacji. Dane firmy ustawiasz w Wygląd → Dostosuj → Dane firmy.
Version: 1.5.7
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ubezpieczonyklient
*/

/* Układ: białe sekcje z treścią na pełną szerokość, granatowy hero i stopka.
   Jeden kolor akcji (niebieski) na przyciskach i linkach. */
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy: #0b2d6b;
  --navy-2: #123b85;
  --blue: #1a5fd0;
  --blue-hover: #144fb0;
  --sky: #eaf1fc;
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #0f1b33;
  --muted: #4b5873;
  --line: #dce3ef;
  --on-navy: #ffffff;
  --on-navy-muted: #c3d1ea;
  --ok: #157347;
  --err: #b42318;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 45, 107, .06), 0 10px 28px -14px rgba(11, 45, 107, .22);
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-padding-bottom: calc(var(--bar-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 14px; border-radius: 8px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2rem, 4.6vw + .6rem, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.4vw + .8rem, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Kontenery ---------- */
.uk-wrap {
  width: 100%; max-width: calc(var(--max) + 2 * 16px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.entry-content > *:not(.uk-sec):not(.uk-hero) {
  max-width: 760px; margin-left: auto; margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page-header { padding-block: 48px 8px; }

/* Sekcje z edytora: pełna szerokość, treść w środku do --max */
.uk-sec, .uk-hero {
  padding-block: 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--max)) / 2));
  padding-right: max(16px, env(safe-area-inset-right, 0px), calc((100% - var(--max)) / 2));
  margin: 0;
}
.uk-sec > *, .uk-hero > * { margin-block-start: 0; }
.uk-sec > * + *, .uk-hero > * + * { margin-top: 20px; }
.uk-sec.is-soft { background: var(--paper); }
.uk-sec.is-sky { background: var(--sky); }
.uk-sec.is-tight { padding-top: 0; }
.uk-lead { font-size: 1.12rem; color: var(--muted); max-width: 44rem; }
.uk-eyebrow {
  font-size: .8rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px !important;
}
.uk-sec h2 { max-width: 40rem; }
.uk-note { font-size: .92rem; color: var(--muted); }

/* ---------- Przyciski ---------- */
.uk-btn, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.uk-btn svg { width: 20px; height: 20px; flex: none; }
.uk-btn:active { transform: scale(.98); }
.uk-btn-primary, .wp-block-button__link { background: var(--blue); color: var(--white); }
.uk-btn-primary:hover, .wp-block-button__link:hover { background: var(--blue-hover); color: var(--white); }
.uk-btn-light { background: var(--white); color: var(--navy); }
.uk-btn-light:hover { background: var(--sky); color: var(--navy); }
.uk-btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.uk-btn-outline:hover { border-color: var(--white); color: var(--white); }
.uk-btn-navy { background: var(--navy); color: var(--white); }
.uk-btn-navy:hover { background: var(--navy-2); color: var(--white); }
.uk-btn[disabled] { opacity: .6; cursor: wait; }
.uk-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nagłówek ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .uk-wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand picture { display: block; line-height: 0; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 100%; }
.site-footer .brand-logo { height: 52px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; }
.brand-word span { font-weight: 600; font-size: .78rem; color: var(--blue); letter-spacing: .02em; margin-top: 4px; }
.custom-logo { max-height: 48px; width: auto; }
.agent-badge { display: none; height: 40px; width: auto; padding-left: 14px; border-left: 1px solid var(--line); }
.agent-badge img { height: 100%; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
}
.main-nav a:hover { background: var(--paper); color: var(--navy); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--blue); background: var(--sky); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
  font-weight: 700; color: var(--white); background: var(--navy); padding: 10px 18px; border-radius: 999px;
}
.header-phone:hover { background: var(--navy-2); color: var(--white); }
.header-phone svg { width: 18px; height: 18px; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.uk-hero { background: var(--navy); color: var(--on-navy); padding-block: 48px 56px; overflow: hidden; }
.uk-hero .uk-eyebrow { color: #9cc0ff; }
.uk-hero .uk-lead { color: var(--on-navy-muted); }
.uk-hero h1 { color: var(--white); }
.uk-hero a:not(.uk-btn) { color: var(--white); }
.uk-hero .wp-block-columns { gap: 40px; align-items: center !important; margin: 0; }
.uk-hero-sub { padding-block: 40px 48px; }
.uk-crumbs { font-size: .92rem; color: var(--on-navy-muted); margin-bottom: 14px !important; }
.uk-ticks { list-style: none; padding: 0; margin-inline: 0; margin-bottom: 0; display: grid; gap: 8px; }
.uk-ticks li { position: relative; padding-left: 30px; }
.uk-ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fd0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.uk-hero .uk-ticks li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* Wyróżnione słowo w nagłówku: biała etykieta jak przycisk (Edytor: pasek narzędzi → „Wyróżnienie”) */
mark.uk-pill {
  display: inline; white-space: nowrap;
  background: var(--white); color: var(--blue);
  border-radius: 999px; padding: .02em .34em .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 mark.uk-pill { margin-left: -.06em; }
.uk-hero h1:has(mark.uk-pill) { line-height: 1.22; }
.uk-sec mark.uk-pill { background: var(--sky); }

/* Nagłówek strony głównej w białym polu (inne nagłówki: dodaj klasę „uk-box” w Zaawansowane → Dodatkowe klasy CSS) */
.uk-hero h1.uk-box {
  width: fit-content; max-width: 100%;
  background: var(--white); color: var(--navy);
  padding: .3em .55em .36em; border-radius: 26px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}
.uk-hero h1.uk-box mark.uk-pill { background: var(--sky); }
@media (max-width: 639px) {
  .uk-hero h1.uk-box { border-radius: 20px; padding: .32em .5em .38em; }
}

/* Napis nad nagłówkiem strony głównej: większy i wyśrodkowany */
.home .uk-hero:not(.uk-hero-sub) .uk-eyebrow {
  text-align: center; font-size: 1.05rem !important; letter-spacing: .16em; color: #b9d0ff;
}
@media (min-width: 1024px) {
  .home .uk-hero:not(.uk-hero-sub) .uk-eyebrow { font-size: 1.2rem !important; }
}
.home .uk-hero:not(.uk-hero-sub) .uk-eyebrow::after {
  content: ""; display: block; width: 170px; height: 2px; margin: 14px auto 6px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(214, 224, 240, .55) 22%, #ffffff 50%, rgba(214, 224, 240, .55) 78%, rgba(255, 255, 255, 0) 100%);
}
@media (min-width: 1024px) {
  .home .uk-hero:not(.uk-hero-sub) .uk-eyebrow::after { width: 220px; margin-top: 16px; }
}

/* Wyróżnione (pogrubione) słowa w tekście pod nagłówkiem */
.uk-hero .uk-lead strong, .uk-hero .uk-lead b { font-size: 1.1em; font-weight: 700; color: var(--white); white-space: nowrap; }

/* Kafelki z obrazkami pod nagłówkiem: 2×2 na telefonie, 4 w rzędzie od tabletu */
.uk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uk-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--navy);
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .65);
  transition: transform .15s ease, box-shadow .15s ease;
}
.uk-tile:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .75); color: var(--navy); }
.uk-tile:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 3px; }
.uk-hero a.uk-tile, .uk-hero a.uk-tile:hover { color: var(--navy); }
.uk-tile-img { display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--sky); }
.uk-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.uk-tile:hover .uk-tile-img img { transform: scale(1.04); }
.uk-tile-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px 12px; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em;
}
.uk-tile-name svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
/* 4 w rzędzie, gdy kafelki mają całą szerokość (640–781 px) albo na komputerze; w dwóch kolumnach tabletu 2×2 */
@media (min-width: 640px) and (max-width: 781px), (min-width: 1024px) {
  .uk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
.uk-tile-name { overflow-wrap: normal; word-break: keep-all; }
@media (min-width: 1024px) {
  .uk-tile-name { font-size: 1.12rem; padding: 12px 16px 14px; }
}

/* Karta polisy w hero */
.uk-policy {
  background: var(--white); color: var(--ink); border-radius: 18px; padding: 22px; max-width: 420px; margin-inline: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); display: grid; gap: 14px;
}
.uk-policy-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.uk-policy-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.uk-policy-type { font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.uk-plate {
  display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden;
  font-weight: 800; letter-spacing: .06em; font-size: .95rem;
}
.uk-plate i { font-style: normal; background: #1f4fa8; color: #fff; font-size: .6rem; padding: 4px; display: flex; align-items: flex-end; }
.uk-plate b { padding: 2px 8px; }
.uk-policy-row { display: flex; justify-content: space-between; gap: 12px; font-size: .97rem; }
.uk-policy-row span { color: var(--muted); }
.uk-policy-row b { font-variant-numeric: tabular-nums; }
.uk-meter { height: 10px; border-radius: 999px; background: var(--sky); overflow: hidden; }
.uk-meter i { display: block; height: 100%; width: 88%; background: var(--blue); border-radius: inherit; }
.uk-policy-note { font-size: .93rem; color: var(--muted); margin: 0; }
.uk-policy-note b { color: var(--ink); }

/* ---------- Siatki i karty (bloki „Grupa” z klasą) ---------- */
.uk-grid { display: grid; gap: 16px; }
.uk-grid > * { margin: 0 !important; min-width: 0; }
.uk-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
}
.uk-card > * { margin-block: 0; }
.uk-card > * + * { margin-top: 8px !important; }
.uk-card p { color: var(--muted); }
.uk-card h3 { margin-bottom: 0; color: var(--navy); }
.uk-card.is-key { border: 2px solid var(--navy); }
.uk-tag {
  display: inline-block; font-size: .74rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--sky); color: var(--navy); padding: 4px 10px; border-radius: 999px; margin-bottom: 4px !important;
}
.uk-card.is-key .uk-tag { background: var(--navy); color: var(--white); }

/* Kafle segmentów (shortcode) */
.uk-segs { display: grid; gap: 16px; }
.uk-seg {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.uk-seg:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.uk-seg-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--sky); color: var(--navy); display: grid; place-items: center; }
.uk-seg-ico svg { width: 30px; height: 30px; }
.uk-seg h3 { margin: 4px 0 0; color: var(--navy); font-size: 1.35rem; }
.uk-seg p { margin: 0; color: var(--muted); }
.uk-seg ul { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .97rem; }
.uk-seg li { position: relative; padding-left: 26px; }
.uk-seg li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.uk-seg-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.uk-seg-more svg { width: 18px; height: 18px; }

/* Kroki (lista numerowana z klasą uk-steps) */
.uk-steps { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.uk-steps li {
  counter-increment: s; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--line); min-height: 84px;
}
.uk-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.uk-steps strong { display: block; font-size: 1.12rem; color: var(--navy); margin-bottom: 2px; }

/* Liczby / fakty */
.uk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.uk-stats > * { margin: 0 !important; border-left: 3px solid #6f9cf0; padding-left: 14px; }
.uk-stats strong { display: block; font-size: 1.2rem; color: var(--white); }
.uk-stats p { color: var(--on-navy-muted); font-size: .94rem; }

/* Wyróżnione pole (granat) */
.uk-callout { background: var(--navy); color: var(--on-navy-muted); border-radius: var(--r); padding: 26px; }
.uk-callout h3 { color: var(--white); }
.uk-callout > * + * { margin-top: 10px; }

/* ---------- FAQ (blok „Szczegóły”) ---------- */
.wp-block-details { border-bottom: 1px solid var(--line); margin-bottom: 0 !important; }
.wp-block-details + .wp-block-details { margin-top: 0 !important; }
.uk-sec .wp-block-details:first-of-type, .uk-faq-start + .wp-block-details { border-top: 1px solid var(--line); }
.wp-block-details summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 700; font-size: 1.06rem; color: var(--navy);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.wp-block-details > p { color: var(--muted); padding-bottom: 18px; max-width: 48rem; margin: 0; }
.uk-sec > .wp-block-details + .wp-block-details { margin-top: 0; }

/* ---------- Licznik dni ---------- */
.uk-renew { background: var(--white); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; max-width: 760px; }
.uk-renew-row { display: grid; gap: 14px; }
.uk-renew-big { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.uk-renew-big small { font-size: .38em; margin-left: 6px; }
.uk-renew-msg { margin: 0; color: var(--muted); }
.uk-renew-msg.hot { color: var(--err); font-weight: 700; }

/* ---------- Formularz ---------- */
.uk-quote { display: grid; gap: 28px; }
.uk-form { display: grid; gap: 16px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.uk-field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.uk-field > label, .uk-field > legend { font-weight: 700; font-size: .97rem; padding: 0; margin-bottom: 0; }
.uk-field > legend { margin-bottom: 6px; }
.uk-opt { font-weight: 400; color: var(--muted); }
.uk-field input[type="text"], .uk-field input[type="tel"], .uk-field input[type="email"], .uk-field input[type="date"], .uk-field select, .uk-field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm); appearance: none; -webkit-appearance: none;
}
.uk-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.uk-field textarea { min-height: 100px; resize: vertical; }
.uk-field input:focus, .uk-field select:focus, .uk-field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.uk-hint { font-size: .88rem; color: var(--muted); }
.uk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.uk-choice { position: relative; }
.uk-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.uk-choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--paper); font-weight: 600; font-size: .97rem; user-select: none;
}
.uk-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.uk-choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.uk-row { display: grid; gap: 16px; }
.uk-consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .9rem; color: var(--muted); align-items: start; }
.uk-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.uk-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.uk-form .uk-btn { width: 100%; }
.uk-status { border-radius: var(--r-sm); padding: 14px 16px; font-weight: 700; }
.uk-status.ok { background: #e4f4ea; color: var(--ok); }
.uk-status.err { background: #fdecea; color: var(--err); }

.uk-contact { background: var(--sky); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.uk-contact .uk-big-phone { font-size: 1.8rem; font-weight: 800; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.uk-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.uk-contact b { color: var(--ink); }

/* ---------- Zwykłe strony (np. polityka) ---------- */
.entry-content > h2 { font-size: 1.4rem; margin-top: 1.6em; }
.entry-content > ul, .entry-content > ol { padding-left: 2.2em; }
.uk-plain { padding-bottom: 64px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 52px 28px; font-size: .96rem; }
.site-footer a { color: var(--white); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-word span { color: #9cc0ff; }
.site-footer .brand-mark path:first-child { fill: rgba(255, 255, 255, .16); }
.foot-cols { display: grid; gap: 28px; }
.foot-cols h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9cc0ff; margin-bottom: 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-badge img { max-height: 48px; width: auto; margin-top: 16px; background: var(--white); padding: 6px 10px; border-radius: 8px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .86rem; line-height: 1.55; display: grid; gap: 8px; }

/* ---------- Baner zgody na cookies ---------- */
.uk-cookies {
  position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 24px 60px -20px rgba(11, 45, 107, .45);
  display: grid; gap: 14px; font-size: .95rem;
}
.uk-cookies p { margin: 0; }
.uk-cookies-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uk-cookies .uk-btn { min-height: 46px; padding: 0 14px; font-size: .97rem; }
.uk-btn-ghost-dark { background: var(--white); color: var(--navy); border-color: var(--line); }
.uk-btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); }
@media (min-width: 1024px) { .uk-cookies { bottom: 20px; left: 20px; right: auto; margin: 0; } }

/* ---------- Poradniki ---------- */
.uk-posts { display: grid; gap: 16px; }
.uk-post-card { display: grid; gap: 8px; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .15s ease; }
.uk-post-card:hover { border-color: var(--blue); color: var(--ink); }
.uk-post-card h2 { font-size: 1.3rem; color: var(--navy); margin: 0; }
.uk-post-card p { color: var(--muted); margin: 0; }
.uk-post-meta { font-size: .88rem; color: var(--muted); }
.uk-hero .uk-post-meta { color: var(--on-navy-muted); }
.uk-article { padding-block: 40px 8px; }
.uk-article .entry-content > * { max-width: 760px; }
.uk-article .entry-content h2 { font-size: 1.45rem; margin-top: 1.6em; color: var(--navy); }
.uk-article .entry-content h3 { margin-top: 1.3em; color: var(--navy); }
.uk-article .entry-content ul, .uk-article .entry-content ol { padding-left: 1.3em; display: grid; gap: 6px; }
.uk-article .entry-content > p, .uk-article .entry-content li { font-size: 1.05rem; }
@media (min-width: 640px) { .uk-posts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .uk-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Dolny pasek na telefonie ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px rgba(11, 45, 107, .45);
  padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.action-bar .uk-btn { width: 100%; padding: 0 10px; }

.main-nav .nav-phone { display: none; }

/* ================= Telefon i tablet: menu rozwijane ================= */
@media (max-width: 1023px) {
  .site-header .brand-logo { height: 40px; }
  .nav-toggle { display: grid; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--hdr, 72px); bottom: 0; z-index: 49; margin: 0;
    background: var(--white); border-top: 1px solid var(--line); overflow-y: auto;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { font-size: 1.15rem; padding: 14px 16px; border-radius: 12px; }
  .main-nav .nav-phone { display: flex; margin-top: 16px; }
}

/* Przycisk telefonu w rozwijanym menu: biały napis na granacie, jak w nagłówku */
.main-nav a.nav-phone, .main-nav a.nav-phone:hover {
  color: var(--white); background: var(--navy);
  border-radius: 999px; justify-content: center; gap: 10px; min-height: 56px;
}
.main-nav a.nav-phone:hover { background: var(--navy-2); }
.main-nav a.nav-phone svg { width: 20px; height: 20px; }

/* ================= Tablet (od 640px) ================= */
@media (min-width: 640px) {
  .uk-row { grid-template-columns: 1fr 1fr; }
  .uk-grid.is-2, .uk-grid.is-3 { grid-template-columns: 1fr 1fr; }
  .uk-segs { grid-template-columns: 1fr 1fr; }
    .uk-renew-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .agent-badge { display: block; }
}

/* ================= Desktop (od 1024px) ================= */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .uk-sec { padding-block: 88px; }
  .uk-sec.is-tight { padding-top: 0; }
  .uk-hero { padding-block: 80px 88px; }
  .uk-hero-sub { padding-block: 64px 72px; }
  .uk-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uk-segs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .uk-steps li { padding: 70px 0 0; border-top: 0; }
  .uk-steps li::before { top: 0; }
  .uk-quote { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 40px; }
  .foot-cols { grid-template-columns: 1.5fr 1fr 1fr; }
  .uk-split { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .uk-split > * { margin: 0 !important; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .main-nav a { padding: 10px 10px; font-size: .95rem; }
  .agent-badge { display: none; }
}

/* WordPress: kolumny w hero składają się na telefonie */
@media (max-width: 781px) {
  .uk-hero .wp-block-columns { flex-wrap: wrap !important; gap: 32px; }
  .uk-hero .wp-block-column { flex-basis: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Bardzo wąskie telefony: mniejsze logo, żeby zmieścił się przycisk menu */
@media (max-width: 360px) {
  .site-header .brand-logo { height: 34px; }
}

/* Podstrony oferty: formularz zaraz pod nagłówkiem (kolejność zmieniana bez ruszania treści) */
.uk-form-first .entry-content { display: flex; flex-direction: column; }
.uk-form-first .entry-content > .uk-hero { order: -2; }
.uk-form-first .entry-content > #wycena { order: -1; }
@media (max-width: 639px) {
  .uk-form-first .uk-hero .uk-stats { display: none; }
  .uk-form-first .uk-hero-sub { padding-block: 28px 32px; }
  .uk-form-first #wycena { padding-top: 36px; }
}
