/* ==========================================================================
   OFERTA: AUDYT SEO (oferta/audyt-seo.php)
   Ładowany przez $GRELL_PAGES['oferta/audyt-seo.php']['extra_css'] PO
   css/oferta-link-building-inline.css (wspólne komponenty lb-*; pliku LB nie zmieniamy).

   Część 1: komponenty tabel ot-* z paczki Claude Design (25.10.2026), 1:1.
            Wielokrotnego użytku na kolejnych ofertach. Paczka zalecała dopisanie do
            input.css i rekompilację Tailwinda; świadomie zwykły plik CSS (CLAUDE.md:
            punktowe style w *-inline.css, Tailwind nie skanuje oferta/*.php).
   Część 2: drobne uzupełnienia do lb-* (H1 małą literą, pola select).
   ========================================================================== */


/* --- wspólne ------------------------------------------------------------ */
.ot-frame {
  border: 1px solid #dfe3ea;           /* line-card */
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.ot-bar {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #eb4763, #f97a1f); /* gradient dekoracyjny, bez tekstu */
}
.ot-table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", system-ui, sans-serif;
}
.ot-table th,
.ot-table td { margin: 0; text-align: left; vertical-align: top; }

/* nagłówki kolumn: ukryte wizualnie na mobile, dostępne dla czytnika */
.ot-table thead {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
/* tbody/tr/th/td jako bloki na mobile */
.ot-table tbody,
.ot-table tr,
.ot-table th,
.ot-table td { display: block; }

.ot-colhead {
  font-size: 12px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #535c6b;                       /* ink-label */
}
/* etykieta kolumny powtarzana w komórce – tylko mobile */
.ot-label {
  display: block;
  font-size: 11px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #535c6b;
}
.ot-dash {
  flex: none;
  width: 20px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #eb4763, #f97a1f);
}
.ot-check {
  flex: none;
  width: 18px; height: 18px; margin-top: 2px;
  border-radius: 999px;
  background: #ffe3e8;                  /* primary-soft */
  display: flex; align-items: center; justify-content: center;
}
.ot-check svg { width: 10px; height: 10px; }

/* --- 1. Wyciąg z raportu (Etap / Ustalenie) ------------------------------ */
.ot-steps tr { padding: 18px 16px 20px; }
.ot-steps tr + tr { border-top: 1px solid #e6e7eb; }
.ot-steps th[scope="row"] {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px; line-height: 1.35; font-weight: 600;
  color: #0b1121;
}
.ot-steps td {
  margin-top: 6px;
  font-size: 15px; line-height: 1.6;
  color: #3d4554;                       /* ink-body */
}

/* --- 2. Porównanie (skaner / audyt) -------------------------------------- */
.ot-compare tbody { display: flex; flex-direction: column; gap: 28px; }
.ot-compare tr {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid #0b1121;
  padding-top: 14px;
}
.ot-compare th[scope="row"] {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 19px; line-height: 1.3; font-weight: 600;
  color: #0b1121;
}
.ot-compare__them {
  padding: 12px 16px 14px;
  border-radius: 12px;
  background: #f1f4f8;                  /* surface-alt */
}
.ot-compare__them .ot-text {
  display: block; margin-top: 4px;
  font-size: 15px; line-height: 1.55; color: #3d4554;
}
.ot-compare__us {
  padding: 12px 16px 14px;
  border-radius: 12px;
  border: 1px solid #dfe3ea;
  background: #ffffff;
}
.ot-compare__us .ot-label { color: #c4203e; } /* primary-a11y, 5.5:1 */
.ot-compare__us .ot-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 6px;
  font-size: 15px; line-height: 1.55; color: #0b1121;
}

/* --- 3. Cennik (typ witryny / cena od) ----------------------------------- */
.ot-pricing tbody { display: flex; flex-direction: column; gap: 12px; }
.ot-pricing tr {
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(11, 17, 33, 0.08);
}
.ot-pricing th[scope="row"] {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 19px; line-height: 1.3; font-weight: 600;
  color: #0b1121;
}
.ot-pricing th[scope="row"] .ot-dash { margin-top: 12px; }
.ot-pricing td {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid #e6e7eb;
}
.ot-pricing .ot-label { font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
.ot-price {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 28px; line-height: 1; font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1121;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ot-pricing-frame .ot-bar { display: none; } /* pasek tylko na karcie desktop */

/* ===== od 768 px: zwykłe tabele ========================================== */
@media (min-width: 768px) {
  .ot-table { display: table; table-layout: fixed; }
  .ot-table thead {
    position: static; width: auto; height: auto;
    overflow: visible; clip: auto; clip-path: none; white-space: normal;
    display: table-header-group;
  }
  .ot-table tbody { display: table-row-group; }
  .ot-table tr { display: table-row; padding: 0; }
  .ot-table th,
  .ot-table td { display: table-cell; }
  .ot-label { display: none; }
  .ot-table col.ot-col-head { width: 200px; }

  /* wyciąg */
  .ot-steps thead th { padding: 14px 24px; background: #f1f4f8; }
  .ot-steps tbody th,
  .ot-steps tbody td { padding: 22px 24px; }
  .ot-steps tr + tr { border-top: 0; }
  .ot-steps tbody tr + tr th,
  .ot-steps tbody tr + tr td { border-top: 1px solid #e6e7eb; }
  .ot-steps th[scope="row"] { font-size: 18px; }
  .ot-steps td { margin: 0; line-height: 1.65; }

  /* porównanie: 768–1023 px dwa pola obok siebie, tabela dopiero od 1024 px */
  .ot-compare { display: block; }
  .ot-compare thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .ot-compare tbody { display: flex; }
  .ot-compare tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; padding-top: 14px; border-top: 1px solid #0b1121;
  }
  .ot-compare th[scope="row"] { grid-column: 1 / -1; display: flex; }
  .ot-compare td { display: block; }
  .ot-compare .ot-label { display: block; }

  /* cennik */
  .ot-pricing-frame {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 17, 33, 0.10);
  }
  .ot-pricing-frame .ot-bar { display: block; }
  .ot-pricing thead th { padding: 22px 32px 14px; }
  .ot-pricing thead th + th { text-align: right; white-space: nowrap; }
  .ot-pricing tr { border-radius: 0; background: none; box-shadow: none; }
  .ot-pricing th[scope="row"],
  .ot-pricing td {
    display: table-cell;
    padding: 24px 32px;
    margin: 0;
    border-top: 1px solid #e6e7eb;
    vertical-align: middle;
  }
  .ot-pricing tbody tr:last-child th,
  .ot-pricing tbody tr:last-child td { padding-bottom: 28px; }
  .ot-pricing th[scope="row"] { font-size: 20px; line-height: 1.35; }
  .ot-pricing th[scope="row"] .ot-dash { display: none; }
  .ot-pricing td { text-align: right; width: 38%; }
  .ot-price { font-size: 34px; }
}

@media (min-width: 1024px) {
  .ot-compare { display: table; }
  .ot-compare .ot-label { display: none; }
  .ot-compare thead { display: table-header-group; }
  .ot-compare td { display: table-cell; }
  .ot-compare thead {
    position: static; width: auto; height: auto;
    overflow: visible; clip: auto; clip-path: none; white-space: normal;
  }
  /* porównanie */
  .ot-compare-frame {
    border: 1px solid #dfe3ea; border-radius: 12px;
    overflow: hidden; background: #ffffff;
  }
  .ot-compare tbody { display: table-row-group; }
  .ot-compare tr { display: table-row; border: 0; padding: 0; }
  .ot-compare thead th {
    padding: 22px 24px 18px;
    vertical-align: bottom;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 19px; line-height: 1.3; font-weight: 600;
  }
  .ot-compare thead .ot-compare__them { background: #f1f4f8; color: #535c6b; border-radius: 0; }
  .ot-compare thead .ot-compare__us {
    background-color: #ffffff;
    background-image: linear-gradient(90deg, #eb4763, #f97a1f);
    background-size: 100% 4px; background-repeat: no-repeat;
    color: #0b1121; border: 0; border-radius: 0;
  }
  .ot-compare tbody th,
  .ot-compare tbody td {
    padding: 20px 24px;
    border-top: 1px solid #e6e7eb;
    border-radius: 0;
  }
  .ot-compare th[scope="row"] {
    display: table-cell;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px; line-height: 1.5; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #535c6b;
  }
  .ot-compare th[scope="row"] .ot-dash { display: none; }
  .ot-compare tbody .ot-compare__us { border-left: 0; border-right: 0; border-bottom: 0; }
  .ot-compare__them .ot-text { margin: 0; line-height: 1.6; color: #5b6473; }
  .ot-compare__us .ot-row { margin: 0; gap: 12px; line-height: 1.6; }
  .ot-compare__us .ot-check { margin-top: 3px; }

}

@media (min-width: 1024px) {
  .ot-table col.ot-col-head { width: 248px; }
  .ot-steps thead th,
  .ot-steps tbody th,
  .ot-steps tbody td,
  .ot-compare thead th,
  .ot-compare tbody th,
  .ot-compare tbody td { padding-left: 28px; padding-right: 28px; }
}

/* odstęp tabeli od akapitu nad nią (H3 i akapit dostają klasy typografii z link-building.html) */
.ot-block > .ot-frame,
.ot-block > .ot-compare-frame { margin-top: 24px; }
@media (min-width: 768px) {
  .ot-block > .ot-frame,
  .ot-block > .ot-compare-frame { margin-top: 32px; }
}

/* ==========================================================================
   Część 2: uzupełnienia do komponentów lb-* (tylko to, czego nie ma w CSS oferty LB)
   ========================================================================== */

/* H1: druga linia zaczyna się małą literą („strony internetowej”); w LB „dla” → „Dla” przez ::first-letter */
.lb-hero-sub--lower::first-letter { text-transform: none; }

/* Pola wyboru formularza (w LB są tylko input i textarea): wygląd jak .lb-field input */
.lb-field select { display: block; width: 100%; font: 400 16px/1.4 'Inter', system-ui, sans-serif; color: var(--t-strong); background: var(--lb-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23535c6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat; border: 1px solid #7b8496; border-radius: 6px; padding: 14px 40px 14px 14px; -webkit-appearance: none; appearance: none; }
.lb-field select:focus { outline: 2px solid var(--t-strong); outline-offset: 1px; border-color: var(--t-strong); }

/* „Zakres”: komponent lb-gain z LB, ale karta krótsza niż lista: wysokość wg treści i przyklejona
   jak .lb-ask przy FAQ (w LB karta AI wypełnia całą wysokość logotypami) */
.lb-gain--top { align-items: start; }
@media (min-width: 1024px) {
  .lb-gain--top { align-items: start; }
  .lb-gain--top .lb-gain-list { grid-auto-rows: auto; }
  .lb-gain--top .lb-gain-ai { position: sticky; top: calc(var(--nav-height) + var(--lb-anchors-h) + 24px); }
}

/* ==========================================================================
   Część 3: poprawki „sztywności” (Claude Design, 25.10.2026, wersja 2)
   ========================================================================== */

/* 02 Rezultat: wyciąg z raportu w panelu .lb-panel (forma „Kryteria” z LB),
   ale dopiero od 640 px. Na telefonie panel nie dawał efektu, a zabierał
   szerokość tekstu, więc poniżej 640 px wyciąg wygląda jak dotąd. */
.ot-panel .ot-frame { background: #ffffff; }
@media (max-width: 639px) {
  .ot-panel.lb-panel { background: transparent; padding: 0; border-radius: 0; }
}

/* 02 Porównanie ze skanerem, telefon (< 768 px): jedno pole na wiersz zamiast dwóch.
   Najpierw wartość audytu z ptaszkiem, pod nią jedna szara linia skanera
   z jego etykietą. Kolejność wizualna przez order, DOM i role ARIA bez zmian.
   Od 768 px obowiązują dotychczasowe reguły (dwa pola obok siebie, od 1024 tabela). */
@media (max-width: 767px) {
  .ot-compare tbody { gap: 24px; }
  .ot-compare tr { gap: 0; }
  .ot-compare th[scope="row"] { order: 0; padding-bottom: 10px; }
  .ot-compare__us { order: 1; padding: 0; border: 0; border-radius: 0; background: none; }
  .ot-compare__us .ot-row { margin-top: 4px; }
  .ot-compare td.ot-compare__them {
    order: 2;
    margin-top: 14px; padding: 12px 0 0;
    border-top: 1px solid #e6e7eb; border-radius: 0; background: none;
  }
  .ot-compare__them .ot-label { display: inline; margin-right: 6px; }
  .ot-compare__them .ot-text { display: inline; margin: 0; font-size: 14px; line-height: 1.55; color: #5b6473; }
}


/* 03 Zakres: „Różnice między wariantami”, cztery pełnoszerokościowe wiersze (pełne teksty v0.5, każdy wiersz ma własną wysokość).
   Typografia z systemu LB: nagłówek grupy = .lb-h3--lg (jak „Jak wygląda przejście…” w 02), nazwy = 18 px jak .lb-h3,
   opis 16 px; pierwsze zdanie wyróżnione tylko grubością i kolorem. Siatka 5fr/7fr jak pozostałe bloki strony.
   Jedna linia nad nagłówkiem grupy, cienkie linie między wierszami; bez kart i cieni. */
.lb-vrows-group { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--t-strong); }
.lb-vrows-head { margin-bottom: 8px; }
.lb-vrow { position: relative; display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid #d5dae3; }
.lb-vrow:last-child { border-bottom: 0; padding-bottom: 0; }
.lb-vrow-name { display: flex; align-items: center; gap: 14px; }
.lb-vrow-name .lb-gain-ico { width: 40px; height: 40px; background: hsl(350 80% 60% / .08); border-color: transparent; }
.lb-vrow-name h4 { font: 700 18px/1.4 'Outfit', 'Inter', system-ui, sans-serif; letter-spacing: -.02em; color: var(--t-strong); }
.lb-vrow-desc p { font-size: 16px; line-height: 1.6; color: var(--t-body); max-width: 66ch; }
.lb-vrow-lead { font-weight: 600; color: var(--t-strong); }
@media (min-width: 1024px) {
  .lb-vrows-group { margin-top: 112px; }
  .lb-vrow { grid-template-columns: 5fr 7fr; gap: 64px; padding: 32px 0; align-items: start; }
  .lb-vrow:last-child { padding-bottom: 0; }
  .lb-vrow-desc { padding-top: 8px; }
}

/* Blok eksperta: trzy statystyki zamiast czterech (wariant .lb-stats z LB).
   Telefon: jedna kolumna z liniami między kafelkami; od 640 px trzy kolumny z liniami pionowymi.
   Nadpisuje układ 2×2 z LB (< 1024 px), który zakłada cztery kafelki. */
.lb-stats--3 { grid-template-columns: minmax(0, 1fr); }
.lb-stats--3 > div { padding: 24px 0; }
@media (max-width: 639px) {
  .lb-stats--3 > div + div { border-left: 0; border-top: 1px solid var(--ln); }
}
@media (min-width: 640px) {
  .lb-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-stats--3 > div { padding-right: 24px; }
  .lb-stats--3 > div + div { padding-left: 24px; }
  .lb-stats--3 > div:nth-child(3) { border-left: 1px solid var(--ln); }
  .lb-stats--3 > div:nth-child(n+3) { border-top: 0; }
}
@media (min-width: 1024px) { .lb-stats--3 > div { padding-bottom: 0; } }
