/* Libre Franklin — odrodzenie Franklin Gothic. Rejestr gazetowo-instytucjonalny,
   który niesie powagę kancelarii bez sztywności, i dobrze narysowane polskie diakrytyki.
   Zakres latin-ext jest tu obowiązkowy: ą ć ę ł ń ś ź ż leżą w U+0100–017C. */
@font-face{
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-franklin-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face{
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face{
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face{
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --primary: #0f2a4a;
  --primary-dark: #081b32;
  --primary-light: #1c3f66;
  --accent: #c9a227;
  --accent-dark: #a8841c;
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;
  --text-dark: #1a2332;
  --text-gray: #5b6472;
  --border: #e2e6ec;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Libre Franklin", sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.5;
}

h1, h2, h3{
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

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

a{
  color: inherit;
  text-decoration: none;
}

ul{
  list-style: none;
}

button{
  font-family: inherit;
}

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6%;
}

/* ===== ACCESSIBILITY ===== */
.skip-link{
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus{
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== BUTTONS ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn-primary{
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover{
  background: var(--primary-light);
}

.btn-accent{
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover{
  background: var(--accent-dark);
}

.btn-block{
  width: 100%;
}

.btn:disabled{
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== NAV ===== */
/* Tło w pełni kryjące, bez rozmycia. `backdrop-filter` na elemencie `sticky`
   potrafi na iOS nie przemalować warstwy przy przewijaniu i zostawia na pasku
   ślad przewijanej treści. Przy 96% krycia rozmycie i tak było niewidoczne. */
.nav-wrap{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 721px){
  .nav-wrap{
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
  }
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark{
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.logo-word{
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

/* Znak firmowy ma własny liternictwo: ciężka geometryczna bezszeryfowa,
   oba słowa tej samej wagi. Playfair zostaje na nagłówkach treści. */
.logo-thin,
.logo-bold{
  font-family: "Libre Franklin", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--primary);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a{
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links li a:hover{
  color: var(--primary);
  background: var(--bg-light);
}

.nav-links li a.nav-cta{
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  margin-left: 8px;
}

.nav-links li a.nav-cta:hover{
  background: var(--primary-light);
}

/* Kreski zostają 26×20, ale przycisk ma pełne 44×44 pod kciuk. */
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -9px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bars{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
}

.nav-toggle span span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger składa się w krzyżyk, żeby stan menu był widoczny na samym przycisku. */
.nav-toggle[aria-expanded="true"] span span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span span:nth-child(2){
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop{
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8,27,50,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.visible{
  opacity: 1;
}

/* ===== HERO ===== */
/* Telefon dostawał pełne 354 KB tła w rozdzielczości 1600px. Trzy warianty
   zamiast jednego: 85 KB na komórce, 200 KB na laptopie, oryginał na dużych ekranach. */
.hero{
  padding: 60px 0 80px;
  background:
    linear-gradient(135deg, rgba(15,42,74,0.94), rgba(8,27,50,0.88)),
    url("images/hero-bg-760.jpg") center/cover no-repeat;
}

@media (min-width: 721px){
  .hero{
    background:
      linear-gradient(135deg, rgba(15,42,74,0.94), rgba(8,27,50,0.88)),
      url("images/hero-bg-1200.jpg") center/cover no-repeat;
  }
}

@media (min-width: 1400px){
  .hero{
    background:
      linear-gradient(135deg, rgba(15,42,74,0.94), rgba(8,27,50,0.88)),
      url("images/hero-bg.jpg") center/cover no-repeat;
  }
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.hero-text{
  color: #fff;
  padding-top: 24px;
}

.hero-text h1{
  font-size: 46px;
  font-weight: 900;
  margin-bottom: 20px;
}

.accent-text{
  color: var(--accent);
}

.hero-lead{
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-badges{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-badges li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
}

.hero-badges svg{
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== LEAD FORM CARD ===== */
/* Złota krawędź jako pasek `::before`, nie `border-top`: prosta krawędź urywała się
   w miejscu, gdzie zaczyna się promień 14px, i narożniki się rozjeżdżały.
   Pasek dziedziczy ten sam promień, więc geometria się domyka. */
.lead-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  padding: 41px 36px 36px;
}

.lead-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent);
  border-radius: 14px 14px 0 0;
}

.lead-card h2{
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 6px;
}

.lead-card-sub{
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field{
  margin-bottom: 16px;
}

.form-field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-field input,
.form-field select{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  line-height: normal;
  color: var(--text-dark);
  background-color: #fcfcfc;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Bez tego Safari rysuje własną kontrolkę: inna wysokość, własna strzałka,
   zignorowane tło i zaokrąglenie. `appearance: none` zdejmuje natywny wygląd,
   resztę dorysowujemy sami, żeby oba silniki dawały ten sam efekt. */
.form-field select{
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  text-indent: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235b6472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* Safari nie skaluje strzałki razem z resztą, więc trzymamy ją poza zasięgiem
   natywnego renderowania także w trybie wysokiego kontrastu. */
.form-field select::-ms-expand{
  display: none;
}

/* Podpowiedź w select ma mieć ten sam kolor co placeholder w polach tekstowych.
   Pole jest `required`, więc dopóki nic nie wybrano, pasuje do `:invalid`. */
.form-field input::placeholder{
  color: #8b939f;
  opacity: 1;
}

.form-field select:required:invalid{
  color: #8b939f;
}

.form-field select option{
  color: var(--text-dark);
}

.form-field input:focus-visible,
.form-field select:focus-visible{
  border-color: var(--primary);
  background: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-error{
  display: block;
  min-height: 17px;
  font-size: 13px;
  color: #b3261e;
  margin-top: 4px;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"]{
  border-color: #b3261e;
  background: #fdf6f5;
}

.form-checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input[aria-invalid="true"]{
  outline: 2px solid #b3261e;
  outline-offset: 2px;
}

.form-checkbox input{
  width: 22px;
  height: 22px;
  margin-top: 10px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* Etykieta jest właściwym celem dotyku — pionowy padding wynosi ją ponad 44px,
   żeby cała zgoda była jednym wygodnym obszarem, nie kwadracikiem 22px.
   Bez `display: flex` — link „Politykę Prywatności” musi płynąć w tekście. */
.form-checkbox label{
  padding: 11px 0;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.55;
  font-weight: 400;
}

.form-checkbox label a{
  color: var(--primary);
  font-weight: 600;
}

.lead-card-alt{
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 14px;
}

.lead-card-alt a{
  color: var(--primary);
  font-weight: 700;
}

.form-success{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
}

/* `display` z reguły wyżej pokonuje atrybut `hidden` — bez tego panel sukcesu
   jest widoczny od załadowania strony. */
.form-success[hidden]{
  display: none;
}

.form-success:focus{
  outline: none;
}

.form-success:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.form-success-next{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-success-next strong{
  color: var(--text-dark);
}

.form-success-icon{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #1c6b4a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-success h3{
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-success p{
  font-size: 14px;
  color: var(--text-gray);
}

/* ===== SECTIONS ===== */
.section{
  padding: 90px 0;
}

.section-alt{
  background: var(--bg-light);
}

.section-dark{
  background: var(--primary);
}

.section-head{
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head h2, h2{
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.text-light{
  color: #fff;
}

.section-desc{
  font-size: 15.5px;
  color: var(--text-gray);
  line-height: 1.7;
}

.section-dark .section-desc, .section-dark p{
  color: rgba(255,255,255,0.7);
}

/* ===== GRIDS / CARDS ===== */
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-card, .benefit-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover, .benefit-card:hover{
  box-shadow: 0 12px 28px rgba(15,42,74,0.1);
  transform: translateY(-3px);
}

/* Cztery krótkie deklaracje nie potrzebowały ram ani cieni. Lista zamiast trzeciej
   z rzędu siatki 4-kartowej: mniej chromu i inna faktura w tym miejscu strony. */
.why-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  max-width: 940px;
  margin: 0 auto;
}

.why-item{
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.why-item dt{
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.why-item dd{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-gray);
}

.tag{
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(15,42,74,0.07);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.info-card h3{
  font-size: 17px;
  margin-bottom: 10px;
}

.info-card p{
  font-size: 13.5px;
  color: var(--text-gray);
  line-height: 1.6;
}

.benefit-card h3{
  font-size: 17px;
  margin-bottom: 10px;
}

.benefit-card p{
  font-size: 13.5px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===== TWO COL / LEGAL PANEL ===== */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.check-list{
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-gray);
  line-height: 1.6;
}

.check-dot{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15,42,74,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.legal-panel{
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 44px;
}

.legal-panel h3{
  font-size: 20px;
  margin-bottom: 18px;
}

.legal-quote{
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
}

.legal-cite{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ===== SEKCJA KURSU CHF ===== */
.rate-head{
  max-width: 760px;
  margin-bottom: 44px;
}

.rate-section h2{
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.rate-lead{
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 620px;
}

.rate-figure{
  margin: 0;
}

.rate-chart-wrap{
  overflow-x: auto;
  padding-bottom: 4px;
}

.rate-chart{
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.rate-grid line{
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
}

.rate-axis,
.rate-axis-x text{
  fill: rgba(255,255,255,0.62);
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
}

.rate-zone rect{
  fill: rgba(255,255,255,0.06);
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
}

.rate-zone-label{
  fill: rgba(255,255,255,0.72);
  font-family: "Libre Franklin", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
}

.rate-line{
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Oś X to czas, więc linia rysuje się od 2004 do 2026 — gest jest tymi dwudziestoma
   latami, a nie ozdobnym wjazdem sekcji. Stan domyślny jest widoczny: klasy `is-armed`
   dokłada JS, więc bez skryptu wykres po prostu stoi gotowy. */
.rate-chart.is-armed .rate-line{
  stroke-dashoffset: var(--rate-line-length);
}

.rate-chart.is-armed .rate-area,
.rate-chart.is-armed .rate-marker{
  opacity: 0;
}

.rate-chart.is-drawing .rate-line{
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 800ms cubic-bezier(0.25, 0.6, 0.35, 1);
}

.rate-chart.is-drawing .rate-area{
  opacity: 1;
  transition: opacity 700ms ease 200ms;
}

.rate-chart.is-drawing .rate-marker{
  opacity: 1;
  transition: opacity 300ms ease 640ms;
}

.rate-chart.is-drawing .rate-marker-end{
  transition-delay: 820ms;
}

.rate-marker circle{
  fill: var(--accent);
  stroke: var(--primary);
  stroke-width: 3;
}

.rate-marker-val{
  fill: #fff;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 900;
}

.rate-marker-year{
  fill: rgba(255,255,255,0.62);
  font-family: "Libre Franklin", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
}

.rate-caption{
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
  max-width: 640px;
}

.rate-punch{
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 19px;
  line-height: 1.6;
  max-width: 620px;
}

.rate-section .rate-punch strong{
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

/* ===== PROCESS ===== */
/* Ścieżka jako pionowa lista kart: numer w kółku po lewej, tytuł i jedno
   zdanie po prawej. Układ czytelny na każdej szerokości bez zmiany struktury. */
.process-grid{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 44px;
}

.process-step{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  text-align: left;
}

/* Numer zajmuje obie linie wiersza, żeby tytuł i opis trafiły do drugiej kolumny.
   Bez tego akapit wpadał pod kółko i ściskał się do jego szerokości. */
.step-num{
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3{
  grid-column: 2;
  font-size: 19px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.process-step p{
  grid-column: 2;
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.65;
  max-width: 70ch;
}

/* ===== CASE STUDY ===== */
.case-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.case-grid img{
  border-radius: 10px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.case-text{
  font-size: 14.5px;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Kwota jest najmocniejszym faktem w tej sekcji — dostaje skalę nagłówka,
   a nie 14px w szarości pośród akapitu. */
.case-result{
  background: var(--primary);
  color: #fff;
  padding: 26px 28px;
  border-radius: 10px;
  margin-top: 26px;
}

.case-result-label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.case-result-figure{
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}

.case-result-text{
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
}

/* ===== FAQ ===== */
.faq-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.faq-grid .section-desc a{
  color: var(--primary);
  font-weight: 700;
}

.faq-item{
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #fff;
}

.faq-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-btn:hover{
  background: var(--bg-light);
}

.faq-icon{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-gray);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-btn[aria-expanded="true"]{
  color: var(--primary);
}

.faq-btn[aria-expanded="true"] .faq-icon{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer{
  padding: 0 20px 18px;
}

.faq-answer p{
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* Wyjście z zajawki do pełnej podstrony. */
.section-more{
  margin-top: 22px;
  font-size: 14.5px;
}

.section-more a{
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.section-more a:hover{
  color: var(--accent-dark);
}

.section-more-light{
  margin-top: 44px;
  text-align: center;
}

.section-more-light a{
  color: var(--accent);
}

.section-more-light a:hover{
  color: #fff;
}

/* ===== CTA BANNER ===== */
/* Baner powtarzał zdjęcie z hero, przez co koniec strony wyglądał jak jej początek.
   Zamiast trzeciej kopii tego samego wieżowca — czysty granat i złota linia. */
.cta-banner{
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 90px 0;
}

.cta-banner::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--accent);
}

.cta-banner h2{
  color: #fff;
  font-size: 34px;
  margin-bottom: 16px;
}

.cta-banner p{
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 30px;
}

.cta-actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer{
  background: var(--primary-dark);
  color: #ccd6e4;
  padding-top: 64px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 46px;
}

.footer h3{
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.footer p{
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* `.footer p` (0-1-1) nadpisywało rozmiar, a `opacity` mnożyła się z alfą koloru
   i schodziła do 4,01:1. Jeden jawny kolor zamiast dwóch warstw przezroczystości. */
.footer .footer-small{
  font-size: 12.5px;
  color: #b6c2d3;
}

.footer-brand{
  max-width: 320px;
}

.logo-footer{
  margin-bottom: 16px;
}

.logo-footer .logo-thin,
.logo-footer .logo-bold{
  color: #fff;
}

.footer-nav li{
  margin-bottom: 10px;
}

.footer-nav a, .footer a{
  color: #e8edf4;
  transition: color 0.2s ease;
}

.footer-nav a:hover, .footer a:hover{
  color: var(--accent);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px;
  font-size: 12px;
}

/* ===== MOBILNY PASEK KONTAKTU ===== */
/* Telefon jest jedyną realną ścieżką konwersji, a na wąskim ekranie sticky
   nagłówek nie ma żadnego CTA — pasek trzyma obie ścieżki w zasięgu kciuka. */
.mobile-cta{
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  /* Nie `right: 0`: wysunięta poza ekran szuflada rozszerza blok zawierający
     elementów fixed, przez co pasek rozciągałby się poza szerokość okna. */
  width: 100vw;
  z-index: 800;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(8,27,50,0.08);
}

.mobile-cta .btn{
  flex: 1;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14.5px;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .grid-4{
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col, .case-grid, .faq-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 720px){
  body{
    /* Miejsce na mobilny pasek kontaktu, żeby nie zasłaniał stopki. */
    padding-bottom: 76px;
  }
  .rate-section h2{
    font-size: 25px;
  }
  .rate-lead{
    font-size: 15.5px;
  }
  .rate-punch{
    font-size: 17px;
  }
  .rate-section .rate-punch strong{
    font-size: 23px;
  }
  .case-result-figure{
    font-size: 33px;
  }
  /* `visibility: hidden` robi trzy rzeczy naraz: wyjmuje zamkniętą szufladę
     z kolejności tabulacji, ukrywa ją przed czytnikiem ekranu i przestaje
     powiększać obszar przewijania dokumentu o jej szerokość. */
  .nav-links{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 950;
    height: 100vh;
    width: 260px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 20px 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    visibility: hidden;
    /* Ukrycie dopiero PO wysunięciu, żeby animacja zamykania była widoczna. */
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-links.open{
    transform: translateX(0);
    visibility: visible;
    /* Odsłonięcie natychmiast, żeby fokus mógł wejść w tej samej klatce. */
    transition: transform 0.3s ease, visibility 0s;
  }
  .nav-links li a{
    padding: 14px 16px;
  }
  .nav-links li a.nav-cta{
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
  .nav-toggle{
    display: flex;
  }
  .mobile-cta{
    display: flex;
  }
  .footer-nav a{
    display: inline-block;
    padding: 11px 0;
  }
  .footer-nav li{
    margin-bottom: 0;
  }
  .footer a[href^="mailto"]{
    display: inline-block;
    padding: 12px 0;
  }
  .lead-card-alt a{
    display: inline-block;
    padding: 13px 10px;
  }
  .hero-text h1{
    font-size: 32px;
  }
  .grid-4{
    grid-template-columns: 1fr;
  }
  .why-list{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-step{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 22px 24px;
  }
  .step-num,
  .process-step h3,
  .process-step p{
    grid-column: 1;
    grid-row: auto;
  }
  /* Na telefonie pola stoją w jednej kolumnie, więc odstępy z układu
     dwukolumnowego robiły się zbyt duże — formularz rósł o kilkadziesiąt pikseli. */
  .form-row{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-field{
    margin-bottom: 10px;
  }
  .form-field label{
    margin-bottom: 4px;
  }
  .field-error{
    min-height: 14px;
    margin-top: 2px;
  }
  .form-checkbox-field{
    margin-top: 2px;
  }
  /* Safari na iPhonie powiększa całą stronę przy fokusie na polu o stopniu
     mniejszym niż 16px. Wysokość pól jest stała (44px), więc rozmiar tekstu
     można podnieść bez wpływu na układ. */
  .form-field input,
  .form-field select{
    font-size: 16px;
  }
  .lead-card{
    padding: 26px 20px;
  }
  .lead-card h2{
    font-size: 20px;
  }
  .lead-card-sub{
    margin-bottom: 18px;
  }
  .footer-grid{
    grid-template-columns: 1fr;
  }
  .cta-actions{
    flex-direction: column;
  }
}
