:root{
  --container-max: 1280px;
  --container-pad: 47px;

  --color-bg: #fff;
  --color-text: #000;
  --color-dark: #1e1e1e;
  --color-accent: #d3a880;
}

/* ===== Base / Reset ===== */
*,
*::before,
*::after{ box-sizing: border-box; }

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

body{
  font-family: "Red Hat Display", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  color: var(--color-text);
  background: var(--color-bg);
}

.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.btn--dark{
  height: 47px;
  padding: 0 87px;
  background: var(--color-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* =====================================================
   Header / Navbar (DESKTOP default)
   ===================================================== */
.site-header{
  background: #fff;
  padding: 32px 0;
}

.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-header__logo img{
  display: block;
  width: 215px;
  height: auto;
}

.site-header__nav{
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-header__menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 44px;
}

.site-header__menu a{
  text-decoration: none;
  font-family: "Red Hat Display", system-ui, sans-serif;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.08;
  white-space: nowrap;
}

/* aktywny item (WordPress dodaje te klasy) */
.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a{
  font-weight: 900;
}

/* =====================================================
   HERO (DESKTOP default)
   ===================================================== */
.hero{
  padding-top: 0;
  padding-bottom: 120px;
  overflow: hidden;
}

@media (min-width: 1025px){
  .hero{
    margin-top: -100px;
  }
}

.hero__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  transform: none; /* flow-safe: nie przesuwamy transformem */
}

.hero__content{
  width: 650px;
  max-width: 100%;
}

.hero__title{
  margin: 0 0 21px;
  font-size: 55px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  color: #2b2b2b;
}

.hero__title-accent{
  background: linear-gradient(90deg, #b07a53 0%, #d3a880 60%, #8a5a3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead{
  margin: 0 0 32px;
  width: 471px;
  max-width: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.56;
  color: #000;
}

.hero__visual{
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 52px;
  padding-bottom: 85px;
  background: none;
}

.hero__img{
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  margin-left: 0;
  transform-origin: top right;
}

/* duży desktop (Twoje 1:1 pod Zeplin) */
@media (min-width: 1280px){
  .hero__content{ width: 650px; }

  .hero__img{
    width: 1095px;
    height: 788px;
    margin-left: -380px;
  }
}

/* =====================================================
   NAVBAR – Dropdown (desktop)
   ===================================================== */
.site-header__menu > li{
  position: relative;
}

.site-header__menu > li.menu-item-has-children > a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* strzałka (desktop) – zostaje jak masz */
.site-header__menu > li.menu-item-has-children > a::after{
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-left: 6px;

  border-right: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);

  transform: rotate(45deg);
  transition: transform .2s ease;
}

.site-header__menu > li.menu-item-has-children:hover > a::after,
.site-header__menu > li.menu-item-has-children:focus-within > a::after{
  transform: rotate(135deg);
}

/* submenu panel */
.site-header__menu .sub-menu{
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;

  list-style: none;
  margin: 0;
  padding: 10px;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);

  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}

.site-header__menu .sub-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;

  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
}

.site-header__menu .sub-menu a:hover,
.site-header__menu .sub-menu a:focus{
  background: rgba(0,0,0,.05);
  outline: none;
}

.site-header__menu > li.menu-item-has-children:hover > .sub-menu,
.site-header__menu > li.menu-item-has-children:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* =====================================================
   NAV TOGGLE – IMAGE ICON (trojkatmenu.webp)
   ===================================================== */

.nav-toggle{
  display: none; /* domyślnie ukryty – pokazujemy w media query */
  width: 55px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1101;
}

.nav-toggle::before{
  content: "";
  width: 35px;
  height: 35px;
  display: block;

  background-image: url("../img/trojkatmenu.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  animation: navTrianglePulse 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes navTrianglePulse{
  0%{
    transform: scale(1);
  }
  50%{
    transform: scale(0.80); /* ~5px z 35px */
  }
  100%{
    transform: scale(1);
  }
}

body.is-nav-open .nav-toggle::before{
  animation: none;
}
/* overlay */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}

/* drawer */
.nav-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100svh;
  width: min(92vw, 380px);
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .22s ease;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.nav-drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.nav-drawer__title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
}

