/*
Theme Name: Teuvan Polska V2
Theme URI: https://teuvan.pl/
Author: TARGA ŁK / projekt Teuvan Polska
Description: Lekki motyw prezentacyjny dla edytowalnych treści Teuvan. Motyw nie przechowuje treści podstron w kodzie.
Version: 2.1.18-rc3.15.1-defence-polish
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: teuvan-polska-v2
*/

:root {
  --tvn-dark: #0b1710;
  --tvn-dark-2: #14231a;
  --tvn-green: #007733;
  --tvn-green-dark: #005c23;
  --tvn-green-soft: rgba(0, 119, 51, 0.09);
  --tvn-green-soft-strong: rgba(0, 119, 51, 0.16);
  --tvn-olive: #58662f;
  --tvn-lime: #7fb539;
  --tvn-paper: #ffffff;
  --tvn-light: #f3f6f1;
  --tvn-light-2: #eaf1e6;
  --tvn-muted: #657169;
  --tvn-text: #172019;
  --tvn-border: #d8dfd6;
  --tvn-danger: #9b2727;
  --tvn-shadow: 0 18px 50px rgba(15, 35, 22, 0.13);
  --tvn-radius: 16px;
  --tvn-container: min(1220px, calc(100% - 32px));
  --tvn-transition: 160ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tvn-paper);
  color: var(--tvn-text);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, [type="button"], [type="submit"], select { cursor: pointer; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(0, 119, 51, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -100px;
  padding: 12px 16px;
  background: var(--tvn-dark);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.tvn-container, .alignwide { width: var(--tvn-container); margin-inline: auto; }
.alignfull { width: 100%; }
.site-main { min-height: 65vh; }

.tvn-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--tvn-border);
  backdrop-filter: blur(16px);
}
body.admin-bar .tvn-site-header { top: 32px; }
.tvn-header-inner {
  width: var(--tvn-container);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.tvn-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tvn-brand img { width: 210px; max-height: 58px; object-fit: contain; }
.tvn-brand-text { font-size: 24px; font-weight: 900; color: var(--tvn-green); }
.tvn-primary-nav { margin-left: auto; }
.tvn-primary-nav ul { list-style: none; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; }
.tvn-primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--tvn-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: color var(--tvn-transition), background-color var(--tvn-transition), transform var(--tvn-transition);
}
.tvn-primary-nav a:hover,
.tvn-primary-nav a:focus-visible,
.tvn-primary-nav .current-menu-item > a,
.tvn-primary-nav .current-menu-ancestor > a {
  background: var(--tvn-green-soft);
  color: var(--tvn-green);
}
.tvn-header-cta { white-space: nowrap; flex: 0 0 auto; }
.tvn-menu-toggle {
  display: none;
  margin-left: auto;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--tvn-border);
  border-radius: 9px;
  background: #fff;
  color: var(--tvn-dark);
  font-size: 24px;
}
.tvn-menu-toggle:hover { background: var(--tvn-green); color: #fff; border-color: var(--tvn-green); }

.tvn-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--tvn-green);
  border-radius: 8px;
  background: var(--tvn-green);
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--tvn-transition), border-color var(--tvn-transition), color var(--tvn-transition), transform var(--tvn-transition), box-shadow var(--tvn-transition);
}
.tvn-button:hover,
.tvn-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--tvn-green-dark);
  border-color: var(--tvn-green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 119, 51, .18);
}
.tvn-button-secondary,
.is-style-outline > .wp-block-button__link {
  background: #fff;
  color: var(--tvn-green);
}
.tvn-button-secondary:hover,
.tvn-button-secondary:focus-visible,
.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:focus-visible {
  background: var(--tvn-green);
  color: #fff;
}
.tvn-button-light { background: #fff; color: var(--tvn-green); border-color: #fff; }
.tvn-button-light:hover { background: var(--tvn-light-2); color: var(--tvn-green-dark); border-color: var(--tvn-light-2); }

.tvn-text-link, .entry-content a:not(.wp-block-button__link):not(.tvn-button) {
  color: var(--tvn-green);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tvn-text-link:hover,
.tvn-text-link:focus-visible,
.entry-content a:not(.wp-block-button__link):not(.tvn-button):hover,
.entry-content a:not(.wp-block-button__link):not(.tvn-button):focus-visible {
  color: var(--tvn-green-dark);
  text-decoration: underline;
  background: var(--tvn-green-soft);
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.13; margin: 0 0 .55em; color: var(--tvn-text); }
h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 4vw, 44px); letter-spacing: -.018em; }
h3 { font-size: clamp(20px, 2.1vw, 24px); }
p { margin: 0 0 1.15em; }
.tvn-lead { max-width: 72ch; font-size: clamp(18px, 2vw, 21px); color: var(--tvn-muted); }
.tvn-eyebrow {
  margin-bottom: 10px;
  color: var(--tvn-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.entry-content > *:not(.alignfull):not(.alignwide),
.tvn-entry-header > * { width: min(900px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.entry-content > .wp-block-group.tvn-section,
.entry-content > .wp-block-cover,
.entry-content > .alignwide { width: 100%; max-width: none; }
.tvn-entry-header { padding: 70px 0 28px; background: linear-gradient(180deg, var(--tvn-light), #fff); }
.tvn-entry-header h1 { font-size: clamp(36px, 5vw, 58px); }
.tvn-entry-content { padding-bottom: 72px; }
.tvn-entry-content > *:first-child { margin-top: 0; }

.tvn-section { padding: 74px max(16px, calc((100% - 1220px) / 2)); }
.tvn-section-alt { background: var(--tvn-light); }
.tvn-home-hero { color: #fff; }
.tvn-home-hero h1 { color: #fff; max-width: 920px; }
.tvn-home-hero .tvn-eyebrow { color: #a7d866; }
.tvn-home-hero .tvn-lead { color: #e4ebe6; max-width: 720px; }
.tvn-home-hero .wp-block-cover__inner-container { width: var(--tvn-container); margin-inline: auto; }
.tvn-actions, .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.tvn-grid { display: grid; gap: 22px; }
.tvn-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0; }
.tvn-article-grid, .tvn-realization-grid, .tvn-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0; }
.tvn-application-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0; }
.tvn-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tvn-border);
  border-radius: var(--tvn-radius);
  box-shadow: 0 4px 18px rgba(15, 30, 20, .05);
  transition: border-color var(--tvn-transition), transform var(--tvn-transition), box-shadow var(--tvn-transition);
}
.tvn-card:hover { border-color: rgba(0,119,51,.45); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 35, 22, .12); }
.tvn-card-media { display: grid; place-items: center; min-height: 240px; padding: 18px; background: #f6f8f5; }
.tvn-card-media:hover, .tvn-card-media:focus-visible { background: var(--tvn-green-soft); }
.tvn-card-media img { width: 100%; height: 230px; object-fit: contain; }
.tvn-article-card .tvn-card-media img, .tvn-realization-grid .tvn-card-media img { height: 220px; object-fit: cover; }
.tvn-card-body { padding: 22px; }
.tvn-card-body h3 a:hover, .tvn-card-body h3 a:focus-visible { color: var(--tvn-green); }
.tvn-application-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--tvn-green-soft); color: var(--tvn-green); font-size: 24px; }
.tvn-person-image { aspect-ratio: 1/1; overflow: hidden; background: var(--tvn-light); }
.tvn-person-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.tvn-role { color: var(--tvn-green); font-weight: 900; }

.tvn-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 38px;
  border-radius: var(--tvn-radius);
  background: var(--tvn-olive);
  color: #fff;
}
.tvn-cta h2 { color: #fff; margin-bottom: 8px; }
.tvn-cta p { margin: 0; }

.tvn-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; width: var(--tvn-container) !important; margin: 36px auto !important; }
.tvn-stats > .wp-block-column { margin: 0 !important; padding: 26px 18px; border-radius: 12px; background: var(--tvn-olive); color: #fff; text-align: center; }
.tvn-stats strong { display: block; font-size: 28px; }
.tvn-stats span { display: block; font-size: 14px; }
.tvn-wide-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--tvn-radius); box-shadow: var(--tvn-shadow); }

.tvn-breadcrumb { width: var(--tvn-container); margin-inline: auto; padding: 18px 0; color: var(--tvn-muted); font-size: 14px; }
.tvn-breadcrumb a:hover { color: var(--tvn-green); }
.tvn-product-hero { padding: 58px 0 70px; background: var(--tvn-light); }
.tvn-product-hero-inner { width: var(--tvn-container); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tvn-product-visual { min-height: 480px; display: grid; place-items: center; padding: 30px; border-radius: var(--tvn-radius); background: #fff; }
.tvn-product-visual img { max-height: 440px; object-fit: contain; }
.tvn-product-summary ul, .tvn-checks { list-style: none; padding: 0; margin: 22px 0; }
.tvn-product-summary li, .tvn-checks li { position: relative; padding: 6px 0 6px 25px; }
.tvn-product-summary li::before, .tvn-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--tvn-green); font-weight: 900; }
.tvn-kpis { width: var(--tvn-container); margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--tvn-border); border-radius: var(--tvn-radius); }
.tvn-kpi { min-width: 0; padding: 22px 14px; border-right: 1px solid var(--tvn-border); text-align: center; }
.tvn-kpi:last-child { border-right: 0; }
.tvn-kpi strong { display: block; overflow-wrap: anywhere; color: var(--tvn-olive); font-size: 19px; }
.tvn-kpi span { font-size: 13px; color: var(--tvn-muted); }
.tvn-two-column { width: var(--tvn-container); margin-inline: auto; display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 30px; align-items: start; }
.tvn-panel { min-width: 0; padding: 25px; border: 1px solid var(--tvn-border); border-radius: var(--tvn-radius); background: #fff; }
.tvn-panel-sticky { position: sticky; top: 112px; }

.tvn-spec-table, .tvn-compare-table, .tvn-content-table table { width: 100%; border-collapse: collapse; }
.tvn-spec-table th, .tvn-spec-table td, .tvn-compare-table th, .tvn-compare-table td, .tvn-content-table th, .tvn-content-table td { padding: 13px; border: 1px solid var(--tvn-border); text-align: left; vertical-align: top; }
.tvn-spec-table th, .tvn-content-table th { background: #f7f9f6; }
.tvn-compare-table thead th { background: var(--tvn-olive); color: #fff; }
.tvn-compare-table thead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tvn-compare-table tbody th { min-width: 190px; background: #f7f9f6; }
.tvn-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--tvn-border); border-radius: var(--tvn-radius); }
.tvn-compare-table { min-width: 1050px; }
.tvn-compare-controls { display: flex; gap: 9px; flex-wrap: wrap; margin: 24px 0; padding: 0; border: 0; }
.tvn-compare-controls legend { width: 100%; margin-bottom: 8px; font-weight: 900; }
.tvn-compare-controls label { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--tvn-border); border-radius: 9px; background: #fff; }
.tvn-compare-controls label:hover { border-color: var(--tvn-green); background: var(--tvn-green-soft); color: var(--tvn-green); }

.tvn-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.tvn-form-grid label { display: block; margin-bottom: 6px; font-weight: 900; }
.tvn-form-grid select, .tvn-form-grid input, .tvn-form-grid textarea,
.entry-content input, .entry-content select, .entry-content textarea {
  width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--tvn-border); border-radius: 8px; background: #fff; color: var(--tvn-text);
}
.entry-content textarea { min-height: 130px; }
.tvn-form-grid select:hover, .entry-content input:hover, .entry-content select:hover, .entry-content textarea:hover { border-color: var(--tvn-green); }
.tvn-selector-result { margin-top: 25px; padding: 24px; border: 1px solid #bfd3b3; border-radius: 14px; background: #eaf2e5; }
.tvn-selector-result:empty { display: none; }

.tvn-notice, .tvn-takeaways { margin: 24px 0; padding: 22px; border: 1px solid #c3d8b6; border-left: 5px solid var(--tvn-lime); border-radius: 10px; background: #eef5e9; }
.tvn-notice h3 { margin-bottom: 8px; }
.tvn-document-list { display: grid; gap: 16px; }
.tvn-document-item { padding: 22px; border: 1px solid var(--tvn-border); border-radius: 12px; }

.tvn-article-hero { padding: 55px 0; background: var(--tvn-light); border-bottom: 1px solid var(--tvn-border); }
.tvn-article-hero-inner { width: var(--tvn-container); margin-inline: auto; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 42px; align-items: center; }
.tvn-article-hero-image { overflow: hidden; border-radius: var(--tvn-radius); box-shadow: var(--tvn-shadow); }
.tvn-article-hero-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tvn-article-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--tvn-muted); font-size: 14px; }
.tvn-article-content { width: min(850px, calc(100% - 32px)); min-width: 0; margin: 0 auto; padding: 62px 0; }
.tvn-article-content > * { min-width: 0; }
.tvn-article-content p, .tvn-article-content li { font-size: 17px; }
.tvn-article-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.tvn-faq { margin-top: 42px; }
.tvn-faq details { margin: 10px 0; overflow: hidden; border: 1px solid var(--tvn-border); border-radius: 10px; }
.tvn-faq summary { min-height: 48px; padding: 14px 16px; font-weight: 900; cursor: pointer; }
.tvn-faq summary:hover { background: var(--tvn-green-soft); color: var(--tvn-green); }
.tvn-faq-answer { padding: 0 16px 16px; }

.tvn-site-footer { padding: 55px 0 25px; background: var(--tvn-dark); color: #d4ddd7; }
.tvn-footer-grid { width: var(--tvn-container); margin-inline: auto; display: grid; grid-template-columns: 1.35fr repeat(3,minmax(0,1fr)); gap: 34px; }
.tvn-footer-brand img { width: 225px; max-height: 70px; padding: 7px; border-radius: 7px; background: #fff; object-fit: contain; }
.tvn-site-footer h2, .tvn-site-footer h3 { color: #fff; font-size: 18px; }
.tvn-site-footer ul { list-style: none; margin: 0; padding: 0; }
.tvn-site-footer a { display: inline-flex; min-height: 38px; align-items: center; color: #e5ebe7; }
.tvn-site-footer a:hover, .tvn-site-footer a:focus-visible { color: #fff; background: rgba(127,181,57,.17); border-radius: 5px; }
.tvn-targa-logo { margin-top: 18px; }
.tvn-targa-logo img { width: 100px; padding: 5px; border-radius: 5px; background: #fff; }
.tvn-footer-bottom { width: var(--tvn-container); margin: 38px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }

@media (max-width: 1120px) {
  .tvn-header-inner { gap: 12px; }
  .tvn-brand img { width: 185px; }
  .tvn-primary-nav a { padding-inline: 8px; font-size: 11px; }
  .tvn-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tvn-application-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tvn-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tvn-kpi:nth-child(3) { border-right: 0; }
  .tvn-kpi:nth-child(-n+3) { border-bottom: 1px solid var(--tvn-border); }
}

@media (max-width: 900px) {
  body.admin-bar .tvn-site-header { top: 46px; }
  .tvn-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .tvn-primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    display: none;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--tvn-border);
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: var(--tvn-shadow);
  }
  .tvn-primary-nav.is-open { display: block; }
  .tvn-primary-nav ul { display: grid; gap: 5px; }
  .tvn-primary-nav a { min-height: 48px; padding: 12px 14px; font-size: 13px; }
  .tvn-header-cta { display: none; }
  .tvn-product-grid, .tvn-application-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tvn-article-grid, .tvn-realization-grid, .tvn-team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tvn-product-hero-inner, .tvn-article-hero-inner, .tvn-two-column { grid-template-columns: 1fr; }
  .tvn-panel-sticky { position: static; }
  .tvn-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  :root { --tvn-container: min(100% - 24px, 1220px); }
  .tvn-header-inner { min-height: 70px; }
  .tvn-brand img { width: 165px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  h2 { font-size: clamp(27px, 8vw, 36px); }
  .tvn-section { padding: 56px 12px; }
  .tvn-home-hero { min-height: 570px !important; }
  .tvn-product-grid, .tvn-application-grid, .tvn-article-grid, .tvn-realization-grid, .tvn-team-grid { grid-template-columns: 1fr; }
  .tvn-card-media { min-height: 220px; }
  .tvn-card-media img { height: 210px; }
  .tvn-form-grid { grid-template-columns: 1fr; }
  .tvn-cta { align-items: flex-start; flex-direction: column; padding: 26px; }
  .tvn-stats { grid-template-columns: 1fr; width: calc(100% - 24px) !important; }
  .tvn-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-kpi { border-bottom: 1px solid var(--tvn-border); }
  .tvn-kpi:nth-child(odd) { border-right: 1px solid var(--tvn-border); }
  .tvn-kpi:nth-child(even) { border-right: 0; }
  .tvn-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .tvn-product-visual { min-height: 350px; }
  .tvn-footer-grid { grid-template-columns: 1fr; }
  .tvn-article-content { width: calc(100% - 24px); min-width: 0; }
  .tvn-article-content .wp-block-table, .tvn-content-table { width: 100%; max-width: 100%; overflow-x: auto; }
  .tvn-compare-controls label { width: 100%; }
}

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

/* Dynamiczne listy mogą korzystać z pełnej szerokości, mimo że tekst strony pozostaje węższy. */
.entry-content > .wp-block-shortcode,
.wp-block-group.tvn-section > .wp-block-shortcode {
  width: var(--tvn-container);
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* 10E.5 / RC3.2 — poprawki po audycie UX, mobile i dostępności. */
.tvn-header-cta-short { display: none; }
.tvn-footer-legal { width: var(--tvn-container); margin: 34px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.tvn-footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; }
.tvn-footer-legal a { min-height: 36px; font-size: 13px; }

.tvn-compare { --tvn-compare-selected: 3; }
.tvn-compare-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; width: 100%; }
.tvn-compare-controls label { position: relative; min-width: 0; }
.tvn-compare-controls input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--tvn-green); }
.tvn-compare-controls label.is-selected { border-color: var(--tvn-green); background: var(--tvn-green-soft); color: var(--tvn-green-dark); box-shadow: inset 0 0 0 1px rgba(0,119,51,.12); }
.tvn-compare-status { width: 100%; margin: 4px 0 8px; color: var(--tvn-muted); font-size: 14px; }
.tvn-compare-table { width: max(100%, calc(190px + (var(--tvn-compare-selected) * 230px))); min-width: 0; table-layout: fixed; }
.tvn-compare-table th:first-child, .tvn-compare-table td:first-child { width: 190px; }
.tvn-compare-table thead th:not(:first-child), .tvn-compare-table tbody td { width: 230px; }
.entry-content .tvn-compare-table thead a { color: #fff; background: transparent; text-decoration: underline; text-decoration-thickness: 1px; }
.entry-content .tvn-compare-table thead a:hover, .entry-content .tvn-compare-table thead a:focus-visible { color: #fff; background: rgba(255,255,255,.14); }
.tvn-compare-table thead th:first-child { position: sticky; left: 0; z-index: 4; }
.tvn-compare-table tbody th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--tvn-border); }
.tvn-compare-actions { margin-top: 20px; }

.tvn-model-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.tvn-model-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; min-height: 92px; padding: 16px; border: 1px solid var(--tvn-border); border-radius: 12px; background: #fff; color: var(--tvn-text); transition: var(--tvn-transition); }
.tvn-model-link > span:first-child { grid-column: 1; color: var(--tvn-green); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tvn-model-link strong { grid-column: 1; }
.tvn-model-link > span:last-child { grid-column: 2; grid-row: 1 / span 2; color: var(--tvn-green); font-size: 22px; }
.tvn-model-link:hover, .tvn-model-link:focus-visible { border-color: var(--tvn-green); background: var(--tvn-green-soft); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(15,35,22,.09); }
.tvn-model-link-disabled { opacity: .6; }

.tvn-sitemap-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 28px 0; }
.tvn-sitemap-group { padding: 22px; border: 1px solid var(--tvn-border); border-radius: 12px; background: #fff; }
.tvn-sitemap-group h2 { font-size: 22px; }
.tvn-sitemap-group ul { margin: 0; padding-left: 18px; }

.tvn-trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.tvn-trust-item { padding: 24px 18px; border: 1px solid var(--tvn-border); border-radius: 12px; background: var(--tvn-light); }
.tvn-trust-item strong { display: block; color: var(--tvn-olive); font-size: 25px; }
.tvn-trust-item span { color: var(--tvn-muted); font-size: 14px; }

@media (max-width: 900px) {
  .tvn-header-inner { gap: 8px; }
  .tvn-header-cta { display: inline-flex; margin-left: auto; min-height: 42px; padding: 9px 12px; font-size: 12px; }
  .tvn-menu-toggle { margin-left: 0; }
  .tvn-compare-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-model-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-sitemap-grid, .tvn-trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .tvn-brand img { width: 150px; }
  .tvn-header-cta { padding: 8px 10px; }
  .tvn-header-cta-long { display: none; }
  .tvn-header-cta-short { display: inline; }
  .tvn-menu-toggle { min-width: 42px; min-height: 42px; font-size: 21px; }
  .tvn-compare-options { grid-template-columns: 1fr; }
  .tvn-compare-controls label { width: auto; }
  .tvn-table-scroll { scroll-snap-type: x proximity; }
  .tvn-compare-table { width: calc(170px + (var(--tvn-compare-selected) * 215px)); }
  .tvn-compare-table th:first-child, .tvn-compare-table td:first-child { width: 170px; }
  .tvn-compare-table thead th:not(:first-child), .tvn-compare-table tbody td { width: 215px; }
  .tvn-model-links, .tvn-sitemap-grid, .tvn-trust-grid { grid-template-columns: 1fr; }
  .tvn-footer-legal ul { display: grid; gap: 2px; }
}


/* 10E.5.1 / RC3.2.1 — hotfix kontrastu nagłówków porównywarki. */
.entry-content .tvn-compare-table thead th a,
.entry-content .tvn-compare-table thead th a:visited,
.tvn-compare-table thead th a,
.tvn-compare-table thead th a:visited {
  color: #ffffff !important;
  font-weight: 900;
  text-decoration-color: rgba(255,255,255,.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content .tvn-compare-table thead th a:hover,
.entry-content .tvn-compare-table thead th a:focus-visible,
.tvn-compare-table thead th a:hover,
.tvn-compare-table thead th a:focus-visible {
  color: #ffffff !important;
  background: rgba(255,255,255,.16);
  border-radius: 4px;
}


/* 10E.6 / RC3.3 — formularz kontaktowy i stany QA. */
.tvn-contact-form {
  width: min(900px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px;
  border: 1px solid var(--tvn-border);
  border-radius: var(--tvn-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15,35,22,.07);
}
.entry-content > .tvn-contact-form { width: min(900px, calc(100% - 32px)); }
.tvn-contact-form .tvn-form-grid { margin-top: 18px; }
.tvn-contact-form label { color: var(--tvn-text); font-weight: 800; }
.tvn-contact-form input[type="text"],
.tvn-contact-form input[type="email"],
.tvn-contact-form input[type="tel"],
.tvn-contact-form input[type="file"],
.tvn-contact-form select,
.tvn-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--tvn-border);
  border-radius: 8px;
  background: #fff;
  color: var(--tvn-text);
}
.tvn-contact-form textarea { min-height: 170px; resize: vertical; }
.tvn-contact-form input:focus,
.tvn-contact-form select:focus,
.tvn-contact-form textarea:focus {
  border-color: var(--tvn-green);
  box-shadow: 0 0 0 3px rgba(0,119,51,.10);
  outline: none;
}
.tvn-form-span-2 { grid-column: 1 / -1; }
.tvn-form-help { margin: 7px 0 0; color: var(--tvn-muted); font-size: 13px; }
.tvn-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 8px;
  font-weight: 500 !important;
}
.tvn-form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--tvn-green);
  flex: 0 0 auto;
}
.tvn-form-consent a { color: var(--tvn-green); font-weight: 800; text-decoration: underline; }
.tvn-form-message {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--tvn-border);
  border-radius: 10px;
  background: var(--tvn-light);
}
.tvn-form-error { border-color: rgba(155,39,39,.35); background: #fff3f3; color: var(--tvn-danger); }
.tvn-form-warning { border-color: #d6b15a; background: #fff9e9; color: #665018; }
.tvn-form-test-note { border-color: #8eb6d7; background: #f0f7fc; color: #194765; }
.tvn-contact-form .tvn-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}
.tvn-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

@media (max-width: 600px) {
  .tvn-contact-form { width: calc(100% - 24px); padding: 20px 16px; }
  .tvn-form-span-2 { grid-column: auto; }
}

/* 10E.7 / RC3.4 — CMP, cookies i dostępne ustawienia prywatności. */
.tvn-cookie-settings-button {
  appearance: none;
  min-height: 36px;
  margin-top: 10px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tvn-cookie-settings-button:hover,
.tvn-cookie-settings-button:focus-visible { color: #fff; }

.tvn-consent-banner[hidden], .tvn-consent-modal[hidden] { display: none !important; }
.tvn-consent-banner {
  position: fixed;
  z-index: 10050;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  border-top: 1px solid var(--tvn-border);
  background: rgba(255,255,255,.98);
  box-shadow: 0 -12px 34px rgba(15,35,22,.14);
}
.tvn-consent-banner-inner {
  width: var(--tvn-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 24px;
}
.tvn-consent-copy strong { display: block; margin-bottom: 5px; font-size: 18px; }
.tvn-consent-copy p { max-width: 820px; margin: 0 0 7px; color: var(--tvn-muted); font-size: 14px; line-height: 1.55; }
.tvn-consent-copy a { color: var(--tvn-green); font-size: 13px; font-weight: 800; text-decoration: underline; }
.tvn-consent-actions { display: grid; grid-template-columns: repeat(2,minmax(170px,1fr)); gap: 8px; align-items: stretch; }
.tvn-consent-actions .tvn-button { justify-content: center; width: 100%; min-height: 46px; }
.tvn-consent-reject { border-width: 2px !important; }
.tvn-consent-customize {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--tvn-green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tvn-consent-open { overflow: hidden; }
.tvn-consent-modal { position: fixed; z-index: 10060; inset: 0; display: grid; place-items: center; padding: 20px; }
.tvn-consent-backdrop { position: absolute; inset: 0; background: rgba(5,18,10,.62); }
.tvn-consent-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  color: var(--tvn-text);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.tvn-consent-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tvn-consent-dialog-head h2 { margin: 4px 0 0; font-size: clamp(28px,5vw,40px); }
.tvn-consent-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tvn-border);
  border-radius: 10px;
  background: #fff;
  color: var(--tvn-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.tvn-consent-close:hover, .tvn-consent-close:focus-visible { border-color: var(--tvn-green); background: var(--tvn-green-soft); }
.tvn-consent-category {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--tvn-border);
  border-radius: 12px;
  background: #fff;
}
.tvn-consent-category strong { display: block; margin-bottom: 3px; font-size: 17px; }
.tvn-consent-category p { margin: 0; color: var(--tvn-muted); font-size: 13px; line-height: 1.5; }
.tvn-consent-category input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--tvn-green); }
.tvn-consent-category.is-required { background: var(--tvn-light); }
.tvn-consent-always { color: var(--tvn-green-dark); font-size: 13px; font-weight: 900; white-space: nowrap; }
.tvn-consent-dialog-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.tvn-consent-dialog-actions .tvn-button { justify-content: center; }

@media (max-width: 760px) {
  .tvn-consent-banner { padding: 14px 12px; }
  .tvn-consent-banner-inner { width: 100%; grid-template-columns: 1fr; gap: 12px; }
  .tvn-consent-actions { grid-template-columns: 1fr; }
  .tvn-consent-customize { grid-column: auto; }
  .tvn-consent-modal { padding: 10px; align-items: end; }
  .tvn-consent-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 22px 18px; border-radius: 16px 16px 0 0; }
  .tvn-consent-category { gap: 12px; padding: 16px 14px; }
  .tvn-consent-always { white-space: normal; text-align: right; }
  .tvn-consent-dialog-actions { grid-template-columns: 1fr; }
}


/* 10E.8.3 / RC3.6 — finalna korekta layoutu frontu przed migracją. */

/* Hero strony głównej: pełne otwarcie sekcji na szerokość viewportu,
   podczas gdy treść pozostaje w bezpiecznym kontenerze. */
.tvn-front-page .tvn-entry-content {
  overflow-x: clip;
}
.tvn-front-page .tvn-home-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: clamp(640px, 68vh, 760px) !important;
}
.tvn-front-page .tvn-home-hero .wp-block-cover__image-background {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.tvn-front-page .tvn-home-hero .tvn-home-hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.tvn-front-page .tvn-home-hero .tvn-home-hero-picture .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
}
.tvn-front-page .tvn-home-hero .wp-block-cover__inner-container {
  width: min(1220px, calc(100% - 48px));
  max-width: 1220px;
  margin-inline: auto;
}
.tvn-front-page .tvn-home-hero h1 {
  max-width: 960px;
}

/* Produkty: wspólna rama ekspozycji i rzeczywiste wymiary obrazu zamiast
   rozciągania każdego pliku do 100% szerokości boxa. */
.tvn-product-grid .tvn-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
  background: #f6f8f5;
}
.tvn-product-grid .tvn-card-media img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 228px !important;
  margin: auto;
  object-fit: contain !important;
  object-position: center !important;
}

/* Zastosowania: ikona ma być wyraźnym, centralnym znacznikiem karty. */
.tvn-application-card .tvn-card-body {
  padding-top: 26px;
}
.tvn-application-card .tvn-application-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 900px) {
  .tvn-front-page .tvn-home-hero {
    min-height: 620px !important;
  }
  .tvn-product-grid .tvn-card-media {
    height: 250px;
    min-height: 250px;
  }
  .tvn-product-grid .tvn-card-media img {
    max-height: 210px !important;
  }
}

