/* Rhino Global Trading & Properties
   Mobile first: style bazowe dla 390 px, wyżej tylko min-width (600 / 900 / 1000 / 1200). */

/* Fonty z własnego serwera (bez Google Fonts), pliki zmienne: jeden plik na kilka grubości */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --cream: #F8F6F1;
  --sand: #EDE9E1;
  --white: #FFFFFF;
  --ink: #1C1B19;
  --ink-soft: rgba(28, 27, 25, .76);
  --gold: #BFA46A;        /* kreski, ramki, napisy na graficie */
  --gold-ink: #7D6230;    /* drobne złote napisy na jasnym tle (kontrast AA) */
  --graphite: #1E1F22;
  --on-dark: #F3F1EC;
  --on-dark-soft: rgba(243, 241, 236, .72);
  --line: rgba(191, 164, 106, .45);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: 20px;
  --max: 1260px;
  --header-h: 72px;
  --section-y: 76px;
  --frame: 14px;          /* przesunięcie złotej ramki za zdjęciem */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--graphite); color: var(--on-dark); padding: 10px 16px; z-index: 1000;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* ---------- Typografia ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: 46px; line-height: 1.02; }
h2 { font-size: 36px; line-height: 1.08; }
h3 { font-size: 27px; line-height: 1.15; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.label {
  display: block;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Numerowana etykieta sekcji: numer, cienka złota linia (element CSS), nazwa */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow__num {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  color: var(--gold-ink);
}
.eyebrow__num::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: var(--gold);
}

.lead { font-size: 16px; }

/* ---------- Przyciski i linki ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--gold); color: var(--graphite); }

.more {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.more::after { content: " \2192"; }
.more:hover, a:hover > .more, a:hover .more { border-color: var(--gold); }
.more--light { color: var(--on-dark); }

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand__name { font-family: var(--serif); font-size: 27px; letter-spacing: -0.01em; }
.brand__sub {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menu na telefonie: panel pod paskiem, obszary jako wcięta lista */
.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(28, 27, 25, .08);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav-open .nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s ease, transform .25s ease;
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 14px var(--gutter) 28px;
}
.nav__list > li { border-bottom: 1px solid rgba(191, 164, 106, .22); }
.nav__list > li.nav__cta { border: 0; }
.nav__link {
  display: block;
  padding: 15px 0;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav__link[aria-current="page"], .is-current > .nav__link { color: var(--gold-ink); }
.nav__sub {
  list-style: none;
  margin: -4px 0 14px;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--gold);
}
.nav__sublink {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav__sublink[aria-current="page"] { color: var(--gold-ink); }
.nav__cta { margin-top: 22px; }
.nav__cta .btn { width: 100%; }

/* ---------- Hero (strona główna) i banery podstron ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 140px) 0 64px;
  overflow: hidden;
  background: var(--cream);
}

/* Telefon: zdjęcie zajmuje górę i samo rozpuszcza się w krem (maska z wieloma krokami,
   bez nakładki, więc nie ma szwu ani szarego pasa). */
.hero__media {
  position: absolute;
  inset: 0 0 auto 0;
  height: 62%;
  background-image: var(--photo-mobile, var(--photo));
  background-size: cover;
  background-position: var(--pos-mobile, 50% 100%);
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%, #000 30%,
    rgba(0, 0, 0, .92) 40%, rgba(0, 0, 0, .74) 50%, rgba(0, 0, 0, .5) 60%,
    rgba(0, 0, 0, .27) 69%, rgba(0, 0, 0, .1) 77%, rgba(0, 0, 0, .02) 85%, transparent 90%);
          mask-image: linear-gradient(180deg,
    #000 0%, #000 30%,
    rgba(0, 0, 0, .92) 40%, rgba(0, 0, 0, .74) 50%, rgba(0, 0, 0, .5) 60%,
    rgba(0, 0, 0, .27) 69%, rgba(0, 0, 0, .1) 77%, rgba(0, 0, 0, .02) 85%, transparent 90%);
}
.intro .hero__media { animation: hero-photo 1.2s cubic-bezier(.2, .6, .2, 1) backwards; }

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}
.intro .hero__content > * { animation: hero-text .7s ease-out backwards; }
.intro .hero__content > :nth-child(2) { animation-delay: .08s; }
.intro .hero__content > :nth-child(3) { animation-delay: .16s; }
.intro .hero__content > :nth-child(4) { animation-delay: .24s; }

