/* ==========================================================================
   TIKA TEAM s.r.o. — stíluslap
   Irány: sötét, prémium, fotóra épülő. Grafit alap, JCB-sárga kiemelés,
   hatszög (csavaranya) mint visszatérő forma a logóból.
   A fájl végén (15.) a TIKA TEAM-specifikus elemek vannak.

   1. Betűtípus        5. Fejléc, hero       12. Lábléc, mobil sáv
   2. Tokenek          8. Folyamat           13. Mozgás (alap)
   3. Alapok           11. Kapcsolat         14. Animációs elemek (GSAP)
   4. Elemek                                 15. TIKA TEAM szekciók
   ========================================================================== */


/* 1. Betűtípus — Archivo (változó szélesség és vastagság), saját tárhelyről
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. Tokenek
   ========================================================================== */

:root {
  /* Színek */
  --graphite:   #141618;   /* alap háttér */
  --steel:      #1b1e21;   /* kiemelt szekció */
  --steel-2:    #23272b;   /* panel, helyőrző */
  --field:      #0f1113;   /* űrlapmező */
  --concrete:   #e7e6e1;   /* világos szekció */
  --ink:        #15171a;   /* szöveg világos alapon */
  --text:       #ecebe6;
  --muted:      #a2a5a7;
  --line:       rgb(236 235 230 / 0.12);
  --line-strong:rgb(236 235 230 / 0.24);
  --accent:     #ff911e;   /* narancs a TIKA TEAM logóból */
  --accent-hi:  #ffa94d;
  --error:      #ff8f7a;

  /* Betűk */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Típusskála */
  --fs-small: 0.875rem;
  --fs-body:  1.0625rem;
  --fs-lead:  clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --fs-h3:    clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  --fs-h2:    clamp(2.1rem, 1.3rem + 3vw, 3.75rem);
  --fs-h1:    clamp(2.5rem, 1rem + 5.6vw, 6.25rem);

  /* Méretek */
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1240px;
  --section-pad: clamp(88px, 10vw, 160px);
  --header-h: 76px;
  --radius: 2px;

  color-scheme: dark;
}


/* 3. Alapok
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  /* miesto pre posuvník je vždy rezervované: otvorenie lightboxu nemení šírku stránky,
     takže ScrollTrigger nemusí nič prepočítavať */
  scrollbar-gutter: stable;
}
/* Plynulé posúvanie len bez animácií. Pri animáciách ho robí Lenis;
   CSS scroll-behavior: smooth by rozbil merania ScrollTriggera (pripnutá sekcia strojov). */
html:not(.motion) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 700; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px;
  background: var(--accent); color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* 4. Elemek: gombok, mezők, képhelyek
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 105%;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn__icon { width: 18px; height: 18px; flex: none; }

.btn--accent { background: var(--accent); color: var(--ink); --focus: var(--text); }
.btn--accent:hover { background: var(--accent-hi); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgb(20 22 24 / 0.35); }
.btn--ghost:hover { border-color: var(--text); }

.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn--wide { width: 100%; }