@media (max-width: 600px) {
  .tvn-front-page .tvn-home-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 570px !important;
  }
  .tvn-front-page .tvn-home-hero .wp-block-cover__inner-container {
    width: calc(100% - 24px);
  }
  .tvn-product-grid .tvn-card-media {
    height: 235px;
    min-height: 235px;
    padding: 18px;
  }
  .tvn-product-grid .tvn-card-media img {
    max-width: 94% !important;
    max-height: 198px !important;
  }
  .tvn-application-card .tvn-application-icon {
    width: 58px;
    height: 58px;
    font-size: 27px;
  }
}

/* 10E.8.5 / RC3.8 — finalny polishing UI po desktop + mobile QA. */

/* Długie nagłówki stron informacyjnych: mniej przypadkowych "sierot" i lepszy balans. */
.tvn-page-o-nas .entry-content h1,
.tvn-page-kontakt .entry-content h1 {
  max-width: 1100px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  text-wrap: balance;
}

/* Karty zespołu: równe osie treści i kontakty osadzone przy dole karty. */
.tvn-team-grid .tvn-person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tvn-team-grid .tvn-person-card .tvn-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.tvn-team-grid .tvn-person-card h3 {
  min-height: 2.35em;
  margin-bottom: .45em;
}
.tvn-team-grid .tvn-person-card .tvn-role {
  min-height: 3.35em;
  margin-bottom: 1em;
}
.tvn-team-grid .tvn-person-card .tvn-card-body > p:nth-of-type(2) {
  flex: 1 1 auto;
}
.tvn-team-grid .tvn-person-card .tvn-card-body > p:nth-last-child(-n+2) {
  margin-bottom: .7em;
}

