:root {
  --navy: #071f2a;
  --navy-2: #0b2d3a;
  --navy-3: #123b4b;
  --red: #ef101e;
  --red-dark: #c70d18;
  --green: #56c832;
  --green-dark: #319b20;
  --white: #ffffff;
  --off: #f4f7f8;
  --text: #0c2430;
  --muted: #60727b;
  --line: #dce5e9;
  --shadow: 0 18px 48px rgba(2, 22, 31, 0.13);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.skip-link {
  position: fixed; left: 18px; top: -60px; z-index: 2000;
  background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px;
  box-shadow: var(--shadow); transition: .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: rgba(7, 31, 42, .93);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
  transition: .25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(0,0,0,.14); background: rgba(7,31,42,.98); }
.static-header { position: relative; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; width: 335px; max-width: 45vw; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 26px; color: #fff; font-size: 15px; font-weight: 650; }
.main-nav a { opacity: .92; transition: .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { opacity: 1; color: #fff; }
.main-nav .nav-cta {
  background: var(--red); padding: 11px 18px; border-radius: 10px; opacity: 1;
  box-shadow: 0 8px 18px rgba(239,16,30,.2);
}
.main-nav .nav-cta:hover { background: #ff1c2a; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

.hero {
  position: relative; overflow: hidden; min-height: 720px; display: grid; align-items: center;
  background: var(--navy); color: #fff; padding: 150px 0 84px;
}
.hero-media {
  position: absolute; inset: 0 0 0 43%;
  background: url('../images/industry-bg.jpg') center/cover no-repeat;
  opacity: .38;
  filter: grayscale(1) contrast(.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(7,31,42,.97) 42%, rgba(7,31,42,.76) 68%, rgba(7,31,42,.64) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: 0; width: 460px; height: 100%;
  background: linear-gradient(150deg, rgba(255,255,255,.94) 0 38%, transparent 38%);
  opacity: .10;
}
.hero-red {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--green) 60% 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 72px; align-items: center; }
.eyebrow, .kicker {
  margin: 0 0 16px; text-transform: uppercase; letter-spacing: .19em; font-weight: 800; font-size: 13px;
}
.eyebrow { color: #d8e2e7; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.eyebrow span { width: 3px; height: 18px; background: var(--red); display: inline-block; }
.hero h1 { margin: 0; max-width: 840px; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.hero-lead { max-width: 760px; font-size: 20px; color: #d7e3e7; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 11px; font-weight: 800; border: 1px solid transparent; transition: .2s ease; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 24px rgba(239,16,30,.24); }
.btn-primary:hover { transform: translateY(-1px); background: #ff1b29; }
.btn-ghost { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.05); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.42); }
.btn-small { min-height: 40px; padding: 9px 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; color: #b8c9d0; font-size: 14px; }
.hero-meta span { position: relative; padding-left: 15px; }
.hero-meta span::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-card {
  background: rgba(255,255,255,.96); color: var(--navy); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2); border-top: 7px solid var(--red);
}
.hero-card-mark { font-size: 52px; font-weight: 1000; letter-spacing: -.08em; color: var(--red); line-height: 1; }
.hero-card p { color: var(--muted); margin: 20px 0 4px; }
.hero-card strong { display: block; font-size: 24px; line-height: 1.2; }
.hero-card a { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--red-dark); }

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 24px 22px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong { display: block; font-size: 16px; }
.trust-grid span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.section-heading { max-width: 820px; margin-bottom: 44px; }
.section-heading.compact { margin-bottom: 32px; }
.kicker { color: var(--red); }
.kicker.green { color: var(--green-dark); }
.section-heading h2, .env-copy h2, .about-copy h2, .faq h2, .contact h2, .legal-card h1 {
  margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; letter-spacing: -.025em;
}
.section-heading > p:last-child, .env-copy > p, .about-copy > p, .faq-grid > div:first-child > p:last-child, .contact-info > p {
  color: var(--muted); font-size: 18px;
}

.services { background: var(--off); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid #e5ecef; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 28px rgba(5,31,42,.055);
  position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--red); }
.service-env::before { background: var(--green); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: #fff1f2; margin-bottom: 18px; }
.service-icon svg { width: 34px; height: 34px; fill: var(--red); }
.service-env .service-icon { background: #effbea; }
.service-env .service-icon svg { fill: var(--green-dark); }
.service-card h3 { font-size: 27px; margin: 0 0 8px; }
.service-card > p { color: var(--muted); min-height: 76px; }
.service-card ul { list-style: none; margin: 20px 0 24px; padding: 0; }
.service-card li { position: relative; padding: 8px 0 8px 25px; border-bottom: 1px dashed #e5ecef; font-size: 15px; }
.service-card li::before { content: "✓"; position: absolute; left: 0; top: 8px; font-weight: 900; color: var(--red); }
.service-env li::before { color: var(--green-dark); }
.text-link { font-weight: 850; color: var(--red-dark); }
.service-env .text-link { color: var(--green-dark); }

.environment-band { background: #fff; }
.env-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.env-image {
  min-height: 480px; border-radius: 30px; background: linear-gradient(rgba(7,31,42,.08),rgba(7,31,42,.08)), url('../images/environment.jpg') center/cover no-repeat;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.env-image::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: var(--green); }
.env-copy > p { margin-bottom: 26px; }
.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-cards > div { border: 1px solid var(--line); padding: 18px; border-radius: 14px; background: #fbfdfd; }
.mini-cards strong { display: block; font-size: 18px; color: var(--navy); }
.mini-cards span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }

.process { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 420px; height: 420px; border: 80px solid rgba(239,16,30,.08); border-radius: 50%; right: -200px; top: -100px; }
.process .kicker { color: #ff6570; }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.process-grid li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 24px; }
.process-grid li > span { display: block; color: #ff5f69; font-weight: 900; letter-spacing: .08em; }
.process-grid h3 { font-size: 21px; margin: 16px 0 8px; }
.process-grid p { color: #c2d1d6; margin: 0; font-size: 15px; }

.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: stretch; }
.about-copy > p { max-width: 760px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-badges span { background: #eff4f6; border: 1px solid #dbe5e9; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 750; }
.about-panel { background: linear-gradient(150deg, var(--navy), #0a3444); color: #fff; border-radius: 26px; padding: 32px; box-shadow: var(--shadow); }
.quote { font-size: 30px; font-style: italic; margin: 0 0 30px; color: #fff; }
.quote::after { content: ""; display: block; width: 90px; height: 4px; background: var(--red); margin-top: 14px; }
.about-panel-row { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.about-panel-row strong { display: block; font-size: 18px; }
.about-panel-row span { color: #b9cbd2; font-size: 14px; }

.faq { background: var(--off); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
.faq-list summary { cursor: pointer; font-weight: 800; padding: 19px 36px 19px 0; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f0f4f5; color: var(--red); font-size: 22px; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); }

.contact { background: linear-gradient(180deg, #fff 0%, #f5f8f9 100%); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 10px; margin-top: 26px; }
.contact-cards a { background: var(--navy); color: #fff; padding: 18px 20px; border-radius: 14px; transition: .2s ease; }
.contact-cards a:hover { transform: translateX(3px); background: var(--navy-2); }
.contact-cards span { display: block; color: #9fb6bf; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.contact-cards strong { display: block; margin-top: 3px; font-size: 17px; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: 28px; }
.contact-form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 7px; font-weight: 750; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid #cfdde2; background: #fff; border-radius: 10px; padding: 12px 13px; color: var(--text); outline: none; transition: .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(239,16,30,.08); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; color: var(--muted); font-size: 12px !important; }
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.consent a { color: var(--red-dark); text-decoration: underline; }
.btn-submit { border: 0; justify-self: start; min-width: 180px; }
.form-note { color: #7b8d95; font-size: 12px; margin: 0; }
.form-alert { padding: 13px 15px; border-radius: 11px; margin-bottom: 16px; font-weight: 700; }
.form-alert.success { background: #eaf8e4; color: #246d16; border: 1px solid #bee5b1; }
.form-alert.error { background: #fff0f1; color: #9c1821; border: 1px solid #f4c5c9; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { background: #041721; color: #d8e3e7; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .7fr; gap: 40px; }
.footer-grid img { max-width: 330px; }
.footer-grid p { color: #8fa8b2; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid strong { color: #fff; margin-bottom: 6px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.09); margin-top: 36px; padding-top: 18px; color: #7f99a3; font-size: 12px; }

.floating-contact { position: fixed; z-index: 950; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.floating-contact a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); font-size: 21px; }
.floating-contact a:last-child { background: var(--navy); }

/* Polityka prywatności */
.legal-page { background: var(--off); }
.legal-main { padding: 60px 0 90px; }
.legal-card { background: #fff; padding: 42px; border-radius: 24px; box-shadow: var(--shadow); max-width: 900px; }
.legal-card h2 { margin-top: 34px; font-size: 22px; }
.legal-card p { color: var(--muted); }
.legal-card a { color: var(--red-dark); text-decoration: underline; }
.legal-note { margin-top: 40px; font-size: 13px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: fixed; top: 82px; left: 0; right: 0; bottom: 0; background: rgba(7,31,42,.99);
    padding: 28px 26px; flex-direction: column; align-items: stretch; gap: 0; font-size: 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-cta { margin-top: 16px; text-align: center; border: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 560px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(3), .trust-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card > p { min-height: 0; }
  .env-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .env-image { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 70px 0; }
  .header-inner { min-height: 74px; }
  .brand { width: 245px; max-width: 72vw; }
  .main-nav { top: 74px; }
  .hero { min-height: auto; padding: 122px 0 68px; }
  .hero-media { inset: 0; opacity: .23; }
  .hero-overlay { background: linear-gradient(180deg, rgba(7,31,42,.92), rgba(7,31,42,.97)); }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-lead { font-size: 18px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .trust-grid > div:first-child { border-top: 0; }
  .service-card { padding: 22px; }
  .mini-cards, .process-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .env-image { min-height: 320px; }
  .about-panel, .contact-form-wrap { padding: 22px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .floating-contact { right: 12px; bottom: 12px; }
  .floating-contact a { width: 44px; height: 44px; }
  .legal-card { padding: 24px; }
}

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

/* Bootstrap 5: szerokości kontenera i bezpieczny układ na telefonach oraz tabletach. */
.container { width: 100%; max-width: 1180px; }
.row.hero-grid, .row.trust-grid, .row.service-grid, .row.env-grid,
.row.about-grid, .row.faq-grid, .row.contact-grid, .row.footer-grid,
.row.process-grid, .row.form-row, .row.mini-cards { display: grid; margin-inline: auto; }
.brand { flex: 0 1 335px; min-width: 0; }
.row.hero-grid > .col-12 { width: auto; max-width: none; }
.brand img, .footer-grid img { object-fit: contain; object-position: left center; max-width: 100%; padding:15px;}
.site-header .main-nav { min-width: 0; }
.form-alert[hidden] { display: none; }
@media (max-width: 1020px) {
  .site-header .main-nav { overflow-y: auto; max-height: calc(100dvh - 74px); }
  .brand { width: min(335px, calc(100vw - 95px)); max-width: none; }
}
@media (max-width: 767.98px) {
  html { scroll-padding-top: 75px; }
  .container { padding-inline: 14px; }
  .row.hero-grid, .row.env-grid, .row.about-grid, .row.faq-grid,
  .row.contact-grid, .row.form-row { grid-template-columns: minmax(0, 1fr); }
  .row.service-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-card, .contact-info, .contact-form-wrap { min-width: 0; }
  .hero h1 { overflow-wrap: anywhere; }
  .contact-cards strong, .hero-card a { overflow-wrap: anywhere; }
  .btn-submit { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1020px) {
  .row.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .brand { width: min(215px, calc(100vw - 93px)); }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); }
  .hero-meta { gap: 8px; }
  .contact-form-wrap { padding: 18px; }
}

/* Pełna szerokość rzędów formularza, bez dodatkowych gutterów Bootstrap. */
.contact-form > .form-row.row {
  width: 100%; min-width: 0; margin: 0;
  --bs-gutter-x: 0; --bs-gutter-y: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-form > .form-row.row > label {
  min-width: 0; width: 100%; padding: 0; margin: 0;
}
@media (max-width: 767.98px) {
  .contact-form > .form-row.row { grid-template-columns: minmax(0, 1fr); }
}

/* Menu jest panelem pod nagłówkiem; backdrop-filter nie ogranicza jego wysokości. */
@media (max-width: 1020px) {
  .site-header .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0; bottom: auto;
    height: auto;
    max-height: calc(100vh - var(--header-height, 100px));
    max-height: calc(100dvh - var(--header-height, 100px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 24px max(20px, env(safe-area-inset-bottom));
    z-index: 1;
  }
  .site-header .main-nav a { flex: 0 0 auto; }
  .nav-toggle { flex: 0 0 44px; }
}