/* Mezők */
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { color: var(--muted); font-size: var(--fs-small); font-weight: 550; }
.field__optional { opacity: 0.7; font-weight: 400; }
.field__input { position: relative; display: block; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(236 235 230 / 0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field ::placeholder { color: var(--muted); opacity: 0.7; }

.field__input--unit input { padding-right: 42px; }
.field__unit {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.field input[type="number"] { -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field__error { display: none; color: var(--error); font-size: var(--fs-small); font-weight: 550; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input { border-color: var(--error); }

.field-row { display: grid; gap: 16px; }
.field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .field-row--2 { grid-template-columns: 1fr; }
  .field-row--3 { gap: 10px; }
}

/* Képhely: fotó, vagy ha még nincs, szintvonalas térkép a várt fájlnévvel */
.media {
  position: relative;
  overflow: hidden;
  background: var(--steel-2);
  isolation: isolate;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.media.is-placeholder img { visibility: hidden; }
.media.is-placeholder::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: url("../img/terrain.svg") var(--terrain-pos, 30% 40%) / 160% auto no-repeat;
  opacity: 0.16;
}
.media.is-placeholder::after {
  content: attr(data-file);
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-stretch: 90%;
  letter-spacing: 0.02em;
}


/* 5. Fejléc és hero
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid {
  background: rgb(20 22 24 / 0.96);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
.brand__mark { width: 30px; height: 19px; color: var(--accent); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-size: 1.15rem;
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand__trade {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-stretch: 115%;
  letter-spacing: 0.12em;
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__list { display: flex; gap: 30px; }
.site-nav__list a {
  position: relative;
  padding: 8px 0;
  color: rgb(236 235 230 / 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="true"],
.site-nav__list a[aria-current="page"] { color: var(--text); }
.site-nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="true"]::after,
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 8px var(--gutter) 32px;
    background: var(--graphite);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
    font-weight: 650;
    font-stretch: 110%;
  }
  .site-nav__list a::after { display: none; }
  .site-nav .btn { min-height: 54px; }
  .site-header:has(.site-nav.is-open) { background: var(--graphite); }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 960px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero__terrain {
  position: absolute;
  inset: -5%;
  background: url("../img/terrain.svg") 60% 40% / cover no-repeat;
  opacity: 0.2;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo.is-missing { display: none; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(20 22 24 / 0.88) 0%, rgb(20 22 24 / 0.55) 45%, rgb(20 22 24 / 0.15) 100%),
    linear-gradient(0deg, var(--graphite) 0%, rgb(20 22 24 / 0) 40%),
    linear-gradient(180deg, rgb(20 22 24 / 0.6) 0%, rgb(20 22 24 / 0) 22%);
}

.hero__body {
  display: grid;
  align-content: end;
  gap: 28px;
  flex: 1;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(48px, 7vh, 88px);
}
.hero__place {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-stretch: 110%;
  letter-spacing: 0.02em;
}
.hero__place::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
}
.hero__title {
  max-width: 13ch;
  font-size: var(--fs-h1);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__lede {
  max-width: 50ch;
  color: rgb(236 235 230 / 0.82);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero__foot {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgb(20 22 24 / 0.82);

}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero__facts li {
  padding: 26px 32px 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.hero__facts li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.hero__facts strong { display: block; color: var(--text); font-weight: 650; font-stretch: 108%; }
.hero__coords {
  position: absolute;
  right: var(--gutter);
  top: -34px;
  color: var(--muted);
  font-size: 0.75rem;
  font-stretch: 90%;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__body { padding-top: calc(var(--header-h) + 96px); }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li,
  .hero__facts li + li { padding: 18px 0; border-left: 0; }
  .hero__facts li + li { border-top: 1px solid var(--line); }
  .hero__coords { display: none; }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
}


/* Szekciók közös része */
.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section--raised { background: var(--steel); }
.section--light {
  --focus: var(--ink);
  background: var(--concrete);
  color: var(--ink);
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  max-width: none;
}
.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-head__lede {
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.section--light .section-head__lede { color: rgb(21 23 26 / 0.72); }

@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }
}


/* 8. Folyamat (világos szekció, valódi sorrend → számozva)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
  border-top: 2px solid var(--ink);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 28px 0 0;
  counter-increment: step;
}
.step + .step { padding-left: 28px; border-left: 1px solid rgb(21 23 26 / 0.15); }
.step::before {
  content: counter(step, decimal-leading-zero);
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 1.8rem + 2vw, 3.6rem);
  font-weight: 300;
  font-stretch: 112%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* sárga jelölő a felső vonalon */
.step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.step + .step::after { left: 28px; }
.step h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 106%; }
.step p { color: rgb(21 23 26 / 0.72); font-size: 0.97rem; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0 32px; }
  .step,
  .step + .step { padding: 28px 0 32px; border-left: 0; border-top: 2px solid var(--ink); }
  .step + .step::after { left: 0; }
  .step::before { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}


/* 11. Ajánlatkérés
   ========================================================================== */

.contact-section { overflow: hidden; isolation: isolate; }
.contact-section__terrain {
  position: absolute;
  inset: 0 -10% 0 40%;
  z-index: -1;
  background: url("../img/terrain.svg") 20% 50% / cover no-repeat;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.contact__info { display: grid; gap: 20px; }
.contact__phone {
  margin-top: 20px;
  color: var(--accent);
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 750;
  font-stretch: 104%;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.contact__phone:hover { color: var(--accent-hi); }
.contact__mail { font-size: var(--fs-lead); text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.contact__mail:hover { text-decoration-color: currentColor; }

.contact__facts { display: grid; gap: 20px; margin-top: 24px; }
.contact__facts div { padding-top: 18px; border-top: 1px solid var(--line); }
.contact__facts dt { margin-bottom: 6px; font-size: var(--fs-small); font-weight: 650; }
.contact__facts dd { color: var(--muted); }

.quote-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--line);
  background: var(--steel);
}
.quote-form__note { color: var(--muted); font-size: var(--fs-small); }
.quote-form__status:empty { display: none; }
.quote-form__status {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgb(255 145 30 / 0.08);
  font-weight: 550;
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
}


/* 12. Lábléc, mobil akciósáv
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: #101214;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 64px 48px;
}
.site-footer__brand { display: grid; gap: 18px; max-width: 36ch; }
.site-footer__brand .brand { margin-right: 0; color: var(--text); }
.site-footer__heading {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: var(--fs-small);
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .action-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgb(20 22 24 / 0.97);
    transition: transform 0.25s;
  }
  .action-bar.is-hidden { transform: translateY(110%); }
}


/* 13. Mozgás — egy betöltési jelenet a hero-ban, a többi csak interakcióra
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion) .hero__photo { animation: settle 14s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  html:not(.motion) .hero__body > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
}

@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* 14. Animációs elemek (a mozgást a js/main.js vezérli GSAP-pal)
   ========================================================================== */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Betöltő */
.loader { display: none; }
html.motion .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 48px) var(--gutter);
  background: var(--graphite);
  color: var(--text);
  /* biztonsági háló: ha a szkript nem fut le, magától eltűnik */
  animation: loader-failsafe 0.01s 6s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.loader__logo { width: clamp(200px, 26vw, 340px); height: auto; }
.loader__name {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.loader__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  font-weight: 650;
}
.loader__count { min-width: 3.2ch; font-size: 1.4rem; font-variant-numeric: tabular-nums; font-stretch: 110%; }
.loader__bar { height: 2px; background: var(--line); }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader__label { font-stretch: 115%; letter-spacing: 0.1em; }

/* Saját kurzor (csak egérrel) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.motion .cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
                margin 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.25s, border-color 0.25s, opacity 0.25s;
    will-change: transform;
  }
  html.motion .cursor.is-hidden { opacity: 0; }
  html.motion .cursor.is-hover {
    width: 54px; height: 54px; margin: -27px 0 0 -27px;
    background: transparent;
    border: 1.5px solid var(--accent);
  }
  html.motion .cursor.has-label {
    width: 96px; height: 96px; margin: -48px 0 0 -48px;
    background: var(--accent);
    border: 0;
  }
}
.cursor__label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 110%;
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.has-label .cursor__label { opacity: 1; }

/* Futószalag */
.marquee {
  overflow: hidden;
  padding-block: clamp(22px, 3vw, 40px);
  border-block: 1px solid var(--line);
  background: var(--graphite);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
}
.marquee span {
  font-size: clamp(2.4rem, 1rem + 5vw, 6rem);
  font-weight: 800;
  font-stretch: 122%;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee .is-outline { color: transparent; -webkit-text-stroke: 1.5px rgb(236 235 230 / 0.55); }
.marquee svg { flex: none; width: clamp(34px, 3vw, 52px); height: auto; aspect-ratio: 32 / 20; color: var(--accent); }

/* Kiemelt mondat */
.statement { padding-block: var(--section-pad); }
.statement__text {
  max-width: 26ch;
  font-size: clamp(1.9rem, 0.9rem + 3.6vw, 4.4rem);
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  line-height: 1.14;
  text-wrap: pretty;
}
.statement__text .word { display: inline-block; }

/* Szakaszcímek betűnkénti/szavankénti bontásához */
[data-split] .word,
[data-hero-title] .word { display: inline-block; }
[data-hero-title] .char { display: inline-block; will-change: transform; }

/* Folyamat: kirajzolódó vonal */
.steps-wrap { position: relative; }
.steps__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 2px;
  background: rgb(21 23 26 / 0.12);
}
.steps__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; }
html.motion .steps { border-top-color: transparent; }
@media (max-width: 1000px) { .steps__bar { display: none; } html.motion .steps { border-top-color: var(--ink); } }

/* Nagy záró felirat */
.cta-band {
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 150px) clamp(24px, 3vw, 48px);
  background: var(--graphite);
}
.cta-band__line {
  font-size: clamp(3.6rem, 1rem + 12vw, 14rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.cta-band__line:first-child { padding-left: 6vw; }
.cta-band__line--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-align: right;
  padding-right: 4vw;
}

/* Képek: a felfedés alatt a kép kicsit nagyobb, hogy legyen helye a parallaxnak */
html.motion [data-parallax] img { transform: scale(1.14); transition: none; }

/* Gombok mágneses mozgásához */
[data-magnetic] { will-change: transform; }
[data-magnetic] > * { pointer-events: none; }

/* Hero: beemelt, kirajzolódó szintvonalak */
/* A szintvonal-réteg saját GPU-rétegen: egyszer rajzolódik ki, utána csak mozgatjuk */
html.motion .hero__terrain { will-change: transform, opacity; }

/* Lézervonal, ami betöltéskor végigpásztázza a hero-t */
.hero__scan { display: none; }
html.motion .hero__scan {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  display: block;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px 2px rgb(255 145 30 / 0.55);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}



/* 15. TIKA TEAM szekciók
   ========================================================================== */

/* Logó a fejlécben és a láblécben */
.brand__logo { width: auto; height: 58px; }
.site-footer .brand__logo { height: 110px; }
@media (max-width: 560px) { .brand__logo { height: 50px; } }

.hero__photo { object-position: 50% 30%; }
.hero__title { max-width: none; }
.hero__title .hero__line { display: block; }

/* --- O nás: výrok, príbeh, čísla, časová os */
.about { padding-block: var(--section-pad); }
.about .statement__text { max-width: 24ch; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(64px, 8vw, 120px);
}
.about__story { display: grid; gap: 18px; max-width: 52ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; }

.stats { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 2px solid var(--line-strong); }
.stat dd {
  font-size: clamp(2.6rem, 1.4rem + 3.4vw, 5rem);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat:first-child dd { color: var(--accent); }
.stat dt { color: var(--muted); font-size: 0.95rem; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.timeline li { position: relative; display: grid; gap: 10px; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline__year { font-size: 1.5rem; font-weight: 750; font-stretch: 115%; }
.timeline p { max-width: 32ch; color: var(--muted); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-top: 0; border-top: 0; }
  .timeline li { padding-left: 32px; }
  .timeline li::before { top: 6px; }
}
@media (max-width: 560px) {
  .stats { gap: 14px; }
  .stat dd { font-size: 2.6rem; }
}

/* --- Služby: dve oblasti vedľa seba, druhá posunutá */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.duo__item:nth-child(2) { margin-top: clamp(0px, 12vw, 180px); }
.duo__media { aspect-ratio: 4 / 5; margin-bottom: 32px; }
.duo__body { display: grid; gap: 18px; }
.duo__num { color: var(--accent); font-size: 0.95rem; font-weight: 700; font-stretch: 115%; letter-spacing: 0.08em; }
.duo__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); font-weight: 750; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.01em; }
.duo__body > p:not(.duo__num) { max-width: 46ch; color: var(--muted); font-size: var(--fs-lead); }

.checklist { border-top: 1px solid var(--line); }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 72px; }
  .duo__item:nth-child(2) { margin-top: 0; }
  .duo__media { aspect-ratio: 4 / 3; }
}

