@import 'css/normalize.css';
@import 'css/animate.css';

*,
*::after,
*::before {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /*primary colors*/
  --Primery-Colors-H100: #9F1c22;
  --Primery-Colors-H200: #1F2223;
  --Primery-Colors-H300: #b9b9b9;

  /* neutral colors */
  --Neutral-N900: #1F2223;
  --Neutral-N800: #363939;
  --Neutral-N700: #57595A;
  --Neutral-N600: #797A7B;
  --Neutral-N500: #8E9090;
  --Neutral-N400: #B1B2B2;

  /* border color */
  --Neutral-N300: #D2D3D3;
  --Neutral-N200: #EFEFEF;
  --Neutral-N100: #F6F6F6;
  --Neutral-white: #ffffff;

  /* accent colors */
  --Accent-Colors-B400: #4198BA;
  --Accent-Colors-B300: #71B2CC;
  --Accent-Colors-B200: #A0CCDD;
  --Accent-Colors-B100: #D9F4FF;

  --Accent-Colors-Y400: #FFC83B;
  --Accent-Colors-Y300: #FFDB80;
  --Accent-Colors-Y200: #FFEDC0;
  --Accent-Colors-Y100: #FFFAEF;

  --Accent-Colors-R400: #BB2C37;
  --Accent-Colors-R300: #CC6169;
  --Accent-Colors-R200: #DD959B;
  --Accent-Colors-R100: #EECACD;

  --border-radius: 30px;
}

article {
  margin-top: 1px;
}


/*    Topography    */
::selection {
  background: var(--Neutral-white);
  color: var(--Neutral-N900);
}

li::marker {
  content: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Source Sans Pro, sans-serif;
  line-height: 1;
  color: var(--Neutral-N800);
  margin-top: 4px;
  margin-bottom: 4px;
}

.h1-h200,
.h2-h200,
.h3-h200,
.h4-h200 {
  color: var(--Primery-Colors-H200);
}

.h1-h400,
.h2-h400,
.h3-h400,
.h4-h400 {
  color: var(--Primery-Colors-H400);
}

.h1-white,
.h2-white,
.h3-white,
.h4-white {
  color: var(--Neutral-white);
}

body {
  font-family: Source Sans Pro, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


/*    HEADINGS    */
h1 {
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  word-wrap: break-word;
}

h2 {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

h3 {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.03rem;
}

h4 {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.045rem;
  text-transform: uppercase;
}

h5 {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.035rem;
}

@media screen and (min-width: 1024px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px !important;
  }

  h5 {
    font-size: 14px;
  }
}


/*    BODY    */
.p1_r {
  font-family: Source Sans Pro, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.02rem;
}

.p1_b {
  font-family: Source Sans Pro, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.02rem;
}

.p2_r {
  font-family: Source Sans Pro, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.0175rem;

}

.p2_b {
  font-family: Source Sans Pro, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.0175rem;
}

.p3_r {
  font-family: Source Sans Pro, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.015rem;
}

.p3_b {
  font-family: Source Sans Pro, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.015rem;
}

.header__small_right {
  text-align: right;
}

.header__small_left {
  text-align: left;
}


/*   LABEL   */
.l1_r {
  font-family: Source Sans Pro, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 124%;
  letter-spacing: 0.02rem;
}

.l1_b {
  font-family: Source Sans Pro, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 124%;
  letter-spacing: 0.02rem;
}

.l2_r {
  font-family: Source Sans Pro, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 124%;
  letter-spacing: 0.0175rem;
}

.l2_b {
  font-family: Source Sans Pro, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  line-height: 124%;
  letter-spacing: 0.0175rem;
}

.l3_r {
  font-family: Source Sans Pro, sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 124%;
  letter-spacing: 0.015rem;
}

.l3_b {
  font-family: Source Sans Pro, sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 124%;
  letter-spacing: 0.015rem;
}


/*  GDID  */
.grid {
  display: grid;
}

.grid--1x3 {
  grid-template-rows: auto;
}

.grid__container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  justify-items: center;
}

