/* ==========================================================
   Najlepšia strechárska – spoločné štýly pre všetky podstránky
   ========================================================== */

:root {
  --c-primary: #c8502a;        /* terakota – farba škridly */
  --c-primary-dark: #a43f1f;
  --c-dark: #1b2430;           /* bridlicová */
  --c-dark-2: #252f3d;
  --c-text: #2b3440;
  --c-muted: #6b7584;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f2ee;
  --c-border: #e4e0da;
  --c-light: #ffffff;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(27, 36, 48, .08);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--c-dark); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: .75rem;
}
.eyebrow--light { color: #f0a383; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: var(--c-dark-2); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-dark); }

/* ---------- Horná lišta ---------- */
.topbar { background: var(--c-dark); color: #c5ccd6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 640px) { .topbar__inner > span, .topbar__links a[href^="mailto"] { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-primary); }
.logo__mark { width: 38px; height: 38px; }
.logo__text { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; line-height: 1; color: var(--c-dark); display: flex; flex-direction: column; }
.logo__text strong { font-weight: 800; font-size: 1.2rem; }
.logo--light .logo__text { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .5rem .85rem; text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 8px; color: var(--c-dark); transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--c-primary); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--c-dark); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.5rem 16px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; }
  .nav__link { font-size: 1.1rem; padding: .8rem 0; border-bottom: 1px solid var(--c-border); border-radius: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden;
  color: #fff;
  /* záloha, ak sa video/poster nenačíta */
  background: linear-gradient(135deg, #1b2430 0%, #3a2a24 60%, #c8502a 140%);
}
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
/* video sa plynule prelne cez fotku, keď sa naozaj spustí */
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }

/* Overlay: tmavý prechod zľava (čitateľnosť textu) + jemný teplý nádych + stmavenie dole */
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,18,26,.92) 0%, rgba(13,18,26,.72) 38%, rgba(13,18,26,.25) 75%, rgba(13,18,26,.15) 100%),
    linear-gradient(0deg, rgba(13,18,26,.85) 0%, rgba(13,18,26,0) 35%),
    radial-gradient(ellipse at 85% 15%, rgba(200,80,42,.28) 0%, rgba(200,80,42,0) 55%);
}
.hero__overlay::after { /* jemná textúra, aby video nepôsobilo „lacno“ pri kompresii */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 3px 3px;
}
@media (max-width: 760px) {
  .hero__overlay { background: linear-gradient(180deg, rgba(13,18,26,.55) 0%, rgba(13,18,26,.85) 60%, rgba(13,18,26,.95) 100%); }
}
.hero__content > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
.hero__content > :nth-child(5) { animation-delay: .4s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255,255,255,.55); border-radius: 14px;
}
.hero__scroll::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { .hero__scroll { display: none; } }
.hero__content { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; max-width: 14ch; margin-bottom: 1.25rem; }
.hero__title span { color: #f0a383; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: #dfe4ea; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; padding: 0; margin: 0; font-weight: 500; color: #dfe4ea; }
.hero__badges li::before { content: "✓"; color: #f0a383; font-weight: 700; margin-right: .5rem; }
.hero__videotoggle {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; font-size: .8rem;
  backdrop-filter: blur(4px); z-index: 2;
}
.hero__videotoggle:hover { background: rgba(0,0,0,.55); }

/* ---------- Čísla ---------- */
.stats { background: var(--c-primary); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 2.25rem; padding-bottom: 2.25rem; gap: 1rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.1; }
.stat span { font-size: .95rem; opacity: .9; }
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; } }