/* Formularz: natywny upload dopasowany wizualnie do pozostałych kontrolek. */
.tvn-contact-form input[type="file"] {
  padding: 6px 8px;
}
.tvn-contact-form input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--tvn-green);
  border-radius: 7px;
  background: var(--tvn-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--tvn-transition), border-color var(--tvn-transition);
}
.tvn-contact-form input[type="file"]::file-selector-button:hover {
  border-color: var(--tvn-green-dark);
  background: var(--tvn-green-dark);
}
.tvn-form-consent input[type="checkbox"] {
  margin-top: 4px;
}

/* Produkty: lepszy rytm długich wartości bez zmiany treści. */
.tvn-kpi strong {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.42;
  text-wrap: balance;
}
.tvn-kpi {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  justify-content: center;
}
.tvn-cta > .tvn-button {
  min-width: 160px;
  padding-inline: 22px;
  flex: 0 0 auto;
}

/* Anchor / sticky header — kliknięcie linku do sekcji nie chowa nagłówka pod menu. */
.entry-content :is(h2,h3,h4),
.tvn-two-column :is(h2,h3,h4),
.tvn-article-content :is(h2,h3,h4) {
  scroll-margin-top: 132px;
}
body.admin-bar .entry-content :is(h2,h3,h4),
body.admin-bar .tvn-two-column :is(h2,h3,h4),
body.admin-bar .tvn-article-content :is(h2,h3,h4) {
  scroll-margin-top: 164px;
}

