/* ----------------
   MODERN CSS RESET
   ---------------- */

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  margin: 0;
}
ul, ol {
  margin: auto;
  padding-left: 0; /* usuwa wciecie */
  list-style-position: inside; /* opcjonalnie: przenosi punktor do srodka */
}

ul {
  list-style-position: outside; /* bullet in the margin */
  padding-left: 1.5em;          /* space for bullet + gap */
}

li {
padding: 8px 0;
}

section ul, section ol {
  /*margin: var(--li-padding-top) 0 var( --li-padding-bottom);*/
}
.paragraph-list {
	margin: var(--li-padding-top) 0 var( --li-padding-bottom);
}
.bold {
	font-weight:var(--font-weight-bold);
}
body {
  margin: 0;
  font-family: var(--font-family-body);
  color:var(--color-text-body);
  overflow-x: hidden;
}



/* TYPO Headings */

h1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  color:var(--color-text-heading);
}

h2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  color:var(--color-text-heading);
}

h3 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-h3);
  color:var(--color-text-heading);
}
h1, h2, h3 {
  font-balance: balance;
}

/* TYPO body */
p, li {
  font-size: var(--font-size-body-base);
  line-height: var(--line-height-body-base);
  /*max-width: 90vw;*/ /*conflict between left and center*/
  color:var(--color-text-body);
}


/*
   HEADER 
*/

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: color-mix(
    in srgb,
    var(--color-card-dark) 85%,
    transparent 15%
  );
  backdrop-filter: blur(18px);
}


.site-header--hidden {
  transform: translateY(-100%);
  transition: transform 0.18s ease-out;
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--layout-header-padding-x);
}


.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-heading);
  text-decoration: none;
}
.logo:hover {
  color: #9C69E9;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-2xl);
  flex-shrink: 0;
}

.logo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--font-family-heading);
}

/* 1st word */

.logo__word--primary {
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}


/* 2nd word */

.logo__word--secondary {
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-text-accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
}

.nav-toggle__line {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-icon-on-dark);
}

.nav-toggle__line + .nav-toggle__line {
  margin-top: 4px;
}


/* HERO */

.hero-lead {
	font-size:var(--font-size-text-lead);
	font-weight:var(--font-weight-ui);
	line-height: var(--line-height-text-lead);
	color: var(--color-text-hero-lead);
	max-width: 37ch;
}

.hero, .hero-portfolio {
  position: relative;
  padding: 80px 0;
  min-height: 640px;
  display: flex;
  align-items: center; 
  overflow: hidden;
  color: var(--color-text-hero-heading);
}

.hero-about {
  min-height: 520px;
}

.hero::before, .hero-portfolio::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    var(--color-hero-gradient-3),
    var(--color-hero-gradient-1)
  );
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(820px, 60vw);      
  width:100%;
  height: 100%;
  background-image: url("../svg/home/hero-shape.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 110%;         
  opacity: 1; 
  pointer-events: none;
  z-index: 0;
}


.hero-inner, .hero-about-inner {
  width: 100%;
  max-width: var(--layout-container-max-width); /* Szerokosc grida*/
  padding: var(--section-padding-y) var(--section-padding-x);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-content, .hero-portfolio-content {
  max-width: 640px; /* tymczasowo - szerokosc bloku tekstowego */
  position: relative;
  z-index: 1;
}

.hero-about {
  /*position: relative;
  padding: 80px 0;*/
  min-height: 520px;
  display: flex;
  align-items: center; 
  color: var(--color-text-hero-heading);
  background: linear-gradient(
    135deg,
    var(--color-hero-gradient-3),
    var(--color-hero-gradient-1)
  );
}

.hero-about-content {
  max-width: 720px;
}

.hero-visual {
  position: absolute;
  top: 50%;
  left: 48vw;
  transform: translateY(-50%);
  width: 50vw;
  height: 100%;
  z-index: 1;
}

.hero-visual-inner {
  position: relative;
  aspect-ratio: 4 / 3;
  
  overflow: hidden;
  height: 100%;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  background:url(../img/home/hero-f29.png);
  background-repeat:no-repeat;
  background-size: 90% auto;   /*88*/
	background-position: 0px 90px; /*80*/
}

.hero-visual-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*Place Invest Hero Visual*/
.hero-visual-place-invest {
    width: 100%;
    height: 100%;
}
.hero-portfolio-inner {
  width: 100%;
  max-width: var(--layout-container-max-width); /* Szerokosc grida*/
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  /*z-index: 3;*/
}

.hero-portfolio-visual {
  position: absolute;
  top: 50%;
  left: 50vw;
  transform: translateY(-50%);
  width: 50vw;
  height: 100%;
  z-index: 1;
}
.hero-portfolio-bg {
  position: absolute;
  background-position: 0px 90px; 
}
.hero-portfolio-visual-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.visual-gov {
	object-position: 42%;
}
.visual-iberapol {
	object-position: 50%;
}
/*TYPO*/
.hero-title {
  margin-bottom: var(--h1-to-lead);
  max-width: 660px;
}
.hero-portfolio-title {
  margin-bottom: var(--h1-to-lead);
  max-width: 520px;
}
.hero-centered-title {
	margin-bottom:var(--h2-to-lead);
	max-width: 720px;         /* zeby text nie byl za szeroki MD - 680 */
  margin-inline: auto;      /* centrowanie bloku tekstu */
}
.hero-about-title {
	margin-bottom: var(--h1-to-lead);
  /*max-width: 620px;*/
}

.hero-lead {
	margin-bottom: var(--lead-to-button);
}
.hero-about-lead {
	width:auto;
	/*margin-bottom: var(--lead-to-button);*/
}
.hero-portfolio-lead {
	margin-bottom: var(--lead-to-button);
	max-width: 520px;
}
.accent {
	color:var(--color-text-accent);
}

/* buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--buttons-gap);
}


.btn {
 -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-y-button) var(--padding-x-button);
  border-radius: 999px;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-button-label);
  line-height: var(--line-height-button-label);
  letter-spacing: var(--letter-spacing-button-label);
  font-weight: var(--font-weight-ui);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  align-self: flex-start; /*btn width problems*/
  box-shadow: var(--shadow-elevation-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--color-action-primary);
  color: var(--color-text-on-action-primary);
  box-shadow: var(--shadow-elevation-lg);
}

.btn-primary:hover {
	background-color: var(--color-action-primary-hover);
  /*transform: translateY(-1px);*/
  /*box-shadow: 0 24px 60px rgba(122, 39, 204, 0.45);*/
  box-shadow: var(--shadow-image-dark);
}

.btn-secondary {
  background-color: var(--color-action-secondary);
  color: var(--color-text-on-action-secondary);
  /*box-shadow: 0 18px 45px rgba(122, 39, 204, 0.35);*/
}

.btn-secondary:hover {
   background-color: var(--color-action-secondary-hover);
  /*transform: translateY(-1px);*/
  box-shadow: var(--shadow-elevation-lg);
}

.btn-tertiary {
  background-color: var(--color-action-tertiary);
  color: var(--color-text-on-action-tertiary);
  /*box-shadow: 0 24px 60px rgba(122, 39, 204, 0.45);*/
}

.btn-tertiary:hover {
  background-color: var(--color-action-tertiary-hover);
  /*transform: translateY(-1px);*/
  box-shadow: var(--shadow-elevation-lg);
}

.btn-outline {
  background: transparent;
  color:var(--color-text-on-action-outline);
  border-color: var(--color-border-action-outline);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  color:var(--color-text-on-action-outline-hover);
  border-color:var(--color-border-action-outline-hover);
  box-shadow: var(--shadow-elevation-lg);
  background-color: rgba(122, 39, 204, 0.05);
}

/* base */
.btn--icon-right {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-y-buttons); /* <-- gap control */
}

