/* ==========================================================================
   Ručné výkopové práce — Marián Ištok
   Design system + homepage components
   Autor: mpify · https://mpify.sk
   Paleta: teplá zemitá čierna + krémová + stavebná amber
   Typografia: Archivo (display) + Inter (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
  /* Farby */
  --ink: #17140F;          /* teplá čierna zemina — hlavný text, tmavé sekcie */
  --ink-2: #241F18;        /* tmavý povrch — CTA pás, footer */
  --stone: #5C5449;        /* sekundárny text */
  --cream: #F6F3EE;        /* teplé svetlé pozadie stránky */
  --surface: #FFFFFF;      /* karty */
  --line: #E6E0D6;         /* hairline bordery */
  --amber: #F5A524;        /* akcent — CTA, zvýraznenia */
  --amber-600: #DB8B0B;    /* hover */
  --amber-050: #FDF3DF;    /* jemné amber pozadia */
  --amber-ink: #8A5A00;    /* amber ako TEXT/linka na svetlom pozadí (kontrast ≥4.5:1 na #FFF aj #F6F3EE) */
  --focus: #2563EB;        /* focus ring (len a11y) */

  /* Text na tmavom */
  --on-dark: #F6F3EE;
  --on-dark-dim: rgba(246, 243, 238, 0.72);
  --on-dark-line: rgba(246, 243, 238, 0.16);

  /* Rádiusy */
  --r-card: 16px;
  --r-btn: 12px;
  --r-chip: 8px;
  --r-img: 14px;

  /* Tiene (teplé, žiadne modrasté) */
  --sh-sm: 0 1px 2px rgba(23, 20, 15, 0.05), 0 2px 8px rgba(23, 20, 15, 0.06);
  --sh-md: 0 8px 24px rgba(23, 20, 15, 0.10);
  --sh-lg: 0 24px 56px rgba(23, 20, 15, 0.16);

  /* Typografia */
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Fluid type scale */
  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lg: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  --fs-h4: clamp(1.1rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.3rem, 1.12rem + 0.9vw, 1.85rem);
  --fs-h2: clamp(1.9rem, 1.42rem + 2.1vw, 3rem);
  --fs-h1: clamp(2.35rem, 1.55rem + 3.6vw, 4.5rem);

  /* Rytmus */
  --space-section: clamp(4rem, 10vw, 7.5rem);
  --container-pad: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1200px;
  --gap: clamp(1.5rem, 3vw, 2rem);

  /* Header */
  --header-h: 72px;

  /* Prechody */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* iOS overflow guard */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

:where(h1) { letter-spacing: -0.025em; }

p { text-wrap: pretty; }

::selection { background: var(--amber); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. A11y — focus + skip
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: var(--r-btn);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

.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;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }

.section--surface { background: var(--surface); }

/* Section header block */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--amber); }

.section-title { font-size: var(--fs-h2); }

.section-lead {
  margin-top: 1rem;
  font-size: var(--fs-lg);
  color: var(--stone);
  max-width: 60ch;
}
.section--dark .section-lead { color: var(--on-dark-dim); }
.section-head--center .section-lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Tlačidlá
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.75rem;
  --btn-px: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(245, 165, 36, 0.28);
}
.btn-primary:hover { background: var(--amber-600); box-shadow: 0 10px 22px rgba(219, 139, 11, 0.34); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(23, 20, 15, 0.04); }

/* Ghost na tmavom pozadí */
.on-dark .btn-ghost, .section--dark .btn-ghost, .cta-band .btn-ghost {
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}
.on-dark .btn-ghost:hover, .section--dark .btn-ghost:hover, .cta-band .btn-ghost:hover {
  border-color: var(--on-dark);
  background: rgba(246, 243, 238, 0.08);
}

.btn-lg {
  --btn-py: 1rem;
  --btn-px: 1.75rem;
  min-height: 54px;
  font-size: 1.05rem;
}

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   6. Header + nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

/* Overlay variant (homepage nad tmavým hero) */
.site-header--overlay {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  color: var(--on-dark);
}
.site-header--overlay.is-scrolled {
  background: rgba(246, 243, 238, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
  color: var(--ink);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Značka / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
  line-height: 1.05;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--amber);
  color: var(--ink);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 165, 36, 0.3);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { display: flex; flex-direction: column; }
.brand__name b { font-size: 1.02rem; font-weight: 800; }
.brand__name span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.site-header--overlay:not(.is-scrolled) .brand__name span { color: var(--amber); }