/* Centrum wiedzy: jedna wysokość kart i spójna strefa miniatur. */
.tvn-article-grid .tvn-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tvn-article-grid .tvn-article-card .tvn-card-media {
  height: 230px;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
}
.tvn-article-grid .tvn-article-card .tvn-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tvn-article-grid .tvn-article-card .tvn-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.tvn-article-grid .tvn-article-card .tvn-text-link {
  margin-top: auto;
}
.tvn-article-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tvn-article-content .wp-block-table table {
  min-width: 680px;
}

@media (max-width: 600px) {
  .tvn-page-o-nas .entry-content h1,
  .tvn-page-kontakt .entry-content h1 {
    font-size: clamp(36px, 10vw, 48px);
  }
  .tvn-team-grid .tvn-person-card h3,
  .tvn-team-grid .tvn-person-card .tvn-role {
    min-height: 0;
  }
  .tvn-kpi {
    min-height: 118px;
  }
  .tvn-article-grid .tvn-article-card .tvn-card-media {
    height: 220px;
    min-height: 220px;
  }
}


/* RC3.11.2 — final polish galerii po QA video: czytelne sterowanie, lepsza ostrość i równy viewport. */
.tvn-product-visual-gallery {
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: block;
  align-self: center;
  padding: 10px;
  overflow: hidden;
}
.tvn-product-gallery {
  min-width: 0;
  width: 100%;
}
.tvn-product-gallery-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  height: clamp(320px, 26vw, 365px);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e1e7df;
  border-radius: calc(var(--tvn-radius) - 5px);
  background: #fff;
  touch-action: pan-y pinch-zoom;
}
.tvn-product-gallery-main {
  appearance: none;
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 16px 58px 18px;
  overflow: hidden;
  border: 0;
  background: transparent;
  place-items: center;
  cursor: zoom-in;
}
.tvn-product-gallery-main-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  image-rendering: auto;
}
.tvn-product-gallery-stage[data-media-shape="wide"] .tvn-product-gallery-main { padding-inline: 48px; }
.tvn-product-gallery-stage[data-media-shape="tall"] .tvn-product-gallery-main { padding-block: 10px 14px; }
.tvn-product-gallery-stage[data-media-shape="ultra-tall"] .tvn-product-gallery-main { padding-block: 8px 12px; }
.tvn-gallery-zoom-label {
  position: absolute;
  z-index: 24;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(0,119,51,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  color: var(--tvn-green-dark);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(17,24,21,.10);
}
.tvn-gallery-nav {
  appearance: none;
  position: absolute;
  z-index: 40;
  top: 50%;
  display: grid !important;
  width: 44px;
  height: 44px;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  border: 0;
  border-radius: 50%;
  background: var(--tvn-green);
  color: #fff;
  place-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,92,35,.24);
}
.tvn-gallery-nav span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-2px);
}
.tvn-gallery-prev { left: 12px; }
.tvn-gallery-next { right: 12px; }
.tvn-gallery-nav:hover,
.tvn-gallery-nav:focus-visible {
  background: var(--tvn-green-dark);
  color: #fff;
}
.tvn-product-gallery-main:focus-visible,
.tvn-product-gallery-thumb:focus-visible,
.tvn-gallery-lightbox button:focus-visible {
  outline: 3px solid rgba(0,119,51,.30);
  outline-offset: 2px;
}
.tvn-gallery-counter {
  position: absolute;
  z-index: 24;
  left: 12px;
  bottom: 12px;
  min-width: 48px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17,24,21,.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}
