:root {
  --color-red: #CC1111;
  --color-red-dark: #AA0E0E;
  --color-bg: #FFFFFF;
  --color-bg-soft: #EBEBEB;
  --color-text: #1A1A1A;
  --color-muted: #555555;
  --color-border: #DDDDDD;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --navbar-h: 96px;
  --container-max: 1100px;
  --pad: clamp(1rem, 5vw, 3rem);
  --radius: 8px;
  --radius-lg: 16px;
  --ease: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-h); }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); 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; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--pad); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  transition: all var(--ease); white-space: nowrap; cursor: pointer; border: none;
}
.btn-red { background: var(--color-red); color: #fff; }
.btn-red:hover { background: var(--color-red-dark); transform: translateY(-1px); }
.btn-pill { border-radius: 100px; }
.btn-gold { background: var(--color-gold); color: var(--color-bg-dark); }
.btn-gold:hover { background: #b8924f; transform: translateY(-1px); }
.btn-full { width: 100%; border-radius: var(--radius); }

.text-link { color: #1a6fdd; text-decoration: underline; }
.text-link:hover { color: #0d4fa0; }

/* ── Section headers ── */
.section-header { text-align: center; max-width: 960px; margin: 0 auto 3rem; }
.section-header--narrow { max-width: 960px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; color: var(--color-text); line-height: 1.25; margin-bottom: 1.25rem;
}
.section-header p { font-size: 1rem; color: var(--color-text); line-height: 1.75; margin-bottom: 1rem; }
.section-header p:last-child { margin-bottom: 0; }
.section-perex { font-size: 1rem; color: var(--color-text); line-height: 1.75; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  background: #fff;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--navbar-h);
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 80px; height: 59px; object-fit: contain; }
.logo-main { display: none; }
.nav-links { display: flex; align-items: center; gap: 3rem; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--color-text);
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color var(--ease); position: relative; padding-top: 6px;
}
.nav-links a::before {
  content: ''; position: absolute; top: -6px; left: 0; right: 0;
  height: 3px; background: var(--color-red); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--ease);
}
.nav-links a.active::before,
.nav-links a:hover::before { transform: scaleX(1); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: all var(--ease); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--navbar-h) + 3rem) 0 5rem;
  position: relative; overflow: hidden;
  background: #111;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52); z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700; color: #fff; line-height: 1.1;
  letter-spacing: 0.02em; margin-bottom: 1.25rem;
}
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── SERVICES SECTION ── */
.services-section { background: var(--color-bg-soft); padding: 5rem 0; }
.services-section .section-header p { margin-bottom: 0.75rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-item { text-align: center; }
.service-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3;
  background: #ccc;
}
.service-tile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.service-item h3 {
  margin-top: 0.75rem; font-size: 0.95rem; font-weight: 500;
  color: var(--color-text); line-height: 1.4;
}

/* ── GALLERY ── */
.gallery { background: var(--color-bg); padding: 5rem 0; }

/* ── HOMESTAGING ── */
.homestaging { background: var(--color-bg); padding: 5rem 0; }
.homestaging-text {
  text-align: center; max-width: 960px; margin: 2.5rem auto;
  font-size: 1rem; line-height: 1.75; color: var(--color-text);
}
.before-after-wrap {
  max-width: 760px; margin: 0 auto 2rem;
  background: var(--color-bg-soft); border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.before-after {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; background: #ddd; user-select: none;
}
.ba-inner { position: relative; width: 100%; height: 100%; }
.ba-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before-wrap { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.ba-before { width: 100%; height: 100%; object-fit: cover; display: block; min-width: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: ew-resize; z-index: 10; width: 40px;
}
.ba-handle::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px; background: rgba(255,255,255,0.8);
}
.ba-handle-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; flex-shrink: 0;
  font-size: 13px; font-weight: 700; letter-spacing: -1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── PHOTO SLIDER (gallery, drones, pudorysy) ── */
.drones { background: var(--color-bg-soft); padding: 5rem 0; }
.pudorysy { background: var(--color-bg-soft); padding: 5rem 0; }

.photo-slider {
  display: flex; align-items: center; gap: 1rem;
  width: 100vw; position: relative;
  left: 50%; margin-left: -50vw;
  padding: 0 3.5rem;
}
.slider-card {
  flex: 1; min-width: 0;
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.slider-viewport { overflow: hidden; border-radius: var(--radius); width: 100%; touch-action: pan-y; }
.slider-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 0.75rem);
  gap: 1rem;
  transition: transform 0.4s ease; will-change: transform;
}
.slider-slide {
  aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.slider-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease; display: block;
}
.slider-slide:hover img { transform: scale(1.04); }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-text); color: #fff;
  font-size: 1.2rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.slider-btn:hover { background: var(--color-red); }