/* Navigácia */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
  font-weight: 600;
  font-size: 0.975rem;
  color: inherit;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.35rem; right: 0.35rem;
  bottom: 14px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Telefónne tlačidlo v hlavičke */
.btn-phone {
  --btn-px: 1rem;
  gap: 0.5rem;
}
.btn-phone .btn-phone__num { font-variant-numeric: tabular-nums; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  color: inherit;
}
.nav-toggle:hover { background: rgba(23, 20, 15, 0.06); }
.site-header--overlay:not(.is-scrolled) .nav-toggle:hover { background: rgba(246, 243, 238, 0.12); }
.nav-toggle__bars { position: relative; width: 22px; height: 16px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), top var(--t);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }

/* Backdrop pre mobilné menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 20, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}

/* --------------------------------------------------------------------------
   Mobilné menu (< 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    background: var(--cream);
    border-left: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    color: var(--ink);
    transform: translateX(100%);
    visibility: hidden; /* zatvorené menu mimo obrazovky sa nedá tabovať */
    transition: transform var(--t), visibility 0s linear var(--t);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav__link {
    min-height: 52px;
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
    padding-inline: 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }

  .nav__cta {
    margin-top: auto;
    padding-top: 1.5rem;
    display: grid;
    gap: 0.6rem;
  }

  body.nav-open .nav { transform: translateX(0); visibility: visible; transition: transform var(--t), visibility 0s; }
  body.nav-open .menu-backdrop { opacity: 1; visibility: visible; }

  /* Hamburger → X */
  body.nav-open .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  body.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
}

@media (min-width: 900px) {
  .nav__cta { display: none; }
}

/* Kompaktnejšia značka + skrytie čísla na veľmi malých displejoch */
@media (max-width: 520px) {
  .brand__mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand__mark svg { width: 22px; height: 22px; }
  .brand__name b { font-size: 0.92rem; }
}
@media (max-width: 400px) {
  .brand__name span { display: none; }
}
@media (max-width: 380px) {
  .btn-phone .btn-phone__num { display: none; }
  .btn-phone { --btn-px: 0.85rem; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(580px, 90vh, 840px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  isolation: isolate;
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 20, 15, 0.82) 0%, rgba(23, 20, 15, 0.42) 46%, rgba(23, 20, 15, 0.12) 78%),
    linear-gradient(0deg, rgba(23, 20, 15, 0.72) 0%, rgba(23, 20, 15, 0.10) 46%, rgba(23, 20, 15, 0.30) 100%);
}

.hero__inner { max-width: 46rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-chip);
  background: rgba(23, 20, 15, 0.55);
  border-left: 3px solid var(--amber);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  margin-bottom: 1.4rem;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.25);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 900;
  color: var(--on-dark);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__title .accent { color: var(--amber); }

.hero__lead {
  margin-top: 1.35rem;
  font-size: var(--fs-lg);
  color: var(--on-dark);
  max-width: 40ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Mikro-trust riadok */
.hero__trust {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 243, 238, 0.16);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.trust-item svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   8. Služby
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--amber-050);
  color: var(--amber-600);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 28px; height: 28px; }

.service-card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card__text {
  color: var(--stone);
  font-size: 0.975rem;
}

/* --------------------------------------------------------------------------
   9. Split — „Prečo my" (about.webp + výhody)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-left .split__media { order: -1; }
}

.split__media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.split__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: rgba(23, 20, 15, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.split__badge svg { width: 20px; height: 20px; color: var(--amber); }

.adv-list {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.75rem;
}
.adv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.adv__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-050);
  color: var(--amber-600);
  flex-shrink: 0;
}
.adv__icon svg { width: 22px; height: 22px; }
.adv__title { font-size: 1.075rem; font-weight: 700; margin-bottom: 0.15rem; }
.adv__text { color: var(--stone); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   10. Realizácie — dlaždice
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.work-tile {
  position: relative;
  display: block;
  border-radius: var(--r-img);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-sm);
  color: var(--on-dark);
  isolation: isolate;
}
.work-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 500ms cubic-bezier(0.2, 0, 0.2, 1);
}
.work-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.86) 0%, rgba(23, 20, 15, 0.28) 48%, rgba(23, 20, 15, 0.05) 100%);
  transition: background var(--t);
}
.work-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.work-tile__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--on-dark);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.work-tile__count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(246, 243, 238, 0.16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 0.78rem;
  font-weight: 600;
}
.work-tile__arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t);
}
.work-tile__arrow svg { width: 20px; height: 20px; }
.work-tile:hover .work-tile__img { transform: scale(1.06); }
.work-tile:hover .work-tile__overlay { background: linear-gradient(0deg, rgba(23, 20, 15, 0.9) 0%, rgba(23, 20, 15, 0.4) 55%, rgba(23, 20, 15, 0.15) 100%); }
.work-tile:hover .work-tile__arrow, .work-tile:focus-visible .work-tile__arrow { opacity: 1; transform: translateY(0); }

.work-cta { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; }

/* --------------------------------------------------------------------------
   11. Proces — číslované kroky
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 0.5rem;
}
.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.section--dark .step__num { background: var(--amber); color: var(--ink); }
.step__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.4rem; }
.step__text { color: var(--stone); font-size: 0.95rem; }
.section--dark .step__text { color: var(--on-dark-dim); }

/* Spojnica medzi krokmi (desktop) — bodkovaná „dig line" premostí medzeru medzi číslami.
   Ukotvená k .step (má position:relative), nie k 52px číslu (tam by width vyšla 0). */
