:root {
  --navy: #0b3a6e;
  --navy-dark: #072a52;
  --navy-light: #12508f;
  --red: #e4262d;
  --red-dark: #c11a21;
  --yellow: #f2c200;
  --ink: #1b2430;
  --muted: #5b6676;
  --bg-light: #f2f5f9;
  --line: #dde3ea;
  --radius: 10px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-light); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 10px 0;
}
.logo img { height: 64px; width: auto; }
.topbar__contact { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
.topbar__phone { color: #fff; font-size: 1.35rem; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.topbar__phone::before { content: "☎ "; color: var(--yellow); }
.topbar__viber { color: #c9d8ec; font-size: .9rem; text-decoration: none; }
.topbar__viber:hover { color: #fff; }

.nav { background: var(--navy-light); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; }
.nav a {
  color: #fff; text-decoration: none;
  padding: 14px 16px; font-size: .98rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--yellow); background: rgba(255,255,255,.06); }
.nav .nav__cta {
  margin-left: auto; background: var(--red);
  font-weight: 600; border-bottom: 0;
}
.nav .nav__cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 6px;
  font-weight: 600; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  /* img/hero.jpg — opcjonalne zdjęcie tła (np. z Pexels/Unsplash); bez niego zostaje gradient */
  background:
    linear-gradient(105deg, rgba(7,42,82,.95) 0%, rgba(11,58,110,.86) 50%, rgba(11,58,110,.55) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    radial-gradient(circle at 80% 30%, #1d6bbd 0%, var(--navy) 60%);
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero__kicker { color: var(--yellow); font-weight: 600; letter-spacing: .5px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 17ch; }
.hero__lead { font-size: 1.15rem; color: #dbe6f4; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 20px; font-size: .9rem;
}
.hero__badge {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--yellow); color: var(--navy-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-8deg);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.hero__badge strong { font-size: 2rem; text-transform: uppercase; }
.hero__badge span { font-weight: 600; line-height: 1.2; max-width: 9ch; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark p { color: #dbe6f4; }
.section__head { margin-bottom: 36px; }
.eyebrow {
  color: var(--red); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .85rem; margin: 0 0 8px;
}
.eyebrow--light { color: var(--yellow); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; border-top: 4px solid var(--navy);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,58,110,.12); border-top-color: var(--red); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 60px; height: 60px; border-radius: 12px; background: var(--bg-light);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linejoin: round; }
.card__icon circle { fill: var(--navy); }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--bg-light); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); }
.section--dark .list-check li { border-bottom-color: rgba(255,255,255,.15); }
.list-check li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}
.section--dark .list-check li::before { border-color: var(--yellow); }
.narrow .list-check { margin-top: 18px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px 22px; counter-increment: s; border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }
.promo {
  margin-top: 30px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--yellow); color: var(--navy-dark);
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
}
.promo strong { font-size: 1.3rem; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__list { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0 0 26px; }
.contact__list dt { color: var(--muted); font-weight: 600; }
.contact__list dd { margin: 0; font-weight: 600; }
.contact__list a { text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #e6ebf1; }
.map iframe { width: 100%; height: 100%; border: 0; }

.form-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  border-top: 5px solid var(--red); box-shadow: 0 10px 30px rgba(11,58,110,.1);
}
.form-card h2 { font-size: 1.6rem; }
.form-card__lead { color: var(--muted); margin-top: 0; }
.form-card__note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; text-align: center; }
form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
form input, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #c6d0dc; border-radius: 6px; background: #fbfcfd;
}
form input:focus, form textarea:focus { outline: 2px solid var(--navy-light); outline-offset: 1px; background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.captcha input { max-width: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.alert--ok { background: #e5f5ea; color: #1c6b34; }
.alert--err { background: #fdeaea; color: #a3151b; }

/* footer */
.footer { background: var(--navy-dark); color: #c9d8ec; padding: 28px 0; font-size: .92rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: none; }
.footer img { height: 46px; width: auto; }

/* floating call button (mobile) */
.call-fab {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--red);
  box-shadow: 0 8px 20px rgba(0,0,0,.3); place-items: center;
}
.call-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__badge { width: 160px; height: 160px; }
  .hero__badge strong { font-size: 1.6rem; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }
  .logo img { height: 50px; }
  .topbar__contact { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav .wrap { flex-direction: column; align-items: stretch; }
  .nav a { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .nav__cta { margin-left: 0; }
  .hero { padding: 60px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .split, .contact { grid-template-columns: 1fr; gap: 30px; }
  .split--reverse > :first-child { order: 0; }
  .section { padding: 60px 0; }
  .call-fab { display: grid; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; }
  .contact__list { grid-template-columns: 1fr; gap: 2px; }
  .contact__list dd { margin-bottom: 10px; }
  .hero__actions .btn { width: 100%; }
}
