/* ============================================================
   FarmaTech — nowa strona statyczna
   Kolorystyka wywiedziona z logo i identyfikacji marki.
   Brak frameworków i zależności — gotowe do wrzucenia na home.pl.
   ============================================================ */

:root {
  --brand-950: #06263a;
  --brand-900: #08304a;
  --brand-800: #0b3b5c;
  --brand-700: #11507a;
  --brand-600: #176891;
  --brand-500: #2f85ad;
  --sky-300: #8bcbe8;
  --sky-200: #c5e5f1;
  --sky-100: #e7f3f8;
  --ink: #122a38;
  --ink-soft: #314b58;
  --muted: #5d7380;
  --bg: #f5f7f4;
  --bg-deep: #eef3ef;
  --surface: #ffffff;
  --line: #dbe4e2;
  --line-soft: #e9efec;
  --gold: #efb13f;
  --gold-soft: #fbf1dc;
  --green: #4a8c68;
  --green-soft: #e5f0e9;
  --shadow-sm: 0 2px 8px rgba(8, 40, 58, 0.06);
  --shadow: 0 18px 44px rgba(8, 40, 58, 0.11);
  --shadow-lg: 0 30px 70px rgba(4, 28, 42, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  color: var(--brand-500);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
.main-nav a,
.hero-dots button {
  touch-action: manipulation;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.35em;
  color: var(--brand-950);
}

p {
  margin: 0 0 1rem;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-deep);
  color: var(--brand-800);
  font-size: 0.9em;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--brand-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease,
    border-color 170ms ease, color 170ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-800);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 48, 74, 0.24);
}

.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 48, 74, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--brand-900);
  box-shadow: 0 8px 24px rgba(6, 38, 58, 0.16);
}

.btn-light:hover {
  color: var(--brand-700);
  box-shadow: 0 14px 30px rgba(6, 38, 58, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--brand-800);
  border-color: var(--brand-800);
}

.btn-outline:hover {
  background: var(--brand-800);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--brand-950);
  box-shadow: 0 10px 26px rgba(239, 177, 63, 0.3);
}

.btn-gold:hover {
  background: #f7bf52;
  color: var(--brand-950);
}

.btn[disabled] {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  z-index: 120;
  top: 0;
  background: rgba(250, 252, 249, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 228, 226, 0.86);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(8, 40, 58, 0.07);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--brand-950);
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(8, 40, 58, 0.1), inset 0 0 0 1px rgba(8, 40, 58, 0.08);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-name {
  display: grid;
  line-height: 1;
  text-align: left;
}

.brand-name strong {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-name span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-800);
  background: var(--sky-100);
}

.main-nav a.header-cta,
.main-nav a.header-cta:visited {
  color: #fff;
  background: var(--brand-800);
}

.main-nav a.header-cta:hover,
.main-nav a.header-cta:focus-visible {
  color: #fff;
  background: var(--brand-700);
}

.header-cta {
  margin-left: 10px;
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-900);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Ogólne sekcje ---------- */

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--surface);
}

.section-tight {
  padding: 76px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
}

.muted {
  color: var(--muted);
}

.hero-mini {
  padding: 80px 0 64px;
  background:
    radial-gradient(circle at 84% 16%, rgba(143, 203, 232, 0.24), transparent 34%),
    linear-gradient(135deg, var(--brand-950), var(--brand-800) 60%, var(--brand-600));
  color: #fff;
}

.hero-mini .eyebrow {
  color: var(--sky-300);
}

.hero-mini h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.hero-mini .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}

.breadcrumb {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--sky-300);
}

/* ---------- Hero (strona główna) ---------- */

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 800ms ease, transform 9s linear;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 28, 44, 0.9) 0%, rgba(6, 42, 61, 0.68) 46%, rgba(6, 42, 61, 0.2) 100%),
    linear-gradient(0deg, rgba(3, 24, 36, 0.52), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding: 130px 0 120px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sky-300);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin-bottom: 26px;
}

.hero-content h1 em {
  color: var(--sky-300);
  font-style: normal;
}

.hero-text {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 38px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-proof svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.hero-dots button.active {
  width: 28px;
  background: var(--gold);
}

/* ---------- Pasek usług na skróty ---------- */

.quick-services {
  position: relative;
  z-index: 5;
  margin-top: -58px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 166px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-300);
  color: var(--ink);
}

.quick-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: var(--sky-100);
  color: var(--brand-700);
}

.quick-icon svg {
  width: 22px;
  height: 22px;
}

.quick-card h3 {
  margin: 0;
  font-size: 15px;
}

.quick-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Sekcja "o nas" / intro ---------- */

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.split-copy .section-head {
  margin-bottom: 28px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fafcf9;
  font-size: 14px;
}

.feature-item svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--green);
}

.feature-item strong {
  display: block;
  font-weight: 700;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.media-badge {
  position: absolute;
  right: -12px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 17px 20px;
  border-radius: 18px;
  background: var(--brand-950);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.media-badge strong {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}

.media-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

/* ---------- Kafle usług ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  color: var(--ink);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--sky-300);
}

.service-num {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--line);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sky-100), #f0f8fb);
  color: var(--brand-700);
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Pasek liczb ---------- */

.stats-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 120%, rgba(143, 203, 232, 0.2), transparent 42%),
    linear-gradient(120deg, var(--brand-950), var(--brand-800));
  color: #fff;
}

.stats-band::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat h3 {
  color: #fff;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat h3 span {
  color: var(--gold);
}

.stat p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Proces / filary ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pillar-step {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-800);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
}

.pillar h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Realizacje / galeria ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(4, 30, 44, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.gallery.wide figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ---------- Partnerzy ---------- */

.partners {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px 26px;
  align-items: center;
}

.partner-logo {
  display: grid;
  height: 62px;
  place-items: center;
  filter: grayscale(1);
  opacity: 0.64;
  transition: filter 180ms ease, opacity 180ms ease;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  max-height: 52px;
  object-fit: contain;
}

/* ---------- Sekcja S3K ---------- */

.s3k-teaser {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(143, 203, 232, 0.25), transparent 34%),
    linear-gradient(115deg, var(--brand-950), #0a3f62 65%, var(--brand-700));
}

.s3k-teaser::before {
  content: "S3K";
  position: absolute;
  right: -30px;
  top: 24px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-head);
  font-size: clamp(180px, 28vw, 420px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.s3k-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.s3k-teaser .eyebrow {
  color: var(--gold);
}

.s3k-teaser h2 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.05em;
}

.s3k-teaser p {
  color: rgba(255, 255, 255, 0.8);
}

.s3k-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0;
}

.s3k-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.45;
}

.s3k-point svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--gold);
}

.s3k-visual {
  position: relative;
}

.s3k-visual > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(3, 22, 34, 0.42);
  border: 6px solid rgba(255, 255, 255, 0.1);
}

.s3k-float {
  position: absolute;
  left: -22px;
  bottom: 24px;
  max-width: 270px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.s3k-float strong {
  display: block;
  font-size: 13px;
}

.s3k-float span {
  color: var(--muted);
  font-size: 12px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a5c08;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(239, 177, 63, 0.26), transparent 36%),
    linear-gradient(120deg, var(--brand-900), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(38px, 6vw, 64px);
}

.cta-inner h2 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.045em;
}

.cta-inner p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Systemy — szczegóły ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease;
  color: var(--ink);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.detail-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 13px;
}

.detail-card h3 {
  margin: 0;
  font-size: 18px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- FAQ (SEO) ---------- */

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item[open] {
  border-color: var(--sky-300);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--brand-950);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--sky-100);
  color: var(--brand-700);
  font-size: 19px;
  font-weight: 600;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item > div {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14px;
}

.faq-item > div p:last-child {
  margin-bottom: 0;
}

.offer-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.offer-item {
  display: flex;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.offer-item svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--brand-700);
}

.offer-item strong {
  display: block;
  font-size: 14px;
}

