/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #202025;
  --navy-light: #2a2a30;
  --primary: #4e4957;
  --accent: #0061a6;
  --accent-light: #1a7bc4;
  --accent-dark: #004d85;
  --gold: #0061a6;
  --gold-light: #1a7bc4;
  --gold-dark: #004d85;
  --text: #202025;
  --text-light: #5a5a65;
  --bg: #efefef;
  --white: #fff;
  --border: #ddd;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.14);
  --radius: 8px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.logo .icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-text .tagline {
  font-size: .7rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  letter-spacing: .3px;
  line-height: 1.3;
}

.logo span.accent { color: var(--accent-light); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}

.header-contact a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}

.header-contact a:hover { color: var(--gold); }

.header-contact svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  opacity: .7;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.main-nav a {
  color: rgba(255,255,255,.8);
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,.04);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, rgba(32,32,37,.9) 0%, rgba(42,42,48,.87) 100%),
              url('https://www.trezortest.cz/wp-content/uploads/2021/04/DSCN2219-scaled-1-e1617634052493.jpg') center/cover no-repeat;
  color: #efefef;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,97,166,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,97,166,.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ===== SECTION ===== */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--white);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  transition: gap var(--transition);
}

.card .card-link:hover { gap: 10px; }

/* Card with image */
.card-img {
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}

.card-img .card-image {
  height: 200px;
  overflow: hidden;
}

.card-img .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card-img:hover .card-image img {
  transform: scale(1.05);
}

.card-img .card-body {
  padding: 24px 28px 28px;
}

.card-img .card-body h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-img .card-body p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
}

/* ===== IMAGE STRIP / GALLERY ===== */
.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.image-strip .strip-item {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.image-strip .strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.image-strip .strip-item:hover img {
  transform: scale(1.08);
}

.image-strip .strip-item .strip-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(26,35,50,.8));
  color: var(--white);
}

.image-strip .strip-item .strip-overlay h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.image-strip .strip-item .strip-overlay span {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

/* ===== SPLIT SECTION (text + image) ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.split-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.split-content h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.split-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.split-content .split-list {
  margin: 16px 0;
  list-style: none;
}

.split-content .split-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-light);
}

.split-content .split-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== PAGE HEADER with background image ===== */
.page-header--img {
  background-size: cover;
  background-position: center;
  padding: 70px 0 60px;
}

/* ===== PARTNERS / TRUST ===== */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 20px 0;
  opacity: .55;
  filter: grayscale(1);
  transition: all var(--transition);
}

.trust-logos:hover {
  opacity: .8;
  filter: grayscale(.3);
}

.trust-logos img {
  height: 40px;
  width: auto;
}

/* ===== PRODUCT GRID (certifikované produkty) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card .product-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0,97,166,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card h4 {
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.product-card span {
  font-size: .8rem;
  color: var(--text-light);
}

/* ===== STATS BAR ===== */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-item .label {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 50px 0 40px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== CONTENT AREA ===== */
.content-area {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: -30px;
  position: relative;
  z-index: 1;
}

.content-area h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
}

.content-area h2:first-child { margin-top: 0; }

.content-area p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-area ul {
  margin: 12px 0 20px 20px;
  list-style: disc;
}

.content-area ul li {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 6px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,97,166,.08);
  border: 1px solid rgba(0,97,166,.2);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin: 8px 4px;
}

/* ===== SEARCH / FILTER (certifikáty) ===== */
.search-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.search-panel h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.search-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-field {
  flex: 1;
  min-width: 200px;
}

.search-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,97,166,.12);
}

.search-btn {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--gold-dark);
}

.search-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: .85rem;
}

.search-divider::before,
.search-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px 6px 0 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--navy); background: var(--bg); }

.tab-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Results table */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.results-table thead {
  background: var(--navy);
  color: var(--white);
}

.results-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.results-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
}

.results-table tbody tr:hover {
  background: rgba(0,97,166,.04);
}

.results-table tbody tr:nth-child(even) {
  background: var(--bg);
}

.results-table tbody tr:nth-child(even):hover {
  background: rgba(0,97,166,.06);
}

.results-count {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ===== CONTACT CARDS ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: .95rem;
}

.contact-card a {
  color: var(--gold-dark);
  font-weight: 500;
}

.contact-card a:hover { text-decoration: underline; }

.contact-card .person {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact-card .person strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

/* ===== SEMINAR CARDS ===== */
.seminar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  margin-bottom: 20px;
}

.seminar-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.seminar-card .duration {
  display: inline-block;
  background: rgba(0,97,166,.1);
  color: var(--gold-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.seminar-card p {
  color: var(--text-light);
  font-size: .95rem;
}

/* ===== ACCREDITATION BADGES ===== */
.accreditation-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.accreditation-badge {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  min-width: 260px;
  transition: border-color var(--transition);
}

.accreditation-badge:hover {
  border-color: var(--gold);
}

.accreditation-badge .badge-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.accreditation-badge .badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.accreditation-badge .badge-detail {
  font-size: .85rem;
  color: var(--text-light);
}

/* ===== CERTIFICATION SCHEMES ===== */
.schemes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.scheme-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.scheme-card .scheme-id {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scheme-card h4 {
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 8px;
}

.scheme-card p {
  color: var(--text-light);
  font-size: .85rem;
  line-height: 1.6;
}

/* ===== MAP ===== */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 50px 0 24px;
  margin-top: auto;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-col p {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .split-section { grid-template-columns: 1fr; gap: 28px; }
  .split-section.reverse { direction: ltr; }
  .split-image img { height: 280px; }
  .image-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .main-nav {
    display: none;
    flex-direction: column;
    padding: 8px 0 16px;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 10px 0;
    border-bottom: none;
  }

  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  .header-top { flex-wrap: wrap; gap: 8px; }
  .header-contact { display: none; }

  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }

  .content-area { padding: 24px; }

  .page-header h1 { font-size: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .search-row { flex-direction: column; }
  .search-field { min-width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .accreditation-badges { flex-direction: column; }
  .image-strip { grid-template-columns: 1fr; }
  .image-strip .strip-item { height: 200px; }
}
