/* ========== RESET & ZÁKLAD ========== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #E0052C;
  --dark: #0d0d0d;
  --radius: 4px;
  --max: 1240px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img { height: 46px; width: auto; }

.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--fg);
  margin: 5px 0;
  transition: .3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/uvod-haus-50.jpg') center/cover no-repeat;
  opacity: .45;
  filter: grayscale(30%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 900px;
}

.hero p {
  max-width: 560px;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  margin: 0 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  transition: transform .2s, background .2s;
}
.btn:hover { background: #b80423; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  margin-left: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ========== SECTIONS ========== */
.section { padding: 110px 32px; }
.section.bg-alt { background: var(--bg-alt); }

.container { max-width: var(--max); margin: 0 auto; }

.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}

.section p.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

/* ========== GRID / CARDS ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.07);
  border-color: transparent;
}

.card-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ========== DARK SECTION ========== */
.dark {
  background: var(--dark);
  color: #fff;
}
.dark .section-head p.lead { color: rgba(255,255,255,.6); }
.dark .card {
  background: #171717;
  border-color: #262626;
}
.dark .card:hover { border-color: var(--accent); }
.dark .card p { color: rgba(255,255,255,.6); }

/* ========== SPLIT ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e9e9e9;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

.split ul.clean {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.split ul.clean li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.split ul.clean li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== MASONRY GALÉRIA ========== */
.masonry-gallery {
  column-count: 3;
  column-gap: 24px;
  margin-bottom: 64px;
}

.masonry-gallery .item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  cursor: zoom-in;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: block;
}

.masonry-gallery .item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .4s;
}

.masonry-gallery .item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color .4s;
  pointer-events: none;
}

.masonry-gallery .item:hover img { transform: scale(1.03); opacity: .9; }
.masonry-gallery .item:hover::after { border-color: rgba(255,255,255,0.4); }

.gallery-caption {
  margin-top: 64px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  display: inline-block;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 34px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: var(--accent); }

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
}

.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 26px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
}
.contact-info a { color: var(--accent); }
.contact-info a:hover { text-decoration: underline; }

.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}
.contact-box h3 { margin: 0 0 12px; font-size: 20px; }
.contact-box p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 56px 32px 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer p, .site-footer li { font-size: 14px; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 100px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.empty-state h3 { font-size: 22px; margin: 0 0 12px; }
.empty-state p { color: var(--muted); margin: 0; }

/* ========== ANIMÁCIA SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .3s, background .3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--accent); }

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== RESPONZÍVNOSŤ ========== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .masonry-gallery { column-count: 2; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { height: 64px; padding: 0 20px; }
  .brand img { height: 36px; }
  .brand-text small { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }

  .hero { padding: 110px 20px 60px; min-height: 88vh; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .section { padding: 70px 20px; }
  .grid { grid-template-columns: 1fr; }
  .masonry-gallery { column-count: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .lightbox { padding: 16px; }
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}