/* ========================================================================== */
/*  Tisknu3D – 1. LF UK / Modern, Mobile-First Design System                  */
/*  Tmavě modrá korporátní identita (000033/1a1a5e) se moderním přístupem     */
/* ========================================================================== */

:root{
  /* Primární korporátní barvy */
  --primary:#000033;
  --primary-light:#1a1a5e;
  --primary-hover:#2a2a7e;

  /* Sekundární paleta */
  --accent:#1f7dd8;
  --accent-light:#2fa3f5;
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;

  /* Neutrální barvy */
  --ink:#0f1419;
  --text:#3a3f47;
  --text-muted:#6b7280;
  --bg-light:#f8fafc;
  --bg-white:#ffffff;
  --border:#e5e7eb;
  --border-dark:rgba(15,20,25,.08);

  /* Design systém */
  --radius-sm:6px;
  --radius-md:10px;
  --radius-lg:14px;
  --radius-xl:20px;
  --radius-full:999px;

  /* Stíny (vylepšené) */
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 12px rgba(0,0,51,.08);
  --shadow-lg:0 10px 28px rgba(0,0,51,.12);
  --shadow-xl:0 16px 40px rgba(0,0,51,.16);

  /* Typografie */
  --font-body:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading:"Cambria", "Georgia", serif;
  --font-mono:"Menlo", "Monaco", "Courier New", monospace;
}


/* ========================================================================== */
/*  Base Styles                                                              */
/* ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

/* Typografie */
p {
  margin: 0 0 1rem;
}

strong, b {
  font-weight: 600;
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent);
}

code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

pre {
  background: var(--ink);
  color: #e0e0e0;
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .9em;
}

/* ========================================================================== */
/*  Layout Wrapper                                                           */
/* ========================================================================== */

#page-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
  background: transparent;
}

@media (min-width: 640px) {
  #page-wrap {
    padding: 24px 20px;
  }
}

@media (min-width: 1024px) {
  #page-wrap {
    padding: 32px;
  }
}

/* ========================================================================== */
/*  Headings                                                                 */
/* ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin: 1.5rem 0 .75rem;
}

h1 {
  font-size: 2.2rem;
  margin-top: 0;
}

h2 {
  font-size: 1.75rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
}

/* ========================================================================== */
/*  Navbar                                                                   */
/* ========================================================================== */

.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease;
}

.logo:hover {
  opacity: .9;
}

.logo i {
  font-size: 18px;
}

/* Scroll progress bar */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .1);
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  transition: width .12s ease-out;
}