.nav-close{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.nav-drawer__menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nav-drawer__menu a{
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 8px;
  border-radius: 10px;
}

.nav-drawer__menu a:hover{
  background: rgba(0,0,0,.05);
}

.nav-drawer__menu .current-menu-item > a,
.nav-drawer__menu .current_page_item > a{
  font-weight: 900;
}

.nav-drawer__cta{
  width: 100%;
}

/* open state */
body.is-nav-open .nav-drawer{
  transform: translateX(0);
}

/* blokada scrolla gdy menu otwarte */
body.is-nav-open{
  overflow: hidden;
}

/* hamburger znika po otwarciu (zostaje Menu + X w drawerze) */
body.is-nav-open .nav-toggle{
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   TELEFON (<= 767px)
   ===================================================== */
@media (max-width: 767px){

  .site-header__nav,
  .site-header__cta{
    display: none;
  }

  .site-header{
    padding: 16px 0;
  }

  .site-header__inner{
    gap: 12px;
  }

  .site-header__logo img{
    width: 170px;
    height: auto;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* HERO mobile */
  .hero{
    padding-top: 0px;
    padding-bottom: 40px;
    margin: 0;
    overflow: hidden;
  }

  .hero__grid{
    grid-template-columns: 1fr;
    gap: 18px;
    transform: none; /* mobile bez translateY */
  }

  .hero__visual{
    order: -1;
    padding: 0;
    justify-content: center;
  }

  .hero__img{
    width: min(92vw, 520px);
    height: auto;
    margin-left: -35px;
  }

  .hero__content{
    width: auto;
    max-width: 100%;
    margin-top: -25px;
  }

  .hero__title{
    font-size: 42px;
    line-height: 1.02;
  }

  .hero__lead{
    width: auto;
    max-width: 34ch;
    font-size: 15px;
  }

  .btn--dark{
    width: 100%;
    max-width: 360px;
  }

  .hero__cta{
    margin-top: -8px;
  }
}

/* =====================================================
   TABLET (768px – 1024px)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px){

  .site-header__nav,
  .site-header__cta{
    display: none;
  }

  .site-header{
    padding: 35px 0;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px; /* Twoje dopięcie */
  }

  /* HERO tablet */
  .hero{
    padding-top: 25px;
    padding-bottom: 70px;
    overflow: hidden;
  }

  .hero__grid{
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    transform: none; /* tablet bez translateY */
  }

  .hero__visual{
    order: 0;
    justify-content: flex-end;
    padding: 0;
  }

  .hero__img{
    width: 590px;
    height: auto;
    margin-left: -125px;
    margin-bottom: 30px;
  }

  .hero__content{
    width: auto;
    max-width: 420px;
    margin-top: 0;
  }

  .hero__title{
    font-size: 46px;
    line-height: 1.02;
  }

  .hero__lead{
    max-width: 40ch;
    font-size: 15px;
  }

  .hero__cta{
    margin-top: 0;
  }

  .btn--dark{
    width: auto;
    max-width: none;
  }
}

/* =====================================================
   Desktop hard lock: burger OFF (>= 1025px)
   ===================================================== */
@media (min-width: 1025px){
  .nav-toggle{ display: none !important; }
  .nav-overlay{ display: none !important; }
  .nav-drawer{ transform: translateX(100%) !important; }
  body.is-nav-open{ overflow: visible !important; }
}

/* ===== Footer (tymczasowy) ===== */
.site-footer{
  padding: 40px 0;
}

.site-footer__copy{
  margin: 0;
  font-size: 14px;
  opacity: .7;
}

/* NOWA SEKCJA 2 /////////////////////////////*/

/* =====================================================
   SECTION 2 – SPEC (Nasze Specjalizacje)
   ===================================================== */
.spec{
  padding: 90px 0 110px;
  background: #fff;
}

.spec__header{
  text-align: center;
  margin-bottom: 44px;
}

.spec__title{
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  color: #2b2b2b;
}

.spec__title-accent{
  font-style: italic;          /* ← KURSYYWA */
  font-weight: 900;
  background: linear-gradient(to bottom, #d3a880, #796450);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* grid 3 kolumny, 2 rzędy */
.spec__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* karta */
.spec-card{
  background: #fff;
  border-radius: 6px;
  padding: 22px 22px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* =====================================================
   SPEC CARDS – reveal (diagonal / romb)
   ===================================================== */
.spec-card{
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  will-change: transform, opacity, filter;
}

/* =====================================================
   SPEC CARDS – subtle hover (premium)
   ===================================================== */
.spec-card{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    border-color .28s ease;
  border: 1px solid rgba(0,0,0,.06);
}

.spec-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;

  opacity: 0;
  transition: opacity .28s ease;

  /* delikatny “gold glow” */
  background: radial-gradient(circle at 30% 20%, rgba(211,168,128,.28), rgba(211,168,128,0) 55%);
}

/* ważne: żeby ::before działało */
.spec-card{ position: relative; }

.spec-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
  border-color: rgba(211,168,128,.25);
}

.spec-card:hover::before{
  opacity: 1;
}

/* opcjonalnie: lekko podbij divider na hover */
.spec-card:hover .spec-card__divider{
  background: linear-gradient(to right, #d3a880, #796450);
}

/* start animacji dopiero gdy sekcja ma klasę .is-in */
.spec.is-in .spec-card{
  animation: specReveal 1.1s cubic-bezier(.22,.61,.36,1) forwards;
}


@keyframes specReveal{
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* kolejność odkrywania: od rogu do rogu (po przekątnej) */
.spec.is-in .spec-card:nth-child(1){ animation-delay: .00s; }
.spec.is-in .spec-card:nth-child(2){ animation-delay: .20s; }
.spec.is-in .spec-card:nth-child(3){ animation-delay: .40s; }
.spec.is-in .spec-card:nth-child(4){ animation-delay: .60s; }
.spec.is-in .spec-card:nth-child(5){ animation-delay: .80s; }
.spec.is-in .spec-card:nth-child(6){ animation-delay: 1.00s; }

/* divider ujawnia się po animacji karty */
.spec.is-in .spec-card{
  position: relative;
}

.spec.is-in .spec-card .spec-card__divider{
  animation: dividerReveal 2.4s ease forwards; /* wolniej */
  animation-delay: calc(inherit + 1s);
}

.spec.is-in .spec-card:nth-child(1) .spec-card__divider{ animation-delay: 1.00s; }
.spec.is-in .spec-card:nth-child(2) .spec-card__divider{ animation-delay: 1.20s; }
.spec.is-in .spec-card:nth-child(3) .spec-card__divider{ animation-delay: 1.40s; }
.spec.is-in .spec-card:nth-child(4) .spec-card__divider{ animation-delay: 1.60s; }
.spec.is-in .spec-card:nth-child(5) .spec-card__divider{ animation-delay: 1.80s; }
.spec.is-in .spec-card:nth-child(6) .spec-card__divider{ animation-delay: 2.00s; }

/* gradient po animacji */
@keyframes dividerReveal{
  0%{
    transform: scaleX(0);
    background: rgba(0,0,0,.12);
  }
  100%{
    transform: scaleX(1);
    background: linear-gradient(to right, #d3a880, #796450);
  }
}


/* accessibility */
@media (prefers-reduced-motion: reduce){
  .spec-card,
  .spec.is-in .spec-card{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}


.spec-card__head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.spec-card__icon{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffa880, #796450);
  -webkit-background-clip: text;
  background-clip: text;
}

.spec-card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #111;
}

.spec-card__divider{
  height: 1px;
  margin: 12px 0 16px;

  background: rgba(0,0,0,.12);
  transform: scaleX(0);
  transform-origin: left;
}


.spec-card__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(0,0,0,.70);
}

/* tablet */
@media (max-width: 1024px){
  .spec__title{ font-size: 44px; }
  .spec__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile */
@media (max-width: 767px){
  .spec{ padding: 70px 0 90px; }
  .spec__title{ font-size: 38px; }
  .spec__grid{ grid-template-columns: 1fr; }
}

/* SEKCJA 2 przesunieta wyżej  ===== */
@media (min-width: 1025px){
  .spec{
    margin-top: -280px;
  }
}

/* ===== OWAL (odkomentuj gdy trzeba) ===== */
/* html{ outline: 4px solid red; } */

/* =====================================================
   SECTION 3 – HOW IT WORKS
   ===================================================== */
.how{
  position: relative;
  background: #fff;
  padding: 90px 0 110px; /* ogólny oddech sekcji */
}

.how__visual { 
  position: relative; 
  overflow: hidden; 
  min-height:
}

/* Układ: lewa treść + prawa grafika */
.how__grid{
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: start;
  gap: 40px;
  position: relative;
}

/* ---------- Kicker (romb + linia + tekst) ---------- */
.how__kicker{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.how__diamond{
  width: 7px;
  height: 7px;
  background: #796450;          /* Rectangle 307 */
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.how__kicker-line{
  height: 0;
  width: 232px;                 /* Line 46 */
  border-top: .5px solid #C2C2C2;
  flex: 0 0 auto;
}

.how__kicker-text{
  font-size: 15px;              /* How it works */
  font-weight: 500;
  line-height: 1.2;
  color: #1E1E1E;
}

/* ---------- Tytuł ---------- */
.how__title{
  margin: 0 0 26px;
  font-size: 45px;
  font-weight: 900;
  font-style: italic;           /* w Figma italic */
  line-height: 1.08;
  letter-spacing: 0;

  /* gradient jak w Figma */
  background: linear-gradient(90deg, #1E1E1E 0%, rgba(184, 115, 51, 0.62) 56.9%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Lista kroków ---------- */
.how__steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

/* nr + linia w JEDNEJ kolumnie (rail), treść obok */
.how-step{
  display: grid;
  grid-template-columns: 34px 1fr; /* RAIL | treść */
  column-gap: 18px;
  align-items: start;
}

/* robimy “rail” na 1. kolumnie, używając spanów które już masz */
.how-step__no{
  grid-column: 1;
  grid-row: 1;

  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;

  margin-top: 6px;     /* Zeplin: 01 startuje niżej */
  margin-bottom: 8px;   /* odstęp numer -> linia */
}

.how-step__line{
  grid-column: 1;
  grid-row: 2;

  width: .5px;                 /* zamiast width:0 + border-left */
  height: 76px;                /* domyślnie jak Line 51/52 */
  background: #DDDDDD;

  margin-left: 7.1px;          /* Zeplin: line margin-left */
  margin-top: -10px;             /* Zeplin: line margin-top */
}

/* pierwszy ma dłuższą kreskę (Line 50) */
.how-step:first-child .how-step__line{
  height: 95px;
}

/* treść zawsze w 2. kolumnie i ma objąć oba wiersze (nr+linia) */
.how-step__body{
  grid-column: 2;
  grid-row: 1 / span 2;
}


.how-step__title{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #1E1E1E;
}

.how-step__desc{
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #363636;
  max-width: 270px; /* trzymamy szerokość opisów jak w Figma */
}

/* ---------- PRAWA GRAFIKA ---------- */
.how__visual{
  position: relative;
  min-height: 740px;
}

/* TU sterujesz pozycją i skalą obiektu (zamiast absolute z Figmy) */
.how__object{
  position: absolute;
  right: -145px;     /* <<< PRZESUNIĘCIE w prawo (żeby wychodził poza kontener) */
  top: -105px;        /* <<< PODNIESIENIE / OBNIŻENIE obiektu */
  width: 790px;      /* Figma width */
  height: auto;
  opacity: .58;

  /* imitacja rotacji z figmy */
  transform: rotate(-110deg);
  transform-origin: 60% 45%;
  pointer-events: none;
  user-select: none;
}

/* =====================================================
   TABLET
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px){
  .how{
    padding: 70px 0 90px;
  }

  .how__grid{
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .how__kicker-line{ width: 190px; }

  .how__title{ font-size: 40px; }

  .how__object{
    right: -260px;
    top: -20px;
    width: 760px;
  }
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 767px){
  .how{
    padding: 60px 0 80px;
  }

  .how__grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .how__kicker-line{ width: 160px; }
  .how__title{ font-size: 38px; }

  .how__visual{
    min-height: 320px;
    order: -1; /* jeśli chcesz obiekt nad treścią na mobile – jak w hero */
  }

  .how__object{
    position: relative;
    right: auto;
    top: auto;
    width: min(92vw, 520px);
    transform: rotate(-110deg);
    margin-left: auto;
    margin-right: -120px; /* żeby dalej “uciekał” w prawo */
    display: block;
  }

  .how-step__desc{ max-width: 100%; }
}

/* ===== DEBUG (odkomentuj gdy trzeba) ===== */
/* html{ outline: 4px solid red; } */