/* =========================================================
   Kleiber — Raport Wellbeing 4.0 · landing
   Źródło: Figma B1LD95AWRNbmzE78PY62xm, ramka 6027:2557 (landing_desktop_1440)
   Wartości desktop = 1:1 z projektu przy szer. 1440 px.
   ========================================================= */

/* ---------- Tokeny (zmienne Figmy) ---------- */
:root {
  --cream: #fffcef;
  --khaki: #dad5bf;
  --dark-khaki: #969283;
  --orange: #e85124;
  --black-100: #000;
  --black-95: rgba(0, 0, 0, .95);
  --black-30: rgba(0, 0, 0, .3);

  --font: "Kanit", "Helvetica Neue", Arial, sans-serif;
  --w-extralight: 200;
  --w-light: 300;
  --w-medium: 500;

  --page-max: 1440px;
  --gutter: 44px;                                  /* margines boczny 44 px */
  --section-gap: clamp(96px, 16.1vw, 232px);       /* odstęp między sekcjami: 232 px */

  /* skala typografii (desktop → mobile) */
  --fs-display: clamp(44px, 5vw, 72px);    /* 72/70  ExtraLight, UPPERCASE */
  --fs-h2: clamp(30px, 3.125vw, 45px);     /* 45/52  Light */
  --fs-subtitle: clamp(24px, 2.3vw, 33px); /* 33/40  ExtraLight */
  --fs-lead: clamp(20px, 1.74vw, 25px);    /* 25/32  ExtraLight */
  --fs-ui: 20px;                           /* 20/25  Light (Kleiber/UI 20) */
  --fs-body: 18px;                         /* 18/25  Light */
  --fs-small: 14px;                        /* 14/21 */
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--black-95);
  font-family: var(--font);
  font-weight: var(--w-light);
  font-size: var(--fs-body);
  line-height: 25px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: var(--w-medium); }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.partner :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }
.signup :focus-visible { outline-color: var(--black-100); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--black-100); color: var(--cream); padding: 8px 16px;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { margin-top: var(--section-gap); }
#tresc { overflow-x: clip; } /* mockup tabletów celowo wystaje poza swoją ramkę */

/* ---------- Typografia wspólna ---------- */
.eyebrow {                          /* 14/21 Medium, UPPERCASE, dark-khaki */
  font-size: var(--fs-small);
  line-height: 21px;
  font-weight: var(--w-medium);
  text-transform: uppercase;
  color: var(--dark-khaki);
  margin-bottom: 20px;              /* 41 − 21 */
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.1556;              /* 52/45 */
  font-weight: var(--w-light);
}
.prose p + p { margin-top: 25px; }  /* pusta linia akapitowa z projektu */

.br-desktop { display: none; }
@media (min-width: 1100px) { .br-desktop { display: inline; } }

/* ---------- Arrow link (komponent ArrowLink 6013:1051 / 6060:40) ---------- */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-ui); line-height: 25px; font-weight: var(--w-light);
  color: var(--black-95);
  white-space: nowrap;
}
.arrow-link img { width: 25px; height: 16px; transition: transform .2s ease; }
.arrow-link:hover img { transform: translateX(4px); }
.arrow-link--light { color: var(--cream); }

/* ---------- 01 Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 56px;
  position: relative;
}
.site-header__logo img { width: 134px; height: 25px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__list { display: flex; gap: 30px; }
.site-nav__list a {
  font-size: var(--fs-small); line-height: 21px;
}
.site-nav__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill-link {                       /* PrzyciskPanelArchitekta 6060:75 */
  display: inline-flex; align-items: center; justify-content: center;
  width: 153px; height: 35px;
  border: 1px solid var(--black-95); border-radius: 999px;
  font-size: var(--fs-small); line-height: 21px; text-transform: uppercase;
  margin-left: 16px;               /* 1194 − (1112 + ~52 + 30) */
  transition: background-color .2s, color .2s;
}
.pill-link:hover { background: var(--black-100); color: var(--cream); }
.nav-toggle { display: none; }