.tvn-product-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 9px;
  padding: 2px 1px 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.tvn-product-gallery-thumbs::-webkit-scrollbar { height: 5px; }
.tvn-product-gallery-thumbs::-webkit-scrollbar-thumb { background: #cbd4c9; border-radius: 999px; }
.tvn-product-gallery-thumb {
  appearance: none;
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #e1e7df;
  border-radius: 9px;
  background: #f8faf7;
  scroll-snap-align: start;
  cursor: pointer;
}
.tvn-product-gallery-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto;
  object-fit: var(--tvn-thumb-fit, contain) !important;
  object-position: var(--tvn-thumb-position, 50% 50%) !important;
}
.tvn-product-gallery-thumb.is-active {
  border: 2px solid var(--tvn-green);
  padding: 3px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,119,51,.10);
}
.tvn-gallery-open { overflow: hidden; }
.tvn-gallery-lightbox[hidden] { display: none !important; }
.tvn-gallery-lightbox {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
}
.tvn-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,12,8,.90);
  backdrop-filter: blur(3px);
}
.tvn-gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1240px, 100%);
  height: min(900px, calc(100vh - 44px));
  min-height: 320px;
  grid-template-columns: 64px minmax(0,1fr) 64px;
  grid-template-rows: minmax(0,1fr) auto;
  align-items: center;
  border-radius: 16px;
  background: #111815;
  box-shadow: 0 34px 100px rgba(0,0,0,.38);
}
.tvn-gallery-lightbox-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}
.tvn-gallery-lightbox-nav {
  display: grid;
  width: 50px;
  height: 50px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tvn-green);
  color: #fff;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.tvn-gallery-lightbox-nav:hover,