/* --- Stroje: výstavná sieň, na širokom displeji sa posúva do strany */
.showroom {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad);
  background:
    radial-gradient(ellipse 60% 50% at 70% 60%, rgb(255 145 30 / 0.07), transparent 70%),
    var(--steel);
}
.showroom__inner {
  display: grid;
  gap: 48px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.showroom__head { display: grid; gap: 20px; align-content: center; max-width: 560px; }
.showroom__hint { display: none; color: var(--accent); font-size: var(--fs-small); font-weight: 650; font-stretch: 110%; }

/* bez horizontálneho režimu: natívne posúvanie prstom so zarovnaním */
.showroom__track {
  display: flex;
  gap: 0;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.showroom__track::-webkit-scrollbar { display: none; }

.machine-card {
  flex: 0 0 min(80vw, 420px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 28px 8px;
  border-left: 1px solid var(--line);
  scroll-snap-align: start;
}
.machine-card__stage {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  isolation: isolate;
}
/* mäkký „reflektor“ a tieň na podlahe pod strojom */
.machine-card__stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 0;
  z-index: -2;
  background: radial-gradient(ellipse 55% 60% at 50% 62%, rgb(236 235 230 / 0.09), transparent 72%);
}
.machine-card__stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 2%;
  z-index: -1;
  height: 9%;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 0.75), transparent 70%);
}
.machine-card__stage img {
  position: absolute;
  inset: 6% 4% 5%;
  width: 92%;
  height: 89%;
  object-fit: contain;
  object-position: 50% 100%;
}
.machine-card__index { color: var(--muted); font-size: 0.85rem; font-weight: 600; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.machine-card__name { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 750; font-stretch: 112%; }
.machine-card__type { color: var(--accent); font-size: 0.95rem; font-weight: 600; }
.machine-card__text { max-width: 36ch; margin-top: 6px; color: var(--muted); font-size: 0.97rem; }

.showroom__progress { display: none; }

/* horizontálny režim (JS zapne od 1024 px) */
.showroom.is-horizontal { height: 100vh; padding-block: 0; }
.showroom.is-horizontal .showroom__inner {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  max-width: none;
  height: 100%;
  margin-inline: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-right: var(--gutter);
  will-change: transform;
}
.showroom.is-horizontal .showroom__head { flex: 0 0 min(30vw, 440px); }
.showroom.is-horizontal .showroom__hint { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.showroom.is-horizontal .showroom__hint::after { content: ""; width: 48px; height: 2px; background: currentColor; }
.showroom.is-horizontal .showroom__track { overflow: visible; margin: 0; padding: 0; }
.showroom.is-horizontal .machine-card { flex-basis: min(30vw, 440px); }
.showroom.is-horizontal .showroom__progress {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: clamp(24px, 5vh, 48px);
  display: block;
  height: 2px;
  background: var(--line);
}
.showroom__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* --- Postup: tri kroky */
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--three .step h3 { font-size: 1.5rem; }
.steps--three .step p { max-width: 34ch; font-size: 1.05rem; }
@media (max-width: 1000px) { .steps--three { grid-template-columns: 1fr; } }

/* --- Kancelária a dielňa: tri stĺpce fotiek, pri posúvaní idú proti sebe */
.zazemie { overflow: hidden; }
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 1480px;
  height: clamp(560px, 92vh, 1040px);
  margin-inline: auto;
  padding-inline: var(--gutter);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.columns__col { display: grid; align-content: start; gap: clamp(10px, 1.4vw, 20px); will-change: transform; }
.columns__col:nth-child(2) { margin-top: -18%; }
.columns .media { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.columns .media:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 640px; }
  .columns__col:nth-child(3) { display: none; }
}

/* --- Galéria: murovaná mriežka + lightbox */
.masonry { columns: 3; column-gap: 16px; }
.masonry__item {
  position: relative;
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--steel-2);
  break-inside: avoid;
}
.masonry__item[hidden] { display: none; }
.masonry__item img { width: 100%; height: auto; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s; }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0;
  padding: 48px 16px 14px;
  background: linear-gradient(0deg, rgb(20 22 24 / 0.85), transparent);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.masonry__item:hover::after,