/* Desktop menu */
.desktop-menu {
  display: none;
  gap: 2px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  border-bottom: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.nav-link.active-link {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.nav-caret {
  font-size: 11px;
  margin-left: 4px;
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
  transition: all .2s ease;
}

.nav-dropdown-toggle:hover {
  background: rgba(255, 255, 255, .15);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: linear-gradient(145deg, #0a0a3d 0%, var(--primary) 100%);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  z-index: 1500;
  margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  border-bottom: none;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.nav-dropdown-item.active-link {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 6px;
  align-items: center;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: linear-gradient(145deg, #0a0a3d 0%, var(--primary) 100%);
  padding: 12px 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
}

.mobile-menu.show {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  display: block;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  border-bottom: none;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.mobile-link.active-link {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.mobile-group {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-group-title {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: .95rem;
}

.mobile-caret {
  font-size: 11px;
}

.mobile-sub {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, .2);
  display: flex;
  flex-direction: column;
}

.mobile-sub-link {
  padding: 10px 12px;
  border-bottom: none;
}

@media (min-width: 820px) {
  .desktop-menu {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Site notice */
.site-notice {
  background: linear-gradient(135deg, var(--warning) 10%, #ff9500 100%);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================================== */
/*  Buttons                                                                  */
/* ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
  font-size: .95rem;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, #5bb8ff 100%);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--text);
}

/* ========================================================================== */
/*  Hero Section                                                             */
/* ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(31, 125, 216, .03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr .7fr;
    align-items: center;
    padding: 40px 32px;
  }
}

.hero h1 {
  margin-top: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(31, 125, 216, .1);
  border: 1px solid rgba(31, 125, 216, .2);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-side {
  background: linear-gradient(135deg, rgba(31, 125, 216, .06) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--text);
}

.hero-side strong {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================================== */
/*  Grid / Cards                                                             */
/* ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* ========================================================================== */
/*  Quicklinks Grid                                                          */
/* ========================================================================== */

.quicklinks {
  margin: 32px 0;
  padding: 28px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quicklinks h2 {
  margin-top: 0;
}

.ql-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .ql-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ql-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ql-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}

.ql-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.ql-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  border: 1px solid var(--accent);
  background: rgba(31, 125, 216, .08);
  color: var(--accent);
}

.ql-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.ql-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* ========================================================================== */
/*  Notice Boxes                                                             */
/* ========================================================================== */

.notice {
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  background: rgba(31, 125, 216, .04);
  padding: 16px 18px;
  margin: 20px 0;
  border-radius: var(--radius-md);
  color: var(--text);
}

.notice-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice--info {
  border-left-color: var(--accent);
  background: rgba(31, 125, 216, .04);
}

.notice--info .notice-title {
  color: var(--accent);
}

.notice--warn {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, .06);
}

.notice--warn .notice-title {
  color: var(--warning);
}

.notice--tip {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, .06);
}

.notice--tip .notice-title {
  color: var(--success);
}

/* ========================================================================== */
/*  Content Blocks                                                           */
/* ========================================================================== */

.news {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

/* ========================================================================== */
/*  Footer                                                                   */
/* ========================================================================== */

.footer {
  width: 100%;
  margin-top: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.footer-brand {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
}

.footer-title {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.footer-links a {
  color: #e0e7ff;
  border-bottom: 1px solid rgba(224, 231, 255, .2);
  padding: 4px 0;
  transition: all .2s ease;
}

.footer-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .5);
}

.footer-copy {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: .85rem;
}

/* ========================================================================== */
/*  Back to Top Button                                                       */
/* ========================================================================== */

#back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

#back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ========================================================================== */
/*  Responsive Adjustments                                                   */
/* ========================================================================== */

/* ========================================================================== */
/*  Video Embed & Link                                                       */
/* ========================================================================== */

.video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 24px 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.video-link {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s ease;
  box-shadow: var(--shadow-md);
}

.btn-video:hover {
  background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-video i {
  font-size: 20px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .video {
    max-width: 100%;
  }
}

/* ========================================================================== */
/*  Print Styles                                                             */
/* ========================================================================== */

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #fff;
    margin: 0;
    padding: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .navbar,
  .footer,
  .nav-cards,
  .hamburger,
  .mobile-menu,
  #back-top,
  .site-notice {
    display: none !important;
  }

  #page-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
    margin-top: 10pt;
    margin-bottom: 8pt;
  }

  h1 {
    font-size: 24pt;
    line-height: 1.2;
  }

  h2 {
    font-size: 18pt;
    border-bottom: 1pt solid #000;
    padding-bottom: 4pt;
  }

  h3 {
    font-size: 14pt;
  }

  p {
    margin: 0 0 10pt;
    orphans: 3;
    widows: 3;
    page-break-inside: avoid;
  }

  ul, ol {
    margin: 10pt 0;
    padding-left: 20pt;
  }

  li {
    margin-bottom: 5pt;
    page-break-inside: avoid;
  }

  a {
    color: #000;
    border-bottom: none;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
    color: #666;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
    margin: 10pt 0;
  }

  table {
    border-collapse: collapse;
    width: 100%;
    margin: 10pt 0;
    page-break-inside: avoid;
  }

  th, td {
    border: 1pt solid #000;
    padding: 5pt;
    text-align: left;
    font-size: 10pt;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  tr {
    page-break-inside: avoid;
  }

  .notice {
    border: 1pt solid #000;
    padding: 10pt;
    margin: 10pt 0;
  }

  .card {
    page-break-inside: avoid;
    border: 1pt solid #ccc;
    padding: 10pt;
    margin: 10pt 0;
  }

  .hero {
    page-break-inside: avoid;
  }

  .btn, .btn-video {
    display: none;
  }

  code, pre {
    background: #f0f0f0 !important;
    border: 1pt solid #ccc !important;
    padding: 5pt;
    font-family: monospace;
    font-size: 10pt;
    page-break-inside: avoid;
  }

  .video-link,
  .quicklinks,
  .mini-toc {
    page-break-inside: avoid;
  }
}