.hero h1 { margin-bottom: 22px; }
.hero p { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero .btn { margin-top: 18px; width: 100%; }

.hero--page {
  min-height: 480px;
  padding: calc(var(--header-h) + 210px) 0 44px;
}
.hero--page .hero__media { height: 66%; }
.hero--page h1 { margin-bottom: 0; }
.hero--page p { margin-top: 16px; }

@keyframes hero-photo {
  from { transform: scale(1.03); opacity: .75; }
  to   { transform: none; opacity: 1; }
}
@keyframes hero-text {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Płynne przejście między podstronami (Chrome 126+, Safari 18.2+; starsze po prostu przeładują stronę).
   Nagłówek stoi w miejscu, reszta strony przenika się. */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }

/* ---------- Sekcje ---------- */

.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }
.section--dark .eyebrow, .section--dark .eyebrow__num, .section--dark .label { color: var(--gold); }

.section__head { margin-bottom: 40px; }
.section__head h2 { max-width: 640px; }
.section__head--split { display: grid; gap: 20px; }
.section__head--split > p { max-width: 520px; }

.split { display: grid; gap: 28px; }
.narrow { max-width: 760px; margin: 0 auto; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Zdjęcia */
.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--sand);
}
picture { display: block; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--portrait { aspect-ratio: 3 / 2; }

/* Złota ramka przesunięta za zdjęciem */
.frame {
  position: relative;
  isolation: isolate;
  margin: 0 var(--frame) var(--frame) 0;
}
.frame::before {
  content: "";
  position: absolute;
  inset: var(--frame) calc(-1 * var(--frame)) calc(-1 * var(--frame)) var(--frame);
  border: 1px solid var(--gold);
  z-index: -1;
}
.frame--left { margin: 0 0 var(--frame) var(--frame); }
.frame--left::before { inset: var(--frame) var(--frame) calc(-1 * var(--frame)) calc(-1 * var(--frame)); }

/* ---------- Pas faktów ---------- */

.facts { padding: 8px 0 0; }
.facts__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 22px 16px;
}
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.fact dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

/* ---------- Karty obszarów (pionowe kadry) ---------- */

.area-cards { display: grid; gap: 44px; }
.area-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.area-card__media { position: relative; display: block; overflow: hidden; margin-bottom: 22px; }
.area-card__media .photo--tall { aspect-ratio: 4 / 3; }
.area-card__media .photo { transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.area-card:hover .area-card__media .photo { transform: scale(1.04); }
.area-card__media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  pointer-events: none;
}
.area-card__num { font-family: var(--serif); font-size: 20px; color: var(--gold-ink); }
.area-card__title { font-family: var(--serif); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 2px 0 10px; }
.area-card__text { color: var(--ink-soft); margin-bottom: 14px; }
.area-card .more { align-self: flex-start; }

/* ---------- Pas z hasłem ---------- */

.statement {
  background: var(--graphite);
  color: var(--on-dark);
  padding: 84px 0;
  text-align: center;
}
.statement__rule { display: block; width: 1px; height: 56px; margin: 0 auto; background: var(--gold); }
.statement__text {
  margin: 34px 0 14px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.statement__sub { color: var(--on-dark-soft); max-width: 460px; margin: 0 auto 18px; }
.statement .more { margin-bottom: 34px; }
.statement .more::after { color: var(--gold); }

/* ---------- Kim jesteśmy + założyciel ---------- */

.who { display: grid; gap: 48px; }
.who__text h2 { margin-bottom: 22px; }

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 36px;
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
}
.founder__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--gold-ink);
}
.founder .label { margin-bottom: 4px; }
.founder__name { font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--ink); margin-bottom: 10px; }