.masonry__item:focus-visible::after { opacity: 1; transform: none; }
.masonry__more { display: flex; justify-content: center; margin-top: 40px; }
.masonry__more[hidden] { display: none; }
@media (max-width: 960px) { .masonry { columns: 2; column-gap: 10px; } .masonry__item { margin-bottom: 10px; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 4vw, 48px);
  background: rgb(10 11 12 / 0.95);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; min-width: 0; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__figure figcaption { display: flex; gap: 20px; color: var(--muted); font-size: 0.95rem; }
.lightbox__count { font-variant-numeric: tabular-nums; }
.lightbox__nav,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(20 22 24 / 0.6);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.lightbox__nav:hover,
.lightbox__close:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.lightbox__close { position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* --- Veľký nápis s fotkou v pozadí */
.cta-band { position: relative; isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.3); }
.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--graphite), rgb(20 22 24 / 0.2) 40%, rgb(20 22 24 / 0.2) 60%, var(--graphite));
}

/* --- Kontakt: zoznam s ikonami */
.contact__list { display: grid; gap: 14px; margin-top: 12px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: var(--fs-lead); }
.contact__list svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.contact__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s; }
.contact__list a:hover { background-size: 100% 1px; }

/* Bežiaci pás: oddeľovač je šesťuholník z loga */
.marquee svg { width: clamp(12px, 1.1vw, 18px); aspect-ratio: 1; }