/* ---------- 02 Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 608px);
  column-gap: 40px;
  margin-top: 125px;               /* 216 − 91 */
  padding-right: calc(var(--gutter) + 95px); /* hero ma 1257 px szer. (1352 − 95) */
}
.hero__text { padding-top: 61px; }
.hero__title {
  font-size: var(--fs-display);
  line-height: .9722;              /* 70/72 */
  font-weight: var(--w-extralight);
  text-transform: uppercase;
}
.hero__subtitle {
  margin-top: 21px;
  font-size: var(--fs-subtitle); line-height: 1.212; font-weight: var(--w-extralight);
}
.hero__lead { margin-top: 42px; max-width: 433px; }
.hero__visual { display: flex; flex-direction: column; align-items: center; }
.hero__cta { margin-top: 29px; }   /* 494 − 465 */

/* ---------- Mockup (komponent „Mockup raportu — 3 tablety”) ----------
   Pozycje w % ramki 608×465, promienie i padding w cqw – skaluje się 1:1.
   Wersja w sekcji 09 to ta sama grafika w skali 0,82 (498,56×381,3). */
.mockup {
  position: relative;
  width: 100%;
  max-width: 608px;
  aspect-ratio: 608 / 465;
  container-type: inline-size;
}
.mockup--small { max-width: 498.56px; }
.mockup > * { position: absolute; }
.mockup__ground { max-width: none; }
.mockup__ground--front { left: 12.171%; top: 96.559%; width: 80.428%; height: 7.957%; }
.mockup__ground--left  { left: -13.322%; top: 69.892%; width: 50%; height: 7.097%; }
.mockup__ground--right { left: 65.954%; top: 90.968%; width: 50%; height: 7.097%; }
.tablet {
  background: var(--black-100);
  display: flex; overflow: hidden;
}
.tablet img { width: 100%; height: 100%; object-fit: cover; }
.tablet--back { width: 35.987%; height: 64.346%; padding: 1.4395cqw; border-radius: 3.149cqw; }
.tablet--back img { border-radius: 1.4395cqw; }
.tablet--left  { left: -3.618%; top: 8.172%; }
.tablet--right { left: 68.586%; top: 30.108%; }
.mockup__blur {
  width: 34.704%; height: 64.301%;
  border-radius: 4.934cqw;
  background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.42));
  filter: blur(2.96cqw);
}
.mockup__blur--right { left: 48.684%; top: 30.108%; }
.mockup__blur--left  { left: 16.612%; top: 8.172%; }
.tablet--front {
  left: 22.015%; top: 0;
  width: 55.921%; height: 99.989%;
  padding: 2.237cqw; border-radius: 4.893cqw;
}
.tablet--front img { border-radius: 2.237cqw; }

/* ---------- 03 O raporcie + formularz ---------- */
.about { margin-top: 99px; }        /* 834 − 735 */
.about__title { max-width: 1080px; }

.signup {
  margin-top: 93px;
  background: var(--orange);
  color: var(--black-100);
  padding: 72px 65px 72px 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  column-gap: 40px;
}
.signup__title { font-size: var(--fs-h2); line-height: 1.1556; font-weight: var(--w-light); }
.signup__text {
  margin-top: 34px;                 /* 448 − 310 − 104 */
  max-width: 420px;
  font-size: var(--fs-lead); line-height: 1.28; font-weight: var(--w-extralight);
}
.signup__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  align-content: start;
}
.field { position: relative; grid-column: 1 / -1; padding-top: 0; }
.field--half { grid-column: span 1; }
.field + .field:not(.field--half), .field--half + .field:not(.field--half) { margin-top: 33px; } /* 380 − 347 */
.field__input {
  width: 100%;
  border: 0; 
  border-bottom: 1px solid var(--black-100) !important;
  border-radius: 0;
  background: transparent;
  margin: 0 !important;
  padding: 0 0 12px;                /* linia 13 px pod tekstem 16/24 */
  height: 37px;
  font: var(--w-light) 16px/24px var(--font);
  color: var(--black-100);
  outline: none;
}
.field__input:focus { border-bottom-width: 2px; padding-bottom: 11px; }
.field__label {
  position: absolute; left: 0; top: 0;
  font-size: 16px; line-height: 24px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .15s ease, opacity .15s ease;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-20px) scale(.75);
  opacity: .7;
}
.field__error { margin-top: 6px; font-size: 13px; line-height: 18px; }
.field.is-invalid .field__input { border-bottom-width: 2px; }

