/*
Theme Name: OptoSmart Child
Theme URI: https://clevermedical.cz
Description: Child theme pre OptoSmart - LCD Optotyp. Farby: modrá #1B75BC, navy #1A2F4B, sivá #F0EDE8.
Author: CleverMedical
Template: twentytwentyfive
Version: 1.0.0
Text Domain: optosmart-child
*/

/* =============================================================
   ROOT PREMENNÉ
   ============================================================= */
:root {
  --os-blue:         #1B75BC;
  --os-blue-dark:    #1560A0;
  --os-blue-light:   #EBF4FB;
  --os-blue-mid:     #D0E8F5;
  --os-navy:         #1A2F4B;
  --os-bg:           #F0EDE8;
  --os-bg-card:      #FFFFFF;
  --os-text:         #1A2F4B;
  --os-text-muted:   #5A7080;
  --os-border:       #D8D4CE;
  --os-icon-bg:      #EAE7E2;
  --os-radius:       14px;
  --os-radius-sm:    8px;
  --os-shadow:       0 2px 16px rgba(26,47,75,.08);
  --os-shadow-md:    0 4px 24px rgba(26,47,75,.12);
  --os-shadow-hover: 0 8px 32px rgba(27,117,188,.18);
  --os-max-w:        1200px;
  --os-px:           2rem;

  /* Twenty Twenty-Five overrides */
  --wp--preset--color--primary:    #1B75BC;
  --wp--preset--color--secondary:  #1A2F4B;
  --wp--preset--color--base:       #F0EDE8;
  --wp--preset--color--contrast:   #1A2F4B;
  --wp--preset--font-family--noto-sans: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* =============================================================
   RESET & ZÁKLAD
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: hidden; max-width: 100%; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--os-bg);
  color: var(--os-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Neutralize browser-default margins that the mockup resets via * { margin:0; padding:0 } */
h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, figure, figcaption {
  margin-block-start: 0;
  margin-block-end: 0;
  margin: 0;
  padding: 0;
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */
.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  background: var(--os-blue);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--os-radius-sm) var(--os-radius-sm);
  font-weight: 600;
  font-size: .875rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--os-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================
   TOPBAR
   ============================================================= */
.os-topbar {
  background: var(--os-navy);
  padding: 5px var(--os-px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1001;
}
.os-topbar a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.os-topbar a:hover { color: #fff; }
.os-topbar-sep { color: rgba(255,255,255,.2); font-size: .7rem; }

/* =============================================================
   HEADER — override Twenty Twenty-Five
   ============================================================= */
.wp-block-template-part[class*="header"],
header.wp-block-template-part {
  background: #fff !important;
  border-bottom: 3px solid var(--os-blue) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 12px rgba(26,47,75,.07) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* TwentyTwentyFive spacing reset */
.wp-block-template-part[class*="header"] > *,
.wp-block-template-part[class*="header"] .wp-block-group {
  margin: 0 !important;
}

.wp-site-blocks {
  --wp--style--block-gap: 0px !important;
  padding: 0 !important;
  gap: 0 !important;
}
.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* =============================================================
   NAVIGÁCIA — override Twenty Twenty-Five
   ============================================================= */
.wp-block-navigation {
  font-size: .83rem !important;
  font-weight: 600 !important;
}
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
  color: var(--os-navy) !important;
  text-decoration: none !important;
  font-size: .83rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: .5rem .85rem !important;
  border-radius: 6px !important;
  transition: all .2s !important;
}
.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--os-blue) !important;
  background: var(--os-blue-light) !important;
}
.wp-block-navigation a[aria-current="page"],
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--os-blue) !important;
}

/* Nav CTA tlačítko (posledný item) */
.wp-block-navigation .nav-cta > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item.nav-cta > a {
  background: var(--os-blue) !important;
  color: #fff !important;
  border-radius: 7px !important;
  padding: .5rem 1.2rem !important;
  font-weight: 700 !important;
}
.wp-block-navigation .nav-cta > .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item.nav-cta > a:hover {
  background: var(--os-blue-dark) !important;
}

/* =============================================================
   SITE LOGO
   ============================================================= */