.btn--icon-right::after {
  content: "";
  width: 24px;
  height: 24px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../svg/icons/white/external-link.svg");
}

/* ikonki */
/*.btn--icon-external::after {
  background-image: url("../svg/icons/btn-secondary-icons/external-link.svg");
}*/
.btn--icon-external-dark::after {
  background-image: url("../svg/icons/btn-outline-dark/external-link.svg");
}
.btn--icon-external-light::after {
  background-image: url("../svg/icons/btn-outline-light/external-link.svg");
}
.btn--icon-call-light::after {
  background-image: url("../svg/icons/btn-light/phone-call.svg");
}
.btn--icon-mail-light::after {
  background-image: url("../svg/icons/btn-light/mail.svg");
}
/*.btn--icon-arrow::after {
  background-image: url("../svg/icons/arrow-right.svg");
}*/

/*@media (max-width: 1600px) {


.hero-inner {
    max-width: 1280px;
  }
	
}*/
.section {
	width:100%;
	margin:0 auto;
}
.section--bg-base {
	background-color:var(--color-surface-base);
}
.section--bg-subtle {
	background-color:var(--color-surface-subtle);
}
.section--bg-muted {
	background-color:var(--color-surface-muted);
}
.section--bg-gradient {
	background: linear-gradient(
    -135deg,
    var(--color-hero-gradient-3) 0%,
  var(--color-hero-gradient-1) 15%
);
}
.card--bg {
	background-color:var(--color-card);
	color:var(--color-text-heading-on-card);
}


/* kontenery na szerokosc grida*/


.section__container, .container {
	width: 100%; 
	margin: auto;
	padding: var(--section-padding-y) var(--section-padding-x) var(--section-padding-y-bottom);
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
	z-index:1; /*z powodu shape bg*/
}

.section__hero-simple-container {
	width: 100%; 
	margin: auto;
	padding: var(--section-padding-y) var(--section-padding-x);
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
}
.section__hero-minimal-container {
	width: 100%; 
	margin: auto;
	padding: var(--hero-minimal-padding-top) var(--section-padding-x) 0;
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
}
.section__container-pre-carousel {
	width: 100%; 
	margin: auto;
	padding: var(--section-padding-y) var(--section-padding-x) 0;
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
}

.section--centered {
	text-align: center; 
}

.section--left {
	text-align: left; 
}


.section__title {
	margin-bottom:var(--h2-to-lead);
	max-width: 650px;         /* zeby text nie byl za szeroki MD - 680 */
  margin-inline: auto;      /* centrowanie bloku tekstu */
}
.section__title-left {
	margin-bottom:var(--h2-to-lead);
	max-width: 720px;         /* zeby text nie byl za szeroki MD - 680 */
  margin-inline: 0;      /* centrowanie bloku tekstu */
}
.subsections__container {
	display: flex;
	flex-direction: column;
	gap: var(--layout-grid-row-gap);
	margin-top: calc(var(--lead-to-subsection) - var(--h3-to-paragraph));  /* odejmujemy mt subsection__title-left */
}
.subsection {
	/*margin-top:var(--lead-to-subsection);*/
  margin-inline: 0;      /* centrowanie bloku tekstu */
}
.subsection__title-left {
	margin-bottom:var(--h3-to-paragraph);
	max-width: 720px;         /* zeby text nie byl za szeroki MD - 680 */
  margin-inline: 0;      /* centrowanie bloku tekstu */
  margin-top:var(--h3-to-paragraph);  /* refine */
}
.carusel-simple__container {
	width: 100%; 
	margin: auto;
	padding: 0 var(--section-padding-x) 0;
	max-width: var(--layout-container-max-width);
}
.section__images-container {
	width: 100%; 
	margin: auto;
	padding: 0 var(--section-padding-x) var(--section-padding-y);
	max-width: var(--layout-container-max-width); 
}

.eyebrow {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-eyebrow);
  letter-spacing: var(--letter-spacing-eyebrow);
  line-height: var(--line-height-eyebrow);
  font-weight:var(--font-weight-ui);
  text-transform: uppercase;
  color:var(--color-text-eyebrow);
  margin-bottom: var(--eyebrow-to-h2);
  margin-inline: auto;
}

.section__body {
  font-size: var(--font-size-body-base);
  line-height: var(--line-height-body-base);
  letter-spacing: var(--letter-spacing-body-base);
  /*margin-bottom: 16px;*/
  max-width: 700px;         /* szerokosc tekstu wysrodkowanego */
  margin-inline: auto;      /* centrowanie bloku tekstu */
}

.section__body-left {
  font-size: var(--font-size-body-base);
  line-height: var(--line-height-body-base);
  letter-spacing: var(--letter-spacing-body-base);
  width: 75%;   
  max-width: 85ch;         /* 80ch */     
}

.overline {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-eyebrow);
  letter-spacing: var(--letter-spacing-eyebrow);
  line-height: var(--line-height-eyebrow);
  font-weight:var(--font-weight-ui);
  text-transform: uppercase;
  color:var(--color-text-accent);
  margin-top: var(--lead-to-overline);
}

.section--studio {
	width:100%;
	height:580px;
	background-image:url(../img/home/about.jpg);
	background-repeat:no-repeat;
	background-size:cover;
}

.no-lead {
	margin-bottom:var(--lead-to-subsection);
	
}




/* LISTA PODSEKCJI */
.folio-subsections {
  display: flex;
  flex-direction: column;
  gap: var(--card-separator-gap);
  margin-top:var(--h2-to-subsection);
  margin-bottom:24px;
}

/* POJEDYNCZA PODSEKCJA */
.card {
  display: flex;
  /*align-items: center;*/
  gap: var(--image-text-x-gap);
}

/* Naprzemienny uklad – tekst/obraz */
.card--reverse {
  flex-direction: row-reverse;
}

/* MEDIA — 50% szerokosci */
.card__media {
  flex: 1 1 50%;
}

/* Wrapper z ratio 4:3 + radius 12px */
.media-ratio {
  position: relative;
  width: 100%;
  /*padding-bottom: 75%;  4:3 (3/4 = 0.75) */
  padding-bottom: 62.5%; /* 16:10 */
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevation-md);
}

/* Obrazek – wypelnia caly wrapper */
.media-ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}

.media-ratio-pressroom {
	object-position: right;
}

/*Zoom Image Animction*/

/* Link jako blok klikany */
.card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

/* Obramowanie + transition */
.media-ratio {
  transition: box-shadow 0.35s ease;
  will-change: box-shadow;
}

/* Sam obrazek – animowany zoom */
.media-ratio img {
  transition: transform 0.45s ease;
  will-change: transform;
}

/* Efekt hover (tylko gdy karta jest aktywna) */
.card__media-link:hover .media-ratio img {
  transform: scale(1.10); /* +10% */
}

.card__media-link:hover .media-ratio {
  box-shadow: var(--shadow-elevation-lg);
}




/* CONTENT — 50% szerokosci, tekst do lewej */
.card__content {
  flex: 1 1 50%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--h3-to-paragraph);
}

/* Teksty w kontencie */
.eyebrow__accent {
	color:var(--color-text-accent);
	margin-inline:0;
}
.eyebrow__left {
	margin-inline:0;
}
.card__content .eyebrow {
  text-transform: uppercase;
  font-size: var(--font-size-eyebrow);
  margin-bottom: var(--eyebrow-to-h3);
}

.card__content h3 {
  
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
}

.card__content p {
  
  font-size: var(--font-size-body-base);
  line-height: var(--line-height-body-base);
  max-width:50ch;
}
/*.card__header {
	display: flex;
  flex-direction: column;
  gap: var(--eyebrow-to-h3);
}*/
.card__body {
	display: flex;
  flex-direction: column;
  gap: var(--paragraph-button);
}


