/* =========================================================
   KOMINERA — strona intro
   Kolory i typografia: zmienne w :root
   ========================================================= */

:root {
  --white: #ffffff;
  --graphite: #1c1b1a;
  --graphite-2: #2a2826;
  --warm: #f3ede5;          /* tło prezentacji marki */
  --warm-2: #e7ddd0;
  --ember: #d98a45;         /* akcent ognia */
  --orange: #ff6600;        /* pomarańcz z litery E w logo SAVEN — kwadratowe przyciski */
  --orange-hover: #ff7f2a;
  --text-soft: rgba(255, 255, 255, .78);

  --font: "Helvetica Neue", "Inter", "Segoe UI", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .2, 1);
  --slow: .9s;
  --gutter: clamp(16px, 2.6vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

html,
body {
  margin: 0;
  overflow-x: hidden;
}

html.is-locked,
html.is-locked body { overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--graphite);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ---------- Okrągła strzałka (wspólna) ---------- */

.arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;                 /* kwadrat w kolorze KOMINERA */
  background: var(--orange);
  color: #fff;
  transition: background-color .6s var(--ease), transform .6s var(--ease);
}

.arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--ease);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: var(--gutter);
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: inherit;
  justify-self: start;
}

.logo__img {
  width: auto;
  height: clamp(26px, 2.4vw, 36px);
}

/* hasło u góry: drobne kapitaliki z cienkimi liniami po bokach, z cieniem dla czytelności na jasnych zdjęciach */
.site-header__tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .55);
  white-space: nowrap;
}

