/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-accent: #e74c3c;
  --color-accent-dark: #c0392b;
  --color-accent-darker: #a5301f;
  --color-navy: #0f2946;
  --color-navy-alt: #15304f;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #212121;
  --color-text-muted: #5a6472;
  --color-border: #e2e6ea;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-w: 1120px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 41, 70, .08);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 .6em; color: var(--color-navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; margin-bottom: .5em; }
p { margin: 0 0 1em; }

.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 1.25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.logo img { height: 40px; width: auto; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: flex; align-items: center; padding: .85rem 0; color: #dfe6ee; font-weight: 600;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a[aria-current="page"] { border-bottom: 2px solid var(--color-accent); }

.dropdown-caret { margin-left: .35rem; vertical-align: -2px; }
.dropdown { display: none; list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; }
.has-dropdown.is-open .dropdown { display: block; }
.dropdown a { padding: .5rem 0; font-weight: 500; color: #c7d2dd; }

@media (max-width: 859.98px) {
  .header-inner { flex-wrap: wrap; }
  .logo, .nav-toggle { margin-block: 18px; }
  .primary-nav { display: none; width: 100%; flex-basis: 100%; }
  .site-header.is-open .primary-nav { display: block; padding-bottom: 1rem; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav > ul { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; }
  .primary-nav a { padding: .5rem 0; }
  .has-dropdown { position: relative; }
  .dropdown {
    display: none; position: absolute; top: 100%; left: 0; background: var(--color-navy-alt);
    min-width: 300px; padding: .5rem 0; border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
  .dropdown a { padding: .6rem 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 8rem 0; background: var(--color-navy);
  min-height: 60vh; display: flex; align-items: center;
}
.hero--home {
  background-image: linear-gradient(180deg, rgba(15, 41, 70, .82), rgba(15, 41, 70, .92)), url('/assets/img/hero.webp');
  background-size: cover;
  background-position: center;
}
.hero h1 { color: #fff; }
.hero .lead { max-width: 60ch; font-size: 1.15rem; color: #e7ecf1; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

.page-hero { background: var(--color-navy); color: #fff; padding: 3.25rem 0; }
.page-hero h1 { color: #fff; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent-dark); color: #fff; }
.btn-primary:hover { background: var(--color-accent-darker); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-navy); }
.btn-outline-dark { background: transparent; border: 2px solid var(--color-navy); color: var(--color-navy); }
.btn-outline-dark:hover { background: var(--color-navy); color: #fff; }
.btn-link { color: var(--color-accent-dark); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .kicker {
  display: block; color: var(--color-accent-dark); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem;
}
.signature { text-align: right; font-style: italic; color: var(--color-text-muted); margin-top: 2rem; }

/* ---------- Offer cards ---------- */
.offer-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.offer-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow); }
.offer-card .icon { color: var(--color-accent); margin-bottom: 1rem; display: flex; justify-content: center; }
.offer-card h3 a { color: var(--color-navy); }
.offer-card p { color: var(--color-text-muted); }

/* ---------- Detail items (oferta subpages) ---------- */
.detail-item { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--color-border); }
.detail-item:last-child { border-bottom: 0; }
.detail-item figure {
  margin: 0; aspect-ratio: 4 / 3; background: var(--color-bg-alt);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.detail-item figure img { width: 100%; height: 100%; object-fit: contain; }
.detail-item .index {
  color: var(--color-accent-dark); font-weight: 800; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .4rem; display: block;
}
@media (min-width: 760px) {
  .detail-item { grid-template-columns: 1fr 1fr; }
  .detail-item.reverse figure { order: 2; }
}

/* ---------- E-pomoc table ---------- */
.helper-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.helper-table th, .helper-table td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--color-border); }
.helper-table th { background: var(--color-bg-alt); }
@media (max-width: 600px) {
  .helper-table thead { display: none; }
  .helper-table, .helper-table tbody, .helper-table tr, .helper-table td { display: block; width: 100%; }
  .helper-table tr { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
  .helper-table td { border: 0; padding: .25rem 0; }
  .helper-table td:first-child { font-weight: 700; color: var(--color-navy); }
}

/* ---------- Contact card (kontakt page) ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow); max-width: 480px; margin: 0 auto; text-align: center;
}
.contact-card h2 { margin-bottom: .25rem; }
.contact-card address { margin: 1rem 0 1.5rem; font-style: normal; color: var(--color-text-muted); line-height: 1.8; }
.contact-card .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: #cdd7e1; padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { color: #fff; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.footer-nav-list { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.footer-nav-list a { color: #cdd7e1; }
.footer-nav-list a:hover { color: #fff; }
.copyright { width: 100%; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9fb0c0; }