/* ---------- Wybrane projekty ---------- */

.showcase { display: grid; gap: 36px; }
.showcase__main { display: block; text-decoration: none; color: inherit; position: relative; }
.showcase__caption {
  display: block;
  position: relative;
  margin: -36px 16px 0;
  padding: 24px 22px;
  background: var(--cream);
  border-top: 2px solid var(--gold);
}
.section--white .showcase__caption { background: var(--cream); }
.section:not(.section--white) .showcase__caption { background: var(--white); }
.showcase__title { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 8px; }
.showcase__text { display: block; color: var(--ink-soft); }
.showcase__side { display: grid; gap: 24px; }
.project-small {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.project-small .label { margin-bottom: 6px; }
.project-small__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }

/* ---------- Insights ---------- */

.articles { display: grid; gap: 40px; }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.article-card__body { display: flex; flex-direction: column; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--gold); }
.article-card__body .label { margin-bottom: 8px; }
.article-card__title { font-family: var(--serif); font-size: 27px; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 8px; }
.article-card__teaser { color: var(--ink-soft); margin-bottom: 12px; }
.article-card .more { align-self: flex-start; }

/* ---------- O nas ---------- */

.quote {
  margin: 8px 0 44px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-dark) !important;
}
.points { display: grid; gap: 32px; }
.point { padding-top: 22px; border-top: 1px solid rgba(191, 164, 106, .4); }
.point__num { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold); margin-bottom: 6px; }
.point h3 { font-size: 25px; margin-bottom: 10px; }

.regions { list-style: none; margin: 0; padding: 0; }
.regions li { padding: 20px 0; border-top: 1px solid var(--line); }
.regions li:last-child { border-bottom: 1px solid var(--line); }
.regions h3 { font-size: 24px; margin-bottom: 4px; }
.regions p { font-size: 14px; }

/* ---------- Co robimy (zygzak) ---------- */

.zig { display: grid; gap: 36px; margin-top: 64px; }
.zig h2 { margin-bottom: 16px; }
.ticks { list-style: none; margin: 20px 0 24px; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 32px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Strony obszarów ---------- */

.overview { display: grid; gap: 28px; }
.overview__lead { font-family: var(--serif); font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.covers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.covers li { padding: 24px 0; border-top: 1px solid var(--line); }
.covers li:last-child { border-bottom: 1px solid var(--line); }
.covers__num { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-ink); margin-bottom: 6px; }
.covers h3 { font-size: 26px; margin-bottom: 6px; }
.showcase__main--solo .photo { aspect-ratio: 16 / 10; }

/* ---------- Projekty ---------- */

.projects { display: grid; gap: 72px; }
.project-row { display: grid; gap: 28px; }
.project-row h2 { margin-bottom: 14px; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; border-top: 1px solid var(--line); }
.meta div { padding: 14px 10px 0 0; }
.meta dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.meta dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); }

/* ---------- Ramka kontaktu ---------- */

.cta-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(191, 164, 106, .45);
  outline-offset: -10px;
  background: var(--cream);
}
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { max-width: 520px; margin: 0 auto 18px; }
.cta-box__phone {
  display: block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 30px;
  text-decoration: none;
  color: var(--ink);
}
.cta-box__phone:hover { color: var(--gold-ink); }

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

.contact-grid { display: grid; gap: 48px; }
.contact-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 1px solid var(--line); }
.contact-item .label { margin-bottom: 8px; }
.contact-phone { font-family: var(--serif); font-size: 34px; line-height: 1.1; text-decoration: none; color: var(--ink); }
.contact-phone:hover { color: var(--gold-ink); }
.contact-mail { font-family: var(--serif); font-size: 26px; line-height: 1.2; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--gold-ink); }
.contact-place { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); margin: 0; }
.contact-note { font-size: 13px; margin-top: 4px; }
.btn--wa { width: 100%; }