.site-header__tagline::before,
.site-header__tagline::after {
  content: "";
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

/* prawa strona nagłówka: przełącznik języka + przycisk menu */
.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang__btn {
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-indent: .2em;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  transition: color .3s var(--ease);
}

.lang__btn + .lang__btn { border-left: 1px solid rgba(255, 255, 255, .35); }
.lang__btn:hover { color: #fff; }
.lang__btn[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* wersja w menu: większa, pod listą */
.lang--menu {
  margin-top: clamp(28px, 5vh, 48px);
  gap: 0;
}

.lang--menu .lang__btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: .24em;
  text-shadow: none;
}

.lang--menu .lang__btn:first-child { padding-left: 0; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: var(--orange);
  color: #fff;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}

.menu-toggle:hover { background: var(--orange-hover); }
.menu-toggle:focus-visible { outline-color: var(--white); }

.menu-toggle__lines {
  display: grid;
  gap: 5px;
  width: 20px;
}

.menu-toggle__lines i {
  display: block;
  height: 1px;
  background: currentColor;
}

/* ---------- Panele ---------- */

.panels {
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}

.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background: #13110f;
  transition: flex-grow var(--slow) var(--ease);
}

/* Zdjęcie kończy się nad strefą napisów i płynnie przechodzi w ciemne tło,
   dzięki czemu piec / kominek nie jest zasłonięty nagłówkiem.
   Kadrowanie każdego panelu (atrybut style w index.html):
   --pos    = object-position (poziomo / pionowo)
   --zoom   = powiększenie zdjęcia
   --origin = punkt, względem którego zdjęcie jest powiększane */
.panel__img {
  position: absolute;
  inset: 0 0 var(--img-bottom, 22%) 0;
  z-index: -2;
  width: 100%;
  height: calc(100% - var(--img-bottom, 22%));
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: translateY(var(--lift, 0%)) scale(var(--zoom, 1));
  transform-origin: var(--origin, 50% 50%);
  transition: transform 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* --lift-desktop (index.html): przesunięcie zdjęcia w pionie w układzie trzech kolumn,
   np. żeby kominek był na tej samej wysokości co piece obok */
@media (min-width: 861px) {
  .panel__img { --lift: var(--lift-desktop, 0%); }

  /* przerwa między trzema kolumnami */
  .panels { gap: 10px; background: #000; }
  .panel + .panel::after { display: none; }
  .panel { background: #000; }

  /* lekkie wygaszenie zdjęć przy przerwach (tylko krawędzie wewnętrzne, nie przy bokach ekranu) */
  .panel { --fade-l: 56px; --fade-r: 56px; }
  .panel:first-child { --fade-l: 0px; }
  .panel:last-child { --fade-r: 0px; }

  /* zdjęcia na całą wysokość kolumny; wygaszenie na bokach maską */
  .panels .panel__img,
  .panels .panel__slides {
    /* zdjęcie kończy się nad nagłówkiem; na dole płynne wygaszenie krawędzi (--fade-b) */
    inset: 0 0 var(--img-bottom-desk) 0;
    height: calc(100% - var(--img-bottom-desk));
    -webkit-mask-image:
      linear-gradient(to bottom, #000 calc(100% - var(--fade-b)), rgba(0, 0, 0, .7) calc(100% - var(--fade-b) * .62), rgba(0, 0, 0, .35) calc(100% - var(--fade-b) * .32), transparent 100%),
      linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to bottom, #000 calc(100% - var(--fade-b)), rgba(0, 0, 0, .7) calc(100% - var(--fade-b) * .62), rgba(0, 0, 0, .35) calc(100% - var(--fade-b) * .32), transparent 100%),
      linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
            mask-composite: intersect;
  }

  .panel { --fade-b: 110px; }   /* długość wygaszenia u dołu zdjęcia */

  .panels { --img-bottom-desk: 27%; }   /* wysokość czarnego pola na tekst pod zdjęciem */

  /* przyciemnienie u góry pod logo i menu */
  .panels .panel::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 20%);
  }
}

/* --- Karuzela w panelach (komputer): jedno zdjęcie, następne wjeżdża od dołu ---
   Tempo i kolejność: PANEL_SLIDE_* w script.js; zdjęcia z galerii marek (assets/galeria/). */
.panel__slides {
  position: absolute;
  inset: 0 0 var(--img-bottom, 22%) 0;
  z-index: -2;
  overflow: hidden;
  transition: transform 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.panel__slide {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 1.5s cubic-bezier(.65, 0, .35, 1);
}

.panel__slide.is-current { transform: translateY(0); }
.panel__slide.is-past { transform: translateY(-100%); }
.panel__slide.no-anim { transition: none; }

.panel__slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.panel.has-slides .panel__img { opacity: 0; }   /* zostaje dla czytników ekranu (opis alt) */
.panel:hover .panel__slides,
.panel:has(:focus-visible) .panel__slides { transform: scale(1.03); }

/* delikatne przyciemnienie + ciemniejszy gradient od dołu */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 12, 10, .7) 0%, rgba(14, 12, 10, .3) 30%, rgba(14, 12, 10, 0) 55%),
    linear-gradient(to bottom, rgba(14, 12, 10, .6) 0%, rgba(14, 12, 10, .2) 14%, rgba(14, 12, 10, 0) 26%),
    rgba(14, 12, 10, .14);
  transition: background-color var(--slow) var(--ease);
}

/* cienka linia między panelami */
.panel + .panel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: rgba(255, 255, 255, .14);
}

.panel__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 var(--gutter) var(--gutter);
}

