/* ==========================================================================
   metodAI — arkusz wyłącznie strony /reservations/ (ładowany jako OSTATNI,
   po brand.css, site-chrome.css i panels.css).

   Zasady:
   - każda reguła jest zawężona do `.is-reservations` albo do klasy, której
     nie używa żadna inna strona (`.steps--5`, `.shot--hero`, `.demo-pending`),
     więc strona główna i /lead_dashboard/ pozostają bez zmian;
   - nie powtarzamy komponentów: karty, kroki, zrzuty i formularz pochodzą
     z brand.css / panels.css i używane są bez zmian;
   - zero stylów inline i zero nowych skryptów (CSP: `default-src 'self'`).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PRZYCISKI DEMONSTRACJI
   Dwa wejścia do dwóch demonstracji produktu. Adresy pochodzą z config.js
   (`reservationsDemoUrl`, `staffDashboardDemoUrl`) i podstawia je brand.js.
   Dopóki adres jest pusty, przycisk jest prawdziwym <button disabled> —
   widoczny, ale nieaktywny; nie udajemy działającego odnośnika.
   -------------------------------------------------------------------------- */
.is-reservations .btn-demo[disabled],
.is-reservations .btn-demo[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}
.is-reservations .btn-demo[disabled]:hover,
.is-reservations .btn-demo[aria-disabled="true"]:hover {
  transform: none;
  filter: none;
}

/* Widoczne, krótkie wyjaśnienie pod zestawem przycisków. */
.demo-hint {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 62ch;
}
.demo-hint strong { color: var(--soft); font-weight: 600; }

/* Pas końcowy: dwa równorzędne kafelki demonstracji. */
.demo-tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) { .demo-tiles { grid-template-columns: 1fr; } }
.demo-tile {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.demo-tile h3 { font-size: 1.02rem; }
.demo-tile p { color: var(--muted); font-size: 0.92rem; }
.demo-tile .btn { justify-self: start; margin-top: 4px; }
.demo-tile__tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}

/* --------------------------------------------------------------------------
   2. ZRZUTY EKRANU Z PRODUKTU
   `.shot` / `.shots` / `.shot-caption` pochodzą z brand.css. Tutaj dodajemy
   tylko wariant hero (zrzut jako główna wizualizacja) i układ par.
   -------------------------------------------------------------------------- */
.is-reservations .shot--hero { box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.95); }
.is-reservations .shot--hero img { border-bottom: 1px solid var(--line); }

/* Hero tej strony: komunikat i przyciski w centrum, zrzut produktu pełną
   szerokością pod nimi (duże, czytelne zrzuty to główny dowód na tej stronie). */
.is-reservations .hero-brand--stack .hero-inner {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  justify-items: stretch;
  text-align: center;
}
.is-reservations .hero-brand--stack .hero-copy {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 78ch;
  margin-inline: auto;
}
.is-reservations .hero-brand--stack h1 { max-width: 26ch; }
.is-reservations .hero-brand--stack .hero-sub { max-width: 72ch; }
.is-reservations .hero-brand--stack .hero-actions { justify-content: center; }

/* Para zrzutów w tej samej szerokości (układ stosowany w modułach). */

/* Sekcja z pełną szerokością: tabela rezerwacji jest najszersza. */
.shot--wide { margin-top: var(--head-gap); }

/* --------------------------------------------------------------------------
   3. SEKCJA „POZNAJ SYSTEM” — dwa moduły produktu
   Korzystamy z komponentu .system z brand.css (tekst + media); tutaj tylko
   poszerzamy kolumnę mediów, bo mieszczą się w niej duże zrzuty paneli.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .is-reservations .system--media-wide,
  .is-reservations .system { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
.is-reservations .system-body .lead { color: var(--soft); }

/* --------------------------------------------------------------------------
   4. PRZEPŁYW „JEDEN SYSTEM, DWIE PERSPEKTYWY” — 5 kroków
   `.steps` z brand.css ma 4 kolumny; tu potrzebujemy 5 (i nadal bez zawijania
   w połowie rzędu, bo łącznik z panels.css działa od 1001 px).
   -------------------------------------------------------------------------- */
@media (min-width: 1001px) {
  .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .steps--5 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. KOTWICE POD PRZYKLEJONYM NAGŁÓWKIEM (68 px)
   -------------------------------------------------------------------------- */
#system, #proces, #mozliwosci, #korzysci, #demo, #kontakt {
  scroll-margin-top: 88px;
}

/* --------------------------------------------------------------------------
   6. POPRAWKI DOSTĘPNOŚCI ZAWĘZONE DO TEJ STRONY
   (a) obwódki pól formularza: --line-2 (#2d3541) ma 1,48:1 na tle pola,
       czyli poniżej progu 3:1 z WCAG 1.4.11 — na tej stronie używamy
       jaśniejszej obwódki (#5f6d80 → 3,3–3,6:1);
   (b) obwódka fokusu pola: bazowy arkusz używa niebieskiego cienia z palety
       strony głównej — tutaj fokus ma być w akcencie tej strony.
   -------------------------------------------------------------------------- */
.is-reservations .contact-grid .field input:not([type="checkbox"]),
.is-reservations .contact-grid .field textarea,
.is-reservations .field input,
.is-reservations .field textarea { border-color: #5f6d80; }
.is-reservations .contact-grid .field--check input { border-color: #5f6d80; }
.is-reservations .contact-grid .field input:not([type="checkbox"]):focus,
.is-reservations .contact-grid .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.is-reservations .field input:focus,
.is-reservations .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227, 161, 94, 0.22);
}

/* --------------------------------------------------------------------------
   7. RUCH: HOVER NIE PRZESUWA ELEMENTU
   brand.css dodaje `.btn:hover { transform: translateY(-1px) }` — na tej
   stronie zostaje zmiana koloru, bez przesuwania (spójne z pasem CTA).
   -------------------------------------------------------------------------- */
.is-reservations .btn:hover,
.is-reservations .btn:focus-visible { transform: none; }
.is-reservations .panel-card:hover { transform: none; }

/* Elementy wchodzące (`reveal`) muszą nadal animować opacity + transform. */
.is-reservations .demo-tile.reveal {
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .is-reservations .btn:hover { background-color: var(--bg-3); }
  .is-reservations .btn-primary:hover { background-color: var(--accent-soft); }
}