/* ---------- Artykuł ---------- */

.article { max-width: 720px; }
.article .article__lead { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--ink); margin-bottom: 28px; }
.article__lead + p::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 66px;
  line-height: .82;
  padding: 6px 10px 0 0;
  color: var(--gold-ink);
}
.article h2 { font-size: 30px; margin: 40px 0 12px; }
.article p { font-size: 16px; }
.not-found .ticks a { color: var(--ink); }
.not-found .btn { margin-top: 12px; }
.article__back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal .article__lead + p::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.legal a { color: var(--gold-ink); }

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

.footer {
  background: var(--graphite);
  color: var(--on-dark);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(191, 164, 106, .35);
}
.footer a { text-decoration: none; color: var(--on-dark-soft); }
.footer a:hover { color: var(--on-dark); }
.footer .brand { color: var(--on-dark); }
.footer .brand__sub { color: var(--gold); }
.footer__tag { margin-top: 18px; font-size: 14px; color: var(--on-dark-soft); }
.footer__grid { display: grid; gap: 36px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.footer__col h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: 0 0 9px; font-size: 14px; line-height: 1.45; color: var(--on-dark-soft); }
.footer__contact { grid-column: 1 / -1; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 241, 236, .14);
  font-size: 12px;
  color: rgba(243, 241, 236, .55);
}

/* ================= Większe ekrany ================= */