@media (min-width: 720px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(0.5rem + 26px);
    left: 66px;
    right: -1rem;
    border-top: 2px dotted var(--amber);
  }
  .section--dark .step:not(:last-child)::after {
    border-top-color: var(--on-dark-line);
  }
}

/* --------------------------------------------------------------------------
   12. CTA pás (tmavý)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--ink-2);
  color: var(--on-dark);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(245, 165, 36, 0.16), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(245, 165, 36, 0.08), transparent 55%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
}
.cta-band__title { font-size: var(--fs-h2); color: var(--on-dark); }
.cta-band__lead { margin-top: 0.85rem; color: var(--on-dark-dim); font-size: var(--fs-lg); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta-band__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--on-dark-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-band__note svg { width: 16px; height: 16px; color: var(--amber); }

/* --------------------------------------------------------------------------
   13. Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 1.9rem);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--amber-050);
  color: var(--amber-600);
  margin-bottom: 0.75rem;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--stone);
}
.contact-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.25;
}
a.contact-card__value:hover { color: var(--amber-ink); }
.contact-card__sub { font-size: 0.9rem; color: var(--stone); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-dim);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
}
.footer__brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer__brand .brand__name b { color: var(--on-dark); }
.footer__brand .brand__name span { color: var(--amber-600); } /* amber na TMAVOM footeri = OK (nechať jasnejší odtieň) */
.footer__desc { max-width: 40ch; font-size: 0.95rem; }
.footer__region {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--on-dark-dim);
}
.footer__region svg { width: 18px; height: 18px; color: var(--amber); }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-nav { display: grid; gap: 0.6rem; }
.footer-nav a, .footer-contact a {
  color: var(--on-dark-dim);
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--amber); }
.footer-contact { display: grid; gap: 0.7rem; font-size: 0.95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* mpify kredit — presné tokeny podľa briefu */
.mpify-credit {
  color: var(--stone);
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  transition: color var(--t-fast);
}
.mpify-credit:hover { color: var(--on-dark); }
.mpify-badge {
  background: #CBFF00;
  color: #060609;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   15. Lightbox (realizacie.html) — pripravené markup/štýly
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(23, 20, 15, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t);
}
.lightbox.is-open { display: flex; opacity: 1; }

.lightbox__figure {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82dvh;
  width: auto;
  height: auto;
  border-radius: var(--r-img);
  box-shadow: var(--sh-lg);
  object-fit: contain;
}
.lightbox__caption {
  color: var(--on-dark-dim);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(246, 243, 238, 0.14);
  color: var(--on-dark);
  border: 1px solid rgba(246, 243, 238, 0.2);
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__btn:hover { background: var(--amber); color: var(--ink); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: -4px; right: -4px; }
.lightbox__prev { left: -4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -4px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox__counter {
  position: absolute;
  top: -4px;
  left: -4px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.6);
  color: var(--on-dark);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .lightbox__prev { left: -4px; }
  .lightbox__next { right: -4px; }
  .lightbox__btn { width: 44px; height: 44px; }
}

/* Trigger dlaždica v galérii (realizacie) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
}
.gallery-item {
  display: block;
  border-radius: var(--r-img);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
  cursor: zoom-in;
  box-shadow: var(--sh-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.gallery-item:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   15b. Realizácie — intro, kategórie, kotviace taby
   -------------------------------------------------------------------------- */
/* Kotviace taby na kategórie (prístupné odkazy, ≥44px) */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color var(--t-fast), color var(--t-fast),
              background var(--t-fast), box-shadow var(--t-fast);
}
.cat-tab:hover {
  border-color: var(--amber-600);
  color: var(--amber-ink);
  box-shadow: var(--sh-sm);
}
.cat-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--amber-050);
  color: var(--amber-ink);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Blok kategórie + hlavička */
