/* np-bs.css — nový vzhled webu Novoplast na Bootstrapu 5.3 (2026-11-09)
   Načítá se za bootstrap.min.css a paticka.css (formulář, patička, sekce výroby).
   Barvy: modrá z loga a fasády areálu. */

:root {
  --np-modra: #1f63b4;          /* hlavní – tlačítka, odkazy */
  --np-modra-tmava: #164a88;    /* hover, nadpisy */
  --np-modra-svetla: #4aa3e0;   /* logo, akcenty */
  --np-navy: #12355f;           /* patička */
  --np-pozadi: #f3f6fa;         /* střídání sekcí */
  --np-text: #23303d;
  --bs-body-color: var(--np-text);
  --bs-link-color: var(--np-modra);
  --bs-link-color-rgb: 31, 99, 180;
  --bs-link-hover-color: var(--np-modra-tmava);
  --bs-link-hover-color-rgb: 22, 74, 136;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.np-bs { background: #fff; font-size: 1rem; line-height: 1.6; }

/* odkaz „Přeskočit na obsah“ pro klávesnici */
.np-preskocit { position: absolute; z-index: 2000; left: 8px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 4px; }

/* ---------- Horní pruh ---------- */
.np-pruh { background: var(--np-navy); color: #dfe8f3; font-size: .875rem; padding: 6px 0; }
.np-pruh a { color: #fff; text-decoration: none; }
.np-pruh a:hover { text-decoration: underline; }
.np-pruh-kontakt a + a { margin-left: 1.25rem; }
.np-ikona { opacity: .8; }
.np-jazyky li { margin-right: .35rem !important; }
.np-jazyky li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.np-jazyky strong { color: #fff; }
.np-pruh .np-jazyky a { color: #b9cce3; }

.np-hledat { display: flex; max-width: 280px; }
.np-hledat .form-control { border-radius: 4px 0 0 4px; }
.np-hledat .btn { border-radius: 0 4px 4px 0; background: var(--np-modra-svetla); color: #fff; border: 0; line-height: 1; }
.np-pruh .np-hledat .form-control { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.np-pruh .np-hledat .form-control::placeholder { color: #b9cce3; }
.np-menu .np-hledat { max-width: none; }

/* ---------- Menu ---------- */
.np-menu { background: #fff; box-shadow: 0 2px 10px rgba(18, 53, 95, .10); position: sticky; top: 0; z-index: 1030; padding: .5rem 0; }
.np-logo { height: 56px; width: auto; }
.np-menu .nav-link { font-weight: 600; color: var(--np-text); padding: .5rem .9rem !important; border-radius: 4px; }
.np-menu .nav-link:hover, .np-menu .nav-link:focus { color: var(--np-modra); }
.np-menu .nav-link.active { color: var(--np-modra); box-shadow: inset 0 -3px 0 var(--np-modra-svetla); border-radius: 0; }
.np-menu .dropdown-menu { border: 0; box-shadow: 0 8px 24px rgba(18, 53, 95, .16); border-top: 3px solid var(--np-modra-svetla); border-radius: 0 0 6px 6px; margin-top: .5rem; }
.np-menu .dropdown-item { padding: .45rem 1.1rem; }
.np-menu .dropdown-item.active, .np-menu .dropdown-item:active { background: var(--np-modra); }
/* na počítači se podmenu otevře i najetím myší */
@media (min-width: 992px) and (hover: hover) {
  .np-menu .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .np-logo { height: 44px; }
  .np-menu .navbar-collapse { border-top: 1px solid #e6ecf3; margin-top: .5rem; padding-top: .25rem; }
  .np-menu .nav-link.active { box-shadow: inset 3px 0 0 var(--np-modra-svetla); padding-left: 1rem !important; }
  .np-menu .dropdown-menu { box-shadow: none; border-top: 0; padding-left: .75rem; margin-top: 0; }
  .np-btn-poptavka { margin: .5rem 0; }
}

/* ---------- Tlačítka ---------- */
.np-btn-hlavni, .np-btn-poptavka { background: var(--np-modra); border: 1px solid var(--np-modra); color: #fff; font-weight: 600; }
.np-btn-hlavni:hover, .np-btn-poptavka:hover, .np-btn-hlavni:focus, .np-btn-poptavka:focus { background: var(--np-modra-tmava); border-color: var(--np-modra-tmava); color: #fff; }
.np-btn-svetle { background: #fff; border: 1px solid #fff; color: var(--np-modra-tmava); font-weight: 600; }
.np-btn-svetle:hover { background: #e9f2fc; color: var(--np-modra-tmava); }
.np-btn-obrys { border: 1px solid var(--np-modra); color: var(--np-modra); font-weight: 600; }
.np-btn-obrys:hover { background: var(--np-modra); color: #fff; }

/* ---------- Head line ---------- */
.np-headline { position: relative; background: #2d6fc0; overflow: hidden; }
.np-headline-obr { display: block; width: 100%; height: clamp(420px, 46vw, 640px); object-fit: cover; object-position: 50% 62%; }
.np-headline::after {           /* ztmavení oblohy vlevo nahoře kvůli čitelnosti textu */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(10, 35, 70, .62) 0%, rgba(10, 35, 70, .35) 42%, rgba(10, 35, 70, 0) 68%);
}
.np-headline-text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start; padding-top: clamp(1.75rem, 4.5vw, 4rem); color: #fff; }
.np-headline-text .container { width: 100%; }
.np-headline h1 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.35); margin-bottom: 1rem; }
.np-headline .lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); text-shadow: 0 1px 8px rgba(0,0,0,.45); margin-bottom: 1.5rem; }
.np-headline-tlacitka .btn { margin: 0 .5rem .5rem 0; }
@media (max-width: 767.98px) {
  .np-headline-obr { height: 460px; object-position: 38% 70%; }
  .np-headline::after { background: linear-gradient(180deg, rgba(10, 35, 70, .70) 0%, rgba(10, 35, 70, .40) 55%, rgba(10, 35, 70, 0) 80%); }
  .np-headline-text { padding-top: 1.75rem; }
  .np-headline-tlacitka .btn { font-size: 1rem; padding: .55rem 1rem; }
}

/* ---------- Sekce ---------- */
.np-sekce { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.np-sekce + .np-sekce { padding-top: 0; }
.np-o-nas, .np-sekce-vyroba { background: var(--np-pozadi); }
.np-o-nas { padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.np-sekce-vyroba { padding-bottom: clamp(2.5rem, 5vw, 4.5rem) !important; }
.np-sekce-kontakt { padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.np-nadpis { text-align: center; font-weight: 800; color: var(--np-modra-tmava); font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-bottom: 2rem; }
.np-nadpis::after { content: ""; display: block; width: 64px; height: 4px; background: var(--np-modra-svetla); border-radius: 2px; margin: .6rem auto 0; }
.np-nadpis.text-start::after { margin-left: 0; }

/* ---------- Dlaždice výrobků ---------- */
.np-vyrobek { border: 0; border-radius: 0 0 12px 12px; background: transparent; overflow: visible; filter: drop-shadow(0 4px 10px rgba(18, 53, 95, .08)); transition: transform .2s ease, filter .2s ease; }
.np-vyrobek:hover, .np-vyrobek:focus-within { transform: translateY(-4px); filter: drop-shadow(0 12px 18px rgba(18, 53, 95, .16)); }
.np-vyrobek-obr { background: #fff; height: 230px; display: flex; align-items: center; justify-content: center; padding: 1rem; border: 1px solid #e3e9f1; border-bottom: 0; border-radius: 50% 50% 0 0 / 18% 18% 0 0; overflow: hidden; }
.np-vyrobek-obr img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s ease; }
.np-vyrobek:hover .np-vyrobek-obr img { transform: scale(1.04); }
.np-vyrobek .card-body { background: #fff; border: 0 solid #e3e9f1; border-left-width: 1px; border-right-width: 1px; }
.np-vyrobek .card-title a { color: var(--np-modra-tmava); text-decoration: none; font-weight: 700; }
.np-vyrobek-popis { font-size: .9rem; color: #4a5866; }
.np-vyrobek-popis strong:first-child { display: none; }            /* opakuje název dlaždice */
.np-vyrobek-popis ul { padding-left: 1.1rem; margin: .25rem 0 0; }
.np-vyrobek-popis li { margin: .1rem 0; }
.np-vyrobek .card-footer { background: #fff; border: 0 solid #e3e9f1; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-radius: 0 0 12px 12px; padding-top: 0; padding-bottom: 1rem; }
.np-vice { color: var(--np-modra); font-weight: 600; font-size: .9rem; }
.np-ral-footer-link { margin: .75rem 0 0; font-size: .9rem; text-align: center; }
.np-ral-footer-link a { color: #fff; font-weight: 650; }

/* ---------- O nás ---------- */
.np-o-nas-podnadpis { font-weight: 600; font-size: 1.1rem; color: var(--np-modra-tmava); }
.np-o-nas-obr { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(18, 53, 95, .15); background: #fff; }
.np-o-nas-obr img { display: block; width: 100%; height: auto; }
.np-o-nas-certifikat { aspect-ratio: 400 / 565; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; border: 1px solid #e3e9f1; color: var(--np-modra-tmava); text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.np-o-nas-certifikat:hover, .np-o-nas-certifikat:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(18, 53, 95, .2); color: var(--np-modra-tmava); }
.np-o-nas-certifikat-znacka { display: grid; place-items: center; width: clamp(3.5rem, 6vw, 5rem); aspect-ratio: 1; border: 3px double #6f9c82; border-radius: 50%; color: #527b65; font-size: .85rem; font-weight: 800; letter-spacing: .04em; }
.np-o-nas-certifikat strong { font-size: clamp(.85rem, 1.3vw, 1rem); }
.np-o-nas-certifikat-format { padding: .2rem .55rem; border-radius: 999px; background: #edf3ef; color: #527b65; font-size: .75rem; font-weight: 700; }

/* ---------- Stávající sekce (paticka.css) v novém rozvržení ---------- */
.np-bs .menu_local { font-weight: 800; color: var(--np-modra-tmava); font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0 0 1.25rem; padding: 0; background: none; text-align: center; }
.np-bs .np-vyroba, .np-bs .np-kontakt { margin: 0; padding: 0; }
.np-bs .np-vyroba-mrizka { background: #fff; border: 1px solid #e3e9f1; border-radius: 10px; padding: 1.5rem; gap: 1.25rem 2rem; font-size: .95rem; }
.np-bs .np-vyroba-polozka h3 { font-size: 1.05rem; color: var(--np-modra-tmava); font-weight: 700; }
.np-bs .np-vyroba-odkaz { font-size: 1rem; margin-top: 1rem; }
.np-bs .np-kontakt-obsah { background: #fff; border: 1px solid #e3e9f1; border-radius: 10px; padding: 1.5rem; font-size: .95rem; gap: 2rem; }
.np-bs .np-kontakt-uvod { font-size: 1.05rem; }
.np-bs .np-pole input, .np-bs .np-pole textarea { padding: .5rem .75rem; border-color: #cbd5e1; }
.np-bs .np-odeslat button { background: var(--np-modra); border-bottom: 0; padding: .6rem 2rem; font: 600 1rem var(--bs-body-font-family); border-radius: 6px; }
.np-bs .np-odeslat button:hover { background: var(--np-modra-tmava); }

/* ---------- Patička ---------- */
.np-paticka-obal { background: var(--np-navy); }
.np-bs .np-paticka { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; font-size: .9rem; }
.np-bs .np-paticka-sloupce { padding: 2.5rem 0 1rem; gap: 1.5rem 3rem; }
.np-bs .np-paticka-spodek { padding: 1rem 0; }
.np-bs .np-paticka h3 { font-size: .95rem; }

/* tisk */
@media print {
  .np-pruh, .np-menu, .np-headline picture, .np-headline::after, .np-sekce-kontakt, .np-paticka-obal { display: none !important; }
  .np-headline-text { position: static; color: #000; }
}

/* ---------- doladění po prvním náhledu ---------- */
.np-vyrobek-popis strong:first-child + br { display: none; }       /* mezera po skrytém nadpisu */
.np-vyrobek-popis p { margin: 0; }
@media (max-width: 575.98px) {
  .np-vyrobek-obr { height: 180px; padding: .75rem; }
}
.np-bs .np-typ legend { float: none; font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.np-bs .np-pole label { font-weight: 600; }

/* =====================================================================
   PODSTRÁNKY (templates/bs/podstranka.php)
   ===================================================================== */
.np-zahlavi { background: linear-gradient(180deg, #eaf2fb 0%, var(--np-pozadi) 100%); border-bottom: 1px solid #e3e9f1; padding: 1.25rem 0 1.5rem; }
.np-zahlavi h1 { font-weight: 800; color: var(--np-modra-tmava); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.2; margin: .25rem 0 .75rem; }
.np-zahlavi .lead { font-size: 1.05rem; color: #3d4b5a; margin: 0; max-width: 60ch; }
.np-zahlavi-obr { max-height: 170px; max-width: 100%; width: auto; height: auto; }
.np-drobecky { font-size: .85rem; margin-bottom: .25rem; --bs-breadcrumb-divider: "›"; }
.np-drobecky a { text-decoration: none; }
.np-telo { padding-top: 2rem !important; }

/* ---------- Boční panel ---------- */
.np-panel { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }
.np-panel-blok { border: 1px solid #e3e9f1; border-radius: 10px; overflow: hidden; }
.np-panel-blok .card-header { background: var(--np-modra-tmava); color: #fff; font-weight: 700; border: 0; }
.np-panel .list-group-item { border-color: #eef2f7; font-size: .95rem; }
.np-panel .list-group-item.active { background: #e9f2fc; color: var(--np-modra-tmava); border-color: #eef2f7; font-weight: 700; box-shadow: inset 3px 0 0 var(--np-modra-svetla); }
.np-panel-poptavka { background: var(--np-modra); color: #fff; border: 0; }
.np-panel-tel { color: #fff; font-weight: 700; text-decoration: none; display: block; text-align: center; margin-top: .25rem; }
.np-panel-tel:hover { color: #fff; text-decoration: underline; }
.np-panel-certifikaty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.np-panel-iso { display: block; width: 100%; max-width: 160px; margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px rgba(18, 53, 95, .15); }
.np-panel-iso img { display: block; width: 100%; height: auto; }
.np-panel-certifikat { width: 100%; max-width: 160px; margin: 0 auto; padding: .5rem; gap: .4rem; box-sizing: border-box; }
.np-panel-certifikat .np-o-nas-certifikat-znacka { width: clamp(2.5rem, 4vw, 3.25rem); }
.np-panel-certifikat strong { font-size: .8rem; }
.np-panel-certifikat .np-o-nas-certifikat-format { font-size: .7rem; }
@media (max-width: 991.98px) { .np-panel { position: static; } }

/* ---------- Obsah ze stávajících skriptů (list.php, detail.php, fotogalerie) ---------- */
.np-obsah { overflow-wrap: anywhere; }
.np-obsah img { max-width: 100%; height: auto; }
.np-obsah table { max-width: 100%; }
.np-obsah > br { display: none; }

/* položka seznamu = karta: foto vlevo, nadpis + anotace vpravo, plný text pod tím */
.np-obsah .aktuality_box {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "foto nadpis" "foto anotace";
  column-gap: 1.5rem; align-content: start;
  background: #fff; border: 1px solid #e3e9f1; border-radius: 10px; padding: 1.25rem; margin-bottom: 1.25rem;
  transition: box-shadow .2s ease;
}
.np-obsah .aktuality_box:hover { box-shadow: 0 8px 22px rgba(18, 53, 95, .10); }
.np-obsah .aktuality_box > .nadpis { grid-area: nadpis; font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.3; }
.np-obsah .aktuality_box > .nadpis a { color: var(--np-modra-tmava); text-decoration: none; }
.np-obsah .aktuality_box > .nadpis a:hover { color: var(--np-modra); text-decoration: underline; }
.np-obsah .aktuality_box > .Foto { grid-area: foto; align-self: start; }
.np-obsah .aktuality_box > .Foto a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #eef2f7; background: #fff; }
.np-obsah .aktuality_box > .Foto img { display: block; width: 100%; height: auto; }
.np-obsah .aktuality_box > .Foto a[title]:not([title=""])::after {
  content: attr(title); display: block; padding: .45rem .6rem; border-top: 1px solid #eef2f7;
  background: #f8fafc; color: #4a5866; font-size: .82rem; line-height: 1.35; text-align: center;
}
.np-obsah .aktuality_box > .anotace { grid-area: anotace; font-size: .95rem; color: #3d4b5a; }
.np-obsah .anotace p { margin-bottom: .5rem; }
.np-obsah .anotace p > strong:first-child { color: var(--np-text); }
.np-obsah .datum { display: none; }
.np-obsah a.detail { display: inline-block; margin-top: .25rem; font-weight: 600; text-decoration: none; }
.np-obsah a.detail:hover { text-decoration: underline; }
.np-obsah .top-aktuality-clanek, .np-obsah .top-aktuality-servis { grid-column: 1 / -1; }
.np-obsah .top-aktuality-clanek { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #eef2f7; line-height: 1.7; }
.np-obsah .top-aktuality-clanek:empty { display: none; }
@media (max-width: 575.98px) {
  .np-obsah .aktuality_box { grid-template-columns: 1fr; grid-template-areas: "nadpis" "foto" "anotace"; padding: 1rem; }
  .np-obsah .aktuality_box > .Foto { margin-bottom: .75rem; }
}

/* detail článku: nadpis už je v H1; větší fotka vlevo, údaje vpravo */
.np-je-detail .np-obsah .clanek .aktuality_box { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "foto anotace"; padding: 1.5rem; }
.np-je-detail .np-obsah .clanek .aktuality_box:hover { box-shadow: none; }
.np-je-detail .np-obsah .clanek .aktuality_box > .nadpis { display: none; }
.np-je-detail .np-obsah .clanek .anotace { font-size: 1rem; }
@media (max-width: 575.98px) { .np-je-detail .np-obsah .clanek .aktuality_box { grid-template-columns: 1fr; grid-template-areas: "foto" "anotace"; } }

/* servis článku: tisk + fotogalerie výrobku */
.np-obsah .souvisejici_box { margin: 1rem 0; }
.np-obsah .souvisejici { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: #6b7785; }
.np-obsah .souvisejici br { display: none; }
.np-obsah .np-tisk img { width: 34px; height: auto; opacity: .7; }
.np-obsah #gallery-box, .np-obsah #gallery-box tbody, .np-obsah #gallery-box tr, .np-obsah #gallery-box td { display: block; width: 100%; }
.np-obsah .fotogalerie-nadpis { font-size: 1.1rem; font-weight: 700; color: var(--np-modra-tmava); margin: 0 0 1rem; }
.np-obsah .zoom-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.np-obsah .zoom-gallery > .fotogalerie-nadpis { grid-column: 1 / -1; margin-bottom: 0; }
.np-obsah .fotogalerie-box { text-align: center; font-size: .85rem; }
.np-obsah .fotogalerie-box a.foto { display: block; border: 1px solid #e3e9f1; border-radius: 8px; overflow: hidden; background: #fff; }
.np-obsah .fotogalerie-box img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.np-obsah .fotogalerie-box a.foto:hover img { transform: scale(1.05); }
.np-obsah .fotogalerie-box-nadpis { margin-top: .35rem; color: #4a5866; }
.np-obsah .fotogalerie-box-text { display: none; }

/* obrázky vložené do textu (fotogalerie, O nás) */
.np-obsah .top-aktuality-clanek a.foto { display: inline-block; margin: 0 .35rem .6rem 0; border-radius: 6px; overflow: hidden; border: 1px solid #e3e9f1; vertical-align: top; }
.np-obsah .top-aktuality-clanek a.foto img { display: block; transition: transform .3s ease; }
.np-obsah .top-aktuality-clanek a.foto:hover img { transform: scale(1.05); }

/* GEO blok (seo.php) v novém vzhledu */
.np-bs .np-geo { margin: 1.5rem 0 0; font-size: .95rem; }
.np-bs .np-geo > div { border-radius: 8px; background: #fff; }

/* lišta souhlasu s cookies (frame_shop_02) */
.np-bs .eu-cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--np-navy); color: #fff; padding: .75rem 1rem; font-size: .9rem; text-align: center; }
.np-bs .eu-cookies a { color: #b9cce3; }
.np-bs .eu-cookies button { background: var(--np-modra-svetla); color: #fff; border: 0; border-radius: 4px; padding: .3rem 1rem; margin: 0 .75rem; }

/* doladění podstránek */
.np-sekce.np-sekce-vyroba { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.np-obsah .top-aktuality-clanek a.foto { width: calc(33.333% - .5rem); }
.np-obsah .top-aktuality-clanek a.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 575.98px) { .np-obsah .top-aktuality-clanek a.foto { width: calc(50% - .4rem); } }
.np-obsah .zoom-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 575.98px) { .np-je-detail .np-obsah .clanek .aktuality_box { padding: 1rem; } }

/* ---------- Nový vizuální směr Novoplastu ---------- */
:root {
  --np-modra: #1768b2;
  --np-modra-tmava: #123d68;
  --np-modra-svetla: #54b4df;
  --np-navy: #102b46;
  --np-pozadi: #f4f7fa;
  --np-text: #1d2b38;
}

body.np-bs {
  color: var(--np-text);
  background: #fff;
  line-height: 1.65;
}

.np-pruh {
  padding: .45rem 0;
  background: #102b46;
  font-size: .82rem;
}

.np-menu {
  padding: .65rem 0;
  box-shadow: 0 5px 22px rgba(16, 43, 70, .09);
}

.np-menu .nav-link {
  font-size: .94rem;
  transition: color .18s ease, background-color .18s ease;
}

.np-menu .nav-link:hover,
.np-menu .nav-link:focus-visible {
  background: #f0f6fb;
}

.np-menu .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--np-modra-svetla);
}

.np-btn-hlavni,
.np-btn-poptavka {
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(18, 61, 104, .16);
}

.np-headline {
  background: #102b46;
}

.np-headline-obr {
  height: clamp(500px, 51vw, 700px);
  object-position: 50% 58%;
}

.np-headline::after {
  background: linear-gradient(90deg, rgba(8, 29, 51, .82) 0%, rgba(8, 29, 51, .62) 38%, rgba(8, 29, 51, .12) 76%, rgba(8, 29, 51, 0) 100%);
}

.np-headline-text {
  align-items: center;
  padding: 2rem 0;
}

.np-headline-text .container > .row > div {
  max-width: 1100px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 0;
  border-radius: 8px;
  background: rgba(11, 37, 64, .2);
  box-shadow: none;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

.np-headline h1 {
  width: 100%;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -.025em;
  line-height: 1.08;
}

.np-headline .lead {
  width: 100%;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.55;
}

.np-headline-tlacitka .btn {
  margin: .25rem .55rem .25rem 0;
  border-radius: 6px;
  font-size: 1rem;
  padding: .75rem 1.15rem;
}

.np-sekce {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.np-sekce + .np-sekce {
  padding-top: 0;
}

.np-vyrobky {
  background: #f4f7fa;
}

.np-nadpis {
  margin-bottom: 2.4rem;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  letter-spacing: -.02em;
}

.np-nadpis::after {
  width: 52px;
  height: 3px;
  margin-top: .75rem;
}

.np-vyrobek {
  overflow: hidden;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #fff;
  filter: drop-shadow(0 5px 12px rgba(16, 43, 70, .055));
  transition: transform .22s ease, filter .22s ease;
}

.np-vyrobek:hover,
.np-vyrobek:focus-within {
  transform: translateY(-5px);
  filter: drop-shadow(0 14px 22px rgba(16, 43, 70, .14));
}

.np-vyrobek-obr {
  height: 220px;
  padding: 1.25rem;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
  background: #fff;
}

.np-vyrobek-obr img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.np-vyrobek .card-body {
  padding: 1.25rem 1.25rem .75rem;
  border: 0;
}

.np-vyrobek .card-title {
  min-height: 2.7em;
  margin-bottom: .65rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.np-vyrobek .card-title a {
  color: var(--np-modra-tmava);
}

.np-vyrobek .card-footer {
  padding: .4rem 1.25rem 1.15rem;
  border: 0;
  background: #fff;
}

.np-vice {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--np-modra);
  font-size: .88rem;
  letter-spacing: .01em;
}

.np-vice::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width .18s ease;
}

.np-vyrobek:hover .np-vice::after {
  width: 28px;
}

.np-o-nas {
  background: #fff;
}

.np-o-nas-obr,
.np-o-nas-certifikat {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 43, 70, .09);
}

.np-o-nas-podnadpis {
  font-size: 1.15rem;
}

.np-zahlavi {
  padding: 1.5rem 0 1.75rem;
  background: linear-gradient(110deg, #f1f6fb 0%, #f8fafc 72%, #edf5fa 100%);
  border-bottom-color: #e3ebf2;
}

.np-zahlavi h1 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -.02em;
}

.np-drobecky {
  color: #647587;
}

.np-telo {
  padding-top: clamp(2rem, 4vw, 3.5rem) !important;
}

.np-panel-blok {
  border-color: #e1e8ef;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(16, 43, 70, .045);
}

.np-panel-blok .card-header {
  background: var(--np-modra-tmava);
}

.np-obsah .aktuality_box {
  border-color: #e1e8ef;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(16, 43, 70, .04);
}

.np-obsah .fotogalerie-box a.foto {
  border-radius: 8px;
}

.np-bs :focus-visible {
  outline: 3px solid #f4b740;
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .np-headline-obr {
    height: 520px;
    object-position: 68% 58%;
  }

  .np-headline::after {
    background: linear-gradient(180deg, rgba(8, 29, 51, .76) 0%, rgba(8, 29, 51, .58) 52%, rgba(8, 29, 51, .14) 100%);
  }

  .np-headline-text {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .np-headline-text .container > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .np-headline-text .container > .row > div {
    padding: 1.35rem;
    background: rgba(11, 37, 64, .2);
  }

  .np-vyrobek-obr {
    height: 205px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .np-headline-text .container > .row > div {
    flex: 0 0 97.5%;
    width: 97.5%;
  }
}

@media (min-width: 1200px) {
  .np-headline-text .container > .row > div {
    flex: 0 0 81.3%;
    width: 81.3%;
  }
}

@media (max-width: 575.98px) {
  .np-headline-obr {
    height: 500px;
    object-position: 68% 58%;
  }

  .np-headline h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }

  .np-headline-tlacitka {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .np-headline-tlacitka .btn {
    margin: 0;
    font-size: .95rem;
  }

  .np-sekce {
    padding: 2.75rem 0;
  }

  .np-vyrobek .card-title {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-vyrobek,
  .np-vyrobek-obr img,
  .np-vice::after {
    transition: none;
  }
}