/* ---------- Sekcie ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: #c5ccd6; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section__head p:last-child { color: var(--c-muted); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; text-align: left; flex-wrap: wrap; }

/* Podklad, kým sa obrázok načíta */
.card__img, .split__img, .gallery__item, .compare__frame { background-color: #3b4554; }

/* ---------- Karty služieb ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--c-muted); font-size: .95rem; }
.card__more { margin-top: auto; font-weight: 700; color: var(--c-primary); font-size: .92rem; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

/* ---------- Split (O nás) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 65% center; border-radius: var(--radius); }
.split__badge {
  position: absolute; right: -16px; bottom: 2rem; background: var(--c-primary); color: #fff;
  padding: 1.2rem 1.5rem; border-radius: var(--radius); font-weight: 600; max-width: 170px; line-height: 1.3; box-shadow: var(--shadow);
}
.split__badge strong { display: block; font-family: var(--font-head); font-size: 2.5rem; line-height: 1; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-size: .75rem; display: grid; place-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__img { aspect-ratio: 16 / 10; }
  .split__badge { right: 12px; }
}

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { position: relative; padding: 1.75rem 1.5rem; border-radius: var(--radius); background: var(--c-bg-alt); }
.step__num { display: block; font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--c-primary); opacity: .35; line-height: 1; margin-bottom: 1rem; }
.step p { color: var(--c-muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Galéria referencií ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 240px); gap: 1.25rem; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--big { grid-row: span 2; }
@media (max-width: 1024px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; grid-auto-rows: 220px; }
  .gallery__item--big { grid-column: span 2; grid-row: auto; }
}
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); transition: opacity .3s; }
.gallery__item:hover::after { opacity: .6; }
.gallery__caption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; font-size: .9rem; color: #dfe4ea; }
.gallery__caption strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .gallery__item--big { grid-column: auto; }
}

/* ---------- Pred / po porovnanie ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }
.compare { margin: 0; }
.compare figcaption { margin-top: .75rem; font-weight: 600; color: var(--c-dark); text-align: center; }
.compare__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; }
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__frame::after { /* deliaca čiara s úchytom */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.4); pointer-events: none;
}
.compare__frame::before {
  content: "⟷"; position: absolute; z-index: 2; top: 50%; left: var(--pos); width: 42px; height: 42px;
  transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--c-primary); font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.3); pointer-events: none;
}
.compare__tag {
  position: absolute; top: .75rem; z-index: 1; padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: rgba(15,20,28,.7);
}
.compare__tag--before { left: .75rem; }
.compare__tag--after { right: .75rem; background: var(--c-primary); }
.compare__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare__frame:has(.compare__range:focus-visible) { outline: 3px solid var(--c-primary); outline-offset: 3px; }