@media screen and (min-width: 768px) {
  .grid--1x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--1x3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .grid--1x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--1x3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*  Blocks  */
.block {
  --padding-vertical: 4rem;
  padding: var(--padding-vertical) 1rem;
}

.block__header {
  text-align: left;
  padding-bottom: 12px;
}

.block__heading {
  margin-top: 0;
  margin-bottom: 0;
}

.block__header_right {
  text-align: right;
  padding-bottom: 2rem;
}

.block__header_left {
  text-align: left;
  padding-bottom: 3rem;
}

.block--light {
  background: var(--Neutral-white);
  color: var(--Neutral-N900);
}

.block--brand {
  background: var(--Primery-Colors-H100);
  color: var(--Neutral-white);
}

.block--dark {
  background: var(--Primery-Colors-H200);
  color: var(--Neutral-white);
}

.block--image {
  background: var(--Primery-Colors-H300);
  color: var(--Neutral-white);
}

.block--dark .block__heading {
  color: var(--Neutral-white);
}

/*  Containers  */
/* 1. Zapewnienie bezpiecznego paddingu dla wszystkich kontenerów na stronie */
.container {
  width: 100%;
  max-width: 1200px; /* Lub inna szerokość maksymalna z Twojego projektu */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;  /* Bezpieczny odstęp od lewej krawędzi */
  padding-right: 20px; /* Bezpieczny odstęp od prawej krawędzi */
}

/* 2. Dedykowane poprawki dla wersji tabletowych i mobilnych (do 992px) */
@media screen and (max-width: 992px) {
  /* Odstępy dla paska nawigacyjnego */
  .main-header .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Treść w sekcji Hero */
  .hero__content {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;  /* Dodatkowy bufor dla tekstu w Hero */
    padding-right: 10px;
  }
}

/*  INFO */
.info-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info {
  display: block;
  flex-direction: column;
  align-items: flex-start;
  width: 26rem;
  gap: 0rem;
  flex-shrink: 0;
  padding: 10px;
}

.info--content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.info--icon {
  width: 50px;
  height: 50px;
  padding-top: 0%;
}

.info--title {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0;
}

.info--description {
  font-size: 1rem;
  line-height: 1.5;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 6px;
  color: var(--Neutral-white);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: var(--Neutral-N900);
}

.text {
  color: var(--Neutral-white);
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: var(--Neutral-white);
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 1px;
  background-color: var(--Neutral-N200);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: var(--Neutral-N400);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}


/*  Media  */
.media {
  display: flex;
}

.madia__title {
  display: flex;
  margin-top: 8px;
  margin-bottom: 2x;
  gap: 10px;
  align-items: center;
}

.media__body {
  margin: 0 0.2rem;
}

.media__icon {
  margin-right: 8px;
  width: 24px;
  height: 24px;
  color: var(--Neutral-N100);
}

.media__image {
  margin-top: 1rem;
  width: 50px;
  height: 50px;
}


/*  Icons */
.icon {
  width: 40px;
  height: 40px;
}

.icon--primary {
  fill: var(--Neutral-N900);
}

.icon-container {
  background: var(--Neutral-white);
  width: 64px;
  height: 64px;
  border-radius: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.icon--heading {
  display: flex;
  width: 16.8625rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}

/*    Inputs    */
.input {
  border-radius: 30px;
  border: 1px solid var(--Neutral-N400);
  color: var(--Neutral-N900);
  font-size: 2rem;
  outline: 0;
  padding: 1.5rem 3.5rem;
}

.input-group {
  background: var(--Neutral-white);
  border: 1px solid var(--Neutral-N400);
  border-radius: 30px;
  display: flex;
}

.input-group .input {
  border: 0;
  flex-grow: 1;
  padding: 1.5rem 1rem;
}

.input-group .btn {
  margin: 4px;
}

::placeholder {
  color: var(--Neutral-white);
}

@media screen and (min-width:1024px) {
  .input {
    font-size: 1, 5rem;
  }
}


/*  Callapsibles  */
.collapsible__header {
  display: flex;
  justify-content: space-between;
}

.collapsible__heading {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--Neutral-white);
}

.collapsible_chevron {
  transform: rotate(-90deg);
  transition: transform 0.3s;

}

.collapsible__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s;
  color: var(--Neutral-white);
}

.collapsible--expanded .collapsible_chevron {
  transform: rotate(0);
}

.collapsible--expanded .collapsible__content {
  max-height: 100vh;
  opacity: 1;
}