/* --- Prepínač jazykov */
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 32px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--accent); border-color: rgb(255 145 30 / 0.5); }
.lang-switch--footer { flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.lang-switch--footer a { min-width: 0; padding: 0; border: 0; font-size: 0.95rem; font-weight: 500; letter-spacing: 0; }

@media (max-width: 1180px) {
  /* na mobile je volanie a písanie v spodnej lište, tlačidlo v menu je zbytočné */
  .site-nav__cta { display: none; }
  .site-nav .lang-switch { gap: 10px; }
  .site-nav .lang-switch a { min-width: 64px; min-height: 48px; border-color: var(--line-strong); font-size: 1rem; }
  .site-nav .lang-switch a[aria-current="true"] { border-color: var(--accent); }
}

/* --- Hero na mobile: vlastná fotka na výšku, tmavší podklad pod textom */
@media (max-width: 760px) {
  .hero__photo { object-position: 62% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(20 22 24 / 0.55) 0%, rgb(20 22 24 / 0.35) 30%, rgb(20 22 24 / 0.78) 62%, var(--graphite) 100%),
      linear-gradient(90deg, rgb(20 22 24 / 0.6), rgb(20 22 24 / 0.1));
  }
}

/* --- Pätička: štyri stĺpce, firemné údaje */
.site-footer__grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.company-data { display: grid; gap: 6px; }
.company-data div { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.company-data dt { color: var(--muted); }
.company-data dd { color: var(--text); font-variant-numeric: tabular-nums; }
.company-data__register { margin-top: 10px; font-size: var(--fs-small); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --- Hviezdičky (hodnotenie 0–5 cez --rating) */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.stars::before { content: "★★★★★"; color: var(--line-strong); }
.stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  color: var(--accent);
  white-space: nowrap;
}

/* --- Recenzie */
.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.reviews__summary[hidden] { display: none; }
.reviews__score { font-size: clamp(3.4rem, 2rem + 4vw, 5.5rem); font-weight: 800; font-stretch: 115%; line-height: 0.9; font-variant-numeric: tabular-nums; }
.reviews__summary .stars { font-size: 1.6rem; }
.reviews__count { margin-top: 6px; color: var(--muted); }
.reviews__source { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-size: var(--fs-small); }
.reviews__source svg, .review__src svg { width: 20px; height: 20px; }

.reviews__rail[hidden] { display: none; }
.reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(86vw, 380px);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--graphite);
  scroll-snap-align: start;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review__who { display: grid; }