.tvn-gallery-lightbox-nav:focus-visible { background: var(--tvn-green-dark); }
.tvn-gallery-lightbox-nav span { font-size: 38px; font-weight: 700; line-height: 1; transform: translateY(-2px); }
.tvn-gallery-lightbox-prev { grid-column: 1; grid-row: 1; }
.tvn-gallery-lightbox-next { grid-column: 3; grid-row: 1; }
.tvn-gallery-lightbox-figure {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 28px 12px 20px;
  grid-template-rows: minmax(0,1fr) auto;
  touch-action: pan-y pinch-zoom;
}
.tvn-gallery-lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  margin: auto;
  object-fit: contain;
  object-position: center;
}
.tvn-gallery-lightbox-figure figcaption {
  max-width: 900px;
  margin: 14px auto 0;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}
.tvn-gallery-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 13px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .tvn-product-visual-gallery { padding: 8px; }
  .tvn-product-gallery-stage {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 370px;
  }
  .tvn-product-gallery-main { padding: 14px 54px 18px; }
  .tvn-gallery-lightbox { padding: 10px; }
  .tvn-gallery-lightbox-dialog {
    width: 100%;
    height: calc(100dvh - 20px);
    grid-template-columns: 54px minmax(0,1fr) 54px;
    border-radius: 12px;
  }
  .tvn-gallery-lightbox-figure { padding-inline: 4px; }
}

