/* =====================================================================
   Urban Ceramics — css/base.css (wspólna baza, Faza 4, R2)
   Tokeny (:root), fonty, reset, typografia, przyciski, formularze (fr-*), nawigacja, hero,
   opinie, FAQ, stopka, baner cookies i strony prawne. Ładowany PIERWSZY na każdej stronie,
   potem arkusz strony (css/home.css albo css/franczyza.css) — dwa równoległe <link>, BEZ importów CSS (serializują pobieranie).
   Powstał z podziału strona/style.css i strona/franczyza.css bez zmian wyglądu (kolejność
   źródłowa zachowana); stare arkusze zostają w repo dla HTML w pamięci przeglądarek.
   Opis i kroki dla Fazy 4.1: docs/css-baza.md. Ścieżki url() są względne od strona/css/.
   ===================================================================== */

/* === ACCESSIBILITY === */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: #1b2a55;
  color: #fff;
  font-family: 'Noi Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* === FONTS === */

@font-face {
  font-family: 'Noi Grotesk';
  src: url('../Branding-Ceramics/fonts/4 Noi Grotesk Regular/2 Web/NoiGrotesk-Regular.woff2') format('woff2'),
       url('../Branding-Ceramics/fonts/4 Noi Grotesk Regular/2 Web/NoiGrotesk-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Pressura Mono';
  src: url('../Branding-Ceramics/fonts/GT Pressura/GT-Pressura-Mono-Regular.woff2') format('woff2'),
       url('../Branding-Ceramics/fonts/GT Pressura/GT-Pressura-Mono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === DESIGN TOKENS === */

:root {
  --color-blue:        #2535B0;
  --color-blue-dark:   #1a278a;
  --color-cream:       #EDE0D4;
  --color-cream-dark:  #dfd0c0;
  --color-red:         #C8391A;
  --color-red-dark:    #a82f16;
  --color-pink:        #E88A9A;
  --color-black:       #111111;
  --color-white:       #FFFFFF;

  --font-primary: 'Noi Grotesk', sans-serif;
  --font-mono:    'GT Pressura Mono', monospace;

  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-lg:   32px;
  --radius-pill: 999px;

  --transition:     0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow:         0 4px 24px rgba(37, 53, 176, 0.12);
  --shadow-lg:      0 12px 48px rgba(37, 53, 176, 0.22);
  --shadow-dark:    0 24px 80px rgba(0, 0, 0, 0.4);

  --nav-height:     72px;
  --container-max:  1200px;
  --container-pad:  clamp(1.25rem, 5vw, 2.5rem);

  --stagger-delay: 0ms;

  /* Kontrast (WCAG 2.2 AA): tekst-czerwień 5,26:1 na kremie i 6,81:1 na bieli (--color-red zostaje
     dla przycisków i akcentów); szary tekst 5F5A55 bez przezroczystości; krem na granacie 7,32:1 */
  --color-red-text: #A82F16;
  --color-muted: #5F5A55;
  --color-label-on-blue: var(--color-cream);

  /* Obrysy fokusu: 3 px granat na jasnym tle, 3 px biel na granacie */
  --focus-ring-light: 3px solid var(--color-blue);
  --focus-ring-dark:  3px solid var(--color-white);

  /* Warstwy (z-index): baner cookies leży pod dialogami, żeby nie zasłaniał dołu modala i menu */
  --z-book-bar: 90;
  --z-banner:   800;
  --z-menu:     850;
  --z-modal:    900;
  --z-sheet:    910;

  /* Dolny pasek „Zarezerwuj” (telefon): wysokość bazowa i wysokość widocznego banera cookies (ustawiana z JS) */
  --book-bar-h: 68px;
  --cookie-banner-h: 0px;
}

/* === KEYFRAMES === */

/* Wejście hero samym przesunięciem, bez zmiany przezroczystości (A-13): etykieta, nagłówek, podtytuł
   i przyciski są widoczne już przy pierwszym malowaniu, a nie dopiero po animacji */

@keyframes hero-enter {
  from { transform: translateY(28px); }
  to   { transform: translateY(0); }
}

/* Dryf wzorków tła na `transform` (kompozytor), nie na `background-position` (wymuszało przemalowanie
   dużego obrazu co klatkę i opóźniało pierwsze malowanie elementu LCP). Przesunięcie o dokładnie jeden
   kafelek (360×360,18 px w hero, 280×280,14 px w kartach), więc pętla jest bez skoku, a klatka bazowa
   (bez animacji, reduced motion) leży tak samo jak dawne `background-position: 0 0`. Początek elementu
   (lewa i górna krawędź) zostaje w tym samym miejscu co dotąd; zapas po przeciwnej stronie (prawa i dolna
   krawędź) o kafelek pokrywa przesunięcie. Prędkość jak dotąd: hero 5 px/s (72 s na kafelek), karty 4 px/s (70 s). */

@keyframes pattern-drift-hero {
  from { transform: translate3d(-360px, -360.18px, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Kierunek odwrotny (w górę i w lewo) */

@keyframes pattern-drift-tile {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-280px, -280.14px, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1;   }
}

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

/* === RESET & BASE === */

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

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

ul { list-style: none; }

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

:focus-visible {
  outline: var(--focus-ring-light);
  outline-offset: 3px;
}

/* Na granacie (hero, certyfikat, teaser, stopka, menu) obrys biały */

.hero :focus-visible,
.gift-card :focus-visible,
.franchise-teaser :focus-visible,
.footer :focus-visible,
.nav-overlay :focus-visible {
  outline: var(--focus-ring-dark);
}

/* === CONTAINER === */

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

/* === TYPOGRAPHY UTILITIES === */

.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.label--red  { color: var(--color-red-text); }

.label--blue { color: var(--color-blue); }

.section-heading {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-black);
  margin-bottom: 3rem;
  max-width: 20ch;
}

.section-heading--white { color: var(--color-white); }

.section-heading--wide { max-width: none; }

/* === BUTTONS === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  padding: 0.9375rem 1.875rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  border: 2px solid var(--color-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 4px 20px rgba(200, 57, 26, 0.35);
}

.btn--red {
  background-color: var(--color-red);
  color: var(--color-white);
  border: 2px solid var(--color-red);
}

.btn--red:hover,
.btn--red:focus-visible {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  box-shadow: 0 4px 20px rgba(200, 57, 26, 0.4);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-blue);
  border: 2px solid var(--color-white);
}

.btn--white:hover,
.btn--white:focus-visible {
  background-color: var(--color-cream);
  border-color: var(--color-cream);
}

.btn--white-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--white-outline:hover,
.btn--white-outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.btn--outline-blue {
  background-color: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn--outline-blue:hover,
.btn--outline-blue:focus-visible {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37, 53, 176, 0.25);
}

.btn--amount {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.8);
  background-color: transparent;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition);
}

.btn--amount:hover,
.btn--amount:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

.btn--amount[aria-pressed="true"] {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* === SCROLL ANIMATION === */

.section-animate {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--stagger-delay, 0ms);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === WAVE DIVIDER === */

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider img {
  width: 100%;
  min-width: 800px;
  height: auto;
  display: block;
}

/* === NAVIGATION === */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--color-cream);
  transition: background-color 0.4s ease, box-shadow var(--transition);
}

.nav.scrolled {
  background-color: var(--color-blue);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav__logo-img--light { display: none; }

.nav.scrolled .nav__logo-img--dark { display: none; }

.nav.scrolled .nav__logo-img--light { display: block; }

.nav__links {
  display: none;
  gap: 0;
}

.nav__link {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  color: var(--color-black);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-blue);
}

.nav.scrolled .nav__link { color: rgba(255, 255, 255, 0.8); }

.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link:focus-visible {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav__lang {
  display: flex;
  gap: 2px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.nav.scrolled .nav__lang {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav__lang-btn {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--color-black);
  opacity: 0.65;
  transition: opacity var(--transition), background-color var(--transition),
              color var(--transition);
}

/* Cel dotyku min. 44 px wysokości bez zmiany wyglądu (A-15, D-10): niewidoczny pseudo-element wystaje 10 px nad i pod
   przyciskiem 24 px. Poziomo bez rozszerzenia — PL i EN dzielą 2 px przerwy, szersze obszary nachodziłyby na siebie. */

.nav__lang-btn::after {
  content: '';
  position: absolute;
  inset: -10px 0;
}

.nav__lang-btn--active,
.nav__lang-btn:hover,
.nav__lang-btn:focus-visible {
  opacity: 1;
}

.nav__lang-btn--active {
  background-color: var(--color-white);
}

/* F2 (WCAG 1.4.3, tekst 11 px wymaga 4,5:1): na niebieskim tle przewiniętej nawigacji nieaktywny przycisk przy
   opacity 0,65 miał ok. 4,0:1, a aktywny przy tle 0,2 biel ok. 4,4:1. Nieaktywny jaśniejszy (0,8 → ok. 5,2:1),
   tło aktywnego słabsze (0,15 → ok. 5,0:1). Nawigacja nieprzewinięta bez zmian. */

.nav.scrolled .nav__lang-btn { color: var(--color-white); opacity: 0.8; }

.nav.scrolled .nav__lang-btn--active,
.nav.scrolled .nav__lang-btn:hover,
.nav.scrolled .nav__lang-btn:focus-visible { opacity: 1; }

.nav.scrolled .nav__lang-btn--active {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav__cta {
  display: none;
  font-size: 0.8125rem;
  padding: 0.5625rem 1.125rem;
}

/* Hamburger */

.nav__hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

/* Cel dotyku 44×44 px bez zmiany wyglądu (A-15, D-10): niewidoczny pseudo-element wystaje 2 px z każdej strony
   przycisku 40×40; należy do przycisku, więc trafienie w niego otwiera menu. */

.nav__hamburger::after {
  content: '';
  position: absolute;
  inset: -2px;
}

.nav__hamburger:hover { background-color: rgba(0, 0, 0, 0.06); }

.nav.scrolled .nav__hamburger:hover { background-color: rgba(255, 255, 255, 0.1); }

.nav__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: background-color var(--transition);
}

.nav.scrolled .nav__hamburger span { background-color: var(--color-white); }

/* === MOBILE NAV OVERLAY === */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu); /* nad przyklejonym nagłówkiem (z-index 100), żeby przycisk zamknięcia nie leżał pod nim */
  background-color: var(--color-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-overlay__close {
  position: absolute;
  top: 1.25rem;
  right: var(--container-pad);
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  gap: 0;
  border-radius: 50%;
  transition: background-color var(--transition);
}

.nav-overlay__close:hover { background-color: rgba(255, 255, 255, 0.1); }

.nav-overlay__close span {
  display: block;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
}

.nav-overlay__close span:first-child  { transform: rotate(45deg)  translate(1px, 1px); }

.nav-overlay__close span:last-child   { transform: rotate(-45deg) translate(1px, -1px); }

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  text-align: center;
}

.nav-overlay__link {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition), color var(--transition);
}

.nav-overlay__link:hover,
.nav-overlay__link:focus-visible {
  color: var(--color-cream);
}

.nav-overlay__cta { margin-top: 1.5rem; }

/* === HERO === */

.hero {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* === HERO — LEFT (text) panel === */

.hero__left {
  position: relative;
  background-color: var(--color-blue);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 10vw, 7rem) var(--container-pad) clamp(3rem, 6vw, 5rem);
  order: 2;
}

/* Animated seamless pattern on blue panel */

.hero__bg-pattern {
  position: absolute;
  /* Góra i lewa krawędź jak dotąd (-100 px); prawa i dolna powiększone o kafelek (wzorek dryfuje w prawo i w dół) */
  inset: -100px -460px -460px -100px;
  background-image: url('../Branding-Ceramics/assets/patterns/png/seamless/seamlessArtboard 1 copy 2.png');
  /* Wysokość kafelka podana jawnie: pierwotny plik 2000×2001 dawał 360×360,18 px, a przekodowany 720×721 przy `auto`
     dałby 360,5 px i wzorek rozjeżdżałby się o 0,3 px na kafelek w dół strony. */
  background-size: 360px 360.18px;
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: pattern-drift-hero 72s linear infinite;
}

/* Subtle vignette on left panel */

.hero__left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 11, 54, 0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Sequential entrance — each child animates in */

.hero__content > * {
  animation: hero-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__content > :nth-child(1) { animation-delay: 0.05s; }

.hero__content > :nth-child(2) { animation-delay: 0.2s;  }

.hero__content > :nth-child(3) { animation-delay: 0.38s; }

.hero__content > :nth-child(4) { animation-delay: 0.54s; }

.hero__content > :nth-child(5) { animation-delay: 0.68s; }

.hero .label {
  color: var(--color-label-on-blue);
  font-size: 0.6875rem;
}

.hero .label::before { background-color: var(--color-pink); }

/* Etykiety na granacie: krem (kontrast) i różowa kreska dekoracyjna — jak w hero */

.gift-card .label,
.franchise-teaser .label { color: var(--color-label-on-blue); }

.gift-card .label::before,
.franchise-teaser .label::before { background-color: var(--color-pink); }

.hero__heading {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 14ch;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: var(--color-cream);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  opacity: 0.88;
}

/* Hero na telefonie (A-04, UI-SPEC § 3): odstępy skompresowane, żeby „Zarezerwuj stolik” mieścił się nad banerem
   cookies na pierwszym ekranie. Zdjęcie, srcset i wymiary bez zmian. */

@media (max-width: 767px) {
  .hero__left {
    padding-top: 2rem;
  }

  .hero__heading {
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    margin-bottom: 1.5rem;
  }
}

/* Niskie telefony (A-04, decyzja właścicielki 2026-10-02, „A: kompresja”): przy realnym oknie przeglądarki to
   większość telefonów. Mniejszy nagłówek, ciaśniejszy podtytuł i odstępy, żeby przycisk zostawał nad banerem
   przy 360×780. 375×667 zostaje informacyjne (mieści się dopiero po zmianie zdjęcia lub tekstów). */

@media (max-width: 767px) and (max-height: 800px) {
  .hero__left {
    padding-top: 1.5rem;
  }

  .hero__heading {
    font-size: clamp(2.5rem, 9vw, 3rem);
  }

  .hero__subtitle {
    line-height: 1.5;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 2.75rem;
}

/* Wejście do certyfikatu (D-08): link tekstowy pod przyciskiem rezerwacji, bez wypełnienia i obramowania,
   żeby nie konkurował z główną akcją */

.hero__gift {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-cream);
  text-align: center;
}

.hero__gift-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 12px;
  margin-left: 0.25rem;
  color: var(--color-white);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero__gift-link:hover,
.hero__gift-link:focus-visible {
  text-decoration-thickness: 2px;
}

.hero__doodle {
  max-width: 440px;
  width: 85%;
  opacity: 0.3;
  filter: brightness(0) invert(1);
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Scroll indicator — inside left panel */

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
  animation: scroll-bounce 2.2s ease-in-out infinite;
  animation-delay: 2.5s;
}

.hero__scroll svg { display: block; }

/* === HERO — RIGHT (photo) panel === */

.hero__right {
  position: relative;
  order: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.hero__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(37, 53, 176, 0.4) 100%
  );
  pointer-events: none;
}

/* === SECTION WAVE DIVIDER (cream → blue) === */

.wave-divider--cream-to-blue {
  background-color: var(--color-cream);
}

.wave-divider--cream-to-blue img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(81%) saturate(1200%) hue-rotate(213deg) brightness(90%) contrast(95%);
  opacity: 0.15;
}

.wave-divider--blue-to-cream {
  background-color: var(--color-blue);
}

.wave-divider--blue-to-cream img {
  filter: sepia(1) saturate(0.5) brightness(1.4);
  opacity: 0.3;
}

/* === BOOKING === */

/* ===== REVIEWS (homepage social proof) ===== */

.reviews {
  background-color: var(--color-white);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.reviews__rating-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.reviews__score {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1;
}

.reviews__stars {
  color: #F5A623;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.reviews__source {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 1;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(37, 53, 176, 0.07);
  display: flex;
  flex-direction: column;
}

.review-card__stars {
  color: #F5A623;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.review-card__text {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #2a2a2a;
  flex: 1;
  margin-bottom: 1.5rem;
}

.review-card__author {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 1;
}

.footer__hours--muted {
  font-style: italic;
  opacity: 0.7;
}

/* === FAQ === */

.faq {
  background-color: var(--color-cream);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
}

.faq__item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-blue);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item:has(.faq__question[aria-expanded="true"]) {
  box-shadow: var(--shadow);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.0625rem;
  color: var(--color-black);
  transition: background-color var(--transition);
}

.faq__question:hover,
.faq__question:focus-visible {
  background-color: rgba(37, 53, 176, 0.06);
  /* obrys wewnątrz kadru: .faq__item ma overflow: hidden, więc obrys na zewnątrz byłby ucięty */
  outline: var(--focus-ring-light);
  outline-offset: -3px;
}

.faq__icon {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  color: var(--color-blue);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }

.faq__answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              padding-bottom 0.38s ease;
}