.review__name { font-weight: 650; text-decoration: none; }
.review__name:hover { color: var(--accent); }
.review__time { color: var(--muted); font-size: var(--fs-small); }
.review__text { color: rgb(236 235 230 / 0.85); line-height: 1.6; white-space: pre-line; }
.review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; }
.review__src { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.reviews__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.reviews__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.reviews__arrow:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); }

.reviews__empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 640px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--line-strong);
}
.reviews__empty[hidden] { display: none; }
.reviews__empty .stars { font-size: 1.8rem; }
.reviews__empty h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 750; font-stretch: 110%; }
.reviews__empty p { color: var(--muted); }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Zamknuté posúvanie pri otvorenom lightboxe (iba bez Lenis) */
html.is-locked { overflow: hidden; }

/* „Zobraziť všetky“: prehliadač nesmie pri vložení fotiek posunúť stránku (scroll anchoring) */
.masonry, .masonry__more { overflow-anchor: none; }


/* 16. Projekty
   ========================================================================== */

/* hlavička podstránok */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.page-hero__terrain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/terrain.svg") 70% 40% / cover no-repeat;
  opacity: 0.08;
}
.page-hero--project { min-height: min(78svh, 760px); display: flex; align-items: flex-end; }
.page-hero--project .page-hero__inner { width: 100%; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(20 22 24 / 0.8) 0, rgb(20 22 24 / 0) 22%),
    linear-gradient(0deg, var(--graphite) 0%, rgb(20 22 24 / 0.6) 45%, rgb(20 22 24 / 0.4) 100%),
    linear-gradient(90deg, rgb(20 22 24 / 0.7), transparent 70%);
}
.page-hero__inner { display: grid; gap: 22px; }
.page-hero__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.page-hero__crumb a { text-decoration: none; }
.page-hero__crumb a:hover { color: var(--accent); }
.page-hero__title {
  max-width: 18ch;
  font-size: var(--fs-h1);
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-transform: uppercase;
}
.page-hero__lede { max-width: 56ch; color: rgb(236 235 230 / 0.82); font-size: var(--fs-lead); line-height: 1.55; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.page-hero__facts div { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--accent); }
.page-hero__facts dt { color: var(--muted); font-size: var(--fs-small); }
.page-hero__facts dd { font-weight: 650; font-stretch: 108%; }

