/* =====================================================================
   Koven Living — styles (layout from Koven_WEBSITE.xd, 1920 artboard)
   ===================================================================== */

:root {
  --bg: #eeecea;          /* main background */
  --bg-2: #e7e4e2;        /* alternate sections */
  --taupe: #928572;       /* buttons, accents */
  --taupe-dark: #7e7262;
  --sand: #bbae9a;        /* numbers, footer accents */
  --line: #d5cec3;        /* hairlines */
  --frame: #b9ad9c;       /* boxes, chips */
  --accent: #a4743f;      /* second line of the intro heading */
  --ink: #15130f;
  --text: #2e2a25;
  --muted: #6e665c;
  --footer: #211c14;
  --on-dark: #f3f0ec;

  --f-display: 'Cormorant Infant', Georgia, serif;
  --f-body: 'Quattrocento', Georgia, serif;

  --gutter: clamp(1.25rem, 0.4rem + 3.6vw, 5rem);
  --maxw: 1440px;
  --narrow: 1160px;
  --content: 1360px;   /* one left line for all headings (as in the quote section) */
  --edge: max(var(--gutter), calc(50% - var(--content) / 2));
  --cline: max(var(--gutter), calc(50vw - var(--content) / 2));  /* content line measured from the screen edge */
  /* Spacing rhythm — every section uses these three values */
  --section: clamp(5rem, 2.5rem + 7vw, 10rem);      /* top & bottom of every section (160px @1920) */
  --head-gap: clamp(3rem, 2rem + 3vw, 5.5rem);      /* heading block -> section content */
  --lead-gap: clamp(1.5rem, 1.2rem + .6vw, 2rem);   /* heading -> its paragraph */

  --fs-display: clamp(2.5rem, 1.6rem + 2.6vw, 4.2rem);   /* 67px @1920 */
  --fs-title: clamp(1.4rem, 1.15rem + 0.75vw, 1.875rem);  /* 30px */
  --fs-lead: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);      /* 18px */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:where(ul, ol)[role='list'] { list-style: none; padding: 0; }