/* Separator miedzy podsekcjami */
.folio-separator {
  border: none;
  border-top: 1px solid var(--color-border-divider);
  margin: 0;
  width: 100%;
}



.clients {
  padding-block: 64px;
}

/* Jezeli masz juz .section__container, mozesz zamiast tego uzyc tej klasy */
.clients__inner {
  /*max-width: 1200px;*/
  max-width: var(--layout-container-max-width); /* Szerokosc grida*/
  margin: 0 auto;
  padding-inline: 16px;
}



/* Rzedy logotypow */
.clients__row {
  display: flex;
  justify-content: center;  /* wysrodkowanie calego rzedu */
  align-items: center;
  gap: 64px;                /* odstep miedzy logotypami */
  margin-bottom: 32px;
  flex-wrap: nowrap;        /* na desktopie: wszystkie w jednym rzedzie */
}

/* Ostatni rzad bez dolnego marginesu */
.clients__row:last-child {
  margin-bottom: 0;
}

/* Pojedynczy logotyp (kontener) */
.clients__item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Samo SVG */
.clients__logo {
  display: block;
  max-width: 220px;   /* mozesz dostosowac 160*/
  max-height: 80px;   /* kontrola wysokosci logotypu 40 */
  width: 100%;
  height: auto;
  object-fit: contain;
  
  /* Efekty wg uznania:*/
  filter: grayscale(1);
  opacity: 1;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  }
  
.clients__item:hover .clients__logo {
    opacity: 1;
    filter: grayscale(0);
    /*transform: translateY(-2px);*/
  }
  
.last-cta {
	margin-top:80px;
	margin-bottom:0;
}

.section--last-cta {
  position: relative;
  display: flex;
  align-items: center; 
  overflow: hidden;
  color: var(--color-text-hero-heading);
}


.section--last-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    var(--color-hero-gradient-3),
    var(--color-hero-gradient-1)
  );
}

.section--last-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(820px, 60vw);      
  width:100%;
  height: 100%;
  background-image: url("../svg/cta-shape.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 110%;         
  opacity: 1; 
  pointer-events: none;
  z-index: 0;
}


/* =========================================
   DESKTOP (default – largest screens)
========================================= */

/* Bazowy kontener */

.site-footer {
  background-color:var(--color-footer-bg);
  color:var(--color-footer-copy);
  /*padding: 56px 0 32px;*/
  font-size: 14px;
  line-height: 1.6;
}

/* top stopki – desktop layout */
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Brand */
.footer-brand {
  flex: 0 0 40%;
  max-width: 420px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo__img {
  width: 40px;
  height: auto;
}

.footer-logo__text {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-body-base);
  letter-spacing: var(--letter-spacing-body-base);
  text-transform: uppercase;
  color: var(--color-footer-copy);
}

.footer-tagline {
  margin-top: 12px;
  color: var(--color-footer-copy);
  font-size: var(--font-size-body-small);
  letter-spacing: var(--letter-spacing-body-small);
}

/* Kolumny links – desktop */
.footer-columns {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-end;
  gap: 48px;
}

.footer-column {
  min-width: 120px;
}

.footer-heading {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: green;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size:var(--font-size-body-small);
  line-height:var(--line-height-link-cta);
  letter-spacing:var(--letter-spacing-link-cta)
}

.footer-list li + li {
  margin-top: 24px;
}

.footer-list a {
  text-decoration: none;
  color: var(--color-footer-links);
  /*line-height:48px;*/
}

.footer-list a:hover,
.footer-list a:focus-visible {
  text-decoration: underline;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
}

.icon-img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

/* Separator */
.grid-with {
	width:100%;
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
	padding: 0 var(--section-padding-x);
	margin: 0 auto;
}

.footer-separator {
  border: none;
  border-top: 1px solid var(--color-border-divider-on-footer);
  width: 100%;
  
}

/* Dolny pasek – desktop */
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: red;
}

.footer-copy,
.footer-signature {
  margin: 0 0 24px;
  color:var(--color-footer-signature);
  font-size:14px;
  font-weight:300;
  letter-spacing:0.05em;
}

.page-links {display:block;}



/* PORTFOLIO OVERVIEW */
.portfolio-subsections {
  display: flex;
  flex-direction: column;
  gap: var(--card-separator-gap);
  margin-top:var(--h2-to-subsection);
}

.breadcrumb {
  padding: 24px 0;
  font-family:var(--font-family-heading);
  letter-spacing:0.1em;
  font-weight:var(--font-weight-bold);
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-body);
  text-decoration: none;
  font-size: 1rem; /*14*/
  line-height: 1.3;
  /*font-weight: 500;*/
  transition: color 0.2s ease, opacity 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--color-text-heading);
  text-decoration: underline;
}

/* Ikona z <img> */
.breadcrumb__icon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.breadcrumb__link:hover .breadcrumb__icon {
  opacity: 1;
}
.client-logotype {
  display: flex;
  width:auto;
  height: auto; 
}
.logo-horizontal {
	width:auto;
  height: 40px;
}
.logo-square {
	width:auto;
  height: 48px;
}
/*SCOPE*/

.scope__container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
  max-width: var(--layout-container-max-width); /* grid max width */
  margin-inline: auto;
  column-gap: 24px;
  margin-top:var(--lead-to-subsection);
  
}
/* Subsection inside the 12-column layout (10 of 12 columns on desktop) */
.scope-items {
  grid-column: 2 / span 10;
  margin-top: 40px;
}


/* Square media wrapper */
.scope-item__media {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 ratio on desktop/tablet */
  overflow: hidden;
  background-color: #f3f4f6;
  border-radius: var(--radius-small-card);

}

/* Image inside wrapper */
.scope-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 13%; /* object-position: 70% 13%; */
}

/* Caption text */
.scope-item__caption {
  margin-top: var(--image-sm-to-text);
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-body-small);
  letter-spacing: var(--letter-spacing-body-small);
  color: var(--color-text-body);
  padding: 0 32px;
}

.scope-items__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;       /* your original spacing */
  justify-content: center;
}

.scope-item {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(33.333% - 64px);
  max-width: 320px;
}

/*Next Client*/


.next-client {
  position: relative;
  display: flex;
  align-items: center; 
  overflow: hidden;
  /*color: var(--color-text-hero-heading);*/
  background: linear-gradient(
    135deg,
    var(--color-hero-gradient-3),
    var(--color-hero-gradient-1)
  );
}


.next-client::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(820px, 60vw);      
  width:100%;
  height: 100%;
  background-image: url("../svg/cta-shape.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 110%;         
  opacity: 1; 
  pointer-events: none;
  z-index: 0;
}
.next-client__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  
  width: 100%; 
	margin: auto;
	padding: var(--section-padding-y) var(--section-padding-x);
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
	
}

/* LEWA KOLUMNA */
.next-client__content {
  flex: 1 1 50%;
  z-index: 1;
}
/* PRAWA KOLUMNA — MOCKUP */
.next-client__visual {
  flex: 1 1 50%;
  display: flex;
  justify-content: flex-end;
}

.next-client__img {
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-image);
}
.next-visual-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*PROJECT SITE*/


.project-hero {
  position: relative;
  min-height: 520px;
  color: var(--color-text-heading);

  /* warm neutral base */
  background-color: #14100A; /* chocolate-black */

  background-image:
  /* warm violet tint */
  linear-gradient(
    to bottom,
    rgba(98, 31, 167, 0.08),
    rgba(74, 24, 130, 0.10),  /* midpoint smoothing */
    rgba(50, 15, 93, 0.12)
  ),

  /* chocolate darkening layer */
  linear-gradient(
    to bottom,
    rgba(20, 15, 10, 0.88),
    rgba(20, 15, 10, 0.74),  /* midpoint smoothing */
    rgba(20, 15, 10, 0.60)
  ),

  var(--project-hero-image);


  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;
}