.wp-block-site-logo img,
.wp-block-site-logo a {
  display: flex !important;
  align-items: center !important;
}
.wp-block-site-logo img {
  height: 40px !important;
  width: auto !important;
}
/* ── Klasické menu (wp_nav_menu) v headeru ── */
.os-nav { margin: 0; }
.os-nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.os-nav-list li { margin: 0; padding: 0; }
.os-nav-list a {
  display: block;
  padding: .45rem .75rem;
  font-size: .83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--os-navy);
  text-decoration: none;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.os-nav-list a:hover { color: var(--os-blue); background: var(--os-blue-light); }
.os-nav-list li.current-menu-item > a,
.os-nav-list li.current_page_item > a { color: var(--os-blue); }

/* ── Hamburger button ───────────────────────────────────────── */
.os-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.os-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--os-navy);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.os-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.os-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.os-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .os-hamburger { display: flex; }
  .os-nav {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid var(--os-blue);
    box-shadow: 0 6px 20px rgba(26,47,75,.12);
    z-index: 999;
    padding: .5rem 1.5rem 1rem;
  }
  .os-nav.is-open { display: block; }
  .os-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .os-nav-list a {
    padding: .8rem .5rem;
    font-size: .95rem;
    border-bottom: 1px solid var(--os-bg);
    border-radius: 0;
  }
  .os-nav-list li:last-child a { border-bottom: none; }
}

.os-header-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.os-header-brand-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--os-navy);
  white-space: nowrap;
  letter-spacing: -.01em;
}

/* =============================================================
   SEGMENT NAV
   ============================================================= */
.os-segment-nav {
  background: var(--os-navy);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 990;
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}
.os-segment-nav::-webkit-scrollbar { display: none; }
.os-segment-nav-inner {
  max-width: var(--os-max-w);
  margin: 0 auto;
  padding: 0 var(--os-px);
  display: flex;
}
.os-segment-nav a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .75rem 1.6rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
}
.os-segment-nav a:hover,
.os-segment-nav a.os-seg-active {
  background: var(--os-blue);
  border-bottom-color: #fff;
}
.os-seg-line1 { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .06em; text-transform: uppercase; }
.os-seg-line2 { font-size: .7rem; font-weight: 500; color: rgba(255,255,255,.35); letter-spacing: .04em; text-transform: uppercase; }
.os-seg-line3 { font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: .01em; text-transform: none; }
.os-segment-nav a:hover .os-seg-line1,
.os-segment-nav a.os-seg-active .os-seg-line1 { color: rgba(255,255,255,.75); }
.os-segment-nav a:hover .os-seg-line2,
.os-segment-nav a.os-seg-active .os-seg-line2 { color: rgba(255,255,255,.6); }
.os-segment-nav a:hover .os-seg-line3,
.os-segment-nav a.os-seg-active .os-seg-line3 { color: #fff; }
.os-seg-disabled { opacity: .45; cursor: not-allowed !important; pointer-events: none; }
.os-seg-soon {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  padding: .1rem .35rem;
  margin-top: .15rem;
}

/* =============================================================
   TLAČIDLÁ — globálne + WP block overrides
   ============================================================= */
.btn,
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Noto Sans', inherit;
  font-weight: 700 !important;
  font-size: .875rem !important;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .8rem 1.6rem !important;
  border-radius: var(--os-radius-sm) !important;
  transition: all .2s !important;
  cursor: pointer;
  border: none !important;
  white-space: nowrap;
}
.wp-block-button__link,
.wp-element-button {
  background: var(--os-blue) !important;
  color: #fff !important;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--os-blue-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(27,117,188,.4) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  color: #fff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.1) !important;
  border-color: #fff !important;
}
.wp-block-button.is-style-outline-blue .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--os-blue) !important;
  color: var(--os-blue) !important;
}
.wp-block-button.is-style-outline-blue .wp-block-button__link:hover {
  background: var(--os-blue) !important;
  color: #fff !important;
}