.faq__answer p {
  font-size: 0.9375rem;
  color: #565656;
  line-height: 1.7;
  padding-bottom: 1.375rem;
}

/* === FOOTER === */

.footer {
  background-color: var(--color-blue);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 0;
}

.footer__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer__locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__city {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.footer__address,
.footer__hours {
  font-size: 0.875rem;
  color: var(--color-cream);
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: 0.375rem;
}

.footer__hours {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.footer__map-link {
  position: relative;
  display: block;
  font-size: 0.8125rem;
  color: var(--color-cream);
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
  margin-bottom: 0.625rem;
}

.footer__map-link:hover,
.footer__map-link:focus-visible { opacity: 1; }

/* Cel dotyku min. 44 px bez zmiany wyglądu (A-16, D-10). Od linku Instagram dzieli go 22 px: mapa bierze 10 px pod sobą,
   Instagram 11 px nad sobą (obszary się nie nakładają); górą 13 px nad linkiem (godziny, bez elementów interaktywnych). */

.footer__map-link::after {
  content: '';
  position: absolute;
  inset: -13px 0 -10px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__email {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-cream);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}

.footer__email:hover,
.footer__email:focus-visible { color: var(--color-white); }

.footer__social { display: flex; gap: 0.75rem; }

.footer__social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  opacity: 1;
  border-radius: var(--radius-md);
  transition: opacity var(--transition), background-color var(--transition);
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cel dotyku min. 44 px bez zmiany wyglądu (A-16, D-10): ikona 40×40 → 44×44. */

.footer__social-link::after {
  content: '';
  position: absolute;
  inset: -2px;
}

.footer__social-link--location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  width: auto;
  height: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  opacity: 1;
  text-decoration: none;
  border-radius: 0;
}

.footer__social-link--location:hover,
.footer__social-link--location:focus-visible {
  color: var(--color-white);
  opacity: 1;
  background: none;
}

/* Link Instagram (19 px wysokości, A-16): 11 px nad sobą (druga połowa przerwy od linku mapy, bez nakładania) i 15 px pod
   sobą (wolne miejsce do następnej kolumny/sekcji). */

.footer__social-link--location::after {
  inset: -11px 0 -15px;
}

.footer__divider {
  margin-block: 2.5rem 2rem;
}

.footer__wave {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.15;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  opacity: 0.5;
}

.footer__legal-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-left: auto;
}