/*   Buttons   */
.btn {
  font-family: Source Sans Pro, sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 124%;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  
  /* MOBILNA WERSJA (domyślna) - mniejszy, zgrabny przycisk na telefon */
  font-size: 1rem;            /* Zmniejszone z 1.8rem */
  padding: 0.75rem 1.5rem;    /* Zmniejszone marginesy wewnętrzne */
  letter-spacing: 0.08rem;
  
  margin: 1rem 0;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn--primary {
  background: var(--Neutral-white);
  color: var(--Accent-Colors-R400);
  border-color: var(--Neutral-N600);
}

.btn--primary:hover {
  color: var(--Neutral-N500);
}

.btn--secondary {
  background: var(--Primery-Colors-H300);
  color: var(--Neutral-white);
}

.btn--secondary:hover {
  background: var(--color-accent);
}

.btn--accent {
  background: var(--Primery-Colors-H300);
  color: var(--Neutral-white);
}

.btn--accent:hover {
  background: var(--Primery-Colors-H400);
}

.btn--stretched {
  padding-left: 3rem;
  padding-right: 3rem;
}

.btn--block {
  width: 100%;
  display: inline-block;
}

/* TABLETY I DESKTOPY - większe przyciski od 768px wzwyż */
@media screen and (min-width: 768px) {
  .btn {
    font-size: 1.125rem;
    padding: 0.85rem 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .btn {
    font-size: 1.2rem;
    padding: 0.9rem 2.2rem;
  }
}


/*  Links   */
a {
  text-decoration: none;
}

.link-arrow {
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: bold;
}

.link-arrow::after {
  content: '>';
  margin-left: 5px;
  transition: margin 0.15s;
}

.link-arrow:hover::after {
  margin-left: 10px;
}

@media screen and(min-width:1024px) {
  .link-arrow {
    font-size: 1, 5rem;
  }
}


/*  Lists   */
.list {
  list-style: none;
  padding-left: 0;
  color: var(--Neutral-N100);
}

.list--inline .list__item {
  display: inline-block;
  margin-right: 2rem;
}

.list--tick {
  list-style-image: url(../assets/images/tick.svg);
  padding-left: 3rem;
}

.list--tick .list__item {
  padding-left: 0, 5rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
  .list--tick .list__item {
    padding-left: 0;
  }
}

/* SECTIONS ON THE PAGE  SECTIONS ON THE PAGE  SECTIONS ON THE PAGE  SECTIONS ON THE PAGE   */

/* TOP BAR (Pasek kontaktowy) */
.top-bar {
  background-color: #d32f2f;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar__container {
  display: flex;
  justify-content: flex-end; /* Wyrównanie całości do prawej strony */
  align-items: center;
  gap: 2rem;                 /* Odstęp między danymi kontaktowymi a ikoną LinkedIn */
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;               /* Odstęp między telefonem a e-mailem */
}

.top-bar__item {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s ease;
}

.top-bar__item:hover,
.top-bar__social-link:hover {
  opacity: 0.8;
}

.top-bar__social-link {
  color: #ffffff;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.top-bar__icon {
  width: 16px;
  height: 16px;
}

/* UKRYCIE NA MOBILKACH */
@media screen and (max-width: 768px) {
  .top-bar {
    display: none; /* Pasek całkowicie znika na telefonach i ekranach < 768px */
  }
}

/* ==========================================
   NAVBAR & MOBILE MENU
   ========================================== */
.nav {
  display: flex;
  justify-content: space-between; /* Rozdziela logo (lewa) i menu (prawa) */
  align-items: center;
  position: relative;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* Wygląd listy linków na DESKTOPIE (domyślny) */
.nav__list,
.collapsible__content {
  display: flex;
  align-items: center;
  gap: 2rem;                   /* Odstęp między linkami w menu */
  list-style: none;
  margin: 0;
  margin-left: auto;           /* Kluczowy element: pcha menu na samą prawą stronę */
  padding: 0;
  opacity: 1;
  max-height: none;
  overflow: visible;
}

/* Przycisk hamburgera */
.nav__toggler {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-between; /* Rozciąga 3 kreski równomiernie */
  width: 32px;
  height: 26px;                   /* Zwiększona wysokość = większy odstęp między kreskami */
  z-index: 1001;
}

/* Pojedyncza kreseczka */
.hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;                    /* Grubość kreski */
  background-color: #333;
  border-radius: 2px;
}

/* Domyślny kolor linków w menu */
.nav__list a,
.collapsible__content a {
  color: #000000;              /* Czarny kolor tekstu */
  text-decoration: none;       /* Usuwa domyślne podkreślenie */
  transition: color 0.2s ease; /* Płynna zmiana koloru przy najechaniu */
}

/* Kolor po najechaniu myszką (hover) oraz po zaznaczeniu (focus) */
.nav__list a:hover,
.collapsible__content a:hover,
.nav__list a:focus,
.collapsible__content a:focus {
  color: #666666;              /* Szary kolor po najechaniu */
}

@media screen and (max-width: 768px) {
  .nav__toggler {
    display: flex; /* Pokazujemy przycisk na mobilkach */
  }

  /* Rozwijane menu na mobilkach */
  .nav .collapsible__content {
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff; /* Tło menu mobilnego */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 0 1.5rem;
    margin: 0;
    list-style: none;
    z-index: 1000;
  }

  /* Stan otwartego menu */
  .nav.collapsible--expanded .collapsible__content {
    max-height: 300px; /* Maksymalna wysokość rozwiniętego menu */
    opacity: 1;
    padding: 1.5rem;
  }

  .nav__item {
    margin: 0.75rem 0;
    width: 100%;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../assets/images/hero_back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--Neutral-white);
  padding: 4rem 0; 
}

/* Przywracamy domyślne zachowanie .container, aby zrównał się z resztą strony */
.hero .container {
  width: 100%;
  /* Usunięto margin: 0 !important oraz max-width: 100% */
}

/* Zawartość Hero (nagłówek, podtytuł, przycisk) */
.hero__content {
  display: flex;
  text-align: justify;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 750px; /* Ograniczenie szerokości tekstu, ale bez odrywania od lewej siatki */
  margin: 0;
  padding: 0;
}

.hero__heading {
  font-size: 2.25rem;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--Neutral-white);
  margin-bottom: 1.5rem;
  text-align: left;
}

.block__heading.hero__heading {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.block__subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  color: var(--Neutral-white);
  opacity: 0.95;
}

.hero__tagline {
  font-size: 2rem;
  color: var(--Accent-Colors-B200);
  letter-spacing: 1px;
  margin: 2rem 0 5rem;
}

.hero__content .btn {
  display: inline-block;
  width: auto;
  margin-left: 0;
  background-color: #c02626;
  color: #ffffff;
  border: none;
  padding: 0.9rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero__content .btn:hover {
  background-color: #a01f1f;
  color: #ffffff;
}

/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */
@media screen and (min-width: 768px) {
  .hero__heading {
    font-size: 2.75rem;
    line-height: 1.15;
    letter-spacing: 0.2rem;
    padding-bottom: 24px;
  }
}



@media screen and (max-width: 992px) {
.hero__content {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;  /* Dodaje odstęp z lewej strony dla tekstu */
    padding-right: 16px; /* Dodaje odstęp z prawej strony dla tekstu */
  }

  .hero__content .btn {
    width: auto;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  /* Usuwamy dotychczasowe marginesy z .mobile-padding (jeśli były) */
  .mobile-padding {
    margin-left: 0;
    margin-right: 0;
  }

  /* Dodajemy bezpieczny odstęp (padding) do głównego kontenera w sekcji Hero */
  .hero .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Centrujemy przycisk na telefonie (tak jak ustaliśmy wcześniej) */
  .hero__content .btn {
    align-self: center; 
    width: auto;        
  }
}

/* ABOUT SECTION */
.title-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2,5px;
  word-wrap: break-word;
  margin-bottom: 6px;
}

.title--heading {
  display: flex;
  gap: 24px;
}

.title--heading h1 {
  margin: 0;
}

.title--heading-nasze {
  color: var(--Neutral-N500);
  font-size: 56px;
  font-family: Montserrat;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 70px;
  letter-spacing: 2.24px;
  word-wrap: break-word;
}

.title--heading-realizacje {
  color: var(--Primery-Colors-H100);
  font-size: 56px;
  font-family: Montserrat;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 70px;
  letter-spacing: 2.24px;
  word-wrap: break-word;
}

.heading__color_H400 {
  color: var(--Primery-Colors-H400);
}

.media-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: stretch; /* ZMIANA: stretch zamiast center (wspólna wysokość kolumn) */
}

.about__content {
  display: flex;
  text-align: justify;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.about__image-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 100%; /* ZMIANA: rozciąga kontener zdjęcia do wysokości tekstu */
}

.about__image {
  width: 100%;
  height: 100%; /* ZMIANA: włącza pełne dopasowanie wysokości */
  object-fit: cover; /* Zdjęcie docina się bez rozciągania */
  border-radius: 28px;
}

@media screen and (min-width: 768px) {
  .about__content {
    gap: 1rem;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================
   SEKCJA "OFFER"
   ========================================== */
.heading__white {
  color: var(--Neutral-white);
}

.offer--content {
  display: flex;
  color: var(--Neutral-white);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex: 1 0 0;
  padding: 1rem;
}

.offer--content p.p1_b {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.main-container {
  overflow: hidden;
}

.media--content {
  padding-right: 24px;
}

.main-container .media__body {
  margin-bottom: 2rem;
}

.main-container .madia__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.main-container .p2_r {
  font-size: 1rem;
  line-height: 1.6;
}

.offer__image-container {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.offer__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.offer--content .icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 768px) {
  .offer--content {
    padding: 0.5rem;
  }

  .offer--content p.p1_b,
  .main-container .p2_r {
    font-size: 1rem;
  }

  .main-container .madia__title {
    font-size: 1.1rem;
  }

  .media--content {
    padding-right: 4px;
  }
}

.where h1 {
  padding-bottom: 24px;
}

/* Siatka kart - wymuszone 3 kolumny */
.article-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 karty obok siebie */
  gap: 1.5rem;
  padding-bottom: 10px;
}

/* Responsywność */
@media (max-width: 900px) {
  .article-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .article-cards-grid {
    grid-template-columns: 1fr;
  }
}




/* Styl pojedynczej karty ze zmienionym kształtem rogów */
.article-card {
  width: 100%;
  
  /* Rogi: [lewy-górny: 28px] [prawy-górny: 0] [prawy-dolny: 28px] [lewy-dolny: 0] */
  border-radius: 28px 0 28px 0;
  
  overflow: hidden;
  position: relative;
  background-color: var(--Primery-Colors-H100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 300ms;
  
  display: flex;
  flex-direction: column;
}



/* Efekt najechania */
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
}

/* Treść wewnątrz karty */
.article-card .content {
  box-sizing: border-box;
  width: 100%;
  padding: 32px 24px;
}

/* Nagłówek z ikoną */
.article-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Ikona - KOLOR BIAŁY (powiększona o 20% z 32px do ~38px) */
.article-card .card-icon {
  width: 38.4px;
  height: 38.4px;
  color: var(--Neutral-white); 
  flex-shrink: 0;
}
/* Tytuł h2 - KOLOR BIAŁY */
.article-card .title {
  margin: 0;
  color: var(--Neutral-white); 

  font-weight: 600;
  line-height: 1.3;
}

/* Stylizacja listy wypunktowanej */
.article-card .card-list {
  margin: 0;
  padding: 0;
  list-style: none !important; /* Wyłączamy domyślne punkty */
  
  /* KOLOR TEKSTU LISTY BIAŁY */
  color: var(--Neutral-white); 
  
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Pojedynczy punkt listy */
.article-card .card-list li {
  position: relative;
  padding-left: 20px; /* Miejsce na naszą własną kropkę */
  margin-bottom: 10px;
}

.article-card .card-list li:last-child {
  margin-bottom: 0;
}

/* Tworzenie własnej, BIAŁEJ kropki */
.article-card .card-list li::before {
  content: "•"; /* Kropka jako znak */
  position: absolute;
  left: 0;
  top: 0;
  
  /* KOLOR KROPKI BIAŁY */
  color: var(--Neutral-white); 
  
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================
   SEKCJA "TEAM"
   ========================================== */
#team h2,
#team h4 {
  color: var(--Neutral-white, #ffffff);
}

.team-card {
  /* Tło: białe z 10% krycia (czyli 90% przezroczystości) */
  background-color: rgba(255, 255, 255, 0.01);
  
  /* Efekt rozmycia tła (glassmorphism) */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Stylizacja krawędzi i odstępów */
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Płynne przejście przy najechaniu */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  
  /* Prawidłowy układ */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Ustawienie domyślnego koloru czcionki na Twoją zmienną */
  color: var(--Neutral-white, #ffffff);
}

/* Subtelny efekt uniesienia i rozjaśnienia karty po najechaniu myszką */
.team-card:hover {
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Spójny biały kolor dla tytułów i opisów wewnątrz kart */
.team-card .title,
.team-card .long-text,
.team-card h3,
.team-card h4,
.team-card p {
  color: var(--Neutral-white, #ffffff);
}

.team-card .title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.team-card .long-text {
  line-height: 1.6;
}

/* Przycisk przezroczysty z tekstem i strzałką */
.read-more-btn {
  background: transparent !important;
  border: none !important;
  color: var(--Accent-Colors-B200, #8d7171); /* Twój kolor akcentu */
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: none !important;
}

/* Domyślna strzałka w prawo */
.read-more-btn::after {
  content: "→";
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.25 ease;
}

/* Lekki ruch strzałki w prawo na hover */
.read-more-btn:hover::after {
  transform: translateX(4px);
}

/* Po rozszerzeniu (skrypt dodaje klasę .is-open) - strzałka skierowana w górę */
.read-more-btn.is-open::after {
  content: "↑";
  transform: none;
}


/* ==========================================
   SEKCJA "PRINCIPALES"
   ========================================== */
/* Widok mobilny (domyślny) - 1 karta w rzędzie */
.principals-cards-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 kolumna na całą szerokość */
  gap: 2rem; /* odstęp między kartami (możesz dostosować np. 1.5rem / 24px) */
}

/* Widok desktopowy - 2 karty w rzędzie */
@media screen and (min-width: 768px) {
  .principals-cards-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 równe kolumny */
  }
}

/* Styl samej karty (Flexbox) */
/* Styl samej karty (Flexbox) */
.principals-card {
  display: flex;
  flex-direction: row;        /* Ikona z lewej, treść z prawej */
  align-items: flex-start;    /* Wyrównanie do góry */
  gap: 1.5rem;                /* Odstęp między ikoną a tekstem */
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* TYP 2: Zamiana kolejności (Tekst z lewej, ikona z prawej) */
.principals-card--reverse {
  flex-direction: row-reverse;
  text-align: right;          /* Wyrównanie tekstu do prawej dla symetrii */
}

/* Uniwersalne ustawienie dla wszystkich ikon w sekcji Principals */
.principals-card__icon {
  /* Usuwamy sztywne wymiary (48px) */
  width: auto !important;
  min-width: unset !important;
  min-height: unset !important;
  
  /* Rozciągamy ikonę do pełnej wysokości bloku tekstowego */
  align-self: stretch;
  height: auto !important;
  
  /* Maksymalny limit szerokości, żeby ikona nie stała się za duża */
  max-width: 80px; 
  
  /* Zapewnia właściwe proporcje bez rozciągania obrazka */
  object-fit: contain; 
  flex-shrink: 0;
  
  /* Kolorowanie dla bezpośredniego kodu SVG */
  stroke: #c02626;
  color: #c02626;
  fill: none;
}

/* Bloki tekstowe */
.principals-card__content {
  flex: 1;                    /* Tekst wypełnia pozostałe miejsce */
}

.principals-card__title {
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.principals-card__text {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Hover effect */
.principals-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #c02626;
}

/* Zabezpieczenie na najmniejsze ekrany mobilne (np. telefony poniżej 576px), 
   żeby ikona 5rem (80px) nie ściskała tekstu */
@media screen and (max-width: 576px) {
  .principals-card,
  .principals-card--reverse {
    flex-direction: column;
    text-align: left;
  }
}

/* ==========================================
   SEKCJA "LOW"
   ========================================== */
/* 1. Tło sekcji, przyciemnienie i biały kolor tekstów */
#low,
.low-section {
  position: relative;
  /* Przyciemnienie 50% (rgba) + obrazek z wyjściem z folderu css (../) */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url("../assets/images/low_back.png") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Wymuszenie białego koloru dla wszystkich nagłówków w tej sekcji */
#low h1,
#low h2,
#low h3,
#low h4,
#low .header__small_left,
#low .low-description p {
  color: #ffffff !important;
}


/* 2. Siatka kart (Responsive Grid: Desktop 3, Tablet 2, Mobile 1) */

/* Wersja mobilna: 1 karta w rzędzie (od 0px) */
.low-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Wersja tabletowa: 2 karty w rzędzie (od 768px) */
@media screen and (min-width: 768px) {
  .low-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Wersja desktopowa: 3 karty w rzędzie (od 1024px) */
@media screen and (min-width: 1024px) {
  .low-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* 3. Wygląd pojedynczej karty i efekt Hover */
.low-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Płynna zmiana kolorów bez efektu podnoszenia (translateY) */
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Czerwone obramowanie i poświata po najechaniu myszką */
.low-card:hover {
  border-color: #e53e3e;
  background-color: var(--Primery-Colors-H100);
}


/* 4. Nagłówek w karcie — z białą kreską NAD tekstem */
.low-card__title {
  display: flex;
  flex-direction: column;   /* Ustawia kreskę w pionie NAD tekstem */
  align-items: flex-start;  /* Wyrównanie do lewej */
  gap: 0.85rem;             /* Odstęp między kreską a tekstem */
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Biała kreska umieszczona nad tytułem */
.low-card__title::before {
  content: "";
  display: block;
  width: 2.5rem;            /* Długość kreski */
  height: 2px;              /* Grubość kreski */
  background-color: #ffffff;/* Kolor kreski */
  flex-shrink: 0;
}

/* Treść wewnątrz karty */
.low-card__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}


/* ==========================================
   SEKCJA "TAG"
   ========================================== */
.tags__carousel {
  display: flex;
  overflow-x: auto; /* Zezwala na scrollowanie programowe i dotykowe */
  white-space: nowrap;
  cursor: pointer;
  scrollbar-width: none; /* Ukrywa pasek w Firefoxie */
  -ms-overflow-style: none; /* Ukrywa pasek w IE/Edge */
}

/* Ukrywa pasek przewijania w Chrome, Safari, Brave, Edge */
.tags__carousel::-webkit-scrollbar {
  display: none;
}

.tag {
  flex: 0 0 auto;
  padding: 8px 16px;
  margin-right: 12px;
  background-color: var(--Primery-Colors-H100);
  color: #ffffff;
  border: 1px solid var(--Neutral-N100, #F6F6F6);
  border-radius: 20px;
  font-size: 14px;
  user-select: none;
  transition: all 0.3s ease;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.tag:hover {
  filter: brightness(0.85); /* Przyciemnienie po najechaniu */
}

/* TAGS CAROUSEL */
.tags {
  width: 100%;
  overflow: hidden; /* Ukrywamy to, co wychodzi poza ekran */
  padding: 1rem 0;
}

.tags__carousel {
  display: flex;
  width: max-content; /* Pozwala elementom rozciągnąć się w jednej linii */
  animation: marquee 20s linear infinite; /* Automatyczny ruch */
}

/* Zatrzymanie po najechaniu myszką */
.tags__carousel:hover {
  animation-play-state: paused;
}

.tag {
  flex: 0 0 auto;
  padding: 8px 16px;
  margin-right: 12px;
  background-color: var(--Primery-Colors-H100);
  color: #ffffff;
  border: 1px solid var(--Neutral-N100, #F6F6F6);
  border-radius: 20px;
  font-size: 14px;
  user-select: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.tag:hover {
  filter: brightness(0.85);
  cursor: pointer;
}

/* Kluczowa animacja przesuwania */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Przesuwa dokładnie o połowę szerokości paska */
  }
}

/* Domyślnie skracamy tekst do 3 linijek */
.team-card .long-text {
  text-align: justify;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Liczba widocznych linijek przed rozwinięciem */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Stan rozwinięty (dodawany przez JS) */
.team-card .long-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}


/* ==========================================
   CONTACT SECTION
   ========================================== */

/* Główny kontener sekcji z grafiką w tle */
#contact.contact-section {
  position: relative;
  background-image: url('../assets/images/ask_back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1rem;
  color: #ffffff;
  text-align: left;
}

/* Kolory nagłówków i opisów */
#contact .contact-subtitle,
#contact .contact-title,
#contact .contact-description {
  color: #ffffff;
}

#contact .contact-subtitle {
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#contact .contact-title {
  font-size: 2.2rem;
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Kontener na treść i formularz */
.contact-content {
  width: 100%;
  margin-top: 1.5rem;
}

/* Opis z lewej strony (50% szerokości desktopu) */
.contact-description {
  width: 50%;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-align: left;
}

/* ==========================================
   FORMULARZ I PRZYCISK (Automatyczne dopasowanie)
   ========================================== */

.contact-form {
  width: 100%;
  max-width: 650px;
  margin: 0;
}

.contact-form__group:focus-within {
  border-color: #ffffff;
}

/* Pole e-mail — rozciąga się i zajmuje całe pozostałe miejsce */
.contact-form__input {
  flex: 1 1 auto;
  min-width: 0; /* Zapobiega wypychaniu kontenera przy długim tekście */
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  color: #ffffff;
  box-sizing: border-box;
}

.contact-form__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Przycisk — szerokość dopasowuje się idealnie do tekstu */
.contact-form__btn.btn {
  flex: 0 0 auto;               /* Dostosowuje szerokość do długości napisu */
  width: auto;                  /* Kasuje stałe szerokości */
  margin: 0;                    /* Kasuje margin z klasy .btn */
  border-radius: 0 50px 50px 0; /* Zaokrąglenie dopasowane do prawej krawędzi */
  background-color: #ffffff;    /* Białe tło */
  color: #c02626;               /* Czerwony tekst */
  padding: 0.9rem 2.5rem;       /* Wewnętrzne odstępy po bokach napisu */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form__btn.btn:hover {
  background-color: #f8f8f8;
  color: #a01f1f;
}

/* ==========================================
   RESPONSYWNOŚĆ (Media Queries)
   ========================================== */

@media (max-width: 992px) {
  .contact-description {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-form__group {
    flex-direction: column;
    border-radius: 20px;
  }

  .contact-form__input {
    width: 100%;
    text-align: center;
  }

  .contact-form__btn.btn {
    width: 100%;
    border-radius: 0 0 20px 20px;
    padding: 0.9rem 1rem;
  }
}


/* ==========================================
   OPIS W SEKCJI KONTAKTOWEJ
   ========================================== */

/* Wersja domyślna: Komputery / Desktop (50% szerokości) */
.contact-description {
  width: 50%;
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-align: left;
}

/* Wersja mobilna i tablety: poniżej 992px (100% szerokości) */
@media (max-width: 992px) {
  .contact-description {
    width: 100%;
    max-width: 100%;
  }
}


/* ==========================================
   FOOTER
   ========================================== */
.footer__list {
  font-size: 16px;
}

/* Wymuszenie białego koloru dla nagłówków i danych adresowych */
.footer__heading,
.footer .p2_r {
  color: #ffffff !important;
}

/* Tekst danych firmowych i interlinia */
.footer .p2_r {
  line-height: 1.8;
  opacity: 0.95;
}

/* Linki w stopce — domyślnie białe */
.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Efekt najechania na linki — ciemniejszy szary */
.footer a:hover {
  color: #666666;
}

.footer__section {
  padding: 1rem;
  border-bottom: 1px solid var(--Neutral-white);
}

.footer__section .list {
  margin: 0;
}

.footer__heading {
  text-transform: uppercase;
}

.footer__brand {
  margin-top: 5rem;
  text-align: center;
}

.footer__brand img {
  width: 100%;
  max-width: 230px;
}

.footer__copyright {
  font-size: 12px;
  color: #ffffff;
  opacity: 0.5;
  text-align: center;
}

/* Responsywność dla komputerów (Desktop) */
@media screen and (min-width: 1050px) {
  .footer__sections {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }

  .footer .collapsible__chevron {
    display: none;
  }

  .footer .collapsible__content {
    opacity: 1;
    max-height: 100%;
  }

  .footer__brand {
    order: -1;
    margin-top: 1rem;
  }

  .footer__copyright {
    font-size: 12px;
  }

  .footer__section {
    border: 0;
  }
}

/* Domyślnie na mobilkach zawartość jest ukryta */
.footer__section .collapsible__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Kiedy sekcja jest rozwinięta */
.footer__section.collapsible--expanded .collapsible__content {
  max-height: 300px; /* dostosuj w razie potrzeby */
  opacity: 1;
  margin-top: 1rem;
}

/* Kursor rączki na nagłówku */
.footer__section .collapsible__header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Obrót strzałki chevron po rozwinięciu */
.footer__section .collapsible__chevron {
  transition: transform 0.3s ease;
}

.footer__section.collapsible--expanded .collapsible__chevron {
  transform: rotate(180deg);
}

/* NA DESKTOPIE (ekrany > 768px) stopka ma być zawsze rozwinięta */
@media screen and (min-width: 769px) {
  .footer__section .collapsible__content {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
  }

  .footer__section .collapsible__chevron {
    display: none; /* ukrywamy strzałkę na komputerach */
  }

  .footer__section .collapsible__header {
    cursor: default;
  }
}