:root {
  --ink: #111111;
  --muted: #5f6461;
  --line: #dedede;
  --white: #ffffff;
  --forest: #17483d;
  --forest-dark: #111111;
  /* Bursztyn marki. Czytelny na ciemnych powierzchniach (7,1:1 na #111111). */
  --amber: #c9913d;
  /* Ten sam akcent przyciemniony do uzytku na bialym tle (5,2:1). */
  --amber-ink: #8f6420;
  --soft: #ffffff;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(17, 17, 17, 0.14);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  color: var(--white);
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 850;
}

.brand-line {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 86vh;
  padding: clamp(64px, 8vw, 112px) var(--gutter);
  color: var(--white);
  background:
    var(--forest-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.9) 38%, rgba(17, 17, 17, 0.48) 70%, rgba(17, 17, 17, 0.78) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.78)),
    url("assets/retail-media-hero-simple.jpg") center right / cover no-repeat;
  filter: grayscale(1);
}

.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: min(760px, 100%);
}

.hero h1,
.section h2,
.focus-card h3 {
  margin: 0;
  font-weight: 820;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.section h2 {
  line-height: 1.06;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.03;
}

.nowrap {
  white-space: nowrap;
}

.lead {
  margin: 28px 0 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 23px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Na ciemnym tle wraca pelny bursztyn marki. */
.hero .eyebrow,
.contact-panel .section-kicker {
  color: var(--amber);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  color: var(--forest-dark);
  background: var(--amber);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.section-image figcaption {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section h2 {
  font-size: clamp(34px, 4.6vw, 58px);
}

.section {
  padding: clamp(44px, 6vw, 76px) var(--gutter);
  scroll-margin-top: 82px;
}

.section-heading,
.split-cards,
.buying-grid,
.network-map,
.experience,
.contact-panel {
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading.compact {
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.section-heading.compact h2 {
  max-width: 920px;
}

.section-heading.compact p:not(.section-kicker) {
  max-width: 760px;
}

.section-heading p:not(.section-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.focus-card {
  min-height: 470px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.focus-card-dark {
  color: var(--white);
  background: var(--forest-dark);
  border-color: var(--forest-dark);
}

.card-label {
  display: block;
  max-width: 360px;
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.focus-card-dark .card-label {
  color: var(--amber);
}

.focus-card h3 {
  max-width: 560px;
  margin: 34px 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
}

.focus-card p,
.buying-grid p,
.experience-copy p:not(.section-kicker),
.contact-panel p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.focus-card-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.focus-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.focus-card li {
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Musi stac po .focus-card li, inaczej muted wygrywa przy rownej specyficznosci. */
.focus-card-dark li {
  color: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.16);
}

.questions {
  background: var(--white);
}

.question-grid {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.question-grid article {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.question-grid article:nth-child(odd) {
  color: var(--white);
  background: var(--forest-dark);
  border-color: var(--forest-dark);
}

.question-grid h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  text-wrap: balance;
}

.question-grid article:nth-child(odd) h3 {
  color: var(--white);
}

.question-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-grid li {
  padding: 0 0 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.question-grid article:nth-child(odd) li {
  color: rgba(255, 255, 255, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.question-grid li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.buying {
  background: var(--white);
}

.buying-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.section-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--forest-dark);
}

.section-image img,
.section-image svg {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.network-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.network-map div {
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.network-map div:nth-child(odd) {
  color: var(--white);
  background: var(--forest-dark);
  border-color: var(--forest-dark);
}

.network-map strong {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-ink);
  font-size: 20px;
}

.network-map div:nth-child(odd) strong {
  color: var(--amber);
}

.network-map span {
  color: var(--muted);
}

.network-map div:nth-child(odd) span {
  color: rgba(255, 255, 255, 0.74);
}

.note {
  width: min(var(--container), 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.experience {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  padding-right: 0;
  padding-left: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.experience-tags span {
  padding: 12px 14px;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
}

.contact {
  padding-top: 24px;
}

.contact-panel {
  padding: clamp(32px, 6vw, 68px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(201, 145, 61, 0.18), transparent 38%),
    var(--forest-dark);
  border-radius: var(--radius);
}

.contact-panel h2 {
  max-width: 960px;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--gutter);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .split-cards,
  .buying-grid,
  .experience {
    grid-template-columns: 1fr;
  }

  .experience-tags {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  /* Zawijanie zamiast scrolla w bok - inaczej "Kontakt" wypada poza ekran. */
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 20px;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .network-map,
  .question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .section h2 {
    font-size: clamp(34px, 6.8vw, 48px);
    line-height: 1.08;
  }

  .focus-card {
    padding: clamp(24px, 5vw, 34px);
  }

  .focus-card h3 {
    margin-top: 28px;
    font-size: clamp(28px, 5.4vw, 38px);
    line-height: 1.15;
  }

  .question-grid h3 {
    font-size: clamp(26px, 5.2vw, 34px);
    line-height: 1.14;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
  }

  .section {
    scroll-margin-top: 0;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 44px);
    line-height: 1.05;
  }

  .nowrap {
    white-space: normal;
  }

  .hero {
    min-height: 78vh;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.92) 56%, rgba(17, 17, 17, 0.66) 100%),
      linear-gradient(180deg, rgba(17, 17, 17, 0.16), rgba(17, 17, 17, 0.82)),
      url("assets/retail-media-hero-simple.jpg") center right / cover no-repeat;
  }

  .section h2 {
    font-size: clamp(31px, 9.5vw, 38px);
    line-height: 1.1;
  }

  .focus-card h3 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.16;
  }

  .lead,
  .focus-card p,
  .buying-grid p,
  .experience-copy p:not(.section-kicker),
  .contact-panel p {
    font-size: 17px;
  }

  .focus-card {
    min-height: auto;
  }

  .network-map,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