.panel__title {
  font-size: clamp(24px, 3.4vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  white-space: nowrap;   /* napis nie przeskakuje między wierszami przy poszerzaniu */
}

/* ---------- Logotypy marek ----------
   --h = mnożnik wysokości pliku logo, dobrany tak, żeby LITERY (nie koło KAWMET
   ani korona MORSØ) miały we wszystkich logo tę samą wysokość.
   Litery zajmują: KAWMET 45% wysokości pliku, SAVEN 45,8%, MORSØ 44,4%. */
.logo-kawmet { --h: 1; }
.logo-saven  { --h: .983; }
.logo-morso  { --h: 1.015; }

.panel__brand,
.menu__label:has(img),
.brand__title,
.about__brands button { line-height: 0; }

/* logo nigdy nie jest rozciągane: stała wysokość, szerokość z proporcji pliku */
.logo__img,
.panel__brand img,
.menu__label img,
.brand__title img,
.about__brands img {
  flex: none;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* logo marki w dolnym pasku, na wysokości strzałki */
.panel__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
}
.panel__brand img { height: calc(var(--h) * clamp(28px, 2.6vw, 40px)); opacity: .92; }

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(16px, 2.6vh, 26px);   /* nagłówek blisko dolnego paska */
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.panel__cta-label {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  white-space: nowrap;
}

/* --- stan aktywny: hover / fokus klawiatury --- */
.panel:hover .panel__img,
.panel:has(:focus-visible) .panel__img { transform: translateY(var(--lift, 0%)) scale(calc(var(--zoom, 1) * 1.05)); }

.panel:hover::before,
.panel:has(:focus-visible)::before { background-color: rgba(14, 12, 10, .04); }

.panel:hover .panel__cta-label,
.panel:has(:focus-visible) .panel__cta-label { opacity: 1; transform: none; }

.panel:hover .arrow,
.panel:has(:focus-visible) .arrow { background: var(--orange-hover); }

.panel:hover .arrow svg,
.panel:has(:focus-visible) .arrow svg { transform: translateX(2px); }

@media (hover: hover) and (min-width: 861px) {
  .panel:hover,
  .panel:has(:focus-visible) { flex-grow: 1.16; }
}

/* na urządzeniach dotykowych napis widoczny od razu */
@media (hover: none) {
  .panel__cta-label { opacity: 1; transform: none; }
}

/* ---------- Nakładki (menu, marki, o nas) ---------- */

.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay::backdrop { background: rgba(14, 12, 10, .6); }

.overlay[open] { animation: overlay-in .55s var(--ease) both; }
.overlay.is-closing { animation: overlay-out .35s var(--ease) both; }

@keyframes overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlay-out { from { opacity: 1; } to { opacity: 0; } }

.close {
  position: fixed;
  top: var(--gutter);
  right: var(--gutter);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: var(--orange);
  color: #fff;
  transition: background-color .4s var(--ease);
}

.close:hover { background: var(--orange-hover); }

.close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* --- Menu --- */

.menu {
  background: #000;
  color: var(--white);
}

.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* menu u góry, nie na środku ekranu */
  min-height: 100%;
  padding: calc(var(--gutter) + clamp(64px, 11vh, 120px)) var(--gutter) var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
}

.menu__list { margin: 0; }

.menu__list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }

.menu__item {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  padding: clamp(14px, 2.4vh, 24px) 0;
  text-align: left;
}

.menu__num {
  width: 2.5em;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}

/* „O NAS” krojem Exo 2 (jak napis KAWMET); wysokość wielkich liter = wysokość liter w logo */
.menu__label {
  font-family: "Exo 2", var(--font);
  font-size: calc(var(--menu-logo) * .643);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  transition: transform .6s var(--ease), color .6s var(--ease), opacity .6s var(--ease);
}

.menu { --menu-logo: clamp(52px, 6.4vw, 84px); }   /* wysokość pliku logo w menu */

.menu__label img { height: calc(var(--h) * var(--menu-logo)); }
.menu__item { align-items: center; }

.menu__item:hover .menu__label,
.menu__item:focus-visible .menu__label { transform: translateX(12px); color: var(--warm-2); }

.menu__item:focus-visible { outline-offset: -2px; }

/* --- Prezentacja marki --- */

/* Wszystkie pop-upy (marki, O NAS, Kontakt) i pasy marek na telefonie mają czarne tło.
   Kolory wspólne poniżej; każda marka zmienia tylko kolor kwadratu ze strzałką w przycisku. */