.footer__legal-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer__legal-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Cel dotyku min. 44 px bez zmiany wyglądu (A-16, D-10): 14 px nad i pod linkiem (nad: tekst praw autorskich, pod: dolny
   margines stopki 40 px); poziomo bez rozszerzenia — linki dzielą 20 px przerwy. Element flex jest blokowy, więc ::after stabilny. */

.footer__legal-link::after {
  content: '';
  position: absolute;
  inset: -14px 0;
}

/* === LEGAL PAGES === */

.legal-page {
  background: var(--color-cream);
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  min-height: 100vh;
}

.legal-page__header {
  margin-bottom: 3rem;
}

.legal-page__title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-black);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.1;
}

.legal-page__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-black);
  opacity: 0.45;
  margin-top: 0.5rem;
}

.legal-page__body {
  max-width: 720px;
  color: var(--color-black);
}

.legal-page__body h2 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 2.5rem 0 0.75rem;
  color: var(--color-blue);
}

.legal-page__body h2:first-child {
  margin-top: 0;
}

.legal-page__body p {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.875rem;
  opacity: 0.85;
}

.legal-page__body ul {
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.legal-page__body li {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.375rem;
  opacity: 0.85;
}

.legal-page__body a {
  color: var(--color-blue);
  text-underline-offset: 3px;
}

.legal-page__body a:hover {
  color: var(--color-blue-dark);
}

.legal-page .footer {
  background: var(--color-blue);
}

/* === RESPONSIVE — 768px === */

@media (min-width: 768px) {
  /* Hero: side-by-side layout */

  .hero {
    flex-direction: row;
    min-height: clamp(560px, 85vh, 860px);
  }

  .hero__left {
    order: 1;
    flex: 0 0 54%;
    padding-top: clamp(5rem, 8vh, 7rem);
    padding-bottom: clamp(4rem, 6vh, 6rem);
    padding-right: 3.5rem;
    padding-left: clamp(2rem, 6vw, 4.5rem);
  }

  .hero__right {
    order: 2;
    flex: 1 1 auto;
    aspect-ratio: unset;
    /* photo fills via absolute positioning below */
    position: relative;
  }

  .hero__right .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }

  .hero__content {
    align-items: flex-start;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
  }

  .hero__actions {
    align-items: flex-start;
  }

  .hero__gift {
    text-align: left;
  }

  .hero__doodle {
    margin-left: 0;
  }

  .hero__scroll {
    left: 27%;
  }

  /* Overlay: left edge dissolves into blue panel */

  .hero__photo-overlay {
    background: linear-gradient(
      to right,
      rgba(37, 53, 176, 0.2) 0%,
      transparent 25%,
      transparent 85%,
      rgba(0, 0, 0, 0.1) 100%
    );
  }

  .nav__links {
    display: flex;
    align-items: center;
  }

  .nav__cta { display: inline-flex; }

  .nav__hamburger { display: none; }

  .footer__top { grid-template-columns: 160px 3fr 1fr; align-items: start; }

  .footer__locations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

  .footer__bottom { flex-direction: row; }
}

