/* ==========================================================================
   HIMM Building s.r.o. — Design System
   Style: Swiss / minimalist · Light theme · Logo-red accent
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --accent:        #BE1E2D;   /* exact logo red */
  --accent-dark:   #991824;   /* hover/pressed */
  --accent-tint:   #FBEAEC;   /* soft red wash */
  --on-accent:     #FFFFFF;

  /* Neutrals (graphite + warm concrete) */
  --ink:    #14181C;
  --ink-2:  #3A4047;
  --muted:  #6B7280;
  --line:   #E5E2DD;
  --bg:     #FFFFFF;
  --bg-2:   #F2F0ED;   /* warm concrete */
  --bg-3:   #E8E5E0;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid scale */
  --fs-hero:  clamp(2.05rem, 1.2rem + 3.4vw, 3.7rem);
  --fs-h2:    clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  --fs-h3:    clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-lead:  clamp(1.05rem, 0.98rem + 0.45vw, 1.25rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;

  /* Layout */
  --container: 1200px;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 18px 50px rgba(15,23,42,.14);
  --header-h:  76px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset -------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
strong, b { font-weight: 600; color: var(--ink); }

/* ---- Helpers ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.section--alt { background: var(--bg-2); }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--accent); display:inline-block; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem,1rem + 3vw,3.2rem); }
.section-head h2 { font-size: var(--fs-h2); margin: .8rem 0 .6rem; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.center { text-align: center; margin-inline: auto; }

/* Monospace technical label */
.label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label--accent { color: var(--accent); }
.label--light { color: rgba(255,255,255,.75); }
/* Registration / crop marks */
.ticked { position: relative; }
.ticked::before, .ticked::after { content:""; position:absolute; width:12px; height:12px; pointer-events:none; }
.ticked::before { top:0; left:0; border-top:2px solid var(--accent); border-left:2px solid var(--accent); }
.ticked::after { bottom:0; right:0; border-bottom:2px solid var(--accent); border-right:2px solid var(--accent); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), border-color .2s;
  min-height: 48px; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-2); transform: translateY(-2px); }
.btn--outline-accent { background: transparent; color: #fff; border: 1.5px solid var(--accent); }
.btn--outline-accent:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; min-height: 54px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-2);
  padding: .55rem .8rem; border-radius: 7px; transition: color .2s, background .2s; position: relative;
}
.nav a:hover { color: var(--accent); background: var(--accent-tint); }

/* Language flags */
.lang { display: flex; align-items: center; gap: .15rem; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px; border-radius: 6px; font-size: 1.15rem; line-height: 1;
  filter: grayscale(.4) opacity(.8); transition: filter .2s, transform .15s, background .2s;
}
.lang a:hover { filter: none; transform: translateY(-1px); background: var(--bg-2); }
.lang a[aria-current="true"] { filter: none; background: var(--bg-3); box-shadow: inset 0 0 0 2px var(--accent); }
.lang a img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.header .btn--primary { padding: .7rem 1.15rem; min-height: 44px; }
.header__call { padding: .6rem 1rem; min-height: 44px; }
.header__call svg { width: 16px; height: 16px; }
.burger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 8px; }
.burger:hover { background: var(--bg-2); }
.burger svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ==========================================================================
   Hero — service slider (the hero IS the services switcher)
   ========================================================================== */
.hero { position: relative; color: #fff; isolation: isolate; background: var(--ink); overflow: hidden;
  margin: clamp(.5rem,1.4vw,1.1rem); border-radius: clamp(16px,2.2vw,26px); }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(20,24,28,.94) 0%, rgba(20,24,28,.8) 40%, rgba(20,24,28,.35) 75%, rgba(20,24,28,.55) 100%); }
.hero__slide.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* faint technical grid */
.hero__grid { position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px; }