@media (max-width: 600px) {
  .tvn-product-visual-gallery { padding: 6px; }
  .tvn-product-gallery-stage {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .tvn-product-gallery-main { padding: 10px 48px 14px; }
  .tvn-gallery-nav { width: 40px; height: 40px; }
  .tvn-gallery-nav span { font-size: 29px; }
  .tvn-gallery-prev { left: 7px; }
  .tvn-gallery-next { right: 7px; }
  .tvn-gallery-zoom-label { right: 8px; bottom: 8px; min-height: 31px; padding: 5px 8px; }
  .tvn-gallery-counter { left: 8px; bottom: 8px; }
  .tvn-product-gallery-thumbs { gap: 7px; margin-top: 7px; }
  .tvn-product-gallery-thumb { flex-basis: 74px; width: 74px; height: 56px; padding: 3px; }
  .tvn-product-gallery-thumb.is-active { padding: 2px; }
  .tvn-gallery-lightbox { padding: 0; }
  .tvn-gallery-lightbox-dialog {
    height: 100dvh;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    border-radius: 0;
  }
  .tvn-gallery-lightbox-close { top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .tvn-gallery-lightbox-nav { width: 42px; height: 42px; }
  .tvn-gallery-lightbox-figure { padding-top: max(64px, calc(env(safe-area-inset-top) + 58px)); padding-bottom: 34px; }
  .tvn-gallery-lightbox-figure figcaption { padding-inline: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tvn-product-gallery-thumbs { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .tvn-front-page .tvn-home-hero .tvn-home-hero-picture .wp-block-cover__image-background {
    object-position: center center !important;
  }
}


/* RC3.13 — Lighthouse SEO / mobile usability bez wyłączania noindex na stagingu. */
.tvn-primary-nav a { min-height: 48px; }
.tvn-button,
.wp-block-button__link { min-height: 48px; }
.tvn-menu-toggle { min-width: 48px; min-height: 48px; }
.tvn-site-footer a { min-height: 48px; padding-block: 5px; }
.tvn-footer-legal a { min-height: 48px; }
.tvn-consent-actions .tvn-button { min-height: 48px; }
.tvn-consent-customize { min-height: 48px; padding-block: 10px; }

@media (max-width: 1120px) and (min-width: 901px) {
  .tvn-primary-nav a { min-height: 48px; padding-inline: 7px; font-size: 12px; letter-spacing: .01em; }
}
@media (max-width: 900px) {
  .tvn-header-cta { min-height: 48px; }
}
@media (max-width: 600px) {
  .tvn-menu-toggle { min-width: 48px; min-height: 48px; }
}

/* RC3.13.1 — korekta kadru Krzysztofa Sobczyńskiego w kartach zespołu.
   Oryginalny obraz pozostaje bez zmian; przesuwamy wyłącznie punkt kadru CSS. */
.tvn-team-grid .tvn-person-image img[alt*="Krzysztof Sobczyński"] {
  object-position: center 12% !important;
}

/* RC3.14 — Teuvan Defence -------------------------------------------------- */
.tvn-defence-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: clamp(610px, 67vh, 760px) !important;
}
.tvn-defence-hero .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.tvn-defence-hero .wp-block-cover__inner-container {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}
.tvn-defence-hero h1 { max-width: 880px; }
.tvn-defence-hero .tvn-lead { max-width: 760px; }

.entry-content > .tvn-defence-anchor {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.tvn-defence-anchor {
  position: sticky;
  top: 82px;
  z-index: 91;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid var(--tvn-border);
  background: rgba(11,23,16,.97);
  box-shadow: 0 8px 24px rgba(11,23,16,.1);
  backdrop-filter: blur(12px);
}
body.admin-bar .tvn-defence-anchor { top: 114px; }
.tvn-defence-anchor-inner {
  width: var(--tvn-container);
  margin-inline: auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tvn-defence-anchor a {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 10px 13px;
  color: #e7eee9;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tvn-defence-anchor a:hover,
.tvn-defence-anchor a:focus-visible {
  color: #fff;
  border-bottom-color: var(--tvn-lime);
  background: rgba(127,181,57,.12);
}

.tvn-defence-trust-section { padding-bottom: 44px; }
.tvn-defence-trust {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
}
.tvn-defence-trust > div {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--tvn-border);
  border-radius: 13px;
  background: var(--tvn-light);
}
.tvn-defence-trust strong {
  display: block;
  margin-bottom: 6px;
  color: var(--tvn-olive);
  font-size: clamp(20px,2.2vw,28px);
  line-height: 1.1;
}
.tvn-defence-trust span { display: block; color: var(--tvn-muted); font-size: 14px; }

.tvn-defence-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-top: 34px;
}
.tvn-defence-product-card {
  overflow: hidden;
  border: 1px solid var(--tvn-border);
  border-radius: var(--tvn-radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(15,35,22,.07);
}
.tvn-defence-product-media {
  height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e8ece5;
}
.tvn-defence-product-media img { width: 100%; height: 100%; object-fit: cover; }
.tvn-defence-product-media-contain { background: #fff; }
.tvn-defence-product-media-contain img { width: 86%; height: 86%; object-fit: contain; }
.tvn-defence-product-body { padding: 27px; }
.tvn-defence-product-body h3 { font-size: clamp(28px,3.4vw,40px); }

.tvn-defence-wide-image { width: 100% !important; margin: 34px 0 28px !important; }
.tvn-defence-wide-image img,
.tvn-defence-reference-image img {
  width: 100%;
  max-height: 630px;
  object-fit: cover;
  border-radius: var(--tvn-radius);
  box-shadow: var(--tvn-shadow);
}
.tvn-defence-reference-image { width: 100% !important; margin: 30px 0 !important; }

.tvn-defence-kpis {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  overflow: hidden;
  margin: 24px 0 10px;
  border: 1px solid var(--tvn-border);
  border-radius: var(--tvn-radius);
  background: #fff;
}
.tvn-defence-kpis > div {
  min-width: 0;
  padding: 22px 12px;
  text-align: center;
  border-right: 1px solid var(--tvn-border);
}
.tvn-defence-kpis > div:last-child { border-right: 0; }
.tvn-defence-kpis strong { display: block; color: var(--tvn-olive); font-size: 22px; line-height: 1.08; }
.tvn-defence-kpis span { display: block; margin-top: 6px; color: var(--tvn-muted); font-size: 12px; }
.tvn-defence-footnote { margin: 10px 0 25px; color: var(--tvn-muted); font-size: 13px; font-style: italic; }

.tvn-defence-split {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}
.tvn-defence-detail-image {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: var(--tvn-radius);
  background: var(--tvn-light);
}
.tvn-defence-detail-image img { width: 100%; max-height: 380px; object-fit: contain; }

.tvn-defence-fc75-grid {
  display: grid;
  grid-template-columns: minmax(340px,.9fr) minmax(0,1.1fr);
  gap: 42px;
  align-items: center;
  margin-top: 30px;
}
.tvn-defence-fc75-main {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 26px;
  border-radius: var(--tvn-radius);
  background: #fff;
  border: 1px solid var(--tvn-border);
}
.tvn-defence-fc75-main img { max-height: 410px; object-fit: contain; }
.tvn-defence-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.tvn-defence-mini-kpis > div {
  padding: 18px 12px;
  border-radius: 12px;
  background: var(--tvn-olive);
  color: #fff;
  text-align: center;
}
.tvn-defence-mini-kpis strong { display: block; font-size: 22px; }
.tvn-defence-mini-kpis span { font-size: 12px; }

.tvn-defence-detail-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 34px 0 10px;
}
.tvn-defence-detail-grid figure { margin: 0; padding: 14px; border: 1px solid var(--tvn-border); border-radius: 13px; background: #fff; }
.tvn-defence-detail-grid img { width: 100%; height: 230px; object-fit: contain; }
.tvn-defence-detail-grid figcaption { margin-top: 10px; color: var(--tvn-muted); font-size: 13px; }

.tvn-defence-feature-grid,
.tvn-defence-support-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
  margin-top: 30px;
}
.tvn-defence-feature,
.tvn-defence-support-grid > div {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--tvn-border);
  border-radius: 13px;
  background: #fff;
}
.tvn-defence-feature strong,
.tvn-defence-support-grid strong { display: block; margin-bottom: 8px; color: var(--tvn-green-dark); font-size: 19px; }
.tvn-defence-feature p { margin: 0; color: var(--tvn-muted); }
.tvn-defence-support-grid span { display: block; color: var(--tvn-muted); font-size: 14px; }

.tvn-defence-before-after {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  margin: 30px 0;
}
.tvn-defence-before-after figure { margin: 0; overflow: hidden; border-radius: var(--tvn-radius); background: #fff; border: 1px solid var(--tvn-border); }
.tvn-defence-before-after img { width: 100%; height: 360px; object-fit: cover; }
.tvn-defence-before-after figcaption { padding: 12px 16px; color: var(--tvn-muted); font-size: 13px; }

.tvn-defence-doc-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-top: 28px;
}
.tvn-defence-doc-grid article {
  padding: 25px;
  border: 1px solid var(--tvn-border);
  border-radius: 13px;
  background: var(--tvn-light);
}
.tvn-defence-doc-grid h3 { margin-bottom: 10px; }

.tvn-defence-small-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
  margin-top: 28px;
}
.tvn-defence-small-cards a {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--tvn-border);
  border-radius: 13px;
  background: #fff;
  transition: var(--tvn-transition);
}
.tvn-defence-small-cards a:hover,
.tvn-defence-small-cards a:focus-visible { border-color: var(--tvn-green); background: var(--tvn-green-soft); transform: translateY(-2px); }
.tvn-defence-small-cards strong { color: var(--tvn-green-dark); font-size: 20px; }
.tvn-defence-small-cards span { color: var(--tvn-muted); font-size: 14px; }

.tvn-defence-cta { margin-bottom: 34px; }
.tvn-defence-form-intro { margin: 24px 0 10px; }
.tvn-defence-contact-section .wp-block-shortcode { width: 100%; }

@media (max-width: 1050px) {
  .tvn-defence-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tvn-defence-kpis > div:nth-child(3) { border-right: 0; }
  .tvn-defence-kpis > div:nth-child(-n+3) { border-bottom: 1px solid var(--tvn-border); }
  .tvn-defence-trust,
  .tvn-defence-feature-grid,
  .tvn-defence-support-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .tvn-defence-anchor { top: 72px; }
  body.admin-bar .tvn-defence-anchor { top: 104px; }
  .tvn-defence-pair,
  .tvn-defence-split,
  .tvn-defence-fc75-grid { grid-template-columns: 1fr; }
  .tvn-defence-product-media { height: 300px; }
  .tvn-defence-fc75-main { min-height: 360px; }
  .tvn-defence-before-after img { height: 300px; }
}

@media (max-width: 600px) {
  .tvn-defence-hero {
    min-height: 590px !important;
  }
  .tvn-defence-hero .wp-block-cover__inner-container { width: calc(100% - 24px); }
  .tvn-defence-hero .wp-block-cover__image-background { object-position: 58% 55%; }
  .tvn-defence-anchor { top: 68px; }
  body.admin-bar .tvn-defence-anchor { top: 114px; }
  .tvn-defence-anchor-inner { width: 100%; padding: 0 6px; }
  .tvn-defence-anchor a { min-height: 48px; padding-inline: 11px; font-size: 12px; }
  .tvn-defence-trust,
  .tvn-defence-pair,
  .tvn-defence-feature-grid,
  .tvn-defence-support-grid,
  .tvn-defence-before-after,
  .tvn-defence-doc-grid,
  .tvn-defence-small-cards,
  .tvn-defence-detail-grid { grid-template-columns: 1fr; }
  .tvn-defence-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-defence-kpis > div { border-right: 1px solid var(--tvn-border); border-bottom: 1px solid var(--tvn-border); }
  .tvn-defence-kpis > div:nth-child(2n) { border-right: 0; }
  .tvn-defence-kpis > div:nth-last-child(-n+2) { border-bottom: 0; }
  .tvn-defence-mini-kpis { grid-template-columns: 1fr; }
  .tvn-defence-detail-grid img { height: 240px; }
  .tvn-defence-before-after img { height: 250px; }
  .tvn-defence-product-media { height: 260px; }
  .tvn-defence-product-body { padding: 22px; }
  .tvn-defence-fc75-main { min-height: 300px; padding: 18px; }
  .tvn-defence-fc75-main img { max-height: 300px; }
}


/* RC3.15 — Defence FINAL */
.entry-content > .tvn-defence-hero-strip {
  width: var(--tvn-container);
  max-width: 1220px;
}
.tvn-defence-hero-strip {
  position: relative;
  z-index: 92;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  margin: -34px auto 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: var(--tvn-olive);
  color: #fff;
  box-shadow: 0 16px 38px rgba(11,23,16,.18);
}
.tvn-defence-hero-strip > div {
  min-width: 0;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.18);
}
.tvn-defence-hero-strip > div:last-child { border-right: 0; }
.tvn-defence-hero-strip strong { display: block; font-size: clamp(24px,3vw,34px); line-height: 1.05; }
.tvn-defence-hero-strip span { display: block; margin-top: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .88; }

.tvn-defence-ref-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 30px 0;
}
.tvn-defence-ref-stats > div {
  min-width: 0;
  padding: 26px 18px;
  border: 1px solid var(--tvn-border);
  border-radius: 13px;
  background: #fff;
  text-align: center;
}
.tvn-defence-ref-stats strong { display: block; color: var(--tvn-olive); font-size: clamp(28px,4vw,42px); line-height: 1; }
.tvn-defence-ref-stats span { display: block; margin-top: 9px; color: var(--tvn-muted); font-size: 13px; }