.slider-btn:disabled { opacity: 0.3; pointer-events: none; }
.slider-dots {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 1.25rem;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border); cursor: pointer; border: none;
  transition: background var(--ease), transform var(--ease);
}
.slider-dot.active { background: var(--color-red); transform: scale(1.4); }

/* ── MATTERPORT ── */
.matterport { background: var(--color-bg-soft); padding: 5rem 0; }

/* ── LEGAL / VÝHODY ── */
.legal { background: var(--color-bg); padding: 5rem 0; }
.legal-icons {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.legal-icon-card {
  background: var(--color-bg-soft); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
}
.legal-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: transparent; border: 2px solid var(--color-red);
  color: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.legal-icon svg { width: 24px; height: 24px; }
.legal-icon-card p { font-size: 0.92rem; color: var(--color-text); line-height: 1.6; }

/* ── MARKETING ── */
.marketing { background: var(--color-bg); padding: 5rem 0 2.5rem; }

/* ── NAŠE PRÁCE ── */
.nase-prace { background: var(--color-bg); padding: 2.5rem 0 5rem; }
.prace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prace-grid .prace-card:only-child { grid-column: 2; }
.prace-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}
.prace-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.14); }
.prace-card-img {
  position: relative; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.prace-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%);
}
.prace-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem; color: #fff;
}
.prace-card-price {
  display: inline-block; background: var(--color-red);
  color: #fff; font-size: 0.82rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 0.5rem;
}
.prace-card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; line-height: 1.3; }
.prace-card-info p { font-size: 0.85rem; opacity: 0.85; }
.prace-card-footer {
  padding: 0.9rem 1.25rem; background: #fff;
  font-size: 0.9rem; font-weight: 600; color: var(--color-red);
}
@media (max-width: 768px) { .prace-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .prace-grid { grid-template-columns: 1fr; } }

/* ── REVIEWS ── */
.reviews { background: var(--color-bg); padding: 5rem 0; }
.reviews-wrapper { display: flex; align-items: center; gap: 1rem; }
.reviews-viewport { flex: 1; overflow: hidden; touch-action: pan-y; }
.reviews-track { display: flex; gap: 1.5rem; transition: transform 0.4s ease; will-change: transform; }
.review-card {
  width: 320px; min-width: 320px; background: #fff;
  border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--color-border); flex-shrink: 0;
}
.review-stars { color: #F5A623; font-size: 0.95rem; margin-bottom: 0.5rem; letter-spacing: 1px; }
.review-author { font-weight: 700; color: var(--color-text); font-size: 0.95rem; margin-bottom: 0.1rem; }
.review-city { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 0.75rem; }
.review-text { font-size: 0.9rem; color: var(--color-text); line-height: 1.65; font-style: italic; }
.reviews-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-text); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--ease);
}
.reviews-btn:hover { background: var(--color-red); }
.reviews-btn:disabled { opacity: 0.3; pointer-events: none; }
.reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.reviews-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border); cursor: pointer;
  transition: background var(--ease), transform var(--ease); border: none;
}
.reviews-dot.active { background: var(--color-red); transform: scale(1.4); }