.brand,
.about,
.band {
  --pop-bg: #000000;
  --pop-fg: #ffffff;
  --pop-muted: #8f8f8f;
  --pop-text: #c8c8c8;
  --pop-line: rgba(255, 255, 255, .35);
  --pop-line-soft: rgba(255, 255, 255, .14);
  --pop-card: rgba(255, 255, 255, .05);
  --mosaic-bg: radial-gradient(120% 80% at 30% 20%, #1c1c1c 0%, #0b0b0b 100%);
  --card-bg: #1a1a1a;
  --card-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9);
  --cta-bg: #ffffff;
  --cta-hover: #e9e9e9;
  --cta-fg: #000000;
  --cta-arrow-bg: var(--orange);
  --cta-arrow-fg: #ffffff;
  --cta-shadow: rgba(255, 255, 255, .12);
}

.brand,
.about {
  background: var(--pop-bg);
  color: var(--pop-fg);
}

/* kolor kwadratu ze strzałką = akcent z logo marki */
.brand--kawmet,
.brand--saven  { --cta-arrow-bg: var(--orange); }   /* pomarańcz z litery E w logo SAVEN */
.brand--morso  { --cta-arrow-bg: #b89a5e; }   /* złoto korony z logo MORSØ */

/* pop-up: okno na środku ekranu, strona widoczna w tle */
.brand {
  inset: 0;
  width: min(1360px, 100% - 2 * var(--gutter));
  height: min(740px, 100% - 2 * var(--gutter));
  margin: auto;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
}

.brand::backdrop {
  background: rgba(14, 12, 10, .72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.brand[open] {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  animation: popup-in .6s var(--ease) both;
}

.brand[open]::backdrop { animation: overlay-in .5s var(--ease) both; }
.brand.is-closing { animation: popup-out .3s var(--ease) both; }
.brand.is-closing::backdrop { animation: overlay-out .3s var(--ease) both; }

@keyframes popup-in  { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes popup-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.99); } }

.brand .close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.brand__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--graphite-2);
}

.brand__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* --- Mozaika zdjęć w pop-upie marki --- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  padding: 0 clamp(14px, 2vw, 28px);
  background: var(--mosaic-bg, radial-gradient(120% 80% at 30% 20%, #f1e9de 0%, #e3d8ca 60%, #d9ccbc 100%));
  cursor: grab;
  touch-action: none;   /* przeciąganie kolumn palcem */
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.mosaic__col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
  will-change: transform;
}
/* prędkość i kierunek kolumn: SPEED w script.js */

.mosaic__card {
  position: relative;
  flex: none;
  height: 300px;          /* nadpisywane przez script.js */
  overflow: hidden;
  border-radius: 14px;
  background: var(--card-bg, #cfc2b1);
  box-shadow: var(--card-shadow, 0 18px 40px -18px rgba(40, 28, 16, .55), 0 2px 6px rgba(40, 28, 16, .12));
}

.mosaic__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity .8s var(--ease);
}

.mosaic__card img.is-front { opacity: 1; }

.mosaic.is-dragging { cursor: grabbing; }

.brand[open] .mosaic__card { animation: card-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

@keyframes card-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.brand__content,
.about__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--gutter) + 72px) clamp(24px, 6vw, 96px) clamp(32px, 6vh, 72px);
}

.brand__content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 72px clamp(28px, 5vw, 72px) 48px;
}

.brand[open] .brand__content > *,
.about[open] .about__inner > * { animation: rise .8s var(--ease) both; }