::selection { background: var(--taupe); color: #fff; }
:focus-visible { outline: 1px solid var(--taupe-dark); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 500; background: var(--ink); color: #fff; padding: .6rem 1rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.media { position: relative; overflow: hidden; background: var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Type ---------- */
.display { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: var(--fs-display); line-height: 1.12; color: var(--ink); }
.display > span { display: block; }
.display__a { color: var(--muted); }
.display__b { color: var(--ink); }
.display__b--accent { color: var(--accent); }
.display--center { text-align: center; }
.split-line { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.lead-p { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); max-width: 33rem; margin-top: var(--lead-gap); }
.prose p + p { margin-top: 1.4em; }
.label { font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }

/* ---------- Buttons: calm hover, no movement ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.6rem; padding: .9rem 2.8rem; border-radius: 999px;
  background: var(--taupe); color: #fff;
  font-family: var(--f-body); font-weight: 700; font-size: 1.0625rem; letter-spacing: .1em; line-height: 1;
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn:hover { background: var(--taupe-dark); box-shadow: 0 10px 28px -16px rgba(33, 28, 20, .55); }
.btn--glass { background: rgba(146, 133, 114, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-height: 3.4rem; padding-inline: 2rem; font-size: 1rem; }
.btn--glass:hover { background: rgba(126, 114, 98, .95); }

/* ---------- Motion initial states (only with JS motion) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.motion [data-unveil] { clip-path: inset(100% 0 0 0); }
.motion [data-split] { visibility: hidden; }

/* ---------- Preloader & veil ---------- */
.preloader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: none; place-items: center; }
.show-preloader .preloader { display: grid; }
.preloader__mark { width: 4.5rem; color: var(--ink); }
.preloader__line { position: absolute; left: 50%; bottom: 20%; width: 8rem; height: 1px; background: var(--line); transform: translateX(-50%); overflow: hidden; }
.preloader__line span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.veil { position: fixed; inset: 0; z-index: 390; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity .45s var(--ease-io); }
@media (hover: hover) and (pointer: fine) { .motion .veil { opacity: 1; } }
.veil.is-off { opacity: 0; }
.veil.is-on { opacity: 1; pointer-events: auto; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: transform .7s var(--ease), background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s; }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: clamp(1rem, 2vw, 2.25rem) var(--cline); transition: padding .6s var(--ease); }
.header.is-solid { color: var(--ink); background: rgba(238, 236, 234, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .header__inner { padding-block: .85rem; }
.header.is-hidden { transform: translateY(-100%); }
.lang {
  justify-self: start; display: inline-flex; gap: 1.6rem; padding: .7rem 1.8rem; border-radius: 999px;
  background: rgba(46, 42, 37, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: .12em; line-height: 1;
}
.lang a { opacity: .6; transition: opacity .4s; }
.lang a:hover { opacity: 1; }
.header.is-solid .lang { background: var(--bg-2); }
.brand { justify-self: center; display: flex; align-items: center; gap: .9rem; }
.brand__logo { height: clamp(2.4rem, 1.8rem + 1.5vw, 3.6rem); width: auto; transition: height .6s var(--ease); }
.header.is-solid .brand__logo { height: 2.4rem; }
.header__right { justify-self: end; display: flex; align-items: center; gap: 1.6rem; }
.burger { width: 4rem; height: 4rem; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: .42rem; transition: background-color .5s var(--ease); }
.burger:hover { background: #2e2a25; }
.burger span { display: block; width: 1.6rem; height: 1px; background: #fff; }
@media (max-width: 899px) {
  .lang, .header__right .btn { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; grid-column: 1; }
  .header__right { grid-column: 3; }
  .burger { width: 3.2rem; height: 3.2rem; }
}

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--footer); color: var(--on-dark);
  display: flex; flex-direction: column; padding: clamp(1.25rem, 2vw, 2.25rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__mark { height: 3rem; width: auto; }
.menu__close { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; gap: .8rem; align-items: center; }
.menu__links { margin-block: auto; display: grid; gap: .3rem; justify-items: start; padding-left: clamp(0rem, 8vw, 12rem); }
.menu__links a { font-family: var(--f-display); font-style: italic; font-size: clamp(2.6rem, 1.5rem + 4.5vw, 5.5rem); line-height: 1.12; display: flex; align-items: baseline; gap: 1.5rem; transition: color .5s var(--ease); }
.menu__links a:hover, .menu__links a[aria-current] { color: var(--sand); }
.menu__n { font-family: var(--f-body); font-style: normal; font-size: .8rem; letter-spacing: .2em; color: var(--sand); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; font-size: .95rem; color: var(--sand); padding-left: clamp(0rem, 8vw, 12rem); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 19, 15, .28) 0%, rgba(21, 19, 15, .05) 30%, rgba(21, 19, 15, .2) 55%, rgba(21, 19, 15, .55) 100%); }
.hero__content { position: relative; text-align: center; padding-bottom: clamp(7rem, 15vh, 11rem); }
.hero__letters { display: flex; justify-content: center; align-items: flex-end; gap: clamp(1rem, 2.6vw, 3.4rem); height: clamp(3.4rem, 9vw, 7.4rem); }
.hero__letters > span { display: block; height: 100%; overflow: hidden; }
.hero__letters svg { height: 100%; width: auto; fill: rgba(255, 255, 255, .92); }
.hero__rule { display: block; height: 1px; background: rgba(214, 186, 140, .7); margin-top: clamp(1.25rem, 2vw, 1.75rem); }
.hero__lead { margin: clamp(1.5rem, 2.4vw, 2.25rem) auto 0; max-width: 60rem; padding-inline: var(--gutter); font-size: clamp(1.05rem, .9rem + .5vw, 1.5rem); line-height: 1.42; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  padding: 1.35rem 2.3rem; background: rgba(238, 236, 234, .12); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; transition: background-color .5s var(--ease);
}
.hero__scroll:hover { background: rgba(238, 236, 234, .22); }
@media (max-width: 699px) { .hero__lead br { display: none; } }

/* ---------- Intro ---------- */
.intro { position: relative; padding-top: var(--section); }
.intro__text { position: relative; z-index: 2; max-width: 62rem; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.intro .display { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.125rem); }
.intro__p { margin: var(--lead-gap) auto 0; max-width: 46rem; font-size: clamp(1.05rem, 1rem + .25vw, 1.375rem); line-height: 1.5; color: var(--text); }
.intro__p p + p { margin-top: 1.3em; }
.intro__float { position: absolute; z-index: 1; }
.intro__float .media { width: 100%; height: 100%; }
.intro__float--a { left: 5.5%; top: var(--section); width: 12.6%; aspect-ratio: 243 / 315; }
.intro__float--b { left: 12.5%; top: calc(var(--section) + 24rem); width: 12.6%; aspect-ratio: 243 / 207; }
.intro__float--c { right: 6.2%; top: var(--section); width: 12.6%; aspect-ratio: 243 / 315; }
.intro__float--d { right: 10.5%; top: calc(var(--section) + 25rem); width: 12.1%; aspect-ratio: 232 / 214; }
.cats {
  margin-bottom: 0; padding-inline: var(--gutter);
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem clamp(1.5rem, 2.4vw, 2.6rem);
  margin-top: calc(var(--section) * 1.1); padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-block: 1px solid var(--line);
}
.cats li { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + .9vw, 2.125rem); color: var(--taupe); display: flex; align-items: center; gap: clamp(1.5rem, 2.4vw, 2.6rem); }
.cats li + li::before { content: ''; width: .3rem; height: .3rem; border-radius: 50%; background: var(--sand); }
.cats { list-style: none; }
@media (max-width: 999px) {
  .intro__float { display: none; }
}

/* ---------- Work ---------- */
.work { padding-block: var(--section); }
.work__viewport { margin-top: var(--head-gap); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.work__viewport::-webkit-scrollbar { display: none; }
.work__track { display: flex; gap: clamp(1rem, 1.1vw, 1.25rem); padding-inline: var(--gutter); width: max-content; align-items: stretch; }
/* Arrow sits on the heading line; cards start a little further in (as in the XD) */
/* "Przewiń" lives outside the content line; the first card starts exactly on the heading line */
.work__hint { flex: 0 0 auto; width: calc(var(--cline) - var(--gutter)); margin-right: calc(-1 * clamp(1rem, 1.1vw, 1.25rem)); overflow: hidden; align-items: center; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; color: var(--text); }
.work__hint svg { width: 4rem; }
@media (max-width: 1749px) { .work__hint { visibility: hidden; } }
.work__hint span { font-family: var(--f-display); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.card { flex: 0 0 auto; width: min(80vw, 34.4rem); scroll-snap-align: start; border-bottom: 3px solid #e2d9d6; padding-bottom: .9rem; }
.card .media { aspect-ratio: 5 / 6; }
.card .media img { transition: transform 1.4s var(--ease); }
.card:hover .media img { transform: scale(1.035); }
.card__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); padding: .9rem 0 0 1.5rem; }
.work.is-pinned .work__viewport { overflow: visible; }
/* Pinned: same top spacing as other sections; the frame holds heading + cards and is centred in the screen */
.work.is-pinned { padding-block: 0; }
.work.is-pinned .work__pin { background: var(--bg); height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: var(--section); }
.work.is-pinned .work__viewport { margin-top: var(--lead-gap); }
/* Card height = screen minus section spacing (top + bottom), heading and title, so the gaps match other sections */
.work.is-pinned .card { width: max(17rem, calc((100vh - 2 * var(--section) - 11.4rem) * .833)); max-width: 34.4rem; }
@media (max-width: 999px) { .work__hint { display: none; } }

/* ---------- About ---------- */
.about { background: var(--bg-2); padding-block: var(--section); display: grid; gap: 4rem; }
.about__visual { position: relative; }
.about__main { width: 79%; aspect-ratio: 723 / 678; }
.about__small { position: absolute; width: 38%; aspect-ratio: 350 / 279; left: var(--cline); top: 47%; box-shadow: 0 30px 60px -34px rgba(33, 28, 20, .5); }
.about__logo { width: clamp(11rem, 14vw, 16.5rem); color: #4d4b47; margin: clamp(5.5rem, 9vw, 9rem) 0 0 var(--cline); }
.about__text { padding-inline: var(--gutter); max-width: 44rem; }
.about .display { margin-bottom: var(--lead-gap); }
.about .prose { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.services-box { margin-top: var(--head-gap); border: 1px solid var(--frame); padding: clamp(1.75rem, 2.5vw, 2.6rem) clamp(1.5rem, 2.5vw, 2.6rem); }
.services-box h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; color: var(--ink); }
.services-box ul { display: grid; gap: 1.05rem; margin-top: 1.4rem; }
.services-box li { display: flex; gap: 1.5rem; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.services-box li::before { content: '→'; letter-spacing: 0; }
.about .label { margin-top: var(--head-gap); }
.countries { margin-top: .9rem; font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + .9vw, 2.06rem); color: var(--taupe); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; line-height: 1.3; }
@media (min-width: 1000px) {
  .about { grid-template-columns: 47.3% 1fr; gap: 0; align-items: start; }
  .about__text { padding: 0 var(--gutter) 0 0; }
}

/* ---------- Steps ---------- */
.steps-sec { position: relative; padding-block: var(--section); overflow: hidden; }
.outline-word { position: absolute; top: calc(var(--section) * .25); left: 56%; width: 52vw; color: var(--line); pointer-events: none; }
.outline-word svg { width: 100%; height: auto; }
.steps { position: relative; display: grid; gap: 3rem; margin-top: var(--head-gap); padding-inline: var(--gutter); }
.step__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 2rem + 1vw, 3rem); line-height: 1; color: var(--sand); }
.step__dot { display: block; width: .8rem; height: .8rem; border: 1px solid var(--sand); border-radius: 50%; margin: 1.6rem 0 2.2rem; background: var(--bg); position: relative; z-index: 1; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); }
.step p { margin-top: 1.6rem; font-size: 1rem; line-height: 1.45; color: var(--ink); max-width: 19.5rem; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 3rem; padding-inline: var(--edge); }
  .steps::before { content: ''; position: absolute; left: 0; right: 0; top: calc(clamp(2.4rem, 2rem + 1vw, 3rem) + 2rem); height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--line-progress, 1)); }
}

