:root {
  --ink: #101722;
  --navy: #111827;
  --navy-soft: #1b2637;
  --ruby: #a71930;
  --ruby-dark: #791021;
  --cream: #f4ead8;
  --paper: #f7f3ec;
  --white: #fffdf8;
  --muted: #697180;
  --line: rgba(16, 23, 34, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--white); padding: .75rem 1rem; color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 2rem;
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; color: var(--white); background: var(--ruby); border: 1px solid rgba(255,255,255,.42); font-size: .7rem; letter-spacing: .04em; transform: rotate(-3deg); }
nav { display: flex; align-items: center; gap: 1.8rem; font-size: .84rem; }
nav a { text-decoration: none; opacity: .84; }
nav a:hover, nav a:focus-visible { opacity: 1; }
.nav-cta { border: 1px solid rgba(255,255,255,.55); padding: .7rem 1rem; }

.hero { position: relative; min-height: 820px; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-image { position: absolute; inset: 0; background: url("assets/hero-kurier-prezentowy.webp") center/cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,15,27,.98) 0%, rgba(8,15,27,.86) 39%, rgba(8,15,27,.25) 72%, rgba(8,15,27,.28) 100%), linear-gradient(0deg, rgba(8,15,27,.72), transparent 40%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 5rem; align-items: center; max-width: var(--max); min-height: 820px; margin: 0 auto; padding: 8.5rem 2rem 5rem; }
.hero-copy { max-width: 760px; }
.eyebrow, .section-number { margin: 0 0 1.3rem; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--cream); }
.eyebrow span { display: inline-block; width: 2.5rem; height: 1px; background: var(--ruby); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 500; line-height: .93; letter-spacing: -.065em; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; }
h1 em { color: var(--cream); }
.hero-lead { max-width: 635px; margin-bottom: 2rem; color: rgba(255,255,255,.75); font-size: 1.08rem; line-height: 1.75; }
.hero-lead strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 3.4rem; padding: .8rem 1.35rem; border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: .85rem; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ruby); }
.button-primary:hover { background: #c0223e; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); }

.domain-ticket { align-self: end; margin-bottom: 4.2rem; padding: 1.2rem; color: var(--ink); background: rgba(244,234,216,.94); box-shadow: 0 28px 65px rgba(0,0,0,.32); transform: rotate(1.5deg); backdrop-filter: blur(12px); }
.ticket-top, .ticket-meta { display: flex; justify-content: space-between; gap: .75rem; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.ticket-top { padding-bottom: .85rem; border-bottom: 1px dashed rgba(16,23,34,.3); }
.ticket-top span:first-child { color: var(--ruby); }
.ticket-label { margin: 1.1rem 0 .3rem; font-size: .6rem; font-weight: 800; letter-spacing: .2em; }
.ticket-domain { margin-bottom: 1rem; font-size: clamp(2.35rem, 4.2vw, 4.1rem); font-weight: 800; line-height: .78; letter-spacing: -.07em; }
.ticket-domain span { color: var(--ruby); font-family: var(--serif); font-weight: 400; }
.ticket-route { display: flex; align-items: center; margin: 1.3rem 0; }
.ticket-route span { width: .65rem; height: .65rem; border: 2px solid var(--ruby); border-radius: 50%; }
.ticket-route span:last-child { background: var(--ruby); }
.ticket-route i { flex: 1; height: 1px; border-top: 1px dashed rgba(16,23,34,.4); }
.ticket-meta { padding-top: .9rem; border-top: 1px dashed rgba(16,23,34,.3); color: #59606a; letter-spacing: .05em; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.8rem; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); text-decoration: none; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 2rem; background: linear-gradient(var(--white), transparent); }

.signal-strip { overflow: hidden; color: var(--cream); background: var(--ruby); transform: rotate(-.7deg) scale(1.02); transform-origin: center; }
.signal-track { display: flex; width: max-content; padding: .72rem 0; animation: marquee 28s linear infinite; }
.signal-track span, .signal-track i { padding: 0 1.1rem; font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { max-width: var(--max); margin: 0 auto; padding: 9rem 2rem; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr .9fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.section-number { color: var(--ruby); }
.section-heading h2, .story-copy h2, .contact h2 { margin-bottom: 0; font-size: clamp(2.75rem, 5vw, 5.25rem); font-weight: 500; line-height: .97; letter-spacing: -.055em; }
.section-heading > p:last-child { margin-bottom: .35rem; color: var(--muted); }
.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.use-card { position: relative; min-height: 380px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.use-card.featured { color: var(--white); background: var(--navy); transform: translateY(-1.3rem); box-shadow: 0 24px 50px rgba(16,23,34,.14); }
.card-index { color: var(--muted); font-size: .7rem; font-weight: 700; }
.card-icon { margin: 4rem 0 2rem; color: var(--ruby); font-family: var(--serif); font-size: 3rem; line-height: 1; }
.use-card h3 { margin-bottom: .9rem; font-size: 1.55rem; line-height: 1.15; }
.use-card p { color: var(--muted); }
.use-card.featured p { color: rgba(255,255,255,.65); }
.card-tag { position: absolute; left: 2rem; bottom: 1.8rem; color: var(--ruby); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }

.brand-story { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(420px, 1.15fr); min-height: 780px; color: var(--white); background: var(--navy); }
.story-image { position: relative; min-height: 680px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.image-caption { position: absolute; left: 1.5rem; bottom: 1.5rem; padding: .65rem .8rem; color: var(--white); background: rgba(16,23,34,.82); font-size: .65rem; font-weight: 800; letter-spacing: .15em; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem); }
.story-copy h2 { margin-bottom: 2rem; }
.story-copy > p:not(.section-number) { max-width: 640px; color: rgba(255,255,255,.66); font-size: 1.08rem; }
.benefit-list { max-width: 680px; margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.benefit-list li { display: flex; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.benefit-list span { color: var(--ruby); font-size: .72rem; font-weight: 800; }

.section-heading.compact { grid-template-columns: .55fr 1.45fr; }
.model-list { border-top: 1px solid var(--line); }
.model-row { display: grid; grid-template-columns: .16fr 1fr auto; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.model-no { color: var(--ruby); font-size: .72rem; font-weight: 800; }
.model-row h3 { margin-bottom: .25rem; font-size: 1.5rem; }
.model-row p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.model-badge { padding: .5rem .7rem; border: 1px solid var(--line); font-size: .63rem; font-weight: 800; letter-spacing: .12em; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7rem; padding: 8rem max(2rem, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--ruby-dark); }
.section-number.light { color: #e8b7bf; }
.contact h2 em { color: var(--cream); }
.contact-intro > p:not(.section-number) { max-width: 540px; margin-top: 1.7rem; color: rgba(255,255,255,.68); }
.direct-contact { margin-top: 3rem; }
.direct-contact > span { display: block; margin-bottom: .4rem; color: #e8b7bf; font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.direct-contact a { font-size: clamp(1.15rem, 2vw, 1.6rem); text-underline-offset: .2em; }
.copy-email { margin-left: .8rem; padding: .4rem .6rem; border: 1px solid rgba(255,255,255,.3); color: var(--white); background: transparent; font-size: .64rem; cursor: pointer; }
.contact-form { padding: 2.2rem; color: var(--ink); background: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; margin-bottom: 1.05rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea { display: block; width: 100%; margin-top: .4rem; border: 0; border-bottom: 1px solid #b8b5af; border-radius: 0; color: var(--ink); background: transparent; outline: none; }
input, select { min-height: 2.65rem; }
textarea { min-height: 7.5rem; padding-top: .6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ruby); box-shadow: 0 1px 0 var(--ruby); }
.consent { display: flex !important; gap: .7rem; align-items: flex-start; margin: 1.1rem 0 1.5rem !important; font-weight: 500 !important; letter-spacing: 0 !important; line-height: 1.45; text-transform: none !important; }
.consent input { flex: 0 0 1rem; width: 1rem; min-height: 0; margin: .18rem 0 0; accent-color: var(--ruby); }
.form-submit { width: 100%; border: 0; }
.form-note { margin: .75rem 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2rem max(2rem, calc((100vw - var(--max)) / 2)); color: rgba(255,255,255,.62); background: #090e16; font-size: .72rem; }
footer p { margin: 0; }
.footer-brand { color: var(--white); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 980px) {
  .hero, .hero-grid { min-height: 760px; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 8rem; }
  .hero-copy { max-width: 720px; }
  .domain-ticket { display: none; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .brand-story { grid-template-columns: .8fr 1.2fr; }
  .story-copy { padding: 4rem 3rem; }
  .contact { gap: 3rem; }
  footer { grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { display: none; }
}

@media (max-width: 740px) {
  .site-header { padding: 1.2rem; }
  nav a:not(.nav-cta) { display: none; }
  .brand { font-size: .82rem; }
  .hero { min-height: 720px; }
  .hero-grid { min-height: 720px; padding: 7.2rem 1.2rem 4rem; }
  .hero-image { background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,15,27,.94), rgba(8,15,27,.58)), linear-gradient(0deg, rgba(8,15,27,.88), transparent 60%); }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .hero-lead { font-size: 1rem; }
  .scroll-cue { display: none; }
  .section { padding: 6rem 1.2rem; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: .7rem; }
  .section-heading > p:last-child { grid-column: auto; }
  .use-cases { grid-template-columns: 1fr; }
  .use-card { min-height: 320px; }
  .use-card.featured { transform: none; }
  .brand-story { grid-template-columns: 1fr; }
  .story-image { min-height: 560px; }
  .story-copy { padding: 5rem 1.2rem; }
  .model-row { grid-template-columns: auto 1fr; gap: 1rem; }
  .model-badge { grid-column: 2; justify-self: start; }
  .contact { grid-template-columns: 1fr; gap: 3rem; padding: 6rem 1.2rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.4rem; }
  .copy-email { display: block; margin: .8rem 0 0; }
  footer { grid-template-columns: 1fr; padding: 2rem 1.2rem; }
}

@media (max-width: 420px) {
  .nav-cta { padding: .55rem .65rem; font-size: .72rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .ticket-meta { flex-direction: column; }
}