.consent {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 23px 1fr; column-gap: 16px;
  margin-top: 41px;                 /* 458 − 417 */
}
.consent__input {
  appearance: none; -webkit-appearance: none;
  width: 23px; height: 23px; margin: 0;
  border: 1px solid var(--black-100); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.consent__input:checked { background: radial-gradient(circle, var(--black-100) 0 5.5px, transparent 6px); }
.consent__label { font-size: 13px; line-height: 18px; cursor: pointer; }
.consent__label a { text-decoration: underline; text-decoration-skip-ink: none; }
.consent__error { grid-column: 2; }

.signup__submit {
  grid-column: 1 / -1;
  margin-top: 40px;                 /* 552 − (458 + 54) */
  height: 57px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  border: 0; border-radius: 0;
  background: var(--black-100); color: var(--cream);
  font-size: var(--fs-body); line-height: 25px; font-weight: var(--w-light);
  cursor: pointer;
}
.signup__submit img { transition: transform .2s ease; }
.signup__submit:hover img { transform: translateX(4px); }
.signup__submit[disabled] { opacity: .6; cursor: progress; }
.signup__status { grid-column: 1 / -1; margin-top: 16px; font-size: 16px; line-height: 24px; }
.signup__status:empty { display: none; }

/* Split: zdjęcie 628 | 85 | tekst 638 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 628fr) minmax(0, 639fr);
  column-gap: 85px;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.about__more { margin-top: 110px; }   /* 791 − 681 */
.about__more .split__media { aspect-ratio: 628 / 637; }
.about__more .split__body { padding-top: 47px; }
.about__more .prose { margin-top: 89px; }   /* 240 − 47 − 104 */

/* ---------- 04 Czego się dowiesz ---------- */
.learn__head {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 547px);
  justify-content: space-between;
  column-gap: 40px;
}
.learn__intro { padding-top: 4px; }
.questions {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}
.question {
  background: var(--khaki);
  min-height: 260px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.question__no {
  font-size: 45px; line-height: 52px; font-weight: var(--w-extralight);
  color: var(--orange);
}
.question p { font-size: 20px; line-height: 28px; max-width: 381px; }

/* ---------- 05 Dla kogo ---------- */
.audience__title { max-width: 974px; }
.audience__list { margin-top: 96px; border-bottom: 1px solid var(--black-100); }
.audience__item {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  border-top: 1px solid var(--black-100);
  padding: 42px 0 44px;
}
.audience__no {
  padding-top: 18px;
  font-size: 25px; line-height: 40px; font-weight: var(--w-extralight);
  color: var(--black-30);
}
.audience__name {
  max-width: 1060px;
  font-size: var(--fs-h2); line-height: 40px; font-weight: var(--w-extralight);
}
.audience__desc { margin-top: 16px; max-width: 1018px; line-height: 20px; }

/* ---------- 06 Kleiber ---------- */
.split--kleiber .split__media { aspect-ratio: 628 / 844; }
.kleiber__body { padding-top: 79px; }
.kleiber__prose { margin-top: 37px; }
.kleiber__tagline {
  margin-top: 50px !important;      /* dwie puste linie w projekcie */
  font-size: 30px; line-height: 25px; text-transform: uppercase;
}

/* ---------- 07 Poznaj nasze kolekcje (Karuzela „Dryf” 6060:157) ----------
   Prototyp Figmy: przesunięcie o 1 kartę (286 + 20 = 306 px) co 4 s, linear, pętla.
   8 kart × 306 px = 2448 px → 32 s na pełny cykl. */
.collections__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.collections__head .arrow-link { margin-bottom: 0; transform: translateY(-2px); }
.marquee { position: relative; margin-top: 40px; overflow: hidden; }
.marquee__track {
  display: flex; gap: 20px; width: max-content;
  animation: dryf 32s linear infinite;
}
.marquee__track li { width: 286px; height: 380px; flex: none; }
.marquee__track img { width: 100%; height: 100%; object-fit: cover; }
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes dryf { to { transform: translateX(-2448px); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }
.marquee__toggle {
  position: absolute; right: var(--gutter); bottom: 12px;
  background: var(--cream); border: 0; padding: 4px 10px;
  font-size: 13px; line-height: 18px; cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
.marquee__toggle:focus-visible, .marquee:hover .marquee__toggle { opacity: 1; }
.collections { margin-top: var(--section-gap); }

/* ---------- 08 Partner raportu ---------- */
.partner { margin-top: 40px; background: var(--black-100); color: var(--cream); }
.partner__inner {
  display: grid;
  grid-template-columns: minmax(0, 555px) minmax(0, 665.5px);
  justify-content: space-between;
  column-gap: 40px;
  padding-block: 160px;
}
.partner__text { display: flex; flex-direction: column; }
.partner__prose { margin-top: 37px; }   /* 394 − 201 − 156 */
.partner__foot {
  margin-top: auto; padding-top: 40px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.partner__foot img[alt="Studio CUDO"] { width: 157px; height: 29px; }
.partner__media { display: grid; grid-template-columns: 1fr 1fr; gap: 19.5px; }
.partner__media img { width: 100%; aspect-ratio: 322.75 / 624; object-fit: cover; }

/* ---------- 09 Raport CTA ---------- */
.report-cta__inner {
  max-width: calc(1177.67px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 498.56px) minmax(0, 546.67px);
  justify-content: space-between;
  align-items: start;
  column-gap: 40px;
}
.report-cta__text { padding-top: 52px; }
.report-cta__sub {
  margin-top: 24px;
  font-size: var(--fs-lead); line-height: 1.28; font-weight: var(--w-extralight);
}
.report-cta__text .arrow-link { margin-top: 40px; }

/* ---------- 10 Porozmawiajmy ---------- */
.contact {
  margin-top: var(--section-gap);
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: var(--page-max); margin-inline: auto;
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.contact__body { background: var(--khaki); padding: 64px 50px 65px 80px; }
.contact__title { font-size: var(--fs-h2); line-height: 1.1556; font-weight: var(--w-extralight); }
.contact__lead { margin-top: 28px; max-width: 590px; }
.contact__list { margin-top: 36px; max-width: 590px; }
.contact__row {
  display: grid; grid-template-columns: 120px 1fr; align-items: baseline;
  border-top: 1px solid rgba(0,0,0,.2);
  padding: 17px 0 16px;
}
.contact__row:last-child { border-bottom: 1px solid rgba(0,0,0,.2); }
.contact__row dt { font-size: 14px; line-height: 21px; color: var(--dark-khaki); }
.contact__row dd { font-size: 25px; line-height: 36px; font-weight: var(--w-extralight); }
.contact__row a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 11 Stopka ---------- */
.site-footer { background: var(--black-100); color: var(--cream); }
.site-footer > .wrap { padding-top: 76px; padding-bottom: 45px; }
.site-footer__top {
  display: grid;
  grid-template-columns: 243px 262px 294.75px 1fr auto;
  align-items: start;
}
.footer-menu { display: flex; flex-direction: column; gap: 24px; }
.footer-menu a { font-size: 18px; line-height: 27px; text-transform: uppercase; }
.footer-menu a:hover, .footer-links a:hover, .legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-heading {
  font-size: 14px; line-height: 21px; font-weight: var(--w-medium);
  letter-spacing: .7px; text-transform: uppercase;
  padding-top: 2px;
}
.footer-links { margin-top: 16px; width: 192px; }
.footer-links li { border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 13px; }
.footer-links li + li { margin-top: 11px; }
.footer-links a { font-size: 18px; line-height: 27px; }
.site-footer address { margin-top: 22px; font-size: 16px; line-height: 22px; }
.site-footer__logo { width: 182px; height: 34px; margin-top: 9px; }
.site-footer__social {
  margin-top: 104px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.social { display: flex; gap: 32px; }
.social a { font-size: 20px; line-height: 30px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal {
  margin-top: 54px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.25);
  display: flex; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap;
  font-size: 14px; line-height: 21px;
}
.legal { display: flex; gap: 30px; flex-wrap: wrap; }

/* =========================================================
   Responsywność (w projekcie jest tylko desktop 1440 –
   poniższe zachowania to propozycja do akceptacji)
   ========================================================= */
@media (max-width: 1279px) {
  :root { --gutter: 32px; }
  .site-nav, .site-nav__list { gap: 20px; }
  .pill-link { margin-left: 0; }
  .hero { padding-right: var(--gutter); }
  .signup { padding: 56px 40px; }
  .split, .partner__inner { column-gap: 48px; }
  .site-footer__top { grid-template-columns: repeat(4, auto) 1fr; column-gap: 48px; }
  .site-footer__logo { justify-self: end; }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex; align-items: center; height: 35px; padding: 0 18px;
    border: 1px solid var(--black-95); border-radius: 999px; background: none;
    font-size: 14px; text-transform: uppercase; cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 10;
    flex-direction: column; align-items: flex-start; gap: 24px;
    background: var(--cream); padding: 32px var(--gutter);
    border-bottom: 1px solid var(--black-100);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 16px; }
  .site-nav__list a { font-size: 20px; line-height: 28px; }

  .hero { grid-template-columns: 1fr; row-gap: 56px; margin-top: 64px; }
  .hero__text { padding-top: 0; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }

  .signup { grid-template-columns: 1fr; row-gap: 48px; }
  .split, .partner__inner, .report-cta__inner, .learn__head { grid-template-columns: 1fr; row-gap: 40px; }
  .about__more .split__body, .kleiber__body { padding-top: 0; }
  .about__more .prose { margin-top: 32px; }
  .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .audience__item { grid-template-columns: 80px minmax(0, 1fr); }
  .audience__name { line-height: 1.1; }
  .partner__inner { padding-block: 96px; }
  .partner__foot { margin-top: 48px; padding-top: 0; }
  .report-cta__inner { justify-items: center; }
  .report-cta__text { padding-top: 0; justify-self: stretch; }
  .contact { grid-template-columns: 1fr; }
  .contact__media { aspect-ratio: 16 / 10; }
  .contact__body { padding: 48px var(--gutter); }
  .site-footer__top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .site-footer__logo { grid-column: 1 / -1; justify-self: start; order: -1; }
  .site-footer__social { margin-top: 64px; flex-wrap: wrap; }
}

@media (max-width: 767px) {
    .hero{margin-top: 0px;}
    .about {margin-top: 50px;}
    .signup {margin-top: 20px;}
    .about__more {margin-top: 50px;}
    .about__more .prose {margin-top: 0;}
    .section {margin-top: 50px;}
    .learn__head{row-gap:0;margin-bottom: 30px;}
    .audience__list {margin-top: 40px;}
    .kleiber__prose {margin-top: 0;}
    .collections__head {display: block;}
    .partner__inner {padding-block: 40px;}
    .partner__prose {margin-top: 0;}
    .contact {margin-top: 40px;}
}
@media (max-width: 639px) {
  :root { --gutter: 20px; --fs-body: 17px; }
  .site-header { padding-top: 24px; }
  .signup { padding: 40px 24px; }
  .signup__form { grid-template-columns: 1fr; }
  .field--half + .field--half { margin-top: 33px; }
  .questions { grid-template-columns: 1fr; }
  .question { min-height: 200px; }
  .audience__item { grid-template-columns: 1fr; padding: 28px 0; }
  .audience__no { padding-top: 0; margin-bottom: 8px; }
  .partner__media { gap: 12px; }
  .mockup { width: 80%; margin-inline: auto; }
  .partner__foot { flex-direction: column; align-items: flex-start; }
  .marquee__track li { width: 220px; height: 292px; }
  @keyframes dryf { to { transform: translateX(-1920px); } } /* 8 × (220 + 20) */
  .contact__row { grid-template-columns: 1fr; }
  .contact__row dd { font-size: 22px; }
  .site-footer__top { grid-template-columns: 1fr; }
  .social { gap: 20px; flex-wrap: wrap; }
  .site-footer__legal { flex-direction: column; }
}