/* ── PRICING + CONTACT ── */
.pricing-contact { background: var(--color-bg-soft); padding: 5rem 0; }
.pricing-contact .section-header { max-width: 960px; }
.contact-info-line {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.5rem;
}
.contact-info-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600; color: var(--color-text);
  transition: color var(--ease);
}
.contact-info-item:hover { color: var(--color-red); }
.contact-info-item svg { flex-shrink: 0; }
.contact-form-wrap {
  max-width: 700px; margin: 3rem auto 0;
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 1rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--color-text);
  background: #fff; transition: border-color var(--ease); resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-red); }
.form-group input.error,
.form-group textarea.error { border-color: #e53e3e; }
.form-error { display: block; font-size: 0.78rem; color: #e53e3e; margin-top: 0.25rem; min-height: 1em; }
.form-success {
  display: none; margin-top: 1rem; padding: 1rem;
  background: #f0fff4; border: 1px solid #9ae6b4;
  border-radius: var(--radius); color: #276749; font-size: 0.93rem; text-align: center;
}
.form-success.visible { display: block; }

/* ── FOOTER ── */
.footer { background: var(--color-bg-soft); border-top: 1px solid var(--color-border); padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1rem; margin-left: 0.5rem; }
.footer-legal a { font-size: 0.82rem; color: var(--color-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--color-text); }
.footer-check { color: var(--color-red); font-size: 1rem; font-weight: 700; }
.footer-name { font-size: 0.95rem; font-weight: 700; color: var(--color-text); letter-spacing: 0.03em; }
.footer-social { display: flex; gap: 0.6rem; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: opacity var(--ease);
}
.social-link:hover { opacity: 0.8; }
.social-link svg { width: 16px; height: 16px; }
.social-link--fb { background: #1877F2; }
.social-link--ig { background: #E1306C; }
.social-link--yt { background: #FF0000; }
.social-link--tt { background: #000000; }
.social-link--li { background: #0A66C2; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 2000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev:disabled, .lightbox-next:disabled { opacity: 0.25; pointer-events: none; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .slider-track { grid-auto-columns: calc(50% - 0.5rem); }
  .photo-slider { padding: 0 2.5rem; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    padding: 1.5rem var(--pad) 2rem; gap: 1.25rem;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open a { font-size: 1.1rem; color: var(--color-text); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-icons { grid-template-columns: 1fr; }
  .review-card { min-width: 260px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .contact-info-line { flex-direction: column; align-items: center; gap: 0.75rem; }
  .services-section, .gallery, .homestaging, .drones, .pudorysy,
  .matterport, .legal, .marketing, .nase-prace, .reviews, .pricing-contact { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .contact-form-wrap { padding: 1.5rem; }
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 700px;
  background: #1A1A1A;
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  padding: 1.25rem 1.5rem;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
  min-width: 200px;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept { background: var(--color-red); color: #fff; }
.cookie-btn--reject { background: transparent; color: #aaa; border: 1px solid #444; }

@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .service-item h3 { font-size: 0.78rem; margin-top: 0.5rem; }
  .slider-track { grid-auto-columns: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .before-after-wrap {
    width: 100vw; max-width: 100vw; position: relative;
    left: 50%; margin-left: -50vw; margin-right: 0;
    padding: 0.6rem;
  }
  .services-section, .gallery, .homestaging, .drones, .pudorysy,
  .matterport, .legal, .marketing, .nase-prace, .reviews, .pricing-contact { padding: 2.5rem 0; }
  .photo-slider { padding: 0 0.5rem; gap: 0.5rem; }
  .slider-btn { width: 36px; height: 36px; font-size: 1rem; }
  .slider-card { padding: 0.75rem; }
  .review-card { min-width: calc(100vw - 130px); }
  .reviews-wrapper { gap: 0.5rem; }
  .reviews-btn { width: 36px; height: 36px; }
  .hero { padding-bottom: 3rem; }
  .section-header h2 { font-size: 1.5rem; }
}
