/* ==========================================================================
   AutoGyro Poland — arkusz stylów
   Tożsamość wizualna AutoGyro (decyzja 2026-09-18): grafit, niebieski
   akcent #0072ce, szarości, systemowa Helvetica Neue (bez plików fontów).
   Szczegóły i uzasadnienia: design-system.md
   ========================================================================== */

:root {
  --ink: #2d2e33;          /* tekst, ciemne tła (AutoGyro) */
  --ink-deep: #1c1d21;     /* nagłówek, stopka */
  --ink-2: #54585a;        /* tekst drugorzędny */
  --muted: #6c6d74;
  --line: #e5e5e7;
  --line-2: #cacacf;
  --soft: #f4f4f6;         /* tło sekcji naprzemiennych */
  --white: #ffffff;
  --blue: #0072ce;         /* akcent AutoGyro */
  --blue-dark: #005aa3;
  --blue-light: #e8f1fb;
  --ok: #1e8e5a;
  --err: #c0392b;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --narrow: 820px;
  --radius: 4px;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(20, 21, 24, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
.narrow-left { max-width: var(--narrow); margin-bottom: 2rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: 32px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-lead { max-width: 680px; color: var(--ink-2); font-size: 1.1rem; margin-bottom: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .8em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; }
.note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }
.empty { color: var(--muted); font-style: italic; }
.more { font-weight: 700; font-size: .95rem; }
.small-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* --- przyciski ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.6em; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-small { padding: .55em 1.1em; font-size: .8rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* --- nagłówek ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(28, 29, 33, .92); color: var(--white);
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: transform .25s ease;
}
.site-header.hide { transform: translateY(-100%); }
body { padding-top: var(--header-h); }
body.page-home, body.page-model { padding-top: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 126px; height: auto; }
.mainnav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.nav-item { position: relative; }
.nav-top {
  display: block; background: none; border: 0; color: var(--white); font: inherit;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 26px 12px; cursor: pointer;
}
.nav-top:hover, .nav-item:focus-within > .nav-top, .nav-top[aria-current] { color: #7fbdf0; text-decoration: none; }
.has-sub > .nav-top::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 10px 0;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow); border-top: 3px solid var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item:hover > .sub, .nav-item:focus-within > .sub, .nav-item.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 20px; color: var(--ink); font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { background: var(--soft); color: var(--blue); text-decoration: none; }
.mega { left: 50%; transform: translate(-50%, 6px); width: min(720px, 92vw); padding: 22px 26px; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item.open > .mega { transform: translate(-50%, 0); }
.mega-overview { font-weight: 700; padding: 0 0 12px !important; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mega-overview:hover { background: none !important; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega-title { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega ul a { padding: 6px 0; }
.mega ul a:hover { background: none; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang { color: var(--white); font-weight: 700; font-size: .85rem; letter-spacing: .08em; border: 1px solid rgba(255,255,255,.4); padding: 5px 9px; border-radius: var(--radius); }
.lang:hover { background: var(--white); color: var(--ink); text-decoration: none; }
.ext { font-size: .85em; opacity: .7; }
.navtoggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white); content: ""; transition: transform .2s, top .2s; }
.bars { top: 21px; }
.bars::before { top: -7px; left: 0; }
.bars::after { top: 7px; left: 0; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { top: 0; transform: rotate(45deg); }
.menu-open .bars::after { top: 0; transform: rotate(-45deg); }
.mobilemenu { background: var(--ink-deep); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobilemenu > ul { list-style: none; margin: 0; padding: 8px 24px 24px; }
.mobilemenu li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobilemenu summary, .mobilemenu .mm-top { display: block; padding: 14px 0; color: var(--white); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; cursor: pointer; }
.mobilemenu details ul { list-style: none; padding: 0 0 10px 14px; margin: 0; }
.mobilemenu details li { border: 0; }
.mobilemenu details a { display: block; padding: 8px 0; color: #d5d6da; }

@media (max-width: 1080px) {
  .mainnav, .header-cta { display: none; }
  .navtoggle { display: block; }
  .header-inner { justify-content: space-between; }
}

/* --- ścieżka (okruszki) --------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.article-head .crumbs { padding: 0; }
.article-head .crumbs ol { padding: 0 0 24px; }

/* --- hero strony głównej ------------------------------------------------ */
.hero { position: relative; min-height: min(100vh, 880px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 10vh, 110px); max-width: var(--wrap); }
.hero .kicker { color: #9fd0ff; }
.hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 4rem); }
.hero .lead { max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- hero podstron -------------------------------------------------------- */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.page-hero.has-img { min-height: 420px; display: flex; align-items: flex-end; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,21,24,.82) 0%, rgba(20,21,24,.5) 50%, rgba(20,21,24,.15) 100%), linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%); }
.page-hero-inner { z-index: 2; }
.page-hero-inner { position: relative; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 720px; margin: 0; }
.page-hero .kicker { color: #9fd0ff; }
.page-hero.model-hero { min-height: min(88vh, 720px); padding-top: calc(var(--header-h) + 40px); }
.model-hero .lead { margin-bottom: 1.8rem; }

/* --- treść (Markdown) ---------------------------------------------------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: .4em 1.2em; border-left: 4px solid var(--blue); color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.figure { margin: 2em 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .6em; }
.intro .prose { font-size: 1.1rem; color: var(--ink-2); }

/* --- kafle zastosowań (strona główna) ----------------------------------- */
.use-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 2.5rem; }
.use-tile { position: relative; display: block; min-height: 420px; overflow: hidden; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.use-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.use-tile:hover img { transform: scale(1.04); }
.use-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 15%, rgba(15,16,19,.6) 50%, rgba(15,16,19,.9) 100%); }
.use-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; display: grid; gap: 6px; }
.use-tile-title { font-size: 1.7rem; font-weight: 700; }
.use-tile-text { color: #e6e7ea; }
.use-tile .more { color: #9fd0ff; }
.use-tile:hover { text-decoration: none; }

/* --- platformy / karty modeli ------------------------------------------- */
.platform-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card, .model-card { display: flex; flex-direction: column; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.platform-card:hover, .model-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.platform-img, .model-card-img { display: block; background: var(--white); aspect-ratio: 4 / 3; overflow: hidden; }
.platform-img img, .model-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.platform-name { font-size: 1.6rem; font-weight: 700; padding: 18px 24px 4px; }
.platform-text { padding: 0 24px 24px; color: var(--ink-2); }
.model-card-body { padding: 16px 22px 22px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.model-card-title { font-size: 1.25rem; font-weight: 700; }
.model-card-text { color: var(--ink-2); font-size: .95rem; }

/* --- karty wpisów -------------------------------------------------------- */
.item-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.item-card-link:hover { text-decoration: none; }
.item-card-link:hover .item-card-title { color: var(--blue); }
.item-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.item-card-img img { width: 100%; height: 100%; object-fit: cover; }
.item-card-body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.item-card time { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.item-card-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.item-card-text { color: var(--ink-2); font-size: .95rem; }

/* --- lista „dlaczego” ---------------------------------------------------- */
.why-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 48px; }
.why-list li { position: relative; padding-left: 36px; color: #dfe0e4; }
.why-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 10px; border-left: 3px solid #4aa3ea; border-bottom: 3px solid #4aa3ea; transform: rotate(-45deg); }

/* --- nagrody ------------------------------------------------------------- */
.award-logos { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 40px; }
.award-logos img { height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.award-logos img:hover { filter: none; opacity: 1; }

/* --- CTA ---------------------------------------------------------------- */
.cta-band { background: var(--blue); color: var(--white); padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 620px; color: #e5f1fb; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--white); color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--ink-deep); color: var(--white); }
.cta-band .btn-ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--blue); }

/* --- strona modelu ------------------------------------------------------- */
.model-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.features { background: var(--soft); padding: 28px 30px; border-radius: var(--radius); border-top: 4px solid var(--blue); }
.features h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .1em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: .97rem; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.table-scroll { overflow-x: auto; }
.model-poh { margin-top: 1rem; font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--ink); color: var(--white); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.spec-table tbody th { font-weight: 600; width: 42%; color: var(--ink-2); }
.spec-notes { font-size: .85rem; color: var(--muted); padding-left: 1.1em; margin: 1rem 0 0; }

/* --- galeria + podgląd ---------------------------------------------------- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 14, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: var(--white); font-size: 1.8rem; width: 52px; height: 52px; cursor: pointer; border-radius: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #bbb; font-size: .9rem; }

/* --- zastosowania profesjonalne ------------------------------------------ */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 2.5rem; }
.usecase { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.usecase-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.usecase-img img { width: 100%; height: 100%; object-fit: cover; }
.usecase h3 { padding: 20px 22px 0; }
.usecase p { padding: 0 22px 22px; margin: 0; color: var(--ink-2); font-size: .97rem; }

/* --- artykuł ------------------------------------------------------------- */
.article-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 8px; }
.article-head .meta { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-head .lead { color: var(--ink-2); }
.article-hero { margin: 24px auto 0; }
.article-hero img { width: 100%; border-radius: var(--radius); max-height: 640px; object-fit: cover; }
.pager { display: flex; justify-content: space-between; gap: 24px; padding: 24px 24px 56px; border-top: 1px solid var(--line); margin-top: 24px; flex-wrap: wrap; }
.pager a { font-weight: 700; max-width: 45%; }

/* --- wydarzenia ------------------------------------------------------------ */
.event-list { display: grid; gap: 24px; }
.event { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.event-date time { display: block; font-weight: 700; font-size: 1.1rem; }
.event-date span { color: var(--muted); font-size: .9rem; }
.event h2 { font-size: 1.5rem; }
.event h2 a { color: var(--ink); }
.event-img img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* --- kariera --------------------------------------------------------------- */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 26px; }
.role h2 { font-size: 1.35rem; }
.role h2 a { color: var(--ink); }

/* --- dokumenty ---------------------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.doc-cat { background: var(--white); padding: 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); }
.doc-cat h2 { font-size: 1.35rem; }
.doc-cat p { color: var(--ink-2); font-size: .97rem; }
.doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.doc-links a { font-weight: 600; }

/* --- kontakt ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-info h2 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 2rem; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.person { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--blue); }
.person-name { font-weight: 700; font-size: 1.1rem; }
.person-role { color: var(--muted); font-size: .92rem; }
.company-data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; font-size: .95rem; margin: 0; }
.company-data dt { font-weight: 700; color: var(--ink-2); }
.company-data dd { margin: 0; }
.company-data dt:first-child { grid-column: 1 / -1; color: var(--ink); }
.company-data dt:first-child + dd { grid-column: 1 / -1; margin-bottom: 8px; }

/* --- formularz ---------------------------------------------------------- */
.form { background: var(--soft); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); display: grid; gap: 16px; }
.form h2 { margin: 0; }
.form-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field.check input { width: 20px; height: 20px; margin-top: 2px; }
.field.check label { font-weight: 400; font-size: .9rem; }
.form-info { font-size: .85rem; color: var(--muted); margin: 0 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.form-msg.ok { background: #e3f4ea; color: var(--ok); }
.form-msg.err { background: #fbe7e5; color: var(--err); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 22px 18px; color: var(--ink-2); }

/* --- 404 ---------------------------------------------------------------- */
.notfound hr { border: 0; border-top: 1px solid var(--line); margin: 48px auto; max-width: 200px; }

/* --- stopka --------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: #b9bac0; font-size: .95rem; padding-top: 64px; }
.site-footer a { color: #d9dade; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-tag { color: var(--white); font-weight: 700; }
.footer-brand address { font-style: normal; line-height: 1.7; }
.footer-title { color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; }
.footer-member { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: inherit; font-size: .85rem; opacity: .85; }
.footer-member:hover { opacity: 1; text-decoration: none; }
.footer-member img { width: 40px; height: auto; margin: 0; }
.membership { display: flex; align-items: center; gap: 24px; }
.membership a { flex-shrink: 0; }
.membership img { width: 96px; height: auto; display: block; }
.membership p { margin: 0; }
@media (max-width: 560px) { .membership { flex-direction: column; align-items: flex-start; } }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: .82rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

/* --- responsywność ------------------------------------------------------- */
@media (max-width: 980px) {
  .platform-grid, .card-grid, .usecase-grid, .role-grid { grid-template-columns: repeat(2, 1fr); }
  .model-intro, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event { grid-template-columns: 1fr; gap: 10px; }
  .event-img { max-width: 480px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .platform-grid, .card-grid, .usecase-grid, .role-grid, .use-tiles, .why-list, .doc-grid { grid-template-columns: 1fr; }
  .use-tile { min-height: 340px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand img { width: 110px; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
  .spec-table tbody th { width: 46%; }
  .company-data { grid-template-columns: 1fr; }
  .company-data dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-video { display: none; }
}