.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: clamp(560px, 82vh, 820px); padding-block: clamp(2.5rem,2rem + 4vw,4rem);
  /* On wide screens the centered container leaves a large empty band on the left.
     Pull the hero content left by a fraction of that band (auto-disables <=1200px). */
  transform: translateX(min(0px, calc((var(--container) - 100vw) / 2 * 0.6))); }
.hero__top { display: flex; justify-content: space-between; align-items: center; }
.hero__counter { font-family: var(--font-mono); color: #fff; font-size: .8rem; letter-spacing: .1em; }
.hero__counter b { color: var(--accent); font-size: 1.05rem; }
.hero__body { margin-top: auto; max-width: 720px; }
.hero__kicker { display:inline-flex; gap:.6rem; align-items:center; margin-bottom: 1.2rem; }
.hero__kicker .dot { width:7px;height:7px;background:var(--accent);border-radius:0;transform:rotate(45deg); }
.hero h1 { color: #fff; font-size: var(--fs-hero); font-weight: 700; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 1.4rem; max-width: 23ch; }
.hero__desc { font-family: var(--font-mono); font-size: .95rem; color: #d7dbe0; max-width: 440px; margin-bottom: 2rem; line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items:center; }
.hero__phone { font-family: var(--font-head); font-weight:600; color:#fff; display:inline-flex; align-items:center; gap:.5rem; padding:.6rem .4rem; }
.hero__phone:hover { color: #fff; }
.hero__phone svg { width:18px;height:18px; }

/* Slide tabs = service navigation */
.hero__tabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(2rem,4vw,3rem); border-top: 1px solid rgba(255,255,255,.2); }
.hero__tab { text-align: left; padding: 1.3rem 1.4rem 1.3rem 0; color: rgba(255,255,255,.6); position: relative; transition: color .25s; }
.hero__tab:not(:last-child) { border-right: 1px solid rgba(255,255,255,.12); padding-left: 0; }
.hero__tab { padding-left: clamp(0px, 2vw, 1.5rem); }
.hero__tab:first-child { padding-left: 0; }
.hero__tab .num { font-family: var(--font-mono); font-size: .75rem; display:block; margin-bottom:.35rem; }
.hero__tab .name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.hero__tab:hover { color: #fff; }
.hero__tab[aria-selected="true"] { color: #fff; }
.hero__tab[aria-selected="true"] .num { color: var(--accent); }
.hero__tab::after { content:""; position:absolute; top:-1px; left:0; height:2px; width:0; background:var(--accent); }
.hero__tab[aria-selected="true"]::after { width:100%; transition: width 5s linear; }
.hero[data-paused="true"] .hero__tab[aria-selected="true"]::after { transition: none; width:100%; }

@media (max-width: 720px) {
  .hero__tabs { grid-template-columns: 1fr; border-top: none; }
  .hero__tab { border-top: 1px solid rgba(255,255,255,.15); border-right: none !important; padding: 1rem 0 !important; display:flex; gap:.8rem; align-items:baseline; }
  .hero__tab .num { margin-bottom:0; }
  .hero__desc { max-width: none; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { --logo-h: clamp(30px, 3.4vw, 44px); background: var(--bg); border-bottom: 1px solid var(--line); }
.trust p { font-family: var(--font-head); font-size: var(--fs-sm); color: var(--muted); letter-spacing: .04em; }

/* Plynulý nekonečný pás. Druhá sada log v HTML je vizuálna kópia (aria-hidden),
   vďaka nej posun o -50 % nadviaže presne na začiatok a slučka nepreskočí.
   Rozostup je padding na položkách, nie gap — inak by medzi sadami vznikla medzera navyše. */
.marquee { overflow: hidden; padding-block: 1.8rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content;
  animation: trust-scroll 42s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.trust li { display: flex; align-items: center; justify-content: center;
  padding-inline: clamp(1.75rem, 4vw, 4rem); }
.trust li img { height: var(--logo-h); width: auto; object-fit: contain;
  opacity: .55; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.trust li:hover img { opacity: 1; filter: none; }
/* Bijou Brigitte PNG má okolo znaku veľa vzduchu, preto väčšia mierka a optické dorovnanie */
.trust li img.logo--bb { height: calc(var(--logo-h) * 1.53); transform: translateY(calc(var(--logo-h) * -.27)); }

/* Bez animácie: pás sa dá posúvať prstom/kolieskom */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Services — compact editorial index (rows, not big cards)
   ========================================================================== */
.svc { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.svc__head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.svc__head h2 { font-size: var(--fs-h2); margin: .7rem 0 1rem; }
.svc__head p { color: var(--muted); }
.svc__list { border-top: 1px solid var(--accent); }
.svc__row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center;
  padding: 1.5rem .5rem; border-bottom: 1px solid var(--accent); position: relative; transition: padding-left .25s var(--ease); }
.svc__row .num { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); align-self: start; padding-top: .35rem; transition: color .25s; }
.svc__row h3 { font-size: 1.35rem; margin-bottom: .35rem; transition: transform .25s var(--ease); }
.svc__row p { color: var(--muted); font-size: .95rem; max-width: 52ch; }
.svc__pillar { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--accent); border: 1px solid var(--accent); padding: .1rem .4rem; border-radius: 0; margin-left: .6rem; vertical-align: middle; white-space: nowrap; }
.svc__arrow { width: 42px; height: 42px; border: 1.5px solid var(--line); display: grid; place-items: center; border-radius: 50%; transition: all .25s var(--ease); flex: none; }
.svc__arrow svg { width: 18px; height: 18px; stroke: var(--ink); transition: transform .25s; }
.svc__row::before { content:""; position:absolute; left:-.5rem; top:0; bottom:0; width:3px; background:var(--accent); transform:scaleY(0); transition: transform .25s var(--ease); }
.svc__row:hover { padding-left: 1.3rem; }
.svc__row:hover::before { transform: scaleY(1); }
.svc__row:hover .num { color: var(--accent); }
.svc__row:hover h3 { transform: translateX(2px); }
.svc__row:hover .svc__arrow { background: var(--accent); border-color: var(--accent); }
.svc__row:hover .svc__arrow svg { stroke: #fff; transform: translateX(2px); }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc__head { position: static; }
  .svc__row { grid-template-columns: auto 1fr; }
  .svc__arrow { display: none; }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink-2);
  padding: .55rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--line); background: #fff;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.1rem; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.1) 55%, transparent 100%); }
.project__meta { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1.25rem; color: #fff; transform: translateY(.4rem); transition: transform .3s var(--ease); }
.project__cat { font-family: var(--font-head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--accent); padding: .25rem .6rem; border-radius: 4px; display: inline-block; margin-bottom: .55rem; }
.project__meta h3 { color: #fff; font-size: 1.2rem; }
.project__meta span { font-size: .88rem; color: #cbd5e1; }
.project:hover img { transform: scale(1.06); }
.project:hover .project__meta { transform: translateY(0); }
.project.is-hidden { display: none; }
.project--gallery { cursor: pointer; }
.project__zoom { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.project--gallery:hover .project__zoom, .project--gallery:focus-visible .project__zoom { opacity: 1; transform: scale(1); }
.project__zoom svg { width: 19px; height: 19px; stroke: var(--ink); }
.project__count { position: absolute; top: .75rem; right: .75rem; z-index: 3; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(20,24,28,.7); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .8rem; line-height: 1;
  padding: .34rem .6rem .34rem .5rem; border-radius: 100px; backdrop-filter: blur(3px); box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.project__count svg { width: 15px; height: 15px; stroke: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,18,22,.94); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: clamp(1rem,4vw,3rem); }
.lightbox.open { display: flex; }
.lightbox__stage { margin: 0; max-width: 1100px; display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__cap { color: #cbd5e1; font-family: var(--font-mono); font-size: .82rem; text-align: center; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; color: #fff; border-radius: 8px; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255,255,255,.14); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; color: #fff;
  border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: clamp(.5rem,2vw,2rem); }
.lightbox__next { right: clamp(.5rem,2vw,2rem); }
.lightbox__nav svg, .lightbox__close svg { width: 26px; height: 26px; }
.lightbox__counter { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--font-mono); font-size: .85rem; }
.lightbox.single .lightbox__nav, .lightbox.single .lightbox__counter { display: none; }
@media (max-width: 640px) { .lightbox__nav { width: 42px; height: 42px; } }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img:not(.about__logo) { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about__logo-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  aspect-ratio: 4/3.4; padding: clamp(1.5rem, 4%, 2.5rem); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line); overflow: hidden; }
.about__logo-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%); mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%); }
.about__logo { position: relative; width: 100%; max-width: 440px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.about__logo-tagline { position: relative; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.about__badge { position: absolute; right: -10px; bottom: -22px; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); }
.about__badge b { font-family: var(--font-head); font-size: 2.4rem; display: block; line-height: 1; }
.about__badge span { font-size: .82rem; opacity: .9; }
.about h2 { font-size: var(--fs-h2); margin: .8rem 0 1.1rem; }
.about p { color: var(--muted); margin-bottom: 1rem; }
.about__pillars { display: grid; gap: 1rem; margin: 1.6rem 0; }
.pillar { display: flex; gap: .9rem; align-items: flex-start; }
.pillar svg { flex: none; width: 24px; height: 24px; stroke: var(--accent); margin-top: 2px; }
.pillar b { color: var(--ink); font-family: var(--font-head); }
.about__reach { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.about__reach span { font-size: .85rem; background: var(--bg-3); color: var(--ink-2); padding: .35rem .8rem; border-radius: 100px; font-weight: 500; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 1.5rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.quote__mark { font-family: var(--font-head); font-size: 4rem; line-height: .6; color: var(--accent-tint); position: absolute; top: 1.2rem; right: 1.6rem; }
.quote p { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 1.4rem; position: relative; }
.quote__by { display: flex; align-items: center; gap: .85rem; }
.quote__by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote__by b { font-family: var(--font-head); color: var(--ink); display: block; }
.quote__by span { font-size: .85rem; color: var(--muted); }
.stars { display: flex; gap: 2px; margin-bottom: .8rem; }
.stars svg { width: 18px; height: 18px; fill: var(--accent); }

/* ==========================================================================
   Pricing CTA band
   ========================================================================== */
.cta-band { background: var(--ink); color: #fff; border-radius: clamp(16px,3vw,28px);
  padding: clamp(2.2rem,1.6rem + 3vw,3.5rem) clamp(1.8rem,1.4rem + 3vw,3.5rem);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: clamp(1.6rem,4vw,3.5rem); align-items: center; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 88% 0%, rgba(190,30,45,.45), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band .label { display: block; margin-bottom: .8rem; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: .8rem; max-width: 16ch; }
.cta-band p { color: #cbd5e1; margin: 0; font-size: 1.02rem; max-width: 50ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; }
.cta-band__actions .btn { width: 100%; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band__actions .btn { width: auto; flex: 1; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); }
.contact__info { display: grid; gap: 1.4rem; align-content: start; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; }
.cinfo__ic { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--accent-tint); display: grid; place-items: center; }
.cinfo__ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.cinfo b { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: .15rem; }
.cinfo a, .cinfo p { color: var(--muted); }
.cinfo a:hover { color: var(--accent); }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.h-captcha { margin-bottom: 1.1rem; }

/* ==========================================================================
   Inner page header
   ========================================================================== */
.pagehead { padding: clamp(2.5rem,2rem + 4vw,4.5rem) 0 clamp(1.5rem,1rem + 2vw,2.5rem); border-bottom: 1px solid var(--line); }
.pagehead .label { display: inline-block; margin-bottom: .9rem; }
.pagehead h1 { font-size: var(--fs-h2); max-width: 16ch; }
.pagehead p { color: var(--muted); font-size: var(--fs-lead); max-width: 60ch; margin-top: .9rem; }

/* Service detail rows */
.svc-details { display: grid; gap: clamp(2.5rem,2rem + 4vw,5rem); }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; scroll-margin-top: calc(var(--header-h) + 2.75rem); }
.svc-detail__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.svc-detail__text .label { display: inline-block; margin-bottom: .7rem; }
.svc-detail__text h2 { font-size: clamp(1.5rem,1.2rem + 1.4vw,2rem); margin-bottom: .9rem; }
.svc-detail__text p { color: var(--muted); margin-bottom: 1.1rem; }
.svc-detail__text .btn { margin-top: .4rem; }
.svc-detail--rev .svc-detail__media { order: 2; }
ul.ticks { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
ul.ticks li { position: relative; padding-left: 1.8rem; color: var(--ink-2); font-size: .96rem; }
ul.ticks li::before { content:""; position:absolute; left:0; top:.5em; width:9px; height:9px; background:var(--accent); transform: rotate(45deg); }
@media (max-width: 800px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail--rev .svc-detail__media { order: -1; }
}

/* Legal prose */
.prose { max-width: 760px; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; }

/* Map */
.map iframe { display:block; filter: grayscale(.2); }

/* 404 */
.error404 { text-align: center; }
.error404 .label { display: inline-block; margin-bottom: 1rem; }
.error404__num { font-family: var(--font-head); font-weight: 700; line-height: .82; letter-spacing: -.04em;
  font-size: clamp(6rem, 3rem + 20vw, 15rem); color: var(--accent); }
.error404 h1 { font-size: var(--fs-h2); margin: .25rem 0 1rem; }
.error404__lead { color: var(--muted); font-size: var(--fs-lead); max-width: 52ch; margin: 0 auto 2rem; }
.error404__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #cbd5e1; padding-block: clamp(4rem,3rem + 4vw,6rem) 2rem; margin-top: clamp(1rem,3vw,2rem); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: clamp(1.5rem,3vw,3rem); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { height: 44px; margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; max-width: 340px; line-height: 1.6; }
.footer h4 { color: #fff; font-size: .8rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .5rem; }
.footer li { font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .85rem; color: #94a3b8; }
.footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Mobile sticky call bar
   ========================================================================== */
.mobilebar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); padding: .5rem; gap: .5rem; box-shadow: 0 -6px 20px rgba(15,23,42,.08); }
.mobilebar .btn { flex: 1; }

/* Mobile menu panel */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: #fff; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 1.2rem; visibility: hidden; }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-menu__top img { height: 36px; }
.mobile-menu nav a { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .lang { margin-top: 1.5rem; gap: .4rem; }
.mobile-menu .lang a { width: 48px; height: 40px; font-size: 1.4rem; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 460px; z-index: 90; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.3rem; }
.cookie p { font-size: .88rem; line-height: 1.55; color: var(--muted); margin-bottom: 1rem; }
.cookie__head { font-family: var(--font-head); font-weight: 600; font-size: .95rem !important; color: var(--ink) !important; margin-bottom: .45rem !important; }
.cookie a { color: var(--accent); text-decoration: underline; }
.cookie__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie__row .btn { flex: 1 1 auto; justify-content: center; }
.cookie.hidden { display: none; }

.cookie__link { display: inline-block; margin-top: .85rem; padding: 0; background: none; border: 0;
  font-family: var(--font-head); font-size: .82rem; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
.cookie__link:hover { color: var(--accent); }

/* ==========================================================================
   Podrobné nastavenie súkromia
   ========================================================================== */
.prefs { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(15,23,42,.55); padding: 1rem; overflow-y: auto; }
.prefs.hidden { display: none; }
.prefs__box { width: 100%; max-width: 620px; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: #fff; border-top: 3px solid var(--accent); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.prefs__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.prefs__top h2 { font-size: 1.3rem; margin: 0; }
.prefs__x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); cursor: pointer;
  transition: color .2s, border-color .2s; }
.prefs__x svg { width: 16px; height: 16px; }
.prefs__x:hover { color: var(--accent); border-color: var(--accent); }
.prefs__intro { font-size: .9rem; color: var(--muted); margin: .7rem 0 1.4rem; line-height: 1.6; }

.pgroup { border: 1px solid var(--line); border-radius: 10px; padding: 1.05rem 1.1rem; margin-bottom: .85rem; }
.pgroup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pgroup__txt h3 { font-size: 1rem; margin: 0 0 .3rem; }
.pgroup__txt p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.55; }
.pgroup__lock { flex: none; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .6rem; white-space: nowrap; }
.pgroup__more { margin-top: .75rem; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: .8rem; color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; }
.pgroup__list { margin-top: .85rem; border-top: 1px dashed var(--line); padding-top: .85rem; }
.pgroup__list dl { margin: 0 0 .8rem; }
.pgroup__list dl:last-child { margin-bottom: 0; }
.pgroup__list dt { font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.pgroup__list dd { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.pgroup__list code { font-family: var(--font-mono); font-size: .78rem; background: var(--bg-2); padding: .05rem .3rem; border-radius: 4px; }

/* prepínač */
.switch { flex: none; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.switch__track { width: 46px; height: 26px; border-radius: 999px; background: var(--bg-3);
  border: 1px solid var(--line); position: relative; transition: background .2s, border-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }

.prefs__note { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: 1.1rem 0 1.4rem; }
.prefs__note a { color: var(--accent); text-decoration: underline; }
.prefs__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.prefs__actions .btn { flex: 1 1 auto; justify-content: center; }

/* Trvalé tlačidlo pre návrat k nastaveniu súkromia */
.privacy-fab { position: fixed; left: 1rem; bottom: 1rem; z-index: 80; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: var(--shadow-lg); transition: color .2s, border-color .2s, transform .2s var(--ease); }
.privacy-fab svg { width: 20px; height: 20px; }
.privacy-fab:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.privacy-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.privacy-fab.hidden { display: none; }
/* na mobile nesmie kolidovať so spodnou lištou s telefónom */
@media (max-width: 720px) { .privacy-fab { bottom: calc(var(--mobilebar-h, 64px) + 1rem); } }

/* Súhlas so spracovaním údajov vo formulári */
.field--consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; margin-bottom: 1.3rem; }
.field--consent input[type="checkbox"] { width: 1.15rem; height: 1.15rem; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.field--consent label { font-family: var(--font-body); font-weight: 400; font-size: .85rem; line-height: 1.55; color: var(--muted); margin: 0; cursor: pointer; }
.field--consent a { color: var(--accent); text-decoration: underline; }
.field--consent.is-error input[type="checkbox"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.field--consent.is-error label { color: var(--accent); }

/* Vložený obsah tretej strany — načíta sa až po súhlase alebo na kliknutie */
.embed { min-height: 380px; display: grid; place-items: center; background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); }
.embed__ph { text-align: center; padding: 2rem 1.5rem; max-width: 42ch; }
.embed__ph p { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .75s var(--ease), transform .75s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* hero load-in (runs once on refresh) */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__top  { animation: riseIn .8s var(--ease) both; }
.hero__kicker { animation: riseIn .8s var(--ease) .08s both; }
.hero h1    { animation: riseIn .8s var(--ease) .18s both; }
.hero__desc { animation: riseIn .8s var(--ease) .30s both; }
.hero__cta  { animation: riseIn .8s var(--ease) .42s both; }
.hero__tabs { animation: riseIn .8s var(--ease) .54s both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__top, .hero__kicker, .hero h1, .hero__desc, .hero__cta, .hero__tabs { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 520px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .header .btn--primary, .header .lang, .header__call { display: none; }
  .burger { display: flex; }
  .mobilebar { display: flex; }
  body { padding-bottom: 70px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .hero__stats { gap: 1.4rem; }
  .hero__stats b { font-size: 1.6rem; }
}