/* =============================================================
   NADPISY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--os-navy);
  font-weight: 700;
  line-height: 1.2;
  font-family: 'Noto Sans', inherit;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; }
h4, h5, h6 { font-weight: 600; }

/* Cover/Hero nadpisy */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover p,
.wp-block-cover .wp-block-heading { color: #fff !important; }

/* =============================================================
   HERO / COVER BLOK
   ============================================================= */
.wp-block-cover {
  min-height: 520px !important;
  padding: 4rem var(--os-px) !important;
}
.wp-block-cover__inner-container {
  max-width: var(--os-max-w);
  margin: 0 auto;
  width: 100%;
}

/* =============================================================
   SECTION HELPERS (custom HTML blocks)
   ============================================================= */
.os-section-label {
  color: var(--os-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.os-section-h2 {
  color: var(--os-navy);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.os-section-lead {
  color: var(--os-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* =============================================================
   BENEFITS STRIP
   ============================================================= */
.os-benefits-strip {
  background: #fff;
  border-bottom: 1px solid var(--os-border);
}
.os-benefits-inner {
  max-width: var(--os-max-w);
  margin: 0 auto;
  padding: 0 var(--os-px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.os-benefit-item {
  padding: 1.75rem .75rem;
  text-align: center;
  border-right: 1px solid var(--os-border);
  transition: background .2s;
}
.os-benefit-item:last-child { border-right: none; }
.os-benefit-item:hover { background: var(--os-blue-light); }
.os-benefit-icon {
  width: 36px; height: 36px;
  margin: 0 auto .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-benefit-icon svg { width: 100%; height: 100%; }
.os-benefit-label {
  color: var(--os-navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* =============================================================
   ICON GRID (testy, features)
   ============================================================= */
.os-section {
  padding: 5rem var(--os-px);
}
.os-section-inner {
  max-width: var(--os-max-w);
  margin: 0 auto;
}
.os-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.os-icon-card {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--os-shadow);
  transition: all .25s;
  border: 1px solid transparent;
}
.os-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--os-shadow-hover);
  border-color: rgba(27,117,188,.12);
}
.os-icon-card .os-icon-wrap {
  background: var(--os-icon-bg);
  border-radius: 12px;
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.os-icon-card:hover .os-icon-wrap { background: var(--os-blue-mid); }
.os-icon-card .os-icon-wrap img { width: 44px; height: 44px; object-fit: contain; }
.os-icon-card h3 {
  color: var(--os-navy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 .4rem;
}
.os-icon-card p { color: var(--os-text-muted); font-size: .82rem; margin: 0; line-height: 1.5; }

/* =============================================================
   TESTS GRID (vnitřní stránky)
   ============================================================= */
.os-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.os-test-card {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--os-shadow);
  border: 1px solid transparent;
  transition: all .25s;
}
.os-test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--os-shadow-hover);
  border-color: rgba(27,117,188,.15);
}
.os-test-card .os-icon-wrap {
  background: var(--os-icon-bg);
  border-radius: 12px;
  width: 64px; height: 64px;
  margin: 0 auto .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.os-test-card:hover .os-icon-wrap { background: var(--os-blue-mid); }
.os-test-card .os-icon-wrap img { width: 38px; height: 38px; object-fit: contain; }
.os-test-card h3 {
  color: var(--os-navy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 .3rem;
}
.os-test-card p { color: var(--os-text-muted); font-size: .75rem; line-height: 1.5; margin: 0; }

/* =============================================================
   REFERENCIE
   ============================================================= */
.os-ref-strip {
  background: var(--os-navy);
  padding: 3.5rem var(--os-px);
}
.os-ref-strip-inner { max-width: var(--os-max-w); margin: 0 auto; }
.os-ref-strip .os-section-label { color: rgba(255,255,255,.45); }
.os-ref-strip .os-section-h2 { color: #fff; margin-bottom: 2rem; }
.os-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.os-ref-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--os-radius);
  padding: 1.5rem;
  transition: all .2s;
}
.os-ref-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(27,117,188,.4);
  transform: translateY(-2px);
}
.os-ref-stars { color: var(--os-blue); font-size: .85rem; margin-bottom: .75rem; }
.os-ref-card blockquote {
  color: rgba(240,237,232,.8);
  font-style: italic;
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.os-ref-card blockquote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--os-blue);
  line-height: 0;
  vertical-align: -.45em;
  margin-right: .2rem;
  font-style: normal;
}
.os-ref-cite { display: flex; align-items: center; gap: .5rem; }
.os-ref-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(27,117,188,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--os-blue);
  flex-shrink: 0;
}
.os-ref-name { color: var(--os-blue); font-size: .82rem; font-weight: 600; }
.os-ref-role { color: rgba(255,255,255,.35); font-size: .75rem; }
.os-ref-more { text-align: center; margin-top: 2rem; }
.os-btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.75rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.os-btn-outline-navy:hover {
  border-color: var(--os-blue);
  color: #fff;
  background: rgba(27,117,188,.15);
}

/* WP blockquote override */
blockquote.wp-block-quote,
.wp-block-quote {
  border-left: 4px solid var(--os-blue) !important;
  background: var(--os-bg-card);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem !important;
  margin: 1.5rem 0;
}
.wp-block-quote cite,
.wp-block-quote footer {
  color: var(--os-blue);
  font-style: normal;
  font-weight: 600;
  font-size: .9rem;
}

/* =============================================================
   CTA BANNER
   ============================================================= */
.os-cta-banner {
  background: var(--os-blue-light);
  border-top: 3px solid var(--os-blue);
  padding: 3.5rem var(--os-px);
}
.os-cta-banner-inner {
  max-width: var(--os-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.os-cta-banner h2 {
  color: var(--os-navy);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .4rem;
}
.os-cta-banner p { color: var(--os-text-muted); font-size: .975rem; margin: 0; }
.os-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.os-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--os-blue);
  color: #fff;
  font-family: 'Noto Sans', inherit;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: var(--os-radius-sm);
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.os-btn-primary:hover {
  background: var(--os-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,117,188,.4);
  color: #fff;
  text-decoration: none;
}
.os-btn-dark {
  display: inline-flex;
  align-items: center;
  background: var(--os-navy);
  color: #fff;
  font-family: 'Noto Sans', inherit;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: var(--os-radius-sm);
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.os-btn-dark:hover {
  background: #0d1e32;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.os-btn-outline-white {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-family: 'Noto Sans', inherit;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  padding: .75rem 1.6rem;
  border-radius: var(--os-radius-sm);
  border: 2px solid rgba(255,255,255,.35);
  transition: all .2s;
  cursor: pointer;
}
.os-btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.os-btn-sm { padding: .55rem 1.1rem !important; font-size: .8rem !important; }

/* =============================================================
   PAGE HERO (vnitřní stránky)
   ============================================================= */
.os-page-hero {
  background: linear-gradient(135deg, var(--os-navy) 0%, #0d1e32 60%, #1a3a5c 100%);
  padding: 3rem var(--os-px) 3.5rem;
  position: relative;
  overflow: hidden;
}
.os-page-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(27,117,188,.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.os-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--os-blue), #5aaedd, var(--os-blue));
}
.os-page-hero-inner {
  max-width: var(--os-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.os-page-hero-eyebrow {
  color: var(--os-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.os-page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--os-blue);
  border-radius: 1px;
}
.os-page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.os-page-hero h1 span { color: var(--os-blue); }
.os-page-hero-desc {
  color: rgba(240,237,232,.75);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.os-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ── Homepage hero ─────────────────────────────────────── */
.os-home-hero {
  background: linear-gradient(135deg, #1A2F4B 0%, #0d1e32 50%, #1a3a5c 100%);
  position: relative;
  clip-path: inset(0);   /* ořez dekorativního blobu bez overflow side-efektů */
}
.os-home-hero-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 44%;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.os-home-hero-text { min-width: 0; }
.os-home-hero-img {
  min-width: 0;
  text-align: center;
}
.os-home-hero-img img {
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.5));
}
@media (max-width: 768px) {
  .os-home-hero-grid {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
    gap: 1rem;
  }
  .os-home-hero-text { order: 1; }
  .os-home-hero-img { order: 2; }
  .os-home-hero-img img { max-height: 280px; }
}
.os-hero-badge {
  background: rgba(27,117,188,.15);
  border: 1px solid rgba(27,117,188,.3);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 200px;
  flex-shrink: 0;
}
.os-hero-badge-icon {
  width: 72px; height: 72px;
  background: rgba(27,117,188,.2);
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-hero-badge-icon img { width: 44px; height: 44px; object-fit: contain; }
.os-hero-badge p { color: rgba(255,255,255,.65); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.os-hero-badge strong { color: #fff; font-size: 1.1rem; display: block; margin-top: .2rem; }

/* =============================================================
   TABS
   ============================================================= */
.os-tabs {
  display: flex;
  border-bottom: 2px solid var(--os-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.os-tabs::-webkit-scrollbar { display: none; }
.os-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--os-text-muted);
  cursor: pointer;
  font-family: 'Noto Sans', inherit;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: -2px;
  padding: .75rem 1.5rem;
  white-space: nowrap;
  transition: all .2s;
  letter-spacing: .02em;
}
.os-tab-btn:hover { color: var(--os-blue); }
.os-tab-btn.active {
  color: var(--os-blue);
  border-bottom-color: var(--os-blue);
}
.os-tab-panel { display: none; }
.os-tab-panel.active { display: block; animation: os-fadeIn .2s ease; }
@keyframes os-fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   CONTENT LAYOUT (vnitřní stránky s sidebar)
   ============================================================= */
.os-content-wrap {
  max-width: var(--os-max-w);
  margin: 0 auto;
  padding: 3rem var(--os-px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.os-content-main { min-width: 0; }

/* =============================================================
   SIDEBAR
   ============================================================= */
.os-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.os-sidebar-card {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 1.5rem;
  box-shadow: var(--os-shadow);
  border: 1px solid var(--os-border);
}
.os-sidebar-card h3 {
  color: var(--os-navy);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--os-border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.os-sidebar-card h3::before {
  content: '';
  display: block;
  width: 3px; height: 16px;
  background: var(--os-blue);
  border-radius: 2px;
}
.os-sidebar-cta {
  background: linear-gradient(135deg, var(--os-navy) 0%, #0d1e32 100%);
  border-color: transparent;
}
.os-sidebar-cta h3 { color: rgba(255,255,255,.65); border-bottom-color: rgba(255,255,255,.1); }
.os-sidebar-cta h3::before { background: var(--os-blue); }
.os-sidebar-cta p { color: rgba(240,237,232,.7); font-size: .875rem; line-height: 1.65; margin-bottom: 1.25rem; }
.os-sidebar-cta .os-btn-primary,
.os-sidebar-cta .os-btn-outline-white { width: 100%; justify-content: center; margin-bottom: .6rem; }
.os-page-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.os-page-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--os-text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: .55rem .75rem;
  border-radius: var(--os-radius-sm);
  transition: all .2s;
}
.os-page-nav-list a:hover,
.os-page-nav-list a.active {
  background: var(--os-blue-light);
  color: var(--os-blue);
}
.os-page-nav-list a.active { font-weight: 700; }
.os-page-nav-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .2s;
}
.os-page-nav-list a:hover .os-page-nav-arrow,
.os-page-nav-list a.active .os-page-nav-arrow { opacity: 1; }
.os-download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.os-download-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--os-text);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .6rem .75rem;
  border-radius: var(--os-radius-sm);
  border: 1px solid var(--os-border);
  transition: all .2s;
}
.os-download-list a:hover {
  border-color: var(--os-blue);
  color: var(--os-blue);
  background: var(--os-blue-light);
  text-decoration: none;
}
.os-dl-icon {
  width: 28px; height: 28px;
  background: var(--os-icon-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.os-dl-icon svg { width: 14px; height: 14px; stroke: var(--os-text-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.os-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.os-contact-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--os-text-muted); }
.os-contact-list li strong { color: var(--os-navy); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .1rem; }
.os-contact-list a { color: var(--os-blue); text-decoration: none; font-weight: 600; }
.os-contact-list a:hover { text-decoration: underline; }
.os-contact-icon {
  width: 32px; height: 32px;
  background: var(--os-blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.os-contact-icon svg { width: 16px; height: 16px; stroke: var(--os-blue); fill: none; stroke-width: 2; stroke-linecap: round; }

/* =============================================================
   SPEC TABUĽKA
   ============================================================= */
.os-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  border-radius: var(--os-radius);
  overflow: hidden;
  box-shadow: var(--os-shadow);
}
.os-spec-table thead tr { background: var(--os-navy); color: #fff; }
.os-spec-table thead th {
  padding: .875rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.os-spec-table tbody tr { background: var(--os-bg-card); }
.os-spec-table tbody tr:nth-child(even) { background: var(--os-bg); }
.os-spec-table tbody tr:hover { background: var(--os-blue-light); }
.os-spec-table td { padding: .75rem 1.25rem; border-bottom: 1px solid var(--os-border); vertical-align: top; }
.os-spec-table td:first-child { font-weight: 600; color: var(--os-navy); width: 42%; }
.os-spec-badge {
  display: inline-block;
  background: var(--os-blue-light);
  color: var(--os-blue);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-left: .5rem;
}

/* WP table override */
.wp-block-table td,
.wp-block-table th {
  border-color: var(--os-border) !important;
  padding: .75rem 1rem;
}
.wp-block-table thead { background: var(--os-navy); color: #fff; }

/* =============================================================
   RELEASE CARDS
   ============================================================= */
.os-release-card {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 1.5rem;
  box-shadow: var(--os-shadow);
  margin-bottom: 1rem;
  border-left: 4px solid var(--os-border);
}
.os-release-card.latest { border-left-color: var(--os-blue); }
.os-release-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .875rem;
}
.os-release-version { color: var(--os-navy); font-size: 1.05rem; font-weight: 700; margin-top: .4rem; }
.os-release-date { color: var(--os-text-muted); font-size: .82rem; }
.os-release-badge {
  background: var(--os-blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.os-release-card ul {
  color: var(--os-text-muted);
  font-size: .875rem;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* =============================================================
   PROSE (textové sekce)
   ============================================================= */
.os-prose { color: var(--os-text); font-size: .975rem; line-height: 1.8; }
.os-prose p { margin-bottom: 1.25rem; }
.os-prose h3 { color: var(--os-navy); font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.os-prose ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.os-prose li { margin-bottom: .4rem; }
.os-prose li::marker { color: var(--os-blue); }
.os-prose strong { color: var(--os-navy); font-weight: 700; }

/* =============================================================
   BREADCRUMB
   ============================================================= */
.os-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--os-border);
  padding: .6rem var(--os-px);
}
.os-breadcrumb-inner {
  max-width: var(--os-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.os-breadcrumb a { color: var(--os-text-muted); text-decoration: none; font-size: .8rem; font-weight: 500; transition: color .2s; }
.os-breadcrumb a:hover { color: var(--os-blue); }
.os-breadcrumb-sep { color: var(--os-border); font-size: .75rem; }
.os-breadcrumb span { color: var(--os-text); font-size: .8rem; font-weight: 600; }

/* =============================================================
   SCROLL TO TOP
   ============================================================= */
.os-scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--os-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27,117,188,.4);
  transition: all .3s;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}
.os-scroll-top.visible { opacity: 1; pointer-events: all; }
.os-scroll-top:hover { background: var(--os-blue-dark); transform: translateY(-3px); }
.os-scroll-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* =============================================================
   FOOTER — override TwentyTwentyFive
   ============================================================= */
.wp-block-template-part[class*="footer"] {
  background: var(--os-navy) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.os-footer {
  background: var(--os-navy);
  color: rgba(240,237,232,.65);
  padding: 3.5rem var(--os-px) 0;
}
.os-footer-inner { max-width: var(--os-max-w); margin: 0 auto; }
.os-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.os-footer-logo { height: 34px; width: auto; max-width: 220px; margin-bottom: .875rem; filter: brightness(0) invert(1); opacity: .8; }
.os-footer-desc { font-size: .85rem; line-height: 1.75; margin-bottom: 1.25rem; }
.os-footer-social { display: flex; gap: .5rem; }
.os-footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  transition: all .2s;
}
.os-footer-social a:hover { background: var(--os-blue); color: #fff; }
.os-footer-col h4 {
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.os-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.os-footer-col a {
  color: rgba(240,237,232,.5);
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.5;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.os-footer-col a:hover { color: var(--os-blue); text-decoration: none; }
.os-footer-col a::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .2s;
}
.os-footer-col a:hover::before { background: var(--os-blue); }
.os-footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.os-footer-bottom-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.os-copyright { font-size: .75rem; color: rgba(255,255,255,.3); }
.os-footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.os-footer-legal a { font-size: .75rem; color: rgba(240,237,232,.3); text-decoration: none; transition: color .2s; }
.os-footer-legal a:hover { color: rgba(240,237,232,.65); text-decoration: none; }

/* WP columns override */
.wp-block-columns .wp-block-column {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--os-shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid transparent;
}
.wp-block-columns .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: var(--os-shadow-hover);
  border-color: rgba(27,117,188,.12);
}

/* =============================================================
   KONTAKTNÍ FORMULÁR
   ============================================================= */
input[type=text],
input[type=email],
input[type=tel],
textarea,
.wp-block-search__input {
  border: 1.5px solid var(--os-border) !important;
  border-radius: var(--os-radius-sm) !important;
  font-family: 'Noto Sans', inherit;
  font-size: 1rem;
  padding: .75rem 1rem !important;
  width: 100%;
  background: var(--os-bg-card);
  transition: border-color .2s, box-shadow .2s;
}
input:focus,
textarea:focus {
  border-color: var(--os-blue) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27,117,188,.15) !important;
}

/* =============================================================
   OBRÁZKY
   ============================================================= */
.wp-block-image img { border-radius: 12px; }

/* Polylang prepínač */
.pll-parent-menu-item .sub-menu {
  background: var(--os-bg-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius-sm);
  box-shadow: var(--os-shadow-md);
  list-style: none;
  min-width: 160px;
  padding: .5rem 0;
  position: absolute;
  right: 0; top: 100%;
  z-index: 1000;
}
.pll-parent-menu-item .sub-menu a {
  color: var(--os-text);
  font-size: .875rem;
  gap: .5rem;
  padding: .5rem 1rem;
  text-transform: none;
  letter-spacing: 0;
}
.pll-parent-menu-item .sub-menu a:hover {
  background: var(--os-bg);
  color: var(--os-blue);
}

/* =============================================================
   MAIN CONTENT — odstraň default padding TwentyTwentyFive
   ============================================================= */
main.wp-block-group {
  margin: 0 !important;
  padding: 0 !important;
}
.wp-block-post-content {
  padding: 0 !important;
  margin: 0 !important;
}
.wp-block-post-content > * + * {
  margin-block-start: 0 !important;
}
.wp-block-html {
  margin-block-start: 0 !important;
  padding: 0;
}
.wp-block-group + .wp-block-group {
  margin-block-start: 0 !important;
}

/* =============================================================
   RESPONZIVITA
   ============================================================= */
@media (max-width: 1024px) {
  :root { --os-px: 1.5rem; }
  .os-page-hero-inner { grid-template-columns: 1fr; }
  .os-hero-badge { display: none; }
  .os-content-wrap { grid-template-columns: 1fr 260px; gap: 2rem; }
  .os-footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .os-ref-grid { grid-template-columns: repeat(2, 1fr); }
  .os-cta-banner-inner { grid-template-columns: 1fr; }
  .os-icon-grid { grid-template-columns: repeat(3, 1fr); }
  .os-benefits-inner { grid-template-columns: repeat(3, 1fr); }
  .os-benefit-item { border-right: none; border-bottom: 1px solid var(--os-border); }
  .os-benefit-item:nth-child(3),
  .os-benefit-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  :root { --os-px: 1rem; }
  .os-segment-nav a { padding: .6rem 1rem; }
  .os-seg-line3 { font-size: .8rem; }
  .os-section { padding: 3rem var(--os-px); }
  .os-icon-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .os-tests-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .os-ref-strip { padding: 2.5rem var(--os-px); }
  .os-ref-grid { grid-template-columns: 1fr; }
  .os-cta-banner { padding: 2.5rem var(--os-px); }
  .os-cta-btns { flex-direction: column; }
  .os-cta-btns .os-btn-primary,
  .os-cta-btns .os-btn-dark { justify-content: center; }
  .os-content-wrap { grid-template-columns: 1fr; padding: 2rem var(--os-px); }
  .os-sidebar { position: static; }
  .os-footer { padding: 2.5rem var(--os-px) 0; }
  .os-footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .os-footer-bottom { flex-direction: column; align-items: flex-start; }
  .os-scroll-top { bottom: 1.25rem; right: 1.25rem; }
  .os-benefits-inner { grid-template-columns: repeat(2, 1fr); }
  .os-benefit-item { border-right: 1px solid var(--os-border); border-bottom: 1px solid var(--os-border); }
  .os-benefit-item:nth-child(even) { border-right: none; }
  .os-benefit-item:nth-child(5),
  .os-benefit-item:nth-child(6) { border-bottom: none; }
}

/* ── FAQ accordion ──────────────────────────────────── */
.os-faq-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.os-faq-item {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 1.5rem;
  box-shadow: var(--os-shadow);
  border: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.os-faq-item[open] {
  border-color: var(--os-blue);
  box-shadow: var(--os-shadow-hover);
}
.os-faq-item summary {
  font-weight: 700;
  color: var(--os-navy);
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.os-faq-item summary::-webkit-details-marker { display: none; }
.os-faq-item summary .os-faq-icon {
  flex-shrink: 0;
  color: var(--os-blue);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s;
}
.os-faq-item[open] summary .os-faq-icon { transform: rotate(45deg); }
.os-faq-item p,
.os-faq-item ul,
.os-faq-item ol {
  margin-top: 1rem;
  color: var(--os-text-muted);
  line-height: 1.75;
}
.os-faq-item ul,
.os-faq-item ol { margin-left: 1.25rem; }
.os-faq-item li { margin-bottom: .3rem; }
.os-faq-group-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--os-blue);
  margin: 2rem 0 .75rem;
}
.os-faq-group-label:first-child { margin-top: 0; }

/* ── Právní obsah ─────────────────────────────────────── */
.os-legal-content {
  max-width: 780px;
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--os-shadow);
}
.os-legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--os-navy);
  margin: 2rem 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--os-border);
}
.os-legal-content h2:first-child { margin-top: 0; }
.os-legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--os-navy);
  margin: 1.4rem 0 .4rem;
}
.os-legal-content p {
  color: var(--os-text-muted);
  line-height: 1.75;
  margin-bottom: .75rem;
}
.os-legal-content ul,
.os-legal-content ol {
  color: var(--os-text-muted);
  line-height: 1.75;
  margin: .5rem 0 1rem 1.5rem;
}
.os-legal-content li { margin-bottom: .35rem; }
.os-legal-content a { color: var(--os-blue); }
.os-legal-content a:hover { color: var(--os-navy); }
.os-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .9rem;
}
.os-legal-content th {
  background: var(--os-navy);
  color: #fff;
  padding: .5rem .75rem;
  text-align: left;
  font-weight: 600;
}
.os-legal-content td {
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--os-border);
  color: var(--os-text-muted);
}
.os-legal-content tr:nth-child(even) td { background: var(--os-bg); }
.os-legal-date {
  font-size: .85rem;
  color: var(--os-text-muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--os-border);
  font-style: italic;
}

@media (max-width: 700px) {
  .os-legal-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .os-topbar { justify-content: center; gap: 1rem; flex-wrap: wrap; }
  .os-icon-grid { gap: .75rem; }
  .os-icon-card { padding: 1.5rem 1rem; }
  .os-icon-card .os-icon-wrap { width: 56px; height: 56px; }
  .os-icon-card .os-icon-wrap img { width: 34px; height: 34px; }
  .os-tests-grid { gap: .6rem; }
  .os-test-card { padding: 1.1rem .75rem; }
  .os-test-card .os-icon-wrap { width: 52px; height: 52px; }
}

/* ── PLDD: promo obrázek pod testy ─────────────────────────── */
.os-pldd-video-promo {
  margin-top: 2rem;
  text-align: center;
}
.os-pldd-video-promo img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  display: inline-block;
  border-radius: var(--os-radius);
}
.os-pldd-video-promo p {
  margin-top: .75rem;
  font-size: .95rem;
  color: var(--os-text-muted);
  font-style: italic;
}

/* ── Sekce "Ke stažení" — dočasně skrytá ───────────────────── */
.os-sidebar-card:has(.os-download-list) { display: none; }

/* ── Kontaktní formulář ─────────────────────────────────── */
.os-form-card {
  background: var(--os-bg-card);
  border-radius: var(--os-radius);
  padding: 2rem;
  box-shadow: var(--os-shadow);
}
.os-form-intro {
  color: var(--os-text-muted);
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.os-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.os-form-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.os-form-field--full { grid-column: 1 / -1; }
.os-form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--os-navy);
}
.os-req { color: var(--os-blue); }
.os-form-field input,
.os-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--os-border);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: var(--os-navy);
  transition: border-color .2s, box-shadow .2s;
}
.os-form-field input:focus,
.os-form-field textarea:focus {
  outline: none;
  border-color: var(--os-blue);
  box-shadow: 0 0 0 3px rgba(27,117,188,.12);
}
.os-form-field textarea { resize: vertical; }
.os-form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: .9rem;
  border: none;
  cursor: pointer;
}
.os-form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: .75rem 1rem;
  color: #dc2626;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.os-form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.os-form-success svg {
  width: 52px;
  height: 52px;
  color: var(--os-blue);
  margin-bottom: 1rem;
}
.os-form-success h3 {
  color: var(--os-navy);
  font-size: 1.4rem;
  margin-bottom: .5rem;
}
.os-form-success p { color: var(--os-text-muted); }
@media (max-width: 600px) {
  .os-form-grid { grid-template-columns: 1fr; }
}
}