.testimonial { margin: 3.5rem auto 0; max-width: 760px; text-align: center; }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; color: #fff; line-height: 1.5; }
.testimonial figcaption { color: #9aa4b2; }
.testimonial figcaption strong { color: #f0a383; }

/* ---------- Partneri ---------- */
.partners { border-bottom: 1px solid var(--c-border); padding: 2.25rem 0; }
.partners__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.partners__inner p { margin: 0; color: var(--c-muted); font-size: .9rem; }
.partners__list { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.partners__list li { font-family: var(--font-head); font-weight: 800; letter-spacing: .08em; color: #a3abb6; }

/* ---------- CTA + formulár ---------- */
.cta { background: linear-gradient(135deg, var(--c-dark) 0%, #2d2420 100%); color: #c5ccd6; }
.cta h2 { color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cta__phone { display: inline-block; margin-top: .5rem; font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: #fff; text-decoration: none; }
.cta__phone::before { content: "📞 "; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } }

.form { background: #fff; color: var(--c-text); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--c-dark); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--c-border); border-radius: 8px; background: #fbfaf8; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: transparent; }
.form .form__check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--c-muted); }
.form__check input { width: auto; margin-top: .3rem; }

/* ---------- Pätička ---------- */
.footer { background: #131a23; color: #9aa4b2; font-size: .93rem; padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; }
.footer h4, .footer__title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer address { font-style: normal; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__about { margin-top: 1rem; max-width: 34ch; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #253040; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Plávajúce tlačidlo volania ---------- */
.callfab {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  padding: .9rem; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--c-primary); color: #fff; box-shadow: 0 8px 24px rgba(200,80,42,.4);
}
@media (max-width: 640px) {
  .callfab { display: block; }
  .footer { padding-bottom: 4.5rem; }
}

/* ---------- Animácie pri scrollovaní ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Podstránky
   ========================================================== */

/* ---------- Menší hero pre podstránky (video ostáva v pozadí) ---------- */
.hero--page { min-height: clamp(360px, 50vh, 500px); }
.hero--page .hero__content { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero--page .hero__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; margin-bottom: 1rem; }
.hero--page .hero__lead { margin-bottom: 0; }
.hero--page .hero__overlay {
  background:
    linear-gradient(90deg, rgba(13,18,26,.9) 0%, rgba(13,18,26,.7) 45%, rgba(13,18,26,.4) 100%),
    radial-gradient(ellipse at 85% 15%, rgba(200,80,42,.25) 0%, rgba(200,80,42,0) 55%);
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; font-size: .88rem; color: #aeb7c3; }
.breadcrumb a { text-decoration: none; color: #f0a383; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Výhody (ikony) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.75rem; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--c-muted); font-size: .95rem; margin: 0; }
.feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem;
  border-radius: 12px; background: rgba(200,80,42,.1); color: var(--c-primary);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Mozaika fotiek ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.mosaic__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #3b4554; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; font-weight: 600; font-size: .92rem;
}
@media (max-width: 960px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; } .mosaic__item--wide { grid-column: auto; } }

.partners--top { border-top: 1px solid var(--c-border); }

/* ---------- CTA pás ---------- */
.cta-band { background: var(--c-primary); color: #fff; padding: clamp(2.75rem, 5vw, 3.75rem) 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .35rem; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band__phone { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.btn--light { background: #fff; color: var(--c-primary-dark); }
.btn--light:hover { background: var(--c-dark); color: #fff; }

/* ---------- Podstránka Strechy ---------- */
.section--tight { padding: 2.5rem 0 0; }
.service-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.service-nav a {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700;
  color: var(--c-dark); line-height: 1.3; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-nav a:hover { border-color: var(--c-primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-nav__num { font-size: .8rem; color: var(--c-primary); letter-spacing: .1em; }
@media (max-width: 1024px) { .service-nav { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .service-nav { grid-template-columns: 1fr 1fr; } }

.service-block { scroll-margin-top: calc(var(--header-h) + 8px); }
.split__img--landscape { aspect-ratio: 4 / 3; }
@media (min-width: 861px) { .split--reverse .split__media { order: 2; } }

/* ==========================================================
   Spoločné doplnky (všetky podstránky)
   ========================================================== */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: .6rem 1rem; border-radius: 8px; background: var(--c-primary); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container--narrow { max-width: 860px; }
.muted { color: var(--c-muted); }
.section--alt-dark { background: var(--c-bg-alt); }
.features--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .features--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features--4 { grid-template-columns: 1fr; } }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps--3 { grid-template-columns: 1fr; } }
.footer__bottom { align-items: center; }
.footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.25rem 1.1rem 1.4rem; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--c-dark);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1; color: var(--c-primary); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 1.4rem 1.25rem; color: var(--c-muted); }

/* ---------- Referencie – filter + mriežka ---------- */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter__btn {
  font: inherit; font-weight: 600; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--c-border); background: transparent; color: var(--c-text); transition: .2s;
}
.filter__btn:hover { border-color: var(--c-primary); }
.filter__btn.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.work { margin: 0; }
.work[hidden] { display: none; }
.work__link { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #3b4554; }
.work__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work__link:hover img { transform: scale(1.06); }
.work figcaption { margin-top: .5rem; font-size: .88rem; color: var(--c-muted); line-height: 1.4; }
@media (max-width: 1024px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .works { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(5, 8, 12, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox__img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; }
.lightbox__caption { margin-top: .8rem; color: #dfe4ea; }
.lightbox__close, .lightbox__nav {
  position: fixed; z-index: 2; display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-primary); }
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 600px) { .lightbox__nav { top: auto; bottom: 16px; transform: none; } }

/* ---------- Recenzie ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review { margin: 0; padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); }
.review__stars { color: #e0a43c; letter-spacing: .15em; margin-bottom: .75rem; }
.review blockquote { margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.review figcaption { font-size: .9rem; color: var(--c-muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact__form { scroll-margin-top: calc(var(--header-h) + 16px); }
.contact__list { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: .75rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.contact-card .feature__icon { margin: 0; flex-shrink: 0; width: 46px; height: 46px; }
.contact-card__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.contact-card__value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--c-dark); text-decoration: none; word-break: break-word; }
a.contact-card__value:hover { color: var(--c-primary); }
.company h3 { font-size: 1rem; margin-bottom: .75rem; }
.company dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: 0; font-size: .92rem; }
.company dt { color: var(--c-muted); }
.company dd { margin: 0; }
.form__title { font-size: 1.4rem; margin-bottom: .25rem; }
.form__note { margin: 0; font-size: .8rem; color: var(--c-muted); }

/* ---------- Textová stránka (GDPR) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--c-primary); }
.prose__note { font-size: .88rem; color: var(--c-muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.notfound__inner { max-width: 640px; }
.notfound__code {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 18vw, 10rem); line-height: 1; margin: 0 0 1rem;
  color: var(--c-primary);
}
.notfound h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.notfound .hero__actions { justify-content: center; margin: 2rem 0 0; }

/* ---------- Masonry galéria (Referencie) ---------- */
.masonry { columns: 4 240px; column-gap: 1rem; }
.masonry__item {
  display: block; margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius);
  overflow: hidden; background: #3b4554; cursor: zoom-in;
}
.masonry__item img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.masonry__item:hover img { transform: scale(1.04); opacity: .9; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hlášky formulára + ochrana proti spamu ---------- */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { padding: .9rem 1.1rem; border-radius: 8px; font-size: .95rem; line-height: 1.5; }
.form__msg--ok { background: rgba(46, 160, 90, .12); border: 1px solid rgba(46, 160, 90, .5); color: #1f7a45; }
.form__msg--err { background: rgba(200, 60, 42, .1); border: 1px solid rgba(200, 60, 42, .5); color: #a43f1f; }
.form__error { display: block; font-size: .82rem; font-weight: 500; color: #c8402a; }
.form { position: relative; }
.form__check span { flex: 1; }