/* mriežka projektov */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.project-card__link { display: grid; gap: 18px; text-decoration: none; }
.project-card__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.project-card__link:hover .project-card__media img,
.project-card__link:focus-visible .project-card__media img { transform: scale(1.05); }
.project-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(20 22 24 / 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}
.project-card__body { display: grid; gap: 8px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.project-card__meta span { color: var(--muted); }
.project-card__title {
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 700;
  font-stretch: 108%;
  transition: color 0.2s;
}
.project-card__link:hover .project-card__title { color: var(--accent); }
.projects-teaser__more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.projects-empty { max-width: 680px; }
.projects-empty h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 750; }
.projects-list { padding-top: clamp(48px, 6vw, 88px); }

@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .project-grid { grid-template-columns: 1fr; } }

/* galéria projektu a navigácia medzi projektmi */
.project-gallery { padding-top: clamp(40px, 5vw, 72px); }
.project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.project-nav__link { display: grid; gap: 4px; text-decoration: none; }
.project-nav__link span { color: var(--muted); font-size: var(--fs-small); }
.project-nav__link strong { font-weight: 650; transition: color 0.2s; }
.project-nav__link:hover strong { color: var(--accent); }
.project-nav__link--next { text-align: right; }
@media (max-width: 700px) {
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav .btn { grid-column: 1 / -1; grid-row: 1; }
}

/* výzva na konci podstránok */
.page-cta { background: var(--steel); }
.page-cta__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.page-cta__inner .section-head__lede { margin-top: 16px; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
