*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --u: 4px;
  --black: #0f0f0f;
  --dark: #151515;
  --dark2: #1c1c1c;
  --accent: #d82323;
  --accent-hover: #e63a3a;
  --white: #fff;
  --gray: rgba(255,255,255,0.7);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 { color: var(--white); font-weight: 700; }
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }
@media (min-width: 600px) { h1 { font-size: 44px; } h2 { font-size: 34px; } h3 { font-size: 28px; } }
@media (min-width: 1280px) { h1 { font-size: 52px; } h2 { font-size: 40px; } h3 { font-size: 32px; } }

.hero-heading { font-size: 32px; }
@media (min-width: 600px) { .hero-heading { font-size: 38px; } }
@media (min-width: 1280px) { .hero-heading { font-size: 46px; } }

.hero-sub {
  font-size: 20px; font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 600px) { .hero-sub { font-size: 24px; } }
@media (min-width: 1280px) { .hero-sub { font-size: 28px; } }

.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.text-left { text-align: left; }
.text-center { text-align: center; }

[class*="mt-"] { margin-top: calc(var(--mt, 0) * var(--u)); }
[class*="mb-"] { margin-bottom: calc(var(--mb, 0) * var(--u)); }
.mt-0 { --mt: 0; } .mb-0 { --mb: 0; }
.mt-1 { --mt: 1; } .mb-1 { --mb: 1; }
.mt-2 { --mt: 2; } .mb-2 { --mb: 2; }
.mt-3 { --mt: 3; } .mb-3 { --mb: 3; }
.mt-4 { --mt: 4; } .mb-4 { --mb: 4; }
.mt-5 { --mt: 5; } .mb-5 { --mb: 5; }
.mt-6 { --mt: 6; } .mb-6 { --mb: 6; }
.mt-7 { --mt: 7; } .mb-7 { --mb: 7; }
.mt-8 { --mt: 8; } .mb-8 { --mb: 8; }
.mt-9 { --mt: 9; } .mb-9 { --mb: 9; }
.mt-10 { --mt: 10; } .mb-10 { --mb: 10; }
.mt-11 { --mt: 11; } .mb-11 { --mb: 11; }
.mt-12 { --mt: 12; } .mb-12 { --mb: 12; }
.mt-13 { --mt: 13; } .mb-13 { --mb: 13; }
.mt-14 { --mt: 14; } .mb-14 { --mb: 14; }
.mt-15 { --mt: 15; } .mb-15 { --mb: 15; }

@media (min-width: 600px) {
  .md\:mt-0 { --mt: 0; } .md\:mb-0 { --mb: 0; }
  .md\:mt-1 { --mt: 1; } .md\:mb-1 { --mb: 1; }
  .md\:mt-2 { --mt: 2; } .md\:mb-2 { --mb: 2; }
  .md\:mt-3 { --mt: 3; } .md\:mb-3 { --mb: 3; }
  .md\:mt-4 { --mt: 4; } .md\:mb-4 { --mb: 4; }
  .md\:mt-5 { --mt: 5; } .md\:mb-5 { --mb: 5; }
  .md\:mt-6 { --mt: 6; } .md\:mb-6 { --mb: 6; }
  .md\:mt-7 { --mt: 7; } .md\:mb-7 { --mb: 7; }
  .md\:mt-8 { --mt: 8; } .md\:mb-8 { --mb: 8; }
  .md\:mt-9 { --mt: 9; } .md\:mb-9 { --mb: 9; }
  .md\:mt-10 { --mt: 10; } .md\:mb-10 { --mb: 10; }
}

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