/* === RESPONSIVE — 768–1023px (tablet pionowy) ===
   Przy 768 px nawigacja (7 linków + przełącznik języka + przycisk) i stopka (3 kolumny) były szersze niż okno
   (scrollWidth do 937 px). Tylko odstępy i układ kolumn — zestaw, kolejność i teksty nawigacji bez zmian. */

@media (min-width: 768px) and (max-width: 1023px) {
  .nav__inner { gap: 0.5rem; }

  .nav__link { padding: 0.4rem 0.3rem; font-size: 0.8125rem; }

  .nav__actions { gap: 0.5rem; }

  .nav__cta { padding-inline: 0.875rem; }

  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

/* === RESPONSIVE — 1280px === */

@media (min-width: 1280px) {
  /* Kolumna lokali w stopce dzieli wiersz z logo i kontaktem, więc 4 kolumny dopiero od 1280 px (karty od 1024 px) */

  .footer__locations { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .hero__heading { letter-spacing: -0.02em; }
}

/* === REDUCED MOTION === */

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

  .section-animate { opacity: 1; transform: none; }

  .hero__content > * { animation: none; opacity: 1; }

  /* Wzorki tła stoją w miejscu (nieskończona animacja 0,01 ms migotałaby) */

  .hero__bg-pattern { animation: none; }

  html { scroll-behavior: auto; }
}

/* === COOKIE CONSENT BANNER === */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-banner);
  background: var(--color-white);
  border-top: 1px solid var(--color-cream-dark);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1.5rem var(--container-pad);
  transform: translateY(100%);
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  pointer-events: none;
}