.offer-item span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- S3K page ---------- */

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 84px 0 96px;
}

.product-hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.6vw, 66px);
  letter-spacing: -0.055em;
}

.product-hero .lead {
  color: rgba(255, 255, 255, 0.84);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(239, 177, 63, 0.22);
}

.product-hero-media {
  position: relative;
}

.product-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--brand-700);
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-step h3 {
  font-size: 17px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.launch-note {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.launch-note h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.launch-note p {
  color: var(--muted);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.contact-card .quick-icon {
  flex: 0 0 auto;
}

.contact-card strong {
  display: block;
  font-size: 14px;
}

.contact-card a,
.contact-card span {
  color: var(--muted);
  font-size: 14px;
}

.contact-card a:hover {
  color: var(--brand-700);
}

.contact-form-wrap {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky-300);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 133, 173, 0.12);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--green-soft);
  color: #1d5a3b;
  font-size: 13px;
  font-weight: 600;
}

.form-status.visible {
  display: block;
}

.map-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(7, 45, 63, 0.72), rgba(7, 45, 63, 0.72)),
    url("../assets/img/hero-2.jpg") center / cover;
  color: #fff;
  text-align: center;
  padding: 30px;
}

@supports (background-image: image-set(url("../assets/img/hero-2.webp") type("image/webp"))) {
  .map-placeholder {
    background:
      linear-gradient(rgba(7, 45, 63, 0.72), rgba(7, 45, 63, 0.72)),
      image-set(url("../assets/img/hero-2.webp") type("image/webp"), url("../assets/img/hero-2.jpg") type("image/jpeg")) center / cover;
  }
}

.map-placeholder strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 6px;
}

.map-placeholder a {
  color: var(--sky-300);
  font-weight: 700;
}

/* ---------- Stopka ---------- */

.site-footer {
  margin-top: 40px;
  padding: 76px 0 0;
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 46px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  background: #fff;
}

.footer-brand p {
  max-width: 320px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 9px;
}

.footer-social a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.76);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brand-950);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.site-footer h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255,255, 0.1);
  font-size: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.64);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ---------- Animacje przy scrollu ---------- */

html.js .reveal {
  /* Content stays readable if main.js fails or the user never scrolls. */
  opacity: 1;
  transform: none;
}

html.js .reveal.in {
  animation: reveal-in 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes reveal-in {
  from { transform: translateY(14px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsywność ---------- */

@media (max-width: 1080px) {
  .services-grid,
  .pillars-grid,
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .offer-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .split,
  .s3k-grid,
  .product-hero,
  .launch-note,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .media-badge {
    right: 16px;
  }

  .product-hero-media {
    max-width: 640px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 76px 0;
  }

  .main-nav {
    position: fixed;
    z-index: 180;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(360px, 88vw);
    padding: 86px 22px 30px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(4, 28, 42, 0.2);
    transform: translateX(105%);
    transition: transform 260ms ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    min-height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  .main-nav .header-cta {
    margin: 14px 0 0;
  }

  .nav-overlay {
    position: fixed;
    z-index: 110;
    inset: 0;
    background: rgba(4, 28, 42, 0.46);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: var(--bg-deep);
    color: var(--brand-900);
    cursor: pointer;
  }

  .nav-close svg {
    width: 20px;
    height: 20px;
  }

  .hero-content {
    padding: 110px 0 100px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 11vw, 64px);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .s3k-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-name span {
    display: none;
  }

  .quick-services {
    margin-top: -36px;
  }

  .quick-grid,
  .services-grid,
  .pillars-grid,
  .detail-grid,
  .stats-grid,
  .offer-band,
  .gallery,
  .footer-grid,
  .form-grid,
  .features-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .gallery.wide figure:first-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .partners-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head h2,
  .hero-mini h1 {
    font-size: 34px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-proof {
    gap: 10px 22px;
    flex-direction: column;
  }

  .media-badge {
    position: static;
    margin-top: 16px;
    border-radius: 14px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