.section { position: relative; padding: 40px 0; }
@media (min-width: 600px) { .section { padding: 60px 0; } }
.section-dark { background: var(--black); }
.section-dark2 { background: var(--dark); }
.section-accent { background: var(--accent); }
.section-bg { position: absolute; inset: 0; overflow: hidden; }
.section-bg img, .section-bg picture { width: 100%; height: 100%; object-fit: cover; }
.overlay-black { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.pattern-bg { background-image: url('../images/pattern.png'); background-repeat: repeat; background-position: center; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 12px 0;
}
.header.scrolled {
  background: rgba(15,15,15,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding: 4px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo { flex-shrink: 0; }
.logo img { height: 24px; width: auto; transition: height 0.3s; }
.header.scrolled .logo img { height: 22px; }
@media (min-width: 600px) { .logo img { height: 32px; } .header.scrolled .logo img { height: 28px; } }
@media (max-width: 600px) { .logo img { height: 16px; } .header.scrolled .logo img { height: 16px; } }

/* ===== User menu (header) ===== */
.hpg-user-menu { position: relative; text-decoration: none; display: flex; align-items: center; }
.hpg-user-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px; border-radius: 8px; transition: 0.2s; }
.hpg-user-trigger:hover { background: rgba(255,255,255,0.06); }
.hpg-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #d82323; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; letter-spacing: 0.5px; }
.hpg-user-name { font-size: 13px; color: rgba(255,255,255,0.7); }
.hpg-user-dropdown { display: none; position: absolute; top: 100%; right: 0; padding-top: 8px; min-width: 200px; z-index: 200; }
.hpg-user-dropdown .hpg-dropdown-inner { background: #1c1c1c; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 4px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.hpg-user-menu:hover .hpg-user-dropdown { display: block; }
.hpg-user-dropdown a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; color: rgba(255,255,255,0.7); white-space: nowrap; transition: 0.15s; border-radius: 6px; margin: 2px 4px; text-decoration: none; }
.hpg-user-dropdown a:hover { background: rgba(255,255,255,0.06); color: #fff; }
@media (max-width: 600px) { .hpg-user-name { display: none; } }

/* ===== Full-screen menu ===== */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
  position: relative; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: 0.35s; border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

.menu-overlay .nav-list {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.menu-overlay .nav-list a {
  font-size: 28px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; padding: 18px 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s, transform 0.3s;
}
.menu-overlay .nav-list a:hover,
.menu-overlay .nav-list a.active { color: var(--white); transform: scale(1.05); }
.menu-overlay .nav-list a::after { display: none; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.parallax .hero-bg img { transform: scale(1.1); will-change: transform; }
.hero-content { position: relative; z-index: 1; width: 100%; }

/* ===== Row / Columns ===== */
.row { display: flex; flex-wrap: wrap; gap: 30px; }
.col { flex: 1 1 100%; }
@media (min-width: 600px) {
  .col-2  { flex: 0 1 calc(50% - 15px); }
  .col-46 { flex: 0 1 calc(45.92% - 15px); }
  .col-54 { flex: 0 1 calc(54.08% - 15px); }
  .col-61 { flex: 0 1 calc(61.16% - 15px); }
  .col-39 { flex: 0 1 calc(38.84% - 15px); }
}

/* ===== Image ===== */
.img-wrap { position: relative; overflow: hidden; width: 100%; border-radius: 8px; }
.img-wrap picture { display: block; width: 100%; height: 100%; }
.img-wrap img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.img-square { padding-bottom: 100%; }
.img-landscape { padding-bottom: 66.67%; }

.img-zoom { overflow: hidden; border-radius: 8px; }
.img-zoom img { transition: transform 0.5s; }
.img-zoom:hover img { transform: scale(1.08); }
@media (min-width: 600px) {
  .about-img-fill { height: 100%; padding-bottom: 0; }
}

/* ===== Card ===== */
.card {
  background: rgba(255,255,255,0.03); border-radius: 4px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.card .img-wrap { overflow: hidden; }
.card .img-wrap img { transition: transform 0.5s; }
.card:hover .img-wrap img { transform: scale(1.08); }
.card-body { padding: 20px 0 0; }
.card-body h4 { margin-bottom: 10px; }
.card-body p { color: var(--gray); font-size: 15px; line-height: 1.7; }

/* ===== Form ===== */
.form-wrap { max-width: 560px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px;
  color: rgba(255,255,255,0.85);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px; background: #fff;
  color: #222; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.form-group select option { background: #fff; color: #222; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #999; }

.form-group input.valid, .form-group select.valid { border-color: #4caf50; background: #f1faf1; }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: #f44336; background: #fff5f5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  border: 2px solid var(--white); border-radius: 30px;
  background: transparent; color: var(--white);
  cursor: pointer; transition: 0.3s; font-family: inherit;
}
.btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-block { width: 100%; }

/* ===== Contact ===== */
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-icon embed { width: 22px; height: 22px; }
.contact-icon img { width: 24px; height: 24px; object-fit: contain; }
.contact-item a { font-size: 15px; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }

/* ===== Map ===== */
.map-wrap { position: relative; width: 100%; padding-bottom: 48.18%; border-radius: 4px; overflow: hidden; }
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.map-btn { margin-top: 12px; display: inline-block; }

/* ===== Footer ===== */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 32px 0; background: var(--black); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-copy em { font-style: normal; color: var(--white); }

/* ===== Cookie bar ===== */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: #1a1a1a; border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 9999; padding: 14px 20px; display: none;
}
.cookie-bar.show { display: block; }
.cookie-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto;
}
.cookie-text { font-size: 13px; color: rgba(255,255,255,0.65); flex: 1 1 280px; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  padding: 7px 18px; font-size: 12px; font-weight: 600;
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: var(--white); cursor: pointer;
  transition: 0.2s; font-family: inherit;
}
.cookie-btn:hover { background: rgba(255,255,255,0.1); }
.cookie-btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.cookie-btn-primary:hover { background: rgba(255,255,255,0.8); }

/* ===== Cookie popup ===== */
.cookie-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 10000; display: none;
  align-items: center; justify-content: center;
}
.cookie-popup-overlay.show { display: flex; }
.cookie-popup {
  background: #222; border-radius: 12px; padding: 32px;
  max-width: 480px; width: 90%; max-height: 80vh; overflow-y: auto;
}
.cookie-popup h3 { margin-bottom: 8px; font-size: 20px; }
.cookie-popup > p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.cookie-option {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
  padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.04);
}
.cookie-option-label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 2px; }
.cookie-option-text { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4; }
.cookie-option input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.cookie-popup-footer { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cookie-close { position: absolute; top: 12px; right: 16px; font-size: 24px; cursor: pointer; color: rgba(255,255,255,0.4); transition: color 0.2s; background: none; border: none; }
.cookie-close:hover { color: var(--white); }

.form-success { display: none; text-align: center; padding: 30px; }
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; }

.hyphens-none { hyphens: none; }
#o-nas, #sluzby, #kontakt { scroll-margin-top: 80px; }

/* ===== Scroll to top with progress ring ===== */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 15px rgba(216,35,35,0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-hover); }
.scroll-top svg { width: 20px; height: 20px; display: block; }
.scroll-top svg.arrow { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; z-index: 1; position: relative; }
.scroll-top svg.progress-ring { position: absolute; top: -2px; left: -2px; width: 52px; height: 52px; transform: rotate(-90deg); }
.scroll-top svg.progress-ring circle { fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 2; }
.scroll-top svg.progress-ring circle.progress { stroke: var(--white); stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset 0.15s; }

/* ===== reCAPTCHA badge ===== */
.grecaptcha-badge { visibility: hidden !important; }

/* ===== Lazy load fade-in ===== */
.lazy-fade {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.lazy-fade.visible { opacity: 1; transform: translateY(0); }