.tvn-defence-doc-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.tvn-defence-doc-grid article > p:not(.tvn-eyebrow) { flex: 1 1 auto; }
.tvn-defence-doc-grid .tvn-button { margin-top: 10px; }
.tvn-defence-doc-grid-secondary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tvn-defence-doc-grid-secondary article { background: #fff; }

.tvn-defence-section .tvn-content-table,
#fk2000 .tvn-content-table,
#fc75 .tvn-content-table,
#nsn .tvn-content-table { margin-top: 20px; margin-bottom: 28px; overflow-x: auto; }
#fk2000 .tvn-content-table table,
#fc75 .tvn-content-table table,
#nsn .tvn-content-table table { min-width: 620px; }

@media (max-width: 1050px) {
  .tvn-defence-doc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-defence-doc-grid-secondary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .tvn-defence-hero-strip { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: -22px; }
  .tvn-defence-hero-strip > div:nth-child(2) { border-right: 0; }
  .tvn-defence-hero-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .tvn-defence-ref-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tvn-defence-doc-grid-secondary { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .entry-content > .tvn-defence-hero-strip { width: calc(100% - 16px); }
  .tvn-defence-doc-grid, .tvn-defence-ref-stats { grid-template-columns: 1fr; }
  .tvn-defence-hero-strip { width: calc(100% - 16px); }
  .tvn-defence-hero-strip > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .tvn-defence-hero-strip > div:last-child { border-bottom: 0; }
}

/* RC3.15.1 — Defence visual polish / anchor hotfix ------------------------- */
/* 1) Duże obrazy Defence mają być faktycznie wycentrowane w sekcji.
   W RC3.15 pionowy margin nadpisywał margin-inline:auto z układu constrained. */
.tvn-defence-wide-image,
.tvn-defence-reference-image {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2) Czytelniejsza nawigacja kotwicowa Defence. */
.tvn-defence-anchor {
  top: 82px;
  border-color: rgba(255,255,255,.10);
  background: rgba(24,48,36,.98);
  box-shadow: 0 10px 28px rgba(11,23,16,.16);
}
body.admin-bar .tvn-defence-anchor { top: 114px; }
.tvn-defence-anchor-inner {
  gap: 6px;
  padding-inline: 4px;
}
.tvn-defence-anchor a {
  color: #ffffff !important;
  border-radius: 7px 7px 0 0;
  text-shadow: 0 1px 0 rgba(0,0,0,.16);
}
.tvn-defence-anchor a:hover,
.tvn-defence-anchor a:focus-visible {
  color: #d8f1b6 !important;
  border-bottom-color: #a7d866;
  background: rgba(255,255,255,.08);
}

/* 3) Linki mini-menu wskazują ID sekcji, nie same nagłówki. Sekcja ma własny
   padding-top, dlatego offset dla wrappera jest mniejszy niż globalne 132 px. */
#system,
#fk2000,
#fc75,
#paliwa,
#mobilnosc,
#nsn,
#referencje,
#dokumenty,
#polska,
#kontakt,
#inne-systemy,
#zaufanie {
  scroll-margin-top: 92px;
}
#tvn-defence-form { scroll-margin-top: 154px; }
body.admin-bar :is(#system,#fk2000,#fc75,#paliwa,#mobilnosc,#nsn,#referencje,#dokumenty,#polska,#kontakt,#inne-systemy,#zaufanie) {
  scroll-margin-top: 124px;
}
body.admin-bar #tvn-defence-form { scroll-margin-top: 186px; }

/* 4) Dwie fotografie mobilności pokazują różne warianty kolorystyczne. */
.tvn-defence-before-after figure:nth-child(2) figcaption::after {
  content: " — wersja biała / cywilna";
}

@media (max-width: 900px) {
  /* Header ma nadal 82 px do breakpointu 600 px. */
  .tvn-defence-anchor { top: 82px; }
  body.admin-bar .tvn-defence-anchor { top: 128px; }
}

@media (max-width: 600px) {
  .tvn-defence-anchor { top: 70px; }
  body.admin-bar .tvn-defence-anchor { top: 116px; }
  #system,
  #fk2000,
  #fc75,
  #paliwa,
  #mobilnosc,
  #nsn,
  #referencje,
  #dokumenty,
  #polska,
  #kontakt,
  #inne-systemy,
  #zaufanie {
    scroll-margin-top: 84px;
  }
  #tvn-defence-form { scroll-margin-top: 136px; }
}
