:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  background: var(--gray-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text { display: flex; flex-direction: column; }
.logo-name { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.logo-sub  { color: var(--orange); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--orange-dark) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ── HERO ── */
.hero {
  padding: 100px 20px 80px;
  min-height: 520px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}



.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

.hero p {
  color: #9ca3af;
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,.1);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover { background: rgba(255,255,255,.18); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { color: var(--orange); font-size: 28px; font-weight: 800; }
.stat-label { color: #9ca3af; font-size: 13px; }

/* ── SECTIONS ── */
section { padding: 70px 20px; }
section.alt { background: var(--gray-100); }

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

.section-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ── CATEGORIES GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.cat-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cat-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.cat-card-body h3 {
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cat-card-body p {
  color: var(--gray-500);
  font-size: 13px;
  flex: 1;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  margin-top: 14px;
  transition: gap .2s;
}

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

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.why-item {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 22px;
  border-left: 4px solid var(--orange);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-item h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.why-item p { font-size: 13px; color: var(--gray-500); }

/* ── CATEGORY PAGE ── */
.cat-hero {
  background: linear-gradient(135deg, var(--gray-900), #1f2937);
  padding: 60px 20px;
  text-align: center;
}

.cat-hero h1 { color: var(--white); font-size: clamp(24px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.cat-hero p  { color: #9ca3af; font-size: 15px; max-width: 600px; margin: 0 auto 24px; }

.breadcrumb { color: #6b7280; font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--orange); text-decoration: none; }

.cat-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.cat-content img { width: 100%; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }

.subcategories h2 { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; }

.subcat-list { list-style: none; }

.subcat-list li {
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  background: var(--white);
  margin-bottom: 10px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--gray-700);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color .2s, background .2s;
}

.subcat-list li:hover { background: #fff7ed; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { font-size: 28px; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
.contact-info p  { color: var(--gray-500); margin-bottom: 28px; }

.contact-items { display: flex; flex-direction: column; gap: 18px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-body strong { display: block; color: var(--gray-900); font-size: 13px; margin-bottom: 2px; }
.contact-item-body a, .contact-item-body span { color: var(--gray-700); font-size: 15px; text-decoration: none; }
.contact-item-body a:hover { color: var(--orange); }

/* ── FORM ── */
.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.contact-form-card h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-900);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
}

.btn-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success .check { font-size: 48px; margin-bottom: 12px; }
.form-success h4 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.form-success p { color: var(--gray-500); font-size: 14px; }

/* ── FOOTER ── */
footer {
  background: var(--gray-900);
  color: #9ca3af;
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand p { font-size: 13px; margin-top: 12px; line-height: 1.7; color: #6b7280; }

.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #6b7280; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; color: #4b5563; }
.footer-bottom a { color: var(--orange); text-decoration: none; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--gray-900); padding: 16px; gap: 4px; }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 12px 16px; }
  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .cat-content { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 480px) {
  section { padding: 48px 16px; }
  .categories-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

/* ── CALL BAR ── */
.call-bar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}

.call-bar a { color: var(--white); text-decoration: none; font-weight: 800; }

/* ════════════════════════════════════════════════════════════════════
   buranie-zilina.sk – doplnky (prístupnosť, sekcie, efekt „práca v pohybe“)
   ════════════════════════════════════════════════════════════════════ */
.hero-slide.active { opacity: 1; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: 10px 16px; z-index: 999; font-weight: 700; }
.skip-link:focus { left: 10px; top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
nav a[aria-current="page"]:not(.nav-cta) { color: var(--orange); }
.container.narrow { max-width: 860px; }

.cat-hero .hero-btns { margin-top: 20px; }
.breadcrumb span { color: #9ca3af; }

/* Kroky spolupráce */
.steps { list-style: none; counter-reset: krok; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { counter-increment: krok; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 28px 22px 22px; position: relative; }
.steps li::before { content: counter(krok); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 16px; color: var(--gray-900); margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--gray-500); }

/* Lokality */
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 1000px; margin: 0 auto; }
.areas-h { text-align: center; font-size: 15px; font-weight: 800; color: var(--gray-900); text-transform: uppercase; letter-spacing: 1px; margin: 28px 0 12px; }
.areas-h:first-of-type { margin-top: 0; }
.areas li { background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--gray-700); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--gray-900); list-style: none; position: relative; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--orange); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 16px; color: var(--gray-700); font-size: 15px; }

/* Text služby */
.prose { max-width: 860px; margin: 48px auto 0; }
.prose h2 { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 14px; }
.prose p { margin-bottom: 14px; font-size: 16px; }
.prose .facts { background: #fff7ed; border-left: 4px solid var(--orange); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 15px; }
.prose a { color: var(--orange-dark); }

/* Galéria */
.gallery-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 48px 0 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { display: block; border-radius: 12px; overflow: hidden; }
.gallery-item .work-media { aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* Súvisiace služby */
.related { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; }
.related a { display: inline-block; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 10px 16px; color: var(--gray-700); text-decoration: none; font-size: 14px; font-weight: 600; }
.related a:hover { border-color: var(--orange); color: var(--orange-dark); }

/* CTA pás */
.cta-strip { background: var(--orange); padding: 48px 20px; text-align: center; }
.cta-strip h2 { color: #fff; font-size: clamp(20px, 3vw, 32px); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,.92); margin-bottom: 28px; font-size: 15px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-white, .cta-dark { padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; }
.cta-white { background: #fff; color: #c2410c; }
.cta-dark { background: rgba(0,0,0,.2); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* Formulár */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; color: #b91c1c; font-size: 14px; }
.form-error a { color: #b91c1c; }
.form-success { display: block; }
.form-success h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.consent label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.consent input { width: auto; margin-top: 3px; }
.consent a { color: var(--orange-dark); }

/* Pätička */
.footer-h { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul li span, .billing li { color: #9ca3af; font-size: 13px; }
.billing li { margin-bottom: 4px !important; }
.billing .small { font-size: 11px; color: #9ca3af; margin-top: 8px; }
.footer-col ul li a { color: #9ca3af; }
.footer-brand p { color: #9ca3af; }
.footer-bottom p { color: #9ca3af; }

/* 404 */
.page-404 { text-align: center; padding: 80px 20px; background: var(--gray-900); color: #fff; }
.page-404 .num { font-size: clamp(90px, 18vw, 170px); font-weight: 900; line-height: 1; color: var(--orange); }
.page-404 h1 { font-size: clamp(22px, 4vw, 34px); margin: 8px 0 14px; }
.page-404 p { color: #9ca3af; margin-bottom: 28px; }
.page-404 .related { margin-top: 36px; }
.btn-secondary.dark { color: #fff; }

/* ── EFEKT „PRÁCA V POHYBE“ (pri prejdení myšou; na mobile pri zobrazení) ── */
.work-media { position: relative; overflow: hidden; background: #1f2937; }
.work-media img { display: block; width: 100%; transform-origin: 50% 70%; will-change: transform; }
.cat-card .work-media img { height: 200px; object-fit: cover; }
.main-photo { border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.cat-content .main-photo img { border-radius: 0; box-shadow: none; }
.work-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.work-media video.playing { opacity: 1; }
.work-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero .work-fx { z-index: 1; }

/* Jemné priblíženie: bez trasenia, plynulé spomalenie (ease-out-expo), návrat po odchode myši. */
:root { --fx-ease: cubic-bezier(.22, 1, .36, 1); --fx-back: .9s; }
.work-media img { transform: scale(1); transition: transform var(--fx-back) var(--fx-ease); }
.work-media.is-working img { transform: scale(1.05); transition: transform var(--fx-dur, 4s) var(--fx-ease); }
.hero-slide { transform: scale(1); transition: opacity 1.4s ease, transform var(--fx-back) var(--fx-ease); }
.hero.is-working .hero-slide.active { transform: scale(1.035); transition: opacity 1.4s ease, transform var(--fx-dur, 4s) var(--fx-ease); }
/* Jemné stmavnutie okrajov pri priblížení – fotka pôsobí hlbšie, nie „roztrasene“. */
.work-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(17,24,39,.28) 100%); opacity: 0; transition: opacity var(--fx-back) var(--fx-ease); }
.work-media.is-working::after { opacity: 1; transition-duration: 1.2s; }
.work-fx { opacity: 0; transition: opacity .6s ease; }
.work-fx.on { opacity: 1; }

/* Efekt vypnutý v administrácii */
.fx-off .work-media img, .fx-off .hero-slide { transform: none !important; }
.fx-off .work-media::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .work-media img, .work-media.is-working img, .hero-slide, .hero.is-working .hero-slide.active { transform: none !important; transition: opacity .3s ease !important; }
  .work-fx, .work-media::after { display: none !important; }
}

@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; } }