/* Warstwa z trescia */
.project-hero__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 80px 80px;    /* gora uwzglednia header, dol dla oddechu */
}

/* Layout tresci (desktop) */
.project-hero__content {
     /*  max-width: 960px;          szerokosckolumny z tekstem */
}

/* Breadcrumb */
.project-hero__breadcrumb {
  margin-bottom: 24px;
}

.project-hero__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #ffffffcc;
}

.project-hero__breadcrumb-link:hover {
  color: #ffffff;
}

.project-hero__breadcrumb-icon {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}


.project-hero__title {
  font-size: var(--font-size-h1, 48px);
  line-height: var(--line-height-h1, 1.1);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.project-hero__lead {
  max-width: 540px;
  font-size: var(--font-size-text-lead); /*18*/
  line-height: var(--line-height-text-lead); /*1.5*/
  color: #ffffffcc;
  margin: 0 0 32px;
  max-width: 38ch;
}

/* CTA */
.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.project-hero__cta {
    text-decoration: none;
}
.client-site__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top:var(--lead-to-button);
}
/* Narrow container: 9/12 columns on desktop */
.section__container--narrow {
  width: 75%;           /* 9/12 columns */
  max-width: calc(var(--grid-max-width) * 0.75);
    margin-inline: 0; /* element przylega do lewej krawedzi */
}


/* base wrapper */
.mosaic--no-text-before {
	margin-block: 32px;   /*Póki co nieuzuwany*/
}

/* shared grid styling */
.mosaic {
  margin-top: var(--lead-to-subsection);
  display: grid;
  gap: var(--mosaic-gap);
}

/* map items to named grid areas */
.mosaic__item--big {
  grid-area: big;
}

.mosaic__item--small-1 {
  grid-area: small-1;
}

.mosaic__item--small-2 {
  grid-area: small-2;
}

/* shared item styles */
.mosaic__item {
  position: relative;
  overflow: hidden; /* default for cropped mode */
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-image-light);
}

/* image fills its container */
.mosaic__item img {
  display: block;
  width: 100%;
  height: 100%;
}

/* CROPPED / COVER MODE */
.mosaic--cover .mosaic__item img {
  object-fit: cover;
  object-position: center;
}

/* CONTAIN / FULL VISIBILITY MODE */
.mosaic--contain .mosaic__item {
  overflow: visible; /* allow PNG shadows outside the box */
}

.mosaic--contain .mosaic__item img {
  object-fit: contain;
  object-position: center;
}


/* ===========================
   HORIZONTAL VARIANT
   Top: 1 image (full width)
   Bottom: 2 images (side by side)
   =========================== */


.mosaic--horizontal {
  display: grid;
  gap: var(--mosaic-gap);
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "big     big"
    "small-1 small-2";
}
.mosaic--horizontal.mosaic--swap {
  grid-template-areas:
    "small-1 small-2"
    "big     big";
}
.mosaic--vertical {
  display: grid;
  gap: var(--mosaic-gap);
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "big     small-1"
    "big     small-2";
}
.mosaic--vertical.mosaic--swap {
  grid-template-areas:
    "small-1 big"
    "small-2 big";
}

/* wyjatek na przypadki z dodatkowymi cieniami np. przy video */
.mosaic__item--no-clip {
  overflow: visible;
}




/* MOSAIC FREE VERTICAL */

:root {


  /* Main ratios used in this layout */
  --mosaic-free-big-ratio: 1 / 1;    /* big item = square */
  --mosaic-free-small-ratio: 5 / 2.4;/* small items = ticket-like */

  /* Optional aliases if you want to reuse them later */
  --mosaic-free-big-square-ratio: 6 / 6;
  --mosaic-free-small-ticket-ratio: 5 / 2.4;
}

/* Base wrapper for the free vertical mosaic */
.mosaic--free-vertical {
  display: flex;
  column-gap: var(--mosaic-gap);  /* gap between LEFT and RIGHT columns */
  align-items: center;            /* vertically align column centers */
  max-width: 100%;
}

/* Columns - base (cover variant uses this) */
.mosaic--free-vertical .mosaic__col--big {
  flex: 0 0 calc(55% - var(--mosaic-gap) / 2);
  max-width: calc(55% - var(--mosaic-gap) / 2);
}

.mosaic--free-vertical .mosaic__col--small {
  flex: 0 0 calc(45% - var(--mosaic-gap) / 2);
  max-width: calc(45% - var(--mosaic-gap) / 2);
  display: flex;
  flex-direction: column;
  row-gap: var(--mosaic-gap);
}


/* Shared item styles */
.mosaic--free-vertical .mosaic__item {
  position: relative;
  overflow: visible;              /* allow shadows on inner image */
}

/* Big item */
.mosaic--free-vertical .mosaic__item--big {
  aspect-ratio: var(--mosaic-free-big-ratio);
  height: auto;                   /* reset inherited constraints */
  min-height: 0;
}

/* Small items */
.mosaic--free-vertical .mosaic__item--small {
  aspect-ratio: var(--mosaic-free-small-ratio);
  height: auto;                   /* reset inherited constraints */
  min-height: 0;
}

/* Images inside mosaic items */
.mosaic--free-vertical .mosaic__item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;            /* adjust radius */
  /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); */
}

/* Optional: natural aspect ratio (e.g. for PNGs with shadows) */
.mosaic--free-vertical .mosaic__item--natural img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* CONTAIN VARIANT FOR FREE VERTICAL MOSAIC */

/* Override small item ratio only for contain variant
   1920 x 1157 => aspect ratio of the source images */
.mosaic--free-vertical.mosaic--contain {
  --mosaic-free-small-ratio: 1920 / 1157;
}

/* Columns - contain variant (right column higher than left) */
.mosaic--free-vertical.mosaic--contain .mosaic__col--big {
  flex: 0 0 calc(44% - var(--mosaic-gap) / 2);
  max-width: calc(44% - var(--mosaic-gap) / 2);
}

.mosaic--free-vertical.mosaic--contain .mosaic__col--small {
  flex: 0 0 calc(56% - var(--mosaic-gap) / 2);
  max-width: calc(56% - var(--mosaic-gap) / 2);
}


/* Contain behavior: images fully visible, no crop */
.mosaic--contain .mosaic__item {
  overflow: visible; /* keep shadows and full image visible */
}

.mosaic--contain .mosaic__item img {
  object-fit: contain;
  object-position: center;
}

/* Remove shadow from the big item on the left
   (you already added this class in HTML) */
   
/*.mosaic__item--no-shadow img {
  box-shadow: none;
}*/
.mosaic__item--no-shadow {
  box-shadow: none;
}
/* Increase or decrease big-item height only in the contain variant */
.mosaic--free-vertical.mosaic--contain {
  --mosaic-free-big-ratio: 4 / 5; /* adjust this value as needed */
}


/*MaRS Portfolio */
.mosaic--cover .mosaic__item img.xmas-mailing-left {
  object-position: left center;
}




/* WIDE CELL – background image fills entire cell */
.mosaic__item--video-bg {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
  background-image: url("../img/portfolio/gov/projects/pressroom/pressroom-video-bg.jpg");
  background-size: cover;
  background-position: center;

  /* left-align content by default */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* video sticks to left edge */
}

/* video wrapper – no padding, no background, no card */
.mosaic__video-shell {
  position: relative;
  z-index: 1;
  padding:80px;
  width: 100%;
  max-width: 800px;    /* video max width on desktop */
}

.mosaic__video-shell video {
  border-radius:var(--radius-image);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}




.ux-image-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 40px;
	border-radius:var(--radius-md);
	overflow:hidden;
	box-shadow: var(--shadow-md);
}