.brand__content > :nth-child(2),
.about__inner > :nth-child(2) { animation-delay: .06s !important; }
.brand__content > :nth-child(3),
.about__inner > :nth-child(3) { animation-delay: .12s !important; }
.brand__content > :nth-child(n+4),
.about__inner > :nth-child(n+4) { animation-delay: .18s !important; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.brand__num {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--pop-muted, #7a6f63);
}

.brand__title {
  margin-top: 18px;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: .02em;
}

.brand__title img { height: calc(var(--h) * clamp(64px, 7vw, 108px)); }
.brand__title .logo-kominera { height: clamp(48px, 6vw, 84px); }

.brand__lead {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.35;
}

.brand__text {
  margin-top: 20px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--pop-text, #4a443e);
}

/* przycisk „Zobacz ofertę” — kolory dobrane do marki (zmienne --cta-* przy .brand--kawmet / --saven / --morso) */
.brand__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 18px;
  min-height: 60px;
  margin-top: 36px;
  padding: 8px 8px 8px 28px;
  border-radius: 0;
  background: var(--cta-bg, #1c1b1a);
  color: var(--cta-fg, #fff);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px var(--cta-shadow, rgba(0, 0, 0, .45));
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}

.brand__link .arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--cta-arrow-bg, #fff);
  color: var(--cta-arrow-fg, #1c1b1a);
  transition: background-color .4s var(--ease);
}

.brand__link:hover,
.brand__link:focus-visible {
  background: var(--cta-hover, #33312f);
  box-shadow: 0 18px 36px -14px var(--cta-shadow, rgba(0, 0, 0, .55));
  transform: translateY(-2px);
}

.brand__link:hover .arrow svg,
.brand__link:focus-visible .arrow svg { transform: translate(2px, -2px); }

.brand :focus-visible,
.about :focus-visible { outline-color: var(--pop-fg, var(--graphite)); }

.brand .close:focus-visible,
.about .close:focus-visible { outline-color: var(--pop-fg, var(--graphite)); }

/* --- O KOMINERA (pop-up) --- */

.about {
  inset: 0;
  width: min(880px, 100% - 2 * var(--gutter));
  height: fit-content;
  max-height: calc(100% - 2 * var(--gutter));
  margin: auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
}

.about::backdrop {
  background: rgba(14, 12, 10, .72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.about[open] { animation: popup-in .6s var(--ease) both; }
.about[open]::backdrop { animation: overlay-in .5s var(--ease) both; }
.about.is-closing { animation: popup-out .3s var(--ease) both; }
.about.is-closing::backdrop { animation: overlay-out .3s var(--ease) both; }

.about .close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.about__inner {
  padding: clamp(56px, 8vh, 80px) clamp(28px, 6vw, 72px) clamp(36px, 6vh, 56px);
}

.about__brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--pop-line-soft);
}

.about__brands li + li { border-left: 1px solid var(--pop-line-soft); }

.about__brands button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 20px 16px 4px;
  text-align: left;
  font-size: 15px;
  letter-spacing: .24em;
  transition: color .4s var(--ease);
}

.about__brands button span {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ember);
}

.about__brands button { gap: 14px; padding-bottom: 12px; }
.about__brands button span { line-height: 1.5; }
.about__brands img { height: calc(var(--h) * 46px); transition: opacity .4s var(--ease); }

/* logo stoją na wspólnej linii (dół napisów); koło KAWMET wystaje pod nią o 13% wysokości logo */
.about__brands li { display: flex; }
.about__brands button { height: 100%; }
.about__brands img { margin-top: auto; }
.about__brands .logo-kawmet { transform: translateY(13.3%); }
.about__brands button:hover img { opacity: .7; }

/* --- Pasy marek (tylko telefon, widoczne w @media max-width: 860px) ---
   KAWMET i MORSØ: klisza po lewej, logo z tekstem po prawej; SAVEN (band--rev) odwrotnie.
   Kolory pasów = kolory pop-upów marek (zmienne --pop-* z .brand--kawmet / --saven / --morso). */

.band {
  display: none;
  grid-template-columns: 54% 46%;
  height: 100%;
  background: var(--pop-bg);
  color: var(--pop-fg);
}

.band--rev { grid-template-columns: 46% 54%; }
.panel + .panel .band { border-top: 1px solid rgba(255, 255, 255, .12); }
.band--rev .band__film { order: 2; }

.band__film {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 10px;
}

.band__film .mosaic__col { gap: 8px; }
.band__film .mosaic__card { border-radius: 8px; }

.band__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 16px;
}

.band__logo {
  flex: none;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  height: calc(var(--h) * clamp(30px, 8vw, 40px));
  object-fit: contain;
  object-position: left center;
}