@media (min-width: 600px) {
  :root { --frame: 18px; }
  .hero .btn, .btn--wa { width: auto; }
  .area-cards { grid-template-columns: 1fr 1fr; gap: 32px; }
  .area-card__media .photo--tall { aspect-ratio: 4 / 5; }
  .articles { grid-template-columns: 1fr 1fr; gap: 32px; }
  .photo--portrait { aspect-ratio: 4 / 5; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__contact { grid-column: auto; }
  .covers { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .covers li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cta-box { padding: 72px 48px; }
}

@media (min-width: 900px) {
  :root { --gutter: 48px; --section-y: 112px; --frame: 24px; }

  h1 { font-size: 68px; }
  h2 { font-size: 46px; }
  h3 { font-size: 31px; }

  /* Komputer: zdjęcie na całą sekcję; krem po lewej przechodzi w zdjęcie po prawej,
     dół miękko schodzi w krem. */
  .hero {
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 140px;
  }
  .hero__media,
  .hero--page .hero__media {
    inset: 0;
    height: auto;
    background-image: var(--photo);
    background-position: var(--pos, 50% 50%);
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(0deg,
        var(--cream) 0%, rgba(248, 246, 241, .85) 8%, rgba(248, 246, 241, .5) 17%,
        rgba(248, 246, 241, .18) 26%, rgba(248, 246, 241, 0) 34%),
      linear-gradient(90deg,
        rgba(248, 246, 241, .96) 0%, rgba(248, 246, 241, .96) 40%,
        rgba(248, 246, 241, .78) 48%, rgba(248, 246, 241, .5) 56%,
        rgba(248, 246, 241, .22) 65%, rgba(248, 246, 241, .05) 74%, rgba(248, 246, 241, 0) 82%);
  }
  .hero__content { text-align: left; }
  .hero__content > * { max-width: 600px; }
  .hero p { margin-left: 0; }

  .hero--page {
    min-height: 520px;
    align-items: flex-end;
    padding: calc(var(--header-h) + 80px) 0 72px;
  }

  /* Pas faktów nachodzi na dół hero */
  .facts { position: relative; z-index: 2; margin-top: -78px; padding: 0; }
  .facts__list {
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border: 0;
    border-top: 2px solid var(--gold);
    box-shadow: 0 24px 50px rgba(28, 27, 25, .07);
  }
  .fact { padding: 30px 32px; border: 0 !important; }
  .fact + .fact { border-left: 1px solid var(--line) !important; }
  .fact dd { font-size: 38px; }

  .section__head--split { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .section__head--split > .more { justify-self: end; }
  .section__head { margin-bottom: 56px; }

  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

  .area-cards { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .area-cards > :nth-child(2) { margin-top: 64px; }   /* schodki, asymetria */
  .area-cards--two > :nth-child(2) { margin-top: 0; }
  .area-cards--two { grid-template-columns: 1fr 1fr; max-width: 900px; }

  .statement { padding: 104px 0; }
  .statement__text { font-size: 72px; }

  .who { grid-template-columns: 6fr 5fr; gap: 96px; align-items: center; }
  .who--flip .who__media { order: -1; }
  .founder { padding: 30px 32px; gap: 26px; }

  .showcase { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
  .showcase__caption { position: absolute; left: 32px; bottom: -48px; margin: 0; max-width: 460px; padding: 28px 30px; }
  .showcase__main { margin-bottom: 48px; }
  .showcase__side { gap: 32px; padding-top: 8px; }
  .project-small { grid-template-columns: 150px 1fr; }
  .showcase__main--solo { max-width: 1100px; }
  .showcase__main--solo .photo { aspect-ratio: 21 / 9; }

  .articles { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .articles--two { grid-template-columns: 1fr 1fr; max-width: 900px; }
  .articles--index { grid-template-columns: 1fr 1fr; gap: 64px 48px; }
  .article-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .article-card--featured .photo { aspect-ratio: 16 / 10; }
  .article-card--featured .article-card__title { font-size: 40px; }

  .quote { font-size: 64px; margin-bottom: 64px; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 48px; }

  .zig { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; margin-top: 112px; }
  .zig--flip { grid-template-columns: 6fr 5fr; }
  .zig--flip .zig__media { order: 2; }
  .zig__media { width: 100%; max-width: 460px; }
  .zig--flip .zig__media { justify-self: end; }

  .overview { grid-template-columns: 5fr 6fr; gap: 96px; }
  .overview__lead { font-size: 40px; }

  .project-row { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
  .project-row--flip { grid-template-columns: 5fr 7fr; }
  .project-row--flip .project-row__media { order: 2; }
  .projects { gap: 112px; }

  .contact-grid { grid-template-columns: 6fr 5fr; gap: 96px; align-items: start; }
  .contact-phone { font-size: 44px; }

  .article { margin-left: 16.6%; }
  .article .article__lead { font-size: 30px; }

  .footer { padding: 80px 0 36px; }
  .footer__grid { grid-template-columns: 5fr 7fr; gap: 48px; }
}

@media (min-width: 1000px) {
  :root { --header-h: 94px; }

  .brand__name { font-size: 30px; }

  .nav-toggle { display: none; }
  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .nav__list { display: flex; align-items: center; gap: 40px; padding: 0; }
  .nav__list > li { border: 0; }
  .nav__link { padding: 10px 0; font-size: 12px; }
  .nav__link:hover { color: var(--gold-ink); }
  .nav__cta { margin: 0 0 0 16px; }
  .nav__cta .btn { width: auto; min-height: 50px; padding: 12px 32px; }

  /* Rozwijane „What we do” */
  .nav__item--sub { position: relative; }
  .nav__item--sub > .nav__link::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 0 3px 9px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
  }
  .nav__sub {
    position: absolute;
    top: 100%;
    left: -24px;
    min-width: 230px;
    margin: 0;
    padding: 12px 0;
    background: var(--white);
    border: 0;
    border-top: 2px solid var(--gold);
    box-shadow: 0 18px 40px rgba(28, 27, 25, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav__item--sub:hover .nav__sub,
  .nav__item--sub:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__sublink { padding: 10px 24px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
  .nav__sublink:hover { color: var(--gold-ink); background: var(--cream); }
}

@media (min-width: 1200px) {
  h1 { font-size: 80px; }
  h2 { font-size: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