/* ---------- Materials ---------- */
.mat { background: var(--bg-2); padding-top: var(--section); }
.mat__grid { display: grid; gap: 4rem; max-width: calc(var(--content) + 2 * var(--gutter)); margin: var(--head-gap) auto 0; padding-inline: var(--gutter); }
.mat__visual { position: relative; padding-bottom: 6rem; }
.mat__main { width: 78%; aspect-ratio: 584 / 558; }
.mat__small { position: absolute; width: 45%; aspect-ratio: 336 / 314; left: 36%; bottom: 0; box-shadow: 0 30px 60px -34px rgba(33, 28, 20, .5); outline: 2px solid var(--bg-2); }
.mat__list { border-bottom: 0; }
.mat__list li { display: grid; grid-template-columns: 4rem 1fr; padding-block: 2.2rem; border-bottom: 1px solid var(--line); }
.mat__list li:first-child { padding-top: .6rem; }
.mat__list li:last-child { border-bottom: 0; }
.mat__n { font-family: var(--f-display); font-size: var(--fs-title); color: var(--taupe); line-height: 1.2; }
.mat__list h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); line-height: 1.2; }
.mat__list p { margin-top: 1.4rem; font-size: .95rem; line-height: 1.5; color: var(--ink); max-width: 28rem; }
@media (min-width: 1000px) { .mat__grid { grid-template-columns: 1fr 1fr; gap: 6%; align-items: start; } }
.fronts-title { font-family: var(--f-display); font-size: var(--fs-title); color: var(--taupe); margin-top: var(--section); padding-bottom: 1.5rem; }
.fronts { border-top: 1px solid var(--line); padding: var(--head-gap) var(--gutter) var(--section); }
.fronts__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem clamp(2rem, 6vw, 7.2rem); max-width: var(--content); margin-inline: auto; }
.fronts__list li { display: grid; justify-items: center; gap: 1rem; text-align: center; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.15; color: var(--taupe); width: 5.6rem; }
.sw { display: block; width: 5.5rem; height: 6.5rem; border-radius: 999px; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.fronts__list li:hover .sw { transform: translateY(-4px); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; gap: 3rem; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.faq__intro { margin-top: var(--lead-gap); font-size: var(--fs-lead); line-height: 1.4; color: var(--ink); max-width: 21rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.9rem; font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); line-height: 1.25; color: var(--ink); transition: color .4s; }
.faq__item summary:hover { color: var(--taupe-dark); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: .9rem; height: .9rem; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--taupe); transition: transform .6s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding-bottom: 1.9rem; font-size: 1rem; line-height: 1.45; color: var(--ink); max-width: 44rem; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 22rem 1fr; gap: 7rem; } }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); padding-block: var(--section); }
.contact__grid { display: grid; gap: 4rem; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.contact__info .btn { margin-top: var(--head-gap); }
.company { margin-top: var(--head-gap); max-width: 30rem; }
.company__name { font-size: clamp(1.15rem, 1rem + .4vw, 1.5rem); letter-spacing: .07em; color: var(--taupe); }
.company__nip { margin-top: .6rem; color: var(--ink); }
.company__rows { margin-top: 1.6rem; }
.company__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); font-size: 1.125rem; letter-spacing: .03em; color: var(--ink); }
.company__rows dt { text-transform: uppercase; }
.company__rows a:hover { color: var(--taupe-dark); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.15fr; gap: 8%; } .form { padding-top: 10.5rem; } }