/* Ukryty baner wypada z kolejności Tab i z czytnika (T-03-34); visibility wraca dopiero po zakończeniu przesunięcia */

.cookie-banner:not(.is-visible) {
  visibility: hidden;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

/* Skrócony opis jest tylko dla wariantu kompaktowego na telefonie */

.cookie-banner__description--short {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none !important;
  }
}

.cookie-banner__content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-black);
  margin: 0;
}

.cookie-banner__description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__link {
  font-size: 0.8rem;
  color: var(--color-blue);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition);
}

.cookie-banner__link:hover {
  color: var(--color-blue-dark);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.cookie-banner__btn--primary:hover {
  background: #1d2a99;
}

.cookie-banner__btn--secondary {
  background: var(--color-cream);
  color: var(--color-black);
  border: 1px solid var(--color-cream-dark);
}

.cookie-banner__btn--secondary:hover {
  background: var(--color-cream-dark);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* === COOKIE BANNER RESPONSIVE === */

@media (max-width: 767px) {
  .cookie-banner {
    padding: 1rem var(--container-pad);
  }

  .cookie-banner__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-banner__btn {
    flex: 1;
  }

  .cookie-banner__description {
    font-size: 0.8rem;
  }

  .cookie-banner__title {
    font-size: 0.9rem;
  }
}

/* === FOOTER COMPANY INFO === */

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__company {
  font-size: 0.8rem;
  color: var(--color-cream);
  opacity: 0.75;
  line-height: 1.4;
  margin: 0;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-cream);
  opacity: 0.75;
  margin: 0;
}

/* =====================================================================
   /franczyza v2 — style podstrony.
   Oparte na tokenach i komponentach z tej bazy (dawniej style.css; paleta, fonty, .btn,
   .label, .section-heading, .faq__*). Bez nowej palety.
   ===================================================================== */

/* === BAZA === */

.fr-page [hidden] { display: none !important; }

.fr-section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  scroll-margin-top: calc(var(--nav-height) + 8px);
}