/*video*/
#responsiveVideo {
	border-radius:var(--radius-md);
}
.video-wrapper-md video {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-dark-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.video-wrapper-md:hover video {
	box-shadow: var(--shadow-dark-md);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-wrapper-lg video {
	box-shadow: var(--shadow-dark-md);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-wrapper-lg:hover video {
	box-shadow: var(--shadow-dark-lg);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}


/* BRANDING LOGOTYPY */
.branding-logos {
  margin-top: 48px;
  margin-bottom: 24px;
}

/* GRID Z LOGOTYPAMI */
.branding-logos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.branding-logos__item {
  /* opcjonalnie: mozna nic nie robic */
}

/* LOGO CARDS - fixed tile size */
.branding-logos__card {
  background-color: var(--color-surface, #ffffff);
  border-radius: var(--radius-lg, 16px);

  /* fixed tile height on desktop */
  height: 256px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px; /* more breathing room for tall tiles */

  /* optional shadow */
  /* shadow-image-light adds rest */
}

/* OBRAZKI LOGOTYPOW */
.branding-logos__img {
   display: block;
  max-width: 100%;
  height: auto;
  /* all logos will fit into a similar visual box */
  /*max-height: 56px;*/
  object-fit: contain;
}

.branding-logos__img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/*Kolory kart logotypów GOV*/
.branding-logos__card--bg-01 { background: #F3F7FB; }
.branding-logos__card--bg-02 { background: #0077B6; }
.branding-logos__card--bg-03 { background: #0D1B2A; }
/*Kolory kart logotypów Iberapol*/
.branding-logos_iberapol__card--bg-01 { background: #F6F6F6; }
.branding-logos_iberapol__card--bg-02 { background: #EDD3A4; }
.branding-logos_iberapol__card--bg-03 { background: #111827; }


.image-overlay-wrapper {
	margin-top:var(--margin-top-to-overlayed-item); /*distance between p and overlayed items */
}

.overlap-about {
	margin-bottom:80px;
}

/* ROOT – container inside your grid */
.overlap-media {
  position: relative;
  width: 100%;
  margin-top: var(--lead-to-subsection);
 }

/* Common for both images */
.overlap-media__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-image-medium, 0 4px 16px rgba(0, 0, 0, 0.08));
}

.overlap-media__item-about { /* ABOUT US */
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-image-medium, 0 4px 16px rgba(0, 0, 0, 0.08));
}

/* Ensure images cover the frame */
.overlap-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PRIMARY image – bigger one */
.overlap-media__item--primary {
  max-width: 72%;     /* adjust to your design */
}
.about-primary {
  max-width: 62%;     /* adjust to your design */
}
/* SECONDARY image – smaller, overlapping */
.overlap-media__item--secondary {
  position: absolute;
  width: 42%;         /* adjust to your design */
  top: 50%;
  transform: translateY(-50%);
}
.about-secondary {
  width: 44%;     /* ABOUT US */
}
/* VARIANT – secondary on the right (default) */
.overlap-media--secondary-right .overlap-media__item--primary {
  margin-right: auto;           /* stick to the left */
}

.overlap-media--secondary-right .overlap-media__item--secondary {
  right: 0;
  transform: translate(0%, -50%); 
}

/* VARIANT – secondary on the left */
.overlap-media--secondary-left .overlap-media__item--primary {
  margin-left: auto;            /* stick to the right */
}

.overlap-media--secondary-left .overlap-media__item--secondary {
  left: 0;
  transform: translate(0%, -50%); 
}

/*Well Done Overlap Form*/

/* Wrapper for Well Done mockups */
.wd-mockup {
  position: relative;      /* anchor for absolute overlay */
  width: 100%;             /* full grid width */
  margin-bottom: 64px;
  margin-top: 80px;
}

/* Primary desktop mockup container */
.wd-mockup__primary {
  display: inline-block;              /* shrink to fit image */
  height: auto;                       /* let the image define height */
  overflow: hidden;                   /* for border radius clipping */
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base-image-dark);
}

/* Primary desktop mockup image */
.wd-mockup__image--desktop {
  display: block;
  width: auto;                        /* natural width */
  height: auto;                       /* natural height */
  max-height: 640px;                  /* limit vertical size */
  max-width: 100%;                    /* just in case, do not overflow parent */
}


/* Secondary mobile mockup wrapper (desktop layout) */
.wd-mockup__secondary {
  position: absolute;
  top: 50%;                           /* align vertically to the center */
  right: 0;                            /* stick to the right edge */
  transform: translateY(-50%);         /* center relative to image height */

  width: auto;
  height: auto;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  z-index: 2;
}

/* Secondary mockup image on desktop */
/* make mobile mockup width fixed on desktop */
.wd-mockup__image.wd-mockup__image--mobile {
  width: 384px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

.wd-mockup__picture {
  display: block;
}

.wd-mockup__image {
  width: 100%;
  height: auto;
  display: block;
}

.triple-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--layout-grid-column-gap);
  row-gap: var(--layout-grid-row-gap);
}

/* Single column item */
.triple-columns__item {
  position: relative;
  width:85%;
}

/* Brand accent above H3 */
.triple-columns__accent {
  width: auto; /* adjust freely / 48px */
  height: 1px; /* thickness of brand bar */
  background-color: var(--color-brand-violet-600); /* replace with brand token */
  margin-bottom: 24px; /* spacing before H3 */
}

/* Title */
.triple-columns__title {
  position: relative;
  margin: 0 0 16px 0;
  padding-top: 40px; /* miejsce na akcent */
}

.triple-columns__title-no-lead {
	margin-top:var(--h2-to-subsection);
}

/* Accent above the title */
.triple-columns__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px; /* or 1px */
  width: 100%;
  background-color: var(--color-brand-violet-600);
  transform: scaleX(1.1);          /* 110% width */
  transform-origin: left center;   /* grow only to the right */
}

/* FULL WIDTH */
.triple-columns--full .triple-columns__title {
  display: block; /* pelna szerokosc */
}

.triple-columns--full .triple-columns__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90%; 
  height: 1px;
  background: var(--color-brand-violet-600);
}

/* FIT TO TITLE WIDTH (+10%) */
.triple-columns--fit .triple-columns__title {
  display: inline-flex;  /* szerokosc = tekst */
  width: fit-content;
}

.triple-columns--fit .triple-columns__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;               /* bazowa szerokosc = tekst */
  height: 1px;
  background: var(--color-brand-violet-600);
  transform: scaleX(1.10);   /* +10% length */
  transform-origin: left center;
}

/* Paragraph spacing */
.triple-columns__item p {
  margin: 0;
}

.data-subsections {
  display: flex;
  flex-direction: column;
  gap: var(--card-separator-gap);
  /*margin-top:var(--h2-to-subsection);*/
  margin-bottom:24px;
}


.contact-cta__container {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: var(--card-separator-gap);
}

/* centered columns */
.contact-cta__item {
  text-align: center;
}

.contact-cta__heading {
  margin: 0;
}

.contact-cta__button {
  display: inline-flex;
  margin-top: var(--paragraph-button);
}

/* separator */
.contact-cta__separator {
  flex: 0 0 1px;
  align-self: stretch;
  background-color: var(--color-border-subtle, rgba(0, 0, 0, 0.08));
}


.contact-illustration {
  padding-block: 0;
}

/* center inside grid/container */
.contact-illustration__inner {
 	display: flex;
 	justify-content: center;
  	width: 100%;
	margin: auto;
	padding: 0 var(--section-padding-x) var(--section-padding-y-bottom);
	max-width: var(--layout-container-max-width);
}

/* figure is limited by grid width via container;
   inside – obrazek wycentrowany */
.contact-illustration__figure {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* desktop: image centered, limited by grid width */
.contact-illustration__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  opacity:0.7;
}

/* default mobile controls (can be overridden) */
.contact-illustration--cropped-mobile {
  --contact-illustration-mobile-height: 260px; /* parent height */
  --contact-illustration-mobile-shift-x: 0%;   /* horizontal shift */
}

.hero-policy-content {
	padding-bottom:32px;
  
}

.hero-policy-lead {
	width:65%;
	margin-top:32px;
}
.legal-page {
	margin-bottom:64px;
}
.section-text {
	width: 100%; 
	margin: auto;
	padding: 32px var(--section-padding-x);
	max-width: var(--layout-container-max-width); /* Szerokosc grida*/
}

.section-text h2 {
	margin-bottom:40px;
}
.section-text h3 {
	margin-top:32px;
	margin-bottom:16px;
}


/* MAIN MODAL CONTAINER */
.cookie-consent {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  max-width: 420px; /* modal width */
  /* width: 100%;  <- usun to */
  display: none;
  font-size: 14px;
  line-height: 1.4;
}

/* INNER BOX */
.cookie-consent__inner {
  background: #ffffff;
  border-radius: 16px;       /* larger radius = cleaner look */
  padding: 22px 24px;        /* increased padding */
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* TITLE */
.cookie-consent__title {
 /* font-size: 15px;
  font-weight: 600;*/
  margin: 0 0 10px;
}

/* TEXT */
.cookie-consent__text {
  margin: 24px 0;
}

/* SMALL TEXT */
.cookie-consent__text--small {
  font-size: 12px;
  color: #64748b;
}

/* LINK INSIDE TEXT */
.cookie-consent__link {
  color: #7A27CC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* BUTTON WRAPPER */
.cookie-consent__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* BASE BUTTON STYLE */
.cookie-consent__btn {
  flex: 1; /* buttons fill full width */
  border-radius: 999px;
  padding: 10px 14px; /* bigger padding */
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease,
              border-color 0.15s ease,
              transform 0.1s ease;
}

/* PRIMARY BUTTON */
.cookie-consent__btn--primary {
  background: #7A27CC;
  color: #ffffff;
  border-color: #7A27CC;
}

.cookie-consent__btn--primary:hover {
  background: #6920b0;
  border-color: #6920b0;
  transform: translateY(-1px);
}

/* SECONDARY BUTTON */
.cookie-consent__btn--secondary {
  background: #e5e7eb;
  color: #111827;
  border-color: #e5e7eb;
}

.cookie-consent__btn--secondary:hover {
  background: #d4d4d8;
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

/* MOBILE LAYOUT: BUTTONS STACKED */
@media (max-width: 480px) {
  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent {
    left: 1rem;
    right: 1rem;
    width: auto;      /* key fix: let it fit between left/right */
    max-width: none;  /* optional: allow full fluid width */
  }
}







/* ====== DESKTOP STANDARD ====== */
/* below 1540px — siatka 1200px */
@media (max-width: 1539px) {
 /*.section__container, .container, .grid-with, .section__hero-simple-container  {
    max-width: 1200px;
  }*/

.hero-content, .hero-portfolio-content {
  max-width: 48%; /* tymczasowo - szerokosc bloku tekstowego */
  position: relative;
  z-index: 1;
}

/*.hero-inner, .hero-portfolio-inner {
    max-width: 1200px;
 }*/
.hero-title, .hero-portfolio-title {
  max-width:13ch;
}

.hero-visual {
  left: 42vw;
}
.hero-visual-bg {
  background-size: 78% auto;   
background-position: 0px 143px; 
}

.visual-iberapol {
  object-position: 16%;
}

.hero-portfolio-inner {

}

.hero-portfolio-bg {

}


.section__title-left {
	max-width: 22ch;
}
.section__body {
  max-width: 600px; 
}
/*Well Done Overlap Form*/
.wd-mockup {
  margin-top: 64px;
}
.wd-mockup__image--desktop {
  max-height: 560px;                  /* limit vertical size */
}
.wd-mockup__image.wd-mockup__image--mobile {
  width: 320px;
}
}



/* ====== TABLET ====== */
/* below 1200px — siatka 960px */
@media (max-width: 1199px) {

.hero-title {
    max-width: 100%;
}
.hero-portfolio-inner {
  padding: 0 var(--section-padding-x);
 }

.hero-portfolio-lead {
	max-width: 440px;
}
.header__inner {
  padding-inline: var(--layout-header-padding-x);
}
.hero-visual {
  left: 42vw;
}
.hero-portfolio-visual-inner {
  height: 101%; /*bug*/
}
.media-ratio {
    padding-bottom: 76%; /* Proporcje dla tabletów 1 */
} 
  .site-footer {
    /*padding-top: 48px;*/
  }

  .site-footer__top {
    gap: 32px;
  }

  .footer-columns {
    gap: 32px;
  }

.scope__container {
    column-gap: 24px;
  }

  .scope-items {
    margin-top: 32px;
  }
.scope-item__caption {
  padding: 0 16px;
}

.media-ratio img {
  object-position: right;
}
.media-ratio-pressroom img {
	object-position: left;  /*custom positioning*/
}
.next-client__container {
    gap: 48px;
  }

  .next-client__img {
    max-width: 420px;
  }

.project-hero__overlay {
    padding-block: 140px 64px;
  }

  .project-hero__title {
    font-size: 40px;
  }

  .project-hero__lead {
    /*font-size: 16px;*/
	max-width: 38ch;
  }
  scope-items__grid {
    gap: 24px;
  }

  .scope-item {
    flex: 0 1 calc(50% - 24px);
    max-width: 360px;
  }
  
  .video-wrapper-md video {
  width: 800px;
  height: auto;
  display: block;
}

.branding-logos__card {
   height: 208px;
   padding: 16px;
}
/*Well Done Forms*/
.wd-mockup__image.wd-mockup__image--mobile {
  width: 322px;
}



}


@media (max-width: 1024px) {
	
 .scope-items__grid {
    gap: 48px;
  }
  
.hero-centered-title {
	max-width: 600px;
}

}
/* ====== SMALL TABLET / LARGE MOBILE ====== */
/* below 960px — width 100% */
@media (max-width: 959px) {
  .section__container, .container, .section__hero-simple-container {
/*    max-width: 100%*/;
	/*padding-left: 24px;
    padding-right: 24px;*/
  }
.grid-with {
	/*max-width: 100%;*/
	padding: 0 24px;
}
.hero {
    display: block;          
    padding: 88px 0 0;
    min-height: auto;
    align-items: flex-start;
}

.hero-inner { 
	padding: 0 var(--section-padding-x) 280px;
}
.hero-about-inner { 
	padding: var(--section-padding-y) var(--section-padding-x) var(--section-padding-y-bottom);
}

.hero-content {
  max-width: 100%;
}
.hero-portfolio-content {
  max-width: 45%;
}
.hero-title {
    max-width: 70%;
}
.hero-lead {
    max-width: 34ch;
}

.hero::after {
    width: 100%;
    height: 100%;
    background-position: right top;
}

.hero-visual {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    min-height: auto;
    z-index: 0;
	margin-top: -520px;
    padding: 0;
}
  
.hero-visual-inner {
    aspect-ratio: 4 / 2;
	min-height: 280px;
}
.hero-visual-bg { 
  	background-size: 70% auto;
    background-position: 100% 0;
}
.hero-portfolio {
  padding: 32px 0;
}

.hero-portfolio-title {
	max-width: 80vw;
}

 .hero-portfolio-lead {
	max-width: 80vw;
}

.media-ratio {
    padding-bottom: 80%; /* Proporcje dla tabletów 1 */
}


.site-footer__top {
    flex-direction: row;
}
.footer-brand {
    flex: 0 0 40%;
    max-width: 240px;
}
.footer-columns {
    flex-direction: row;
}
/* ====== BREAKPOINT: 2 logotypy w rzedzie ====== */
.clients__row {
    flex-wrap: wrap;         
    justify-content: center; 
	gap: 24px;
}

.clients__item {
    flex: 0 1 calc(50% - 20px);  
}

.clients__logo {
    max-width: 240px;
	max-height: 100px;
}
  

/*scope*/
  
.scope__container {
    grid-template-columns: repeat(8, minmax(0, 1fr));
	padding-left: 24px;
    padding-right: 24px;
  }

  .scope-items {
    grid-column: 1 / -1; /* span all columns on tablet */
  }

  .scope-items__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 items per row */
    gap: 48px;
  }

  /* 3:2 ratio for tablet as well */
  .scope-item__media {
    padding-top: 66.6667%; /* 3:2 ratio */
  }
  
    .section__body-left, .section__body {
  width: 80%;  /*moved from mobile queries*/     
}



  .branding-logos {
    margin-block: 64px;
  }

  .branding-logos__header {
    margin-bottom: 32px;
  }



.branding-logos__card {
    height: 160px;
    padding: 8px;
  }

  .branding-logos__img {
    /*max-height: 48px;*/
  }
.visual-iberapol {
  object-position: 20%;
}
  

    
  /*Well Done Overlap Form*/
.wd-mockup__image--desktop {
  max-height: 432px;                  /* limit vertical size */
}
.wd-mockup__image.wd-mockup__image--mobile {
  width: 256px;
  margin:auto;
}


}




/* ============================= */
/*        MOBILE / TABLET        */
/* ============================= */

@media (max-width: 768px) {

.hero::after {
  background-image: url("../svg/home/m_hero-shape.svg");
  background-position: right bottom;
  background-size: auto 80%;         
  opacity: 0.2;  
}
.hero-visual-bg {
 	background-size: 70% auto;
background-position: 100% 0%;
}
.hero-title {
	max-width:13ch;
}
.hero-centered-title {
	max-width: 480px;         /* zeby text nie byl za szeroki MD - 680 */
}
.section--studio {
    height: 380px;
    background-position: 63% 55%;
}
.section__title {
    max-width: 22ch;
}
.folio-subsections {
    gap: 48px;
    margin-top: var(--h2-to-subsection);
  }
.data-subsections {
	gap: 48px;
}
.card {
    flex-direction: row;   
    gap: var(--image-text-x-gap);
  }
.card.card--reverse {
    flex-direction: row-reverse;   
    gap: var(--image-text-x-gap);
  }
/*.media-ratio {
    padding-bottom: 62%;  jednak w poziomie - 80%
}*/ 
  .card__media,
  .card__content {
    flex: 1 1 auto;
    width: 100%;
  }

  .card__content {
    text-align: left;
  }

  .card__content p {
    max-width: 90%;
  }
 
 .section__title-left {
	max-width: 80%; /*20ch*/
}

  
.last-cta {
	margin-bottom:32px;
}


  /* topsekcja w kolumnie */

.site-footer__top {
	/*flex-direction: column;*/
    flex-direction: row;
}
  /* Kolumny lins */
.footer-columns {
    /*flex-direction: column;*/
	flex-direction: row;
    gap: 24px;
  }

  /* Dolny pasek w kolumnie */
  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
    align-items: flex-start;
  }
.footer-brand {
    flex: 0 0 40%;
    max-width: 240px;
}

.hero-content {
  max-width: 100%;
}

.hero-portfolio-content {
  max-width: 91%; /*pod Place Invest*/
  padding-bottom: 56px;
}

.hero-portfolio {
  position: relative;
  padding-top:72px;
padding-bottom:0;
  min-height: 640px;
  display: block;
}

.hero-portfolio-title {
	max-width:100%;
}

.hero-portfolio-inner {
  max-width: 100%;
}

.hero-portfolio-visual {
  position: relative;
  transform: none;
  width: 100%;
  height: 420px;
  left: auto;
}

.hero-about {
  padding: 104px 0 64px;
  min-height:auto;
}
.hero-about-lead {
	width:90%;
}
/* SCOPE */
.scope-items {
    margin-top: 32px;
  }

  .scope-items__grid {
    gap: 40px;
  }
  

.logo-horizontal {
  height: 32px;
}
.logo-square {
  height: 40px;
}

 .next-client__container {
    flex-direction: column;
    text-align: center;
  }

  .next-client__visual {
    order: -1; 
  }

  .next-client__img {
    max-width: 300px;
  }

  .next-client__content {
    flex: unset;
  }

.next-client::after {
  background-image: url("../svg/cta-shape.svg");
  background-position: left bottom;
  background-size: auto 80%;         
  /*opacity: 0.2;*/  
 
}
  
  .project-hero {
    min-height: 420px;
    align-items: flex-end;
  }

  .project-hero__overlay {
    padding-block: 120px 48px;
  }

  .project-hero__content {
    max-width: 100%;
  }

  .project-hero__title {
    font-size: 32px;
  }

 .project-hero__lead {
    width:90%;
  }

  .project-hero__actions {
    flex-direction: column;
    align-items: stretch;
  } 

/* ===========================
   RESPONSIVE - MOBILE STACK
   On smaller viewports, stack all items
   =========================== */

  .mosaic {
    /* simple vertical stack */
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .mosaic__item {
    grid-column: 1 / -1;
    grid-row: auto;
  }


.mosaic--horizontal,
  .mosaic--vertical,
  .mosaic--horizontal.mosaic--swap,
  .mosaic--vertical.mosaic--swap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "big"
      "small-1"
      "small-2";
  }
  

/* optional: let images keep natural aspect ratio on mobile */
  .mosaic__item {
    aspect-ratio: auto;
  }
  
.mosaic__item--video-bg {
    justify-content: center; /* centered on mobile */
  }

  .mosaic__video-shell {
    max-width: 100%;
	padding:0;
  }
  
  
.section__container--narrow {
  width: 100%;   
  max-width: calc(var(--grid-max-width) * 1);
}



  
  
  
/* MOBILE – stack (1 kolumna) */

  .branding-logos {
    margin-block: 64px;
  }

  .branding-logos__header {
    margin-bottom: 32px;
  }

  .branding-logos__grid {
    grid-template-columns: 1fr; /* stack */
    gap: 24px;
  }

.branding-logos__card {
    height: 240px;
    padding: 64px;
  }





/* --- Overlap Media - MOBILE / TABLET – simplify layout --- */

.overlap-media {
    display: flex;
    flex-direction: column;
    align-items: center; /* center both images horizontally */
    gap: 0; /* overlap will be done with margin */
    position: relative;
  }

  /* PRIMARY — full grid width */
  .overlap-media__item--primary {
    position: relative;
    width: 100%;     /* full width */
    max-width: 100%; /* respect the container */
    transform: none;
    top: auto;
    left: auto;
    right: auto;
  }

  /* SECONDARY — smaller image, centered */
  .overlap-media__item--secondary {
    position: relative;
    width: 70%;      /* or 75–80% depending on your design */
    max-width: 400px;  /* optional safety if you want */
    margin-top: -24px; /* subtle overlap */
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    z-index: 2;
  }
  .overlap-media--secondary-right .overlap-media__item--secondary {
  right: 0;
  transform: translate(0%, -8%);
}
.overlap-media--secondary-left .overlap-media__item--secondary {
  left: 0;
  transform: translate(0%, -8%);
}


.triple-columns {
    grid-template-columns: 1fr;
  }
.triple-columns__item {
	width:90%;
}

.triple-columns--full .triple-columns__title::before {
  width: 100%; 
}
  
  .contact-cta__container {
    flex-direction: column;
    row-gap: var(--card-separator-gap);
  }

  .contact-cta__separator {
    width: 100%;
    height: 1px;
  }
  
  .contact-illustration__inner {
    padding-inline: 0; /* full width on mobile */
  }

  .contact-illustration__figure {
    width: 100%;
    max-width: none;
  }

  /* viewport window: fixed height, overflow hidden */
  .contact-illustration--cropped-mobile .contact-illustration__figure {
    height: var(--contact-illustration-mobile-height);
    overflow: hidden;
  }

  /* image: full parent height, can be wider than screen, movable horizontally */
  .contact-illustration--cropped-mobile .contact-illustration__image {
    height: 100%;          /* full parent height -> full vertical visibility */
    width: auto;           /* can exceed viewport width */
    max-width: none;
    transform: translateX(var(--contact-illustration-mobile-shift-x));
  }
 .contact-illustration--cropped-mobile {
  --contact-illustration-mobile-height: 570px;
  --contact-illustration-mobile-shift-x: -5%;
}
  
}

/* ====== MOBILE ====== */
/* below 600px — extra paddings */
@media (max-width: 599px) {
.section__container, .container, .section__hero-simple-container {
   /* padding-left: 24px;
    padding-right: 24px;*/ /*usuwamy - zostawiamy tokeny*/
}
 
.header__inner {
  padding-inline: var(--layout-header-padding-x);
}
.hero-visual {
    margin-top: -244px;
}
.hero-visual-bg {
	background-size: 70% auto;
background-position: left 0%;
}
.hero-title {
	max-width:13ch;
}
.hero-centered-title {
	max-width: 650px;         /* zeby text nie byl za szeroki MD - 680 */
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--buttons-gap);
}

.btn {
    width: 100%;
  }
.section__title {
    max-width: 16ch;
}
 .section__title-left {
	width: 90%; 
}
.section__body-left, .section__body {
	width: 90%;
}

.section--studio {
	height:380px;
	background-size:cover;
}
.card, .card.card--reverse {
  flex-direction: column;
  gap: var(--image-text-x-gap);
}

.card__content .btn {
	margin: 16px auto;
}
.clients {
  padding-block: 32px;
}
/* ====== BREAKPOINT: 1 logotyp w rzedzie (stack) ====== */

.clients__item {
    flex: 0 0 100%;   
  }

  .clients__row {
    gap: 24px;
  }

  .clients__logo {
    max-width: 200px;
  }

  /* topsekcja w kolumnie */

.site-footer__top {
	flex-direction: column;
}
  /* Kolumny lins */
  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }

  /* Dolny pasek w kolumnie */
  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
    align-items: flex-start;
  }
.footer-brand {
    flex: 0 0 40%;
    max-width: 290px;
}


.page-links {display:none;}

.footer-copy {
  width: 30ch;
}
.footer-signature {
  display:none;
}
.breadcrumb {
    padding: 16px 0;
  }

  .breadcrumb__link {
    /*font-size: 13px;*/ /*14*/
    gap: 6px;
  }

  .breadcrumb__icon {
    width: 14px;
    height: 14px;
  }
 
.hero-portfolio-content {
	width:100%;	 
}

.hero-portfolio-title {
	width:100%;
}

.hero-visual-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: 70% 43%;
    display: block;
    transform: translateY(-20%);
}
/*Place Invest Hero Visual*/
.hero-visual-place-invest {
    width: auto;
    height: 160%;
}
.visual-gov {
	object-position: 58%;
	transform: translateY(0%);
	height: 100%;
}
.visual-iberapol {
	object-position: 52%;
	height: 100%;
	transform: translateY(0%);
}
.scope__container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
  }

  .scope-items {
    grid-column: 1 / -1; /* span all 4 columns */
  }

  .scope-items__grid {
    grid-template-columns: 1fr; /* single column stack */
    width: 86%;                 /* ~0.86 of parent width */
    max-width: 420px;           /* optional upper bound */
    margin-inline: auto;        /* center inside parent */
    gap: 40px;
  }

  .scope-item__media {
    padding-top: 66.6667%; /* 3:2 ratio on mobile */
  }
 
 
 .scope-item {
    flex: 0 1 100%;
    max-width: 100%;
  }
  
  
  
 .project-hero__cta {
    width: 100%;
  } 
  