.band__text {
  font-size: clamp(14px, 3.9vw, 17px);
  font-weight: 300;
  line-height: 1.25;
}

.band__cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pop-fg);
}

.band__cta .arrow {
  width: 34px;
  height: 34px;
}

.band__cta .arrow svg { width: 15px; height: 15px; }

/* --- KONTAKT (pop-up) --- */

.contact { width: min(1160px, 100% - 2 * var(--gutter)); }

.contact__title {
  margin-top: 14px;
  font-family: "Exo 2", var(--font);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(24px, 4vh, 36px);
}

.contact__card {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--pop-card);
  border: 1px solid var(--pop-line-soft);
}

.contact__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__head img { width: 40px; height: 30px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

.contact__globe {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--pop-fg);
  stroke-width: 1.3;
}

.contact__head h3 {
  margin: 0;
  font-family: "Exo 2", var(--font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.contact__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--pop-muted);
}

.contact__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
}

.contact__list span {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pop-muted);
}

.contact__list a,
.contact__list address {
  font-style: normal;
  color: var(--pop-fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__list a { font-weight: 600; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pop-fg);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.contact__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.contact__countries-title {
  margin-top: clamp(32px, 5vh, 48px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--pop-muted);
}

/* siatka flag krajów eksportowych */
.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 18px;
  margin-top: 16px;
}

.country {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--pop-fg);
  text-decoration: none;
}

.country img {
  flex: none;
  width: 52px;
  height: 39px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 14px -8px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease);
}

.country:hover img { transform: translateY(-2px); }
.country:hover span { text-decoration: underline; text-underline-offset: 3px; }

.contact__company {
  margin-top: clamp(28px, 4vh, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--pop-line-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--pop-text);
}

.contact__company strong { color: var(--pop-fg); font-weight: 600; }

@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .countries { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .country { font-size: 13px; gap: 10px; }
  .country img { width: 40px; height: 30px; }
}

/* ---------- Tablet / telefon ---------- */

@media (max-width: 860px) {
  /* logo przewija się razem ze stroną, przycisk menu zostaje na miejscu */
  .site-header { position: absolute; grid-template-columns: 1fr auto; }
  .site-header__tagline { display: none; }
  .menu-toggle { position: fixed; top: var(--gutter); right: var(--gutter); }
  .site-header__actions { padding-right: 62px; min-height: 52px; }   /* miejsce na przypięty przycisk menu */

  /* intro na telefonie: trzy poziome pasy marek mieszczące się na jednym ekranie */
  .panels {
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    min-height: 540px;
    padding-top: calc(var(--gutter) + 60px);   /* pas na logo KOMINERA i menu */
    background: #000;
  }

  .panel {
    flex: 1 1 0;
    min-height: 0;
    background: transparent;
  }

  .panel__img,
  .panel__slides,
  .panel__body,
  .panel::before,
  .panel + .panel::after { display: none; }

  .band { display: grid; }

  /* pop-up na telefonie: zdjęcie nad tekstem, przewija się tylko tekst */
  .brand {
    width: calc(100% - 24px);
    height: fit-content;
    max-height: calc(100% - 24px);
  }

  .brand[open] {
    display: flex;
    flex-direction: column;
  }

  .brand__media {
    flex: none;
    height: min(40svh, 340px);
    min-height: 220px;
  }

  .mosaic__card { border-radius: 10px; }

  .brand__content { padding: 28px 24px 32px; }

  .brand .close { top: 12px; right: 12px; }

  .close { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .about__brands { grid-template-columns: 1fr; }
  .about__brands li + li { border-left: 0; border-top: 1px solid var(--pop-line-soft); }
  .about__brands button { flex-direction: row; align-items: baseline; gap: 16px; padding: 16px 0; }
}

/* ---------- Ograniczony ruch ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }


  .panel:hover .panel__img,
  .panel:has(:focus-visible) .panel__img { transform: translateY(var(--lift, 0%)) scale(var(--zoom, 1)); }
}