.form { display: grid; gap: 2.4rem; }
.form__row { display: grid; gap: 2.4rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .5rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--frame); border-radius: 0;
  padding: .75rem 0; font-size: 1rem; letter-spacing: .03em; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .4s;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23928572'/%3E%3C/svg%3E") no-repeat right .2rem center; }
.field textarea { resize: vertical; min-height: 3.2rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea::placeholder, .chip-other::placeholder { color: var(--ink); opacity: .85; }
.field__err { font-size: .8rem; color: #8a3b2a; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #8a3b2a; }
.chips { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.2rem; }
.chip input { position: absolute; opacity: 0; }
.field .chip span { text-transform: none; letter-spacing: .02em; }
.chip span { display: inline-block; padding: .55rem 1.25rem; border: 1px solid var(--frame); font-size: 1rem; cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.chip span:hover { border-color: var(--taupe); }
.chip input:checked + span { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.chip input:focus-visible + span { outline: 1px solid var(--taupe-dark); outline-offset: 3px; }
.field .chip-other { margin-top: 1rem; width: min(100%, 35rem); padding: .7rem 1.25rem; border: 1px solid var(--frame); background: var(--bg); font-size: 1rem; }
.field .chip-other:focus { outline: none; border-color: var(--taupe); }
.consent { display: flex; gap: .9rem; align-items: flex-start; font-size: .875rem; letter-spacing: .03em; line-height: 1.6; color: var(--ink); }
.consent input { margin-top: .3rem; width: .85rem; height: .85rem; accent-color: var(--taupe); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid label { color: #8a3b2a; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; }
.form__status.is-ok { color: #3d5a3a; }
.form__status.is-err { color: #8a3b2a; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--on-dark); padding-block: clamp(4rem, 5vw, 5.5rem) 1.6rem; }
.footer__inner { max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); } /* same width as the page content */
.footer__top { display: grid; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(243, 240, 236, .1); }
.footer__logo { width: 9rem; color: #fff; }
.footer__about { font-size: 1rem; line-height: 1.55; color: #dcd5ca; max-width: 22rem; }
.footer__about p + p { margin-top: 1.6em; }
.footer__col { display: grid; align-content: start; gap: 1rem; }
.footer__col h2 { font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; padding-bottom: .9rem; border-bottom: 1px solid rgba(243, 240, 236, .1); margin-bottom: .6rem; }
.footer__col:not(.footer__contact) a { font-family: var(--f-display); font-size: 1.25rem; color: var(--sand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .4s; justify-self: start; }
.footer__col a:hover { color: #fff; }
.footer__contact a { font-size: 1.125rem; letter-spacing: .03em; }
.footer__services { display: grid; gap: 1rem; padding-block: 2.3rem; border-bottom: 1px solid rgba(243, 240, 236, .1); }
.footer__services h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; }
.footer__services p { font-size: 1rem; color: #dcd5ca; }
.footer__services i { font-style: normal; margin-inline: .7rem; color: var(--sand); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .8rem; letter-spacing: .03em; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer__legal > a { color: var(--sand); }
.footer__legal span a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 14rem 1fr 12rem 16rem; gap: 3rem; }
  .footer__services { grid-template-columns: 11rem 1fr; align-items: center; }
  .footer__services p { text-align: right; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* =====================================================================
   OFERTA (subpage) — same tokens, spacing and content line as the home page
   ===================================================================== */

/* Header on a light page: dark text from the start */
.header--dark { color: var(--ink); }
.header--dark .lang { background: var(--bg-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(243, 240, 236, .45); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--ink); box-shadow: none; }
.display--light .display__a { color: var(--sand); }
.display--light .display__b { color: var(--on-dark); }

/* Page hero */
.phero { background: var(--bg-2); padding-block: calc(var(--section) + 4rem) var(--section); }
.phero__grid { display: grid; gap: var(--head-gap); max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: var(--lead-gap); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.crumbs a { transition: color .4s; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: '|'; margin-right: .7rem; color: var(--sand); }
.phero__label { margin-top: var(--head-gap); }
.phero .countries { margin-top: .9rem; }
.phero__media { aspect-ratio: 4 / 3; }
@media (min-width: 1000px) { .phero__grid { grid-template-columns: 1fr 1.05fr; gap: 8%; } }

/* Services — dark chapter with hover preview */
.svc { background: var(--footer); color: var(--on-dark); padding-block: var(--section); }
.svc__grid { display: grid; gap: 3rem; margin-top: var(--head-gap); }
.svc__list { border-top: 1px solid rgba(243, 240, 236, .12); }
.svc__item { border-bottom: 1px solid rgba(243, 240, 236, .12); }
.svc__link { display: grid; grid-template-columns: 4rem 1fr auto; gap: .5rem 1rem; align-items: baseline; padding-block: clamp(1.6rem, 1.2rem + 1vw, 2.4rem); }
.svc__num { font-family: var(--f-display); font-size: 1.25rem; color: var(--sand); }
.svc__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1.15; color: var(--on-dark); transition: color .5s var(--ease), transform .7s var(--ease); }
.svc__arrow { color: var(--sand); font-size: 1.2rem; transition: color .5s var(--ease), transform .7s var(--ease); }
.svc__desc { grid-column: 2 / -1; font-size: .95rem; line-height: 1.55; color: #c9c1b6; max-width: 34rem; }
.svc__tags { grid-column: 2 / -1; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-top: .4rem; }
.svc__preview { display: none; }
@media (hover: hover) and (min-width: 1000px) {
  .svc__grid { grid-template-columns: 1.25fr 1fr; gap: 8%; align-items: start; }
  .svc__preview { display: block; position: sticky; top: 7rem; aspect-ratio: 4 / 5; }
  .svc__preview .media { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); background: transparent; }
  .svc__preview .media.is-active { opacity: 1; }
  .svc__preview .media img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
  .svc__preview .media.is-active img { transform: none; }
  .svc__list:hover .svc__name { color: rgba(243, 240, 236, .4); }
  .svc__list .svc__link:hover .svc__name, .svc__link:focus-visible .svc__name { color: var(--on-dark); transform: translateX(.5rem); }
  .svc__link:hover .svc__arrow { color: var(--on-dark); transform: translate(.25rem, -.25rem); }
}

/* Service details — photo + text, alternating sides */
.details { padding-block: var(--section) 0; }
.detail { display: grid; gap: var(--head-gap); max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: var(--section); align-items: center; scroll-margin-top: 5rem; }
.detail__media { aspect-ratio: 4 / 5; }
.detail__num { font-family: var(--f-display); font-size: 1.25rem; color: var(--sand); margin-bottom: 1rem; }
.detail__label { margin-top: var(--head-gap); margin-bottom: 1rem; }
.checklist { border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 1.25rem; align-items: baseline; padding-block: 1.05rem; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: clamp(1.2rem, 1.05rem + .45vw, 1.5rem); line-height: 1.3; color: var(--ink); }
.checklist li span { font-family: var(--f-display); font-size: .95rem; color: var(--taupe); min-width: 1.6rem; }
@media (min-width: 1000px) {
  .detail { grid-template-columns: 0.85fr 1fr; gap: 9%; }
  .detail--flip { grid-template-columns: 1fr 0.85fr; }
  .detail--flip .detail__media { order: 2; }
}

/* Price — four framed cards */
.price { background: var(--bg-2); padding-block: var(--section); }
.price__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(1rem, 1.6vw, 1.75rem); margin-top: var(--head-gap); }
.pcard { border: 1px solid var(--frame); padding: clamp(1.75rem, 2vw, 2.5rem) 1.5rem; min-height: 15rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: border-color .5s var(--ease), background-color .5s var(--ease); }
.pcard:hover { border-color: var(--taupe); background: rgba(238, 236, 234, .55); }
.pcard h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); line-height: 1.2; }
.pcard svg { width: clamp(5rem, 3.8rem + 2.6vw, 6.75rem); height: auto; aspect-ratio: 1; color: var(--taupe); margin: 1.25rem 0 1.5rem; }
.pcard svg * { vector-effect: non-scaling-stroke; stroke-width: 1px; } /* thin 1px lines at any size */
.pcard p { margin-top: auto; font-size: .95rem; line-height: 1.5; color: var(--text); max-width: 14rem; }

/* Contact band — dark */
.cta { background: var(--footer); color: var(--on-dark); padding-block: var(--section); border-bottom: 1px solid rgba(243, 240, 236, .08); }
.cta__grid { display: grid; gap: var(--head-gap); align-items: start; }
.cta__rows { margin-top: var(--head-gap); max-width: 30rem; }
.cta__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid rgba(243, 240, 236, .14); font-size: 1.05rem; letter-spacing: .03em; }
.cta__rows dt { text-transform: uppercase; font-size: .85rem; letter-spacing: .2em; color: var(--sand); }
.cta__rows a:hover { color: var(--sand); }
.cta__box { border: 1px solid rgba(243, 240, 236, .2); padding: clamp(2rem, 3vw, 3.25rem); }
.cta__box h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.15; }
.cta__box p { margin: 1.2rem 0 2rem; color: #c9c1b6; max-width: 30rem; line-height: 1.55; }
@media (min-width: 1000px) { .cta__grid { grid-template-columns: 1fr 1fr; gap: 8%; } }

/* =====================================================================
   O FIRMIE
   ===================================================================== */
.ahero { background: var(--bg-2); padding-block: calc(var(--section) + 4rem) var(--section); }
.ahero__grid { display: grid; gap: var(--head-gap); max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); align-items: start; }
.ahero__logo { width: clamp(11rem, 14vw, 16.5rem); color: #4d4b47; margin-top: var(--head-gap); }
.ahero__visual { position: relative; padding-bottom: 14%; }
.ahero__main { width: 82%; margin-left: auto; aspect-ratio: 723 / 678; }
.ahero__small { position: absolute; width: 42%; right: 0; bottom: 0; aspect-ratio: 350 / 279; box-shadow: 0 30px 60px -34px rgba(33, 28, 20, .5); outline: 2px solid var(--bg-2); }
.ahero__where { margin-top: var(--head-gap); }
.ahero__where .countries { margin-top: .9rem; }
@media (min-width: 1000px) { .ahero__grid { grid-template-columns: 1fr 1.1fr; gap: 8%; } }

.story { margin-top: var(--section); border-top: 1px solid var(--line); }
.story__row { display: grid; gap: 1rem 3rem; padding-block: clamp(2rem, 3vw, 3rem); border-bottom: 1px solid var(--line); }
.story__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); line-height: 1.2; }
.story__label { margin-top: .4rem; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); }
.story__row > p { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 46rem; }
@media (min-width: 1000px) { .story__row { grid-template-columns: 1fr 2fr; } }

.values { padding-block: var(--section); }
.pcard--plain { min-height: 13rem; }
.pcard--plain p { margin-top: auto; padding-top: 2rem; }

/* =====================================================================
   REALIZACJE
   ===================================================================== */
.gallery-sec { padding-block: calc(var(--section) + 4rem) var(--section);
  background: linear-gradient(var(--bg-2) 0, var(--bg-2) calc(var(--section) + 4rem + 30rem), var(--bg) calc(var(--section) + 4rem + 30rem)); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--lead-gap); }
.filter { padding: .55rem 1.3rem; border-radius: 999px; border: 1px solid var(--frame); font-size: .9rem; letter-spacing: .03em; color: var(--text); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.filter:hover { border-color: var(--taupe); }
.filter[aria-pressed='true'] { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.gallery { display: grid; gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3.5rem); margin-top: var(--head-gap); }
.gcard[hidden] { display: none; }
.gcard__open { display: block; width: 100%; cursor: zoom-in; }
.gcard .media { display: block; aspect-ratio: 1 / 1.03; }
.gcard .media img { transition: transform 1.4s var(--ease); }
.gcard__open:hover .media img { transform: scale(1.035); }
.gcard figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0 1rem 1.5rem; border-bottom: 3px solid #e2d9d6; }
.gcard__title { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); line-height: 1.2; }
.gcard__loc { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  /* right column sits lower, like in the mockup */
  .gallery.is-staggered .gcard:nth-child(even of :not([hidden])) { position: relative; top: clamp(2rem, 4vw, 4.5rem); } /* 'top' so it doesn't clash with the reveal transform */
  .gallery.is-staggered { padding-bottom: clamp(2rem, 4vw, 4.5rem); }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(21, 19, 15, .95); color: var(--on-dark); display: grid; grid-template-rows: auto 1fr auto; padding: 1.2rem var(--gutter) 1.6rem; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; min-height: 3rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox__cap { text-align: center; font-family: var(--f-display); font-size: 1.4rem; margin-top: 1rem; }
.lightbox__nav { display: flex; justify-content: center; gap: 2.5rem; }
.lightbox button { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: .6rem; color: var(--on-dark); transition: color .4s; }
.lightbox button:hover { color: var(--sand); }

/* =====================================================================
   KONTAKT
   ===================================================================== */
.contact--page { padding-top: calc(var(--section) + 4rem); }
.contact--page .crumbs { margin-bottom: var(--lead-gap); }
.next { padding-block: var(--section); }
.next__list { display: grid; gap: 2.5rem; margin-top: var(--head-gap); border-top: 1px solid var(--line); padding-top: clamp(2rem, 3vw, 3rem); }
.next__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 2rem + 1vw, 3rem); line-height: 1; color: var(--sand); }
.next__item h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-title); color: var(--ink); margin-top: 1.2rem; }
.next__item p { margin-top: 1rem; font-size: 1rem; line-height: 1.5; color: var(--ink); max-width: 22rem; }
.next__area { margin-top: var(--head-gap); }
.next__area .countries { margin-top: .9rem; }
@media (min-width: 900px) { .next__list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