.carusel-simple__container {
	padding: 0; /* Simple Intrinsic Carousel - FullWidth */
}
.branding-logos__card {
    height: 180px;
    padding: 32px;
  }
 /* STACK LAYOUT FOR FREE VERTICAL MOSAIC */
.mosaic--free-vertical {
    flex-direction: column;
    align-items: center;
    row-gap: var(--mosaic-gap);
  }

  /* Override column widths for all variants (cover + contain) */
  .mosaic--free-vertical .mosaic__col--big,
  .mosaic--free-vertical .mosaic__col--small,
  .mosaic--free-vertical.mosaic--contain .mosaic__col--big,
  .mosaic--free-vertical.mosaic--contain .mosaic__col--small {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  /* Small items: always full grid width in stack */
  .mosaic--free-vertical .mosaic__item--small {
    width: 100%;
    max-width: 100%;
  }

  /* Big item in COVER: full width */
  .mosaic--free-vertical.mosaic--cover .mosaic__item--big {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Big item in CONTAIN: 90% width and centered */
  .mosaic--free-vertical.mosaic--contain .mosaic__item--big {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
 
/*Well Done Free Vertical*/  
  .mosaic--free-vertical {
    flex-direction: column;
    align-items: stretch;
    row-gap: var(--mosaic-gap);   
  }

  .mosaic--free-vertical .mosaic__col--big,
  .mosaic--free-vertical .mosaic__col--small {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .mosaic--free-vertical .mosaic__col--big {
    order: 1;  
  }

  .mosaic--free-vertical .mosaic__col--small {
    order: 2;
  }
  
  
  
  
  /*Well Done Overlap Form*/
.wd-mockup {
    display: block;
    position: static;
    margin-bottom: 0;
  }

  .wd-mockup__primary {
    display: none;                    /* hide desktop mockup on mobile */
  }

  .wd-mockup__secondary {
    position: static;                 /* no overlap on mobile */
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 0;
    border-radius: var(--radius-2xl);
  }

  .wd-mockup__image--mobile {
    width: 100%;
  }
  
  
  
}


.shadow-image-light {
  box-shadow: var(--shadow-image-light);
}
.shadow-image-medium {
  box-shadow: var(--shadow-image-medium);
}
.shadow-image-dark {
  box-shadow: var(--shadow-image-dark);
}



/* Rebueno video - cienie z UX*/
#responsiveVideo {
	border-radius:var(--radius-small);
}

.video-wrapper-md video {
  width: 100%;
  height: auto;
  display: block;
  /*box-shadow: var(--shadow-dark-sm);*/
  box-shadow: var(--shadow-image-medium);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-wrapper-md:hover video {
	box-shadow: var(--shadow-image-dark);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}


/* Wrapper – cien tu */
.video-wrapper-lg {
  display: block;
  border-radius: var(--radius-small);
  overflow: hidden; 
  box-shadow: var(--shadow-image-light);
  transition: box-shadow 0.2s ease;
}

.video-wrapper-lg:hover {
  box-shadow: var(--shadow-image-dark);
}

/* Video nigdy nie dostaje cienia */
.video-wrapper-lg video {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
}

/* 1) Shadow on image bg */
.mosaic__item--video-bg {
  overflow: visible;
  position: relative; 
}

/* 2) Video – cien podstawowy */
.mosaic__item--video-bg video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-image-light); /* normal state */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* 3) Hover tylko na video (nie na figure) */
.mosaic__item--video-bg video:hover {
  box-shadow: var(--shadow-image-dark); /* hover state */
}