.fr-section--cream { background-color: var(--color-cream); }

.fr-section--white { background-color: var(--color-white); }

.fr-section--blue {
  background-color: var(--color-blue);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.fr-section--blue::before {
  content: '';
  position: absolute;
  inset: -80px;
  background-image: url('../Branding-Ceramics/assets/patterns/png/seamless/seamlessArtboard%201%20copy%202.png');
  background-size: 300px 300.15px;
  opacity: 0.05;
  pointer-events: none;
}

.fr-section--blue > * { position: relative; z-index: 1; }

.fr-section .section-heading { margin-bottom: 1.25rem; max-width: 22ch; }

.fr-lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.65;
  color: #3d3d3d;
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.fr-lead--light { color: var(--color-cream); }

.fr-label-light { color: var(--color-cream); }

.fr-note {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #444;
  max-width: 70ch;
}

.fr-fineprint {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #555;
  max-width: 90ch;
}

.fr-section--blue .fr-fineprint { color: var(--color-cream); }

.fr-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--color-black);
}

.fr-micro-cta { margin-top: 2rem; }

/* Widoczny fokus w całej podstronie (AA) */

.fr-page a:focus-visible,
.fr-page button:focus-visible,
.fr-page summary:focus-visible,
.fr-page [tabindex]:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