.gallery-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.gallery-block + .gallery-block { margin-top: clamp(3rem, 6vw, 5rem); }
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.cat-head__title { font-size: var(--fs-h3); font-weight: 700; }
.cat-head__count {
  flex-shrink: 0;
  color: var(--stone);
  font-weight: 600;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   15c. Kontaktná stránka — hlavička podstránky, rozloženie, formulár, mapa
   -------------------------------------------------------------------------- */
/* Hlavička podstránky (svetlá — bez tmavého hero, solídny header je sticky) */
.page-head {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-head .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 1rem;
}
.page-head .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head .breadcrumb a:hover { color: var(--amber-ink); }
.page-head .breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }
.page-head h1 { font-size: var(--fs-h1); }
.page-head .page-head__lead {
  margin-top: 1rem;
  font-size: var(--fs-lg);
  color: var(--stone);
  max-width: 54ch;
}

/* Rozloženie: kontaktné info (vľavo) + formulár (vpravo) */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
@media (min-width: 940px) {
  .contact-layout { grid-template-columns: 0.95fr 1.05fr; }
}

/* Dominantná karta telefónu (amber) + zvyšné kanály */
.contact-stack { display: grid; gap: 1rem; }
.contact-phone {
  display: block;
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3.5vw, 2.1rem);
  box-shadow: 0 12px 30px rgba(245, 165, 36, 0.28);
  transition: transform var(--t), box-shadow var(--t);
}
.contact-phone:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(219, 139, 11, 0.34); }
.contact-phone__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.contact-phone__label svg { width: 18px; height: 18px; }
.contact-phone__num {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.contact-phone__sub { margin-top: 0.55rem; font-size: 0.92rem; font-weight: 600; }

.contact-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--sh-sm);
}
.contact-mini__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--amber-050);
  color: var(--amber-600);
}
.contact-mini__icon svg { width: 22px; height: 22px; }
.contact-mini__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--stone);
}
.contact-mini__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}
a.contact-mini__value:hover { color: var(--amber-ink); }
.contact-mini__sub { font-size: 0.88rem; color: var(--stone); }

/* --- Formulár --- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--sh-md);
}
.form-card__title { font-size: var(--fs-h3); font-weight: 800; }
.form-card__lead { margin-top: 0.5rem; color: var(--stone); font-size: 0.975rem; }

.form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.4rem; }
.field__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.field__label .req { color: var(--amber-ink); }
.field__input,
.field__textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field__textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
.field__input::placeholder,
.field__textarea::placeholder { color: #9a9186; }
.field__input:hover,
.field__textarea:hover { border-color: #c9c0b2; }
.field__input:focus,
.field__textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.22);
}
/* Natívna validácia — až po pokuse o odoslanie */
.form.was-validated .field__input:invalid,
.form.was-validated .field__textarea:invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14);
}

/* Honeypot — skryté pole (nie display:none, aby ho boty vyplnili) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--stone);
}
.form__consent input {
  margin-top: 0.15rem;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--amber-600);
}
.form__consent a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 2px; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.form__hint {
  font-size: 0.82rem;
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.form__hint svg { width: 15px; height: 15px; color: var(--amber-600); }

/* Stavové hlásenie (úspech / chyba) */
.form-alert {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-btn);
  font-size: 0.95rem;
  border: 1.5px solid transparent;
}
.form-alert.is-visible { display: flex; }
.form-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.form-alert--ok {
  background: #ecf7ec;
  border-color: #b9e0b9;
  color: #1e5a2a;
}
.form-alert--err {
  background: #fdecea;
  border-color: #f3c0ba;
  color: #a52c1c;
}

/* Mapa — pomer strán, lazy iframe, bez cudzích cookies */
.map-wrap {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  background: var(--line);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
}
.map-fallback {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--stone);
}
.map-fallback a { color: var(--amber-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Utility
   -------------------------------------------------------------------------- */
.u-amber { color: var(--amber-600); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }

/* Body lock (mobilné menu / lightbox) */
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   17. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .work-tile:hover .work-tile__img { transform: none; }
}
