/* ============================================================
   NestB - style własne (uzupełnienie Tailwind Play CDN)
   Zmienne motywu (kolory, fonty) są w index.html w bloku @theme.
   ============================================================ */

/* --- Sekcje ukryte (wymóg klienta: w kodzie, ale niewidoczne) --- */
.hidden-section { display: none !important; }

/* --- Link pomijający nawigację (dostępność) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #0E2A33;
  color: #F2F5F4;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* --- Nagłówek / pasek nawigacji --- */
.site-header {
  background: rgba(242, 245, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(110, 130, 139, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.nav-menu a {
  color: #0E2A33;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:hover { color: #14707F; }

.nav-cta {
  background: #C9A24B;
  color: #0E2A33 !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(0.95); }

/* --- Przełącznik menu mobilnego --- */
/* Domyślnie ukryty (desktop); pokazywany tylko w media query mobile poniżej.
   Nie polegamy na .md:hidden z Tailwind, bo custom.css ładuje się po CDN
   i nadpisywałby tę klasę. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid rgba(110, 130, 139, 0.35);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #0E2A33;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: menu zwijane */
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: #F2F5F4;
    border-bottom: 1px solid rgba(110, 130, 139, 0.25);
    box-shadow: 0 12px 24px rgba(14, 42, 51, 0.08);
  }
  .nav-menu li { padding: 0.35rem 0; }
  .nav-menu .nav-cta { display: inline-block; margin-top: 0.5rem; text-align: center; }
  /* Domyślnie ukryte, otwierane przez JS (klasa is-open) */
  .nav-menu:not(.is-open) { display: none; }
}

/* --- Placeholdery szkieletu (Etap 1) --- */
[data-placeholder] {
  min-height: 96px;
  margin-top: 1rem;
  border: 1px dashed rgba(110, 130, 139, 0.5);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(110, 130, 139, 0.06),
      rgba(110, 130, 139, 0.06) 10px,
      transparent 10px,
      transparent 20px
    );
}
[data-placeholder]::before {
  content: "Miejsce na treść (Etap kolejny)";
  display: block;
  padding: 0.75rem 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #6E828B;
}

/* --- Naprzemienne tła sekcji dla czytelności szkieletu --- */
.section:nth-of-type(even) { background: #ffffff; }

/* --- Stopka --- */
.site-footer {
  background: #0E2A33;
  color: #F2F5F4;
  position: relative;
  overflow: hidden;
}
.site-footer a { color: #C9A24B; }
.site-footer .footer-inner { position: relative; z-index: 1; }

/* --- Widoczny focus klawiatury (dostępność) --- */
:focus-visible {
  outline: 3px solid #14707F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   KOMPONENTY (Etap 2+)
   ============================================================ */

/* --- Przyciski CTA --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #C9A24B; color: #0E2A33; }
.btn-primary:hover { filter: brightness(0.96); }
.btn-secondary { background: transparent; color: #14707F; border-color: #14707F; }
.btn-secondary:hover { background: #14707F; color: #F2F5F4; }
/* Wariant na ciemnym tle (hero) */
.btn-on-dark { background: transparent; color: #F2F5F4; border-color: rgba(242, 245, 244, 0.5); }
.btn-on-dark:hover { background: rgba(242, 245, 244, 0.12); }

/* --- Etykieta „eyebrow" (mono) --- */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14707F;
}
.section-hero .eyebrow { color: #8fd4dd; }

/* --- Akapit wiodący --- */
.lead-lg {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #24424b;
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
  background: linear-gradient(135deg, #0E2A33 0%, #0c343d 45%, #14707F 135%);
}
/* Motyw warstwic („falki") - wielokrotnego użytku (hero, panel kontaktu, stopka) */
.contour-svg {
  position: absolute;
  top: 0;
  left: -4%;
  width: 108%;   /* zapas na delikatny dryf w poziomie */
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
}
.contour-svg--hero { opacity: 0.16; }
.contour-svg--footer { opacity: 0.13; }
.contour-svg--panel { opacity: 0.16; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
}

/* Pasek zaufania */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #9fc0c4;
}
.trust-strip li { display: inline-flex; align-items: center; }
.trust-strip li:not(:last-child)::after {
  content: "•";
  margin-left: 0.55rem;
  opacity: 0.5;
}

/* --- Karta pomiaru (element „signature") --- */
.readout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(143, 212, 221, 0.35);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}
.readout__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd4dd;
  margin-bottom: 1rem;
}
.readout__head .live { display: inline-flex; align-items: center; gap: 0.45rem; }
.readout__head .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C9A24B;
  display: inline-block;
}
.param-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.param-list .param {
  background: rgba(14, 42, 51, 0.35);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}
.param-list .param .k {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
}
.param-list .param .u {
  display: block;
  font-size: 0.68rem;
  color: #8fd4dd;
  margin-top: 0.15rem;
}
.readout__foot {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  color: #9fc0c4;
  margin-top: 0.9rem;
  text-align: right;
}

/* ============================================================
   LISTY TREŚCI (Problem / Rozwiązanie)
   ============================================================ */
.cons-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.cons-list li {
  position: relative;
  padding-left: 1.6rem;
  color: #24424b;
}
.cons-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #6E828B;
}

.param-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}
.param-card {
  background: #ffffff;
  border: 1px solid rgba(110, 130, 139, 0.25);
  border-left: 3px solid #14707F;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.param-card .param-name {
  display: block;
  font-weight: 600;
  color: #0E2A33;
}
.param-card .param-desc {
  display: block;
  font-size: 0.9rem;
  color: #4a5b62; /* przyciemnione dla kontrastu WCAG AA */
  margin-top: 0.15rem;
}
/* Na białym tle sekcji (nth even) karty potrzebują subtelnego wyróżnienia */
.section:nth-of-type(even) .param-card { background: #F2F5F4; }

/* --- Lista z „ptaszkami" (Mobilność, Co zyskujesz) --- */
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.check-list.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem 1.5rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  color: #24424b;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #14707F;
  color: #F2F5F4;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Wariant kompaktowy list (mniejszy font, ciaśniejsza interlinia między punktami) */
.cons-list.compact,
.check-list.compact { gap: 0.4rem; }
.cons-list.compact li,
.check-list.compact li {
  font-size: 0.9rem;
  line-height: 1.45;
}

/* --- Karty „Dla kogo" --- */
.audience-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
}
.audience-card {
  background: #ffffff;
  border: 1px solid rgba(110, 130, 139, 0.25);
  border-left: 3px solid #3F5E45;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}
.audience-card .a-name {
  display: block;
  font-weight: 600;
  color: #0E2A33;
}
.audience-card .a-desc {
  display: block;
  font-size: 0.9rem;
  color: #4a5b62; /* przyciemnione dla kontrastu WCAG AA */
  margin-top: 0.15rem;
}
.section:nth-of-type(even) .audience-card { background: #F2F5F4; }

/* --- Karty opisowe (Zastosowania, Parametry) --- */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.use-card {
  background: #ffffff;
  border: 1px solid rgba(110, 130, 139, 0.25);
  border-top: 3px solid #14707F;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.use-card h3,
.use-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0E2A33;
  line-height: 1.2;
}
.use-card p {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #41575f;
}
.section:nth-of-type(even) .use-card { background: #F2F5F4; }

/* --- Kroki „Jak to wygląda w praktyce" --- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 3.5rem;
  padding-top: 0.35rem;
  min-height: 2.6rem;
  color: #24424b;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #0E2A33;
  color: #C9A24B;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 1.05rem;
}

/* --- FAQ (accordion details/summary) --- */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid rgba(110, 130, 139, 0.25);
  border-radius: 12px;
}
.section:nth-of-type(even) .faq-item { background: #F2F5F4; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: #0E2A33;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.4rem;
  line-height: 1;
  color: #14707F;
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; } /* minus */
.faq-body {
  padding: 0 1.2rem 1.1rem;
  color: #41575f;
}
.faq-body p { margin: 0; }
.faq-body ul,
.faq-body ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.faq-body li { margin-top: 0.2rem; }

/* --- Formularz kontaktowy --- */
.form { max-width: 660px; }
.form-grid { display: grid; gap: 1.1rem; }
.form-row-2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #0E2A33;
}
.form label .opt { font-weight: 400; color: #6E828B; }
.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(110, 130, 139, 0.5);
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  color: #0E2A33;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input::placeholder,
.form textarea::placeholder { color: #9aa8ae; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #41575f;
}
.form-consent input {
  width: auto;
  margin-top: 0.2rem;
  flex: none;
}

/* --- Panel kontaktowy (dane + e-mail) --- */
.contact-panel {
  background: #0E2A33;
  color: #F2F5F4;
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.contact-panel .panel-inner { position: relative; z-index: 1; }
.contact-panel a { color: #C9A24B; }
.contact-panel .label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fd4dd;
}

/* --- Placeholder zdjęcia (właściciel + pies) --- */
.photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(110, 130, 139, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, #e7ecea, #d6ddda);
  color: #6E828B;
}
.photo-placeholder .ph-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   SZLIF (Etap 6): hover, kontrast, drobne poprawki
   ============================================================ */

/* Tekst drugorzędny z kontrastem AA na jasnym tle */
.text-muted { color: #4a5b62; }

/* Reveal na scroll (Motion) - ukrycie stanu początkowego TYLKO gdy JS dodał .motion-ready.
   Bez JS lub przy prefers-reduced-motion treść jest normalnie widoczna. */
html.motion-ready main section:not(.hidden-section) > div,
html.motion-ready footer .footer-inner {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* Interaktywność kart - subtelne uniesienie na hover */
.use-card,
.audience-card,
.param-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.use-card:hover,
.audience-card:hover,
.param-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 42, 51, 0.09);
  border-color: rgba(20, 112, 127, 0.5);
}

/* FAQ - hover i wyraźny obszar interakcji */
.faq-item summary { transition: color 0.15s ease; }
.faq-item summary:hover { color: #14707F; }

/* Podkreślenie linków na hover (e-mail, stopka, treść FAQ) */
.contact-panel a:hover,
.site-footer a:hover,
.faq-body a:hover { text-decoration: underline; }

/* Stopka - jaśniejszy tekst drugorzędny dla kontrastu na ciemnym tle */
.site-footer .footer-muted { color: #a9b8bc; }

/* Pola formularza - wyraźniejsza ramka na hover */
.form input:hover,
.form textarea:hover { border-color: #14707F; }

/* --- Poszanowanie prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Płynne przewijanie do kotwic (wyłączane przez reduced-motion powyżej) --- */
html { scroll-behavior: smooth; }
/* Offset pod sticky header, by kotwica nie chowała się pod paskiem */
:target { scroll-margin-top: 5rem; }

/* ============================================================
   ETAP MULTI-PAGE: logo, hero ze zdjęciem, falka-motyw, galeria,
   banery podstron, pole select, aktywna nawigacja.
   ============================================================ */

/* --- Logo w nagłówku --- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
}
@media (max-width: 767px) { .brand-logo { height: 34px; } }

/* --- Aktywna pozycja menu (aria-current) --- */
.nav-menu a.is-active {
  color: #14707F;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nav-menu .nav-cta.is-active { text-decoration: none; } /* CTA nie podkreślamy */

/* --- Akcent „falki" pod tytułem sekcji (H2) --- */
.sec-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 10px;
  margin-top: 0.7rem;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='66'%20height='10'%20viewBox='0%200%2066%2010'%3E%3Cpath%20d='M1%205%20Q%209%200%2017%205%20T%2033%205%20T%2049%205%20T%2065%205'%20fill='none'%20stroke='%2314707F'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E") left center no-repeat;
}
/* Na ciemnym tle (gdyby sec-title trafił na hero/panel) - jaśniejszy akcent */
.section-hero .sec-title::after,
.page-hero .sec-title::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='66'%20height='10'%20viewBox='0%200%2066%2010'%3E%3Cpath%20d='M1%205%20Q%209%200%2017%205%20T%2033%205%20T%2049%205%20T%2065%205'%20fill='none'%20stroke='%238fd4dd'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Hero na stronie głównej ze zdjęciem jeziora (nakładka dla kontrastu tekstu) --- */
.section-hero--photo {
  background-image:
    linear-gradient(135deg, rgba(14,42,51,0.88) 0%, rgba(12,52,61,0.82) 45%, rgba(20,112,127,0.68) 135%),
    url("../assets/img/nestb-galeria-01.jpeg");
  background-size: cover;
  background-position: center;
}

/* --- Baner podstrony (lżejszy niż hero home) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #F2F5F4;
  background: linear-gradient(135deg, #0E2A33 0%, #0c343d 55%, #14707F 150%);
}
.page-hero .eyebrow { color: #8fd4dd; }
.page-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}
/* Zdjęcia tematyczne w banerach podstron (z nakładką dla kontrastu) */
.page-hero.hero-usluga,
.page-hero.hero-zastosowania,
.page-hero.hero-dyrektywa,
.page-hero.hero-faq {
  background-size: cover;
  background-position: center;
}
.page-hero.hero-usluga {
  background-image: linear-gradient(120deg, rgba(14,42,51,0.9), rgba(20,112,127,0.72)), url("../assets/img/nestb-galeria-04.jpeg");
}
.page-hero.hero-zastosowania {
  background-image: linear-gradient(120deg, rgba(14,42,51,0.9), rgba(20,112,127,0.72)), url("../assets/img/nestb-galeria-06.jpeg");
}
.page-hero.hero-dyrektywa {
  background-image: linear-gradient(120deg, rgba(14,42,51,0.9), rgba(20,112,127,0.72)), url("../assets/img/nestb-galeria-02.jpeg");
}
.page-hero.hero-faq {
  background-image: linear-gradient(120deg, rgba(14,42,51,0.9), rgba(20,112,127,0.72)), url("../assets/img/nestb-galeria-05.jpeg");
}

/* --- Falka-separator na styku hero i treści (dół hero) --- */
.hero-bottom-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 52px;
  z-index: 3;
  display: block;
  line-height: 0;
  pointer-events: none;
}
@media (max-width: 640px) { .hero-bottom-wave { height: 32px; } }

/* --- Ramka zdjęcia (zamiast szarych placeholderów) --- */
.media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(14, 42, 51, 0.14);
  background: #dfe6e3;
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-tall  { aspect-ratio: 3 / 4; }
.media-wide  { aspect-ratio: 3 / 2; }
.media-photo { aspect-ratio: 16 / 10; }
figure.media-frame figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.85rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: #F2F5F4;
  background: linear-gradient(to top, rgba(14,42,51,0.72), rgba(14,42,51,0));
}

/* --- Galeria (masonry, zdjęcia poziome + pionowe) --- */
.gallery {
  columns: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(14, 42, 51, 0.10);
}

/* --- Pole wyboru (select „typ klienta") - spójne z inputami --- */
.form select,
.form-select {
  width: 100%;
  padding: 0.7rem 2.4rem 0.7rem 0.85rem;
  border: 1px solid rgba(110, 130, 139, 0.5);
  border-radius: 10px;
  background-color: #ffffff;
  color: #0E2A33;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M4%206l4%204%204-4'%20fill='none'%20stroke='%2314707F'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
.form select:hover { border-color: #14707F; }

/* --- Stopka: logo, układ, nawigacja --- */
.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.footer-nav a { font-size: 0.92rem; }

/* --- Obraz „O nas" (placeholder Bartka z psem: na razie krajobraz) --- */
.about-photo { max-width: 480px; }

/* --- Podstrona Dyrektywa: kafelki A-E, oś czasu, tabela parametrów --- */
.kafel-letter {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: #0E2A33;
  color: #C9A24B;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 640px;
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 2rem;
  border-left: 2px solid rgba(20, 112, 127, 0.3);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.15rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #14707F;
  border: 3px solid #F2F5F4;
}
.section:nth-of-type(even) .timeline li::before { border-color: #ffffff; }
.timeline .t-date {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #14707F;
}
.timeline .t-label { display: block; margin-top: 0.2rem; color: #24424b; }

.table-wrap { overflow-x: auto; border-radius: 12px; }
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
  background: #ffffff;
}
.section:nth-of-type(even) .param-table { background: #F2F5F4; }
.param-table th,
.param-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(110, 130, 139, 0.25);
  vertical-align: top;
}
.param-table thead th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #14707F;
}
.param-table td:first-child { font-weight: 600; color: #0E2A33; }
.param-table tbody tr:hover { background: rgba(20, 112, 127, 0.05); }

/* --- Ramka na linki źródłowe (placeholder do dostarczenia przez Sebastiana) --- */
.source-note {
  border: 1px dashed rgba(110, 130, 139, 0.55);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: #ffffff;
  color: #41575f;
  font-size: 0.92rem;
}
.section:nth-of-type(even) .source-note { background: #F2F5F4; }

/* --- Reveal (Motion): obejmij też sekcje wstrzyknięte (kontakt) - już złapane
   przez selektor „main section > div"; falka-separator nie animowana. --- */