.fr-section--blue a:focus-visible,
.fr-section--blue button:focus-visible,
.fr-hero a:focus-visible,
.fr-hero button:focus-visible {
  outline-color: var(--color-white);
}

/* === 2.12 FORMULARZ KWALIFIKACYJNY === */

.fr-qualify__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.fr-sales {
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  order: 2;
}

.fr-sales__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}

.fr-sales__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.fr-sales__name {
  font-size: 1.375rem;
  color: var(--color-white);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.fr-sales__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fr-sales__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.75rem 0 1rem;
}

.fr-sales__contacts a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1.0625rem;
}

.fr-sales__note { font-size: 0.875rem; margin-top: 0.75rem; }

.fr-qualify__card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  order: 1;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* Pasek postępu */

.fr-progress { margin-bottom: 1.75rem; }

.fr-progress__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.625rem;
}

.fr-progress__bar {
  height: 6px;
  background: rgba(37, 53, 176, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.fr-progress__fill {
  height: 100%;
  width: 20%;
  background: var(--color-blue);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.fr-progress__steps {
  display: none;
  list-style: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #6b6b6b;
}

.fr-progress__step.is-current { color: var(--color-blue); }

.fr-progress__step.is-done { color: var(--color-black); }

.fr-progress__step.is-done::before { content: '✓ '; }

/* Bez JS: wszystkie kroki widoczne, bez paska i nawigacji kroków */

.fr-form:not(.fr-form--wizard) .fr-step__back,
.fr-form:not(.fr-form--wizard) .fr-step__next,
.fr-form:not(.fr-form--wizard) + .fr-thanks { display: none; }

.fr-qualify__card:not(:has(.fr-form--wizard)) .fr-progress { display: none; }

.fr-step {
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fr-step + .fr-step { margin-top: 2rem; }

.fr-form--wizard .fr-step + .fr-step { margin-top: 0; }

.fr-step__title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

.fr-step__title:focus { outline: none; }

.fr-step__title:focus-visible { outline: 3px solid var(--color-red); outline-offset: 4px; }

.fr-step__count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.fr-form--wizard .fr-step__count { display: none; }

.fr-step__name {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.15;
  color: var(--color-black);
}

.fr-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.fr-field,
.fr-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 0;
  min-width: 0;
}

.fr-label {
  font-size: 0.9375rem;
  color: var(--color-black);
  line-height: 1.4;
  padding: 0;
}

.fr-req { color: var(--color-red); margin-left: 0.2em; }

.fr-hint {
  font-size: 0.8125rem;
  color: #595959;
  margin-top: -0.25rem;
}

.fr-hint a { color: var(--color-blue); text-decoration: underline; text-underline-offset: 3px; }

.fr-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem; /* ≥16px — iOS nie przybliża pola */
  color: var(--color-black);
  background: var(--color-white);
  border: 1.5px solid #8a8fb8;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.fr-input::placeholder { color: #767676; }

.fr-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 53, 176, 0.25);
}

/* F5 (Faza 4): obramowanie w fokusie ma 3,03:1 względem obramowania bez fokusu (3,13:1 do tła) — na granicy,
   a w stanie błędu (czerwone obramowanie w obu stanach) wskaźnik fokusu to tylko poświata 1,57:1.
   Obrys 3 px jak w .fr-page (spójny wskaźnik fokusu, WCAG 2.4.7 / 1.4.11). */

.fr-input:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.fr-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232535B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.fr-choices { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }

.fr-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8125rem 1rem;
  min-height: 48px;
  border: 1.5px solid rgba(37, 53, 176, 0.22);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: border-color var(--transition), background-color var(--transition);
}

.fr-choice:hover { border-color: var(--color-blue); }

.fr-choice:has(input:checked) {
  border-color: var(--color-blue);
  background-color: rgba(37, 53, 176, 0.06);
}

.fr-choice:has(input:focus-visible) {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.fr-choice input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--color-blue);
}

.fr-choice--consent {
  border: 0;
  padding: 0;
  min-height: 0;
  font-size: 0.875rem;
}

.fr-choice--consent:has(input:checked) { background: none; }

.fr-error {
  font-size: 0.875rem;
  color: #b3300f; /* ciemniejsza czerwień marki — kontrast AA na bieli */
  display: flex;
  gap: 0.375rem;
  align-items: flex-start;
}

.fr-error::before { content: '!'; font-weight: 700; }

.is-invalid .fr-input,
.fr-group.is-invalid .fr-choice { border-color: #b3300f; }

.fr-step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.fr-step__nav .btn { min-height: 48px; }

/* F4 (Faza 4): styl niekompletnego kroku przez data-incomplete — „Dalej” nie jest ogłaszany jako niedostępny */

.fr-step__next[data-incomplete="true"],
.fr-step__submit[data-incomplete="true"] {
  box-shadow: none;
}

/* WR-01 (Faza 4, gap closure 04-17): aktywny przycisk nie jest zwolniony z WCAG 1.4.3, więc stan niekompletny
   NIE używa przezroczystości (opacity .55 dawało 3,01:1). Wyciszony odcień koloru marki, biały tekst:
   „Dalej” #5a64b8 = 5,32:1 (--color-blue wyciszony). Hover i fokus mają zwykłe kolory .btn--primary
   (tło czerwone 5,18:1) — stąd :not(:hover):not(:focus-visible), bo ta sama specyficzność, a ta reguła stoi później. */
.fr-step__next[data-incomplete="true"]:not(:hover):not(:focus-visible) {
  background-color: #5a64b8;
  border-color: #5a64b8;
}

/* WR-01: „Wyślij zgłoszenie” — czerwień marki wyciszona (#C8391A zmieszany w 45 % z szarym #808080 = #a85948,
   biały tekst 5,01:1) w stanie niekompletnym i podczas wysyłania; hover i fokus mają zwykłe .btn--red
   (--color-red-dark 6,81:1). Stan wysyłania (od v2) nie używa już opacity .7 (ok. 3,2:1). */
.fr-step__submit[data-incomplete="true"]:not(:hover):not(:focus-visible) {
  background-color: #a85948;
  border-color: #a85948;
}

.fr-step__submit[aria-busy="true"] {
  cursor: progress;
  background-color: #a85948;
  border-color: #a85948;
}

.fr-submit-error {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: #fbe9e5;
  color: #8c250c;
  font-size: 0.9375rem;
}

.fr-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Podziękowanie */

.fr-thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
}

.fr-thanks__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 53, 176, 0.1);
  position: relative;
}

.fr-thanks__icon::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-blue);
  font-size: 1.5rem;
}

.fr-thanks[data-prequal^="reject"] .fr-thanks__icon::after,
.fr-thanks[data-prequal="abroad"] .fr-thanks__icon::after { content: 'i'; font-family: var(--font-mono); }

.fr-thanks__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.fr-thanks__title:focus { outline: none; }

.fr-thanks__text { font-size: 1.0625rem; line-height: 1.65; color: #333; }

.fr-thanks__more a { color: var(--color-blue); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .fr-row { grid-template-columns: 1fr 1fr; }

  .fr-progress__steps { display: grid; }
}

@media (min-width: 960px) {
  .fr-qualify__inner { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 3.5rem; }

  .fr-sales { order: 0; position: sticky; top: calc(var(--nav-height) + 24px); }

  .fr-qualify__card { order: 0; }

  .fr-choices--multi { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fr-progress__fill { transition: none; }
}

/* === NARZĘDZIA === */

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

.fr-subheading {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

/* Akordeony (bazują na .faq__* ze style.css) */

.fr-accordion { max-width: none; }

.fr-accordion__heading { font-size: inherit; font-weight: 400; }

.fr-accordion .faq__answer p,
.fr-accordion .faq__answer ul { color: #4a4a4a; }

.fr-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  padding-bottom: 1.25rem;
}

.fr-bullets li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4a4a4a;
  padding-bottom: 0.375rem;
}
