/* ==========================================================================
   MATE BARBERSHOP — style.css
   Paleta z loga: čierna #000, biela #FFF, červená #9A141D, modrá #02336A.
   Pravidlá: jeden akcent na plochu, logo iba na svetlom podklade, žiadne pruhové ozdoby
   (pruhy má len samotná barber tyč). Fonty lokálne (GDPR).
   ========================================================================== */

/* ---------- Fonty ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/montserrat-normal-latin.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: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/montserrat-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrumentserif-italic-latin.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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrumentserif-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* fallback fonty s upravenými metrikami – kým sa načítajú webfonty, text má rovnakú šírku a výšku (bez preskladania stránky) */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("Liberation Sans"), local("Roboto"); size-adjust: 118%; ascent-override: 82%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Times New Roman"), local("Liberation Serif"), local("Times"); size-adjust: 95%; ascent-override: 104%; descent-override: 33%; line-gap-override: 0%; }

/* ---------- Tokeny ---------- */
:root {
  color-scheme: light;

  --black: #0B0B0C;
  --card-dark: #17171A;
  --paper: #F4F1EA;
  --paper-2: #ECE7DD;
  --white: #FFFFFF;
  --red: #9A141D;
  --blue: #02336A;

  --ink: #0B0B0C;
  --ink-muted: #5E5A54;
  --ink-line: rgba(11, 11, 12, .12);
  --ink-line-2: rgba(11, 11, 12, .22);
  --snow: #F4F1EA;
  --snow-muted: #A9A5A0;
  --snow-line: rgba(255, 255, 255, .1);
  --snow-line-2: rgba(255, 255, 255, .2);

  /* jemná filmová / papierová zrnitosť – statická SVG dlaždica (bez živého filtra) */
  --grain: url("../img/grain-dark.png"); /* predrenderované zrno (PNG) – SVG feTurbulence sa pri scrollovaní prekresľovalo na CPU a sekalo */
  --grain-light: url("../img/grain-light.png");

  --font-sans: "Montserrat", "Montserrat Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Instrument Serif Fallback", ui-serif, Georgia, "Times New Roman", serif;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;
  --maxw: 1240px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --intro-d: 0s; /* oneskorenie hero animácií, kým beží intro */
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
.intro-on { --intro-d: 1.4s; }

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip; /* clip = žiadny vodorovný posun a body ostáva súčasťou scrollu dokumentu (dôležité pre zámok scrollu menu) */
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@supports not (overflow: clip) { html { overflow-x: hidden; } }
body {
  margin: 0;
  background: var(--paper); /* horný overscroll na iOS = papier */
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* dolný overscroll na iOS = čierna ako pätička */
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: -100vh; height: 100vh; background: var(--black); z-index: -1; pointer-events: none; }
img, svg { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, address, blockquote, dl, dd, ul { margin: 0; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.section--dark :focus-visible, .final :focus-visible, .footer :focus-visible, .stage :focus-visible { outline-color: var(--paper); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--black); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* stav pred / po otvorení a koniec akcie (prepína main.js) */
[data-state="pre"] [data-when="open"],
[data-state="open"] [data-when="pre"] { display: none !important; }
[data-promo="off"] [data-promo-item] { display: none !important; }

/* ---------- Úvodné intro ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--grain-light), var(--paper);
  animation: intro-out .65s var(--ease) 1.35s forwards;
}
.intro__mark { width: min(84vw, 460px); animation: intro-logo 1.55s var(--ease) both; }
.intro__logo { display: block; width: 100%; height: auto; }
/* Točiaca sa tyč v logu (.mark): SVG prekryv presne nad pruhmi (pozícia v % z rozmerov loga 4320 × 2160), pruhy sa posúvajú
   o jednu periódu = bezšvová slučka. Prekryv je viditeľný len počas točenia (.is-spinning) – inak je logo čistý originál.
   Intro: točí stále. Hero: PC pri prejdení myšou, dotykové zariadenia kým je logo na obrazovke (main.js). */
.mark { position: relative; }
.mark__pole { position: absolute; left: 41.458%; top: 13.056%; width: 5.602%; height: 34.352%; overflow: hidden; opacity: 0; transition: opacity .25s; pointer-events: none; }
.mark__stripes { animation: pole-spin .75s linear infinite; animation-play-state: paused; }
.mark.is-spinning .mark__pole { opacity: 1; }
.mark.is-spinning .mark__stripes { animation-play-state: running; }
@media (hover: none) { .hero__mark .mark__stripes { animation-duration: 1.1s; } } /* na dotykových zariadeniach pomalšie, pokojnejšie */
@keyframes pole-spin { to { transform: translateY(calc(-1 * var(--pole-period, 400px))); } }
@keyframes intro-logo { 0% { transform: translateY(14px) scale(.97); } 25%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes intro-out { to { transform: translateY(-101%); visibility: hidden; } }

/* ---------- Typografia ---------- */
.h2 {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h2 em, .hero__slogan em, .final__title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.015em; font-size: 1.1em; line-height: .9;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 20px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--red); }
.section--dark .eyebrow { color: var(--snow-muted); }

/* ---------- Tlačidlá ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px;
  padding: .95em 1.45em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1.1; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; background: none;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn--sm { min-height: 44px; padding: .7em 1.1em; font-size: .875rem; }
.btn--lg { padding: 1.1em 1.7em; font-size: 1rem; }
.btn--xl { padding: 1.2em 1.9em; font-size: 1.08rem; }
.btn--black { background: var(--black); color: var(--paper); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); }
.btn--black:hover { background: var(--red); color: #fff; box-shadow: 0 16px 40px -14px rgba(154, 20, 29, .7); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); }
.btn--paper:hover { background: var(--red); color: #fff; }
.btn--ghost { border-color: rgba(11, 11, 12, .5); color: var(--ink); }
.btn--ghost:hover { background: var(--black); color: var(--paper); border-color: var(--black); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--snow); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }

/* ---------- Pill ---------- */
.pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem; min-height: 44px;
  padding: .5rem 1rem .5rem .75rem; border-radius: 999px;
  border: 1px solid var(--ink-line-2); background: rgba(255, 255, 255, .6);
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: border-color .3s, background-color .3s;
}
.pill:hover { border-color: var(--ink); background: #fff; }
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pill__dot::after, .map__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: .6; animation: ping 2.2s var(--ease) infinite; }
.pill__sep { width: 1px; height: 14px; background: var(--ink-line-2); }
.pill__cd { color: var(--ink-muted); }
.pill__cd:empty, .pill__sep:has(+ .pill__cd:empty) { display: none; }

/* ==========================================================================
   NAVIGÁCIA – hore priehľadná (logo je v hero), po scrollnutí svetlé sklo s logom
   ========================================================================== */
.nav { position: fixed; inset: calc(12px + env(safe-area-inset-top)) 0 auto; z-index: 60; pointer-events: none; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.nav__inner {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 10px; border-radius: 999px;
  background: transparent; border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__inner, .nav.is-open .nav__inner {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(11, 11, 12, .08);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .4);
}
.nav__brand { display: block; flex: none; padding: 0 4px; line-height: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.nav.is-scrolled .nav__brand, .nav.is-open .nav__brand { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.nav__logo { width: 116px; height: auto; } /* ostré verzie 800/1200 px cez srcset */
.nav__links { margin-left: auto; display: none; gap: 2px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink-muted); text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a:hover { background: rgba(11, 11, 12, .06); }
.nav__cta { margin-left: auto; }
.nav__toggle {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--ink-line-2); background: #fff; cursor: pointer;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav.is-open .nav__toggle-bars { background: transparent; }
.nav.is-open .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: calc(110px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--grain-light), var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-menu.is-visible { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 12px 0; font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.mobile-menu .btn { align-self: stretch; }
.mobile-menu__meta { color: var(--ink-muted); font-size: .95rem; line-height: 1.5; }
.mobile-menu__meta a { font-weight: 700; color: var(--ink); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 8px; }
  .nav__logo { width: 140px; }
  .nav__toggle, .mobile-menu { display: none; }
}
@media (max-width: 899px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(clamp(112px, 14vh, 150px) + env(safe-area-inset-top)) 0 clamp(56px, 7vw, 96px);
  background: var(--paper);
  overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--grain-light),
    radial-gradient(70% 60% at 100% 0%, rgba(2, 51, 106, .07), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(154, 20, 29, .06), transparent 70%),
    url("../img/ai/texture-paper.webp") center / cover no-repeat;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1020px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

.hero__mark { width: min(100%, clamp(340px, 38vw, 650px)); margin-bottom: 26px; animation: slide-up .8s var(--ease) calc(.05s + var(--intro-d)) both; } /* bez opacity 0 – LCP prvok je viditeľný od prvého snímku */
.hero__logo { display: block; position: relative; width: 100%; height: auto; }
/* jemné svetlo za logom – ako keby naň na papieri svietila lampa (žiadny nový tvar, len svetlejšia plocha) */
.hero__mark::before { content: ""; position: absolute; inset: -30% -16%; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(58% 58% at 50% 50%, #fff, rgba(255, 255, 255, .8) 38%, rgba(255, 255, 255, .35) 62%, rgba(255, 255, 255, 0) 80%); }
.hero__mark .mark__pole { z-index: 1; }
/* tlačidlo „Pozastaviť pohyb“ (WCAG 2.2.2) – zastaví video aj točenie tyče; zobrazí ho JS, keď je čo zastaviť */
.hero__stage { position: relative; }
.motion-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(244, 241, 234, .85); color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); transition: background-color .25s, transform .3s var(--ease); }
.motion-toggle:hover { background: var(--white); transform: scale(1.06); }
.motion-toggle .ico { width: 18px; height: 18px; }
.motion-toggle .ico--play, .motion-toggle[aria-pressed="true"] .ico--pause { display: none; }
.motion-toggle[aria-pressed="true"] .ico--play { display: block; }
[data-motion="paused"] .mark__stripes { animation-play-state: paused !important; }
[data-motion="paused"] .mark__pole { opacity: 0 !important; }
figure.quote { margin: 0; }
.hero .pill { opacity: 0; animation: fade-up .8s var(--ease) calc(.2s + var(--intro-d)) forwards; }

.hero__title { margin: 22px 0 20px; }
.hero__kicker {
  display: block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted);
  opacity: 0; animation: fade-up .8s var(--ease) calc(.3s + var(--intro-d)) forwards;
}
.hero__slogan { display: block; font-weight: 900; font-size: clamp(2.8rem, 5.4vw, 4.8rem); line-height: .92; letter-spacing: -.045em; }
.hero__slogan .line { display: block; padding: 0 .12em .09em 0; margin-bottom: -.09em; }
.hero__slogan .w { display: inline-block; transform-origin: left bottom; animation: rise .9s var(--ease) calc(.1s + var(--i, 0) * .08s + var(--intro-d)) both; }
.hero__slogan .line--serif em { font-size: 1.06em; }

.hero__addr { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; font-weight: 600; color: var(--ink-muted); opacity: 0; animation: fade-up .9s var(--ease) calc(.55s + var(--intro-d)) forwards; }
.hero__addr .ico { flex: none; width: 18px; height: 18px; margin-top: .2em; }
.nowrap { white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; opacity: 0; animation: fade-up .9s var(--ease) calc(.7s + var(--intro-d)) forwards; }
.hero__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--ink-line-2); transition: text-decoration-color .3s; }
.hero__link:hover { text-decoration-color: var(--ink); }
.hero__link .ico { transition: transform .35s var(--ease); }
.hero__link:hover .ico { transform: translateY(3px); }
.hero__hint { margin-top: 14px; font-size: .82rem; color: var(--ink-muted); opacity: 0; animation: fade-up .9s var(--ease) calc(.85s + var(--intro-d)) forwards; }

/* --- plátno s tyčou: štúdiový záber --- */
.hero__stage { opacity: 0; will-change: transform; animation: fade-in 1.4s var(--ease) calc(.35s + var(--intro-d)) forwards; }
.stage {
  position: relative;
  height: auto; aspect-ratio: 4 / 5; max-height: min(72vh, 680px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    var(--grain),
    radial-gradient(70% 55% at 30% 0%, rgba(255, 255, 255, .10), transparent 60%),   /* key light zhora-zľava */
    radial-gradient(30% 50% at 16% 50%, rgba(154, 20, 29, .14), transparent 70%),     /* slabý červený rim */
    radial-gradient(60% 40% at 50% 100%, rgba(2, 51, 106, .26), transparent 70%),     /* studený odraz podlahy */
    linear-gradient(180deg, #1A1A1E, #0B0B0C);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: var(--snow);
}
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.stage__img, .stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stage__video { opacity: 0; transition: opacity .9s var(--ease); }
.stage.has-video .stage__video { opacity: 1; }
.stage::after { z-index: 1; }


/* nízke displeje (notebooky 1366×768): tesnejšie, aby tlačidlo ostalo nad ohybom */
@media (min-width: 1020px) and (max-height: 820px) {
  .hero { padding-top: calc(96px + env(safe-area-inset-top)); }
  .hero__mark { margin-bottom: 18px; }
  .hero__title { margin: 16px 0 14px; }
  .hero__slogan { font-size: clamp(2.6rem, 5.4vw, 5rem); }
  .hero__cta { margin-top: 22px; }
}
/* mobil: kratšie hero, vizuál vykúka nad fold ako pozvánka na scroll */
@media (max-width: 1019px) {
  .hero { min-height: 0; padding-top: 92px; }
  .hero__mark { width: min(56vw, 420px); margin-bottom: 22px; } /* tablet */
  .hero__title { margin: 18px 0 16px; }
  .hero__grid { gap: 32px; }
  .hero__cta { margin-top: 22px; }
  .hero__cta .btn--black { flex: 1 1 100%; }
  .stage { aspect-ratio: auto; height: 420px; }
}
/* mobil: logo takmer na celú šírku – je to hlavný prvok nad foldom */
@media (max-width: 600px) { .hero { padding-top: 76px; } .hero__mark { width: min(86vw, 380px); margin-bottom: 18px; } .hero__title { margin: 16px 0 14px; } }
/* mobil na šírku (landscape): nízke okno – kompaktné hero, aby bolo tlačidlo do jedného scrollu */
@media (max-width: 1019px) and (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 70px; }
  .hero__mark { width: min(36vw, 300px); margin-bottom: 12px; }
  .hero__title { margin: 12px 0 10px; }
  .hero__slogan { font-size: clamp(2rem, 5vw, 2.6rem); }
  .hero__cta { margin-top: 14px; }
  .hero__hint { display: none; }
}

/* ==========================================================================
   SEKCIE
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section--dark { background: var(--grain), url("../img/ai/texture-dark.webp") center / cover no-repeat var(--black); color: var(--snow); }
.section--paper { background: var(--grain-light), url("../img/ai/texture-paper.webp") center / cover no-repeat var(--paper); color: var(--ink); }
/* svetlo barber lampy – na tmavých sekciách sleduje kurzor (iba desktop, nastavuje main.js) */
@media (hover: hover) and (pointer: fine) {
}

.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head__note { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card-dark); border: 1px solid var(--snow-line-2); font-size: .85rem; font-weight: 700; color: var(--snow); }
.sec-head__note .ico { width: 16px; height: 16px; color: var(--snow-muted); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- CENNÍK (menu) ---------- */
.menu { list-style: none; padding: 0; border-top: 1px solid var(--snow-line-2); }
.menu__item {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr auto; gap: 6px 22px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--snow-line);
  transition: padding-left .4s var(--ease);
}
.menu__thumb { grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--card-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (max-width: 560px) { .menu__item { grid-template-columns: 56px 1fr auto; gap: 4px 14px; } .menu__thumb { width: 56px; height: 56px; border-radius: 12px; } }
.menu__item::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--red); transition: width .4s var(--ease); }
@media (hover: hover) {
  .menu__item:hover { padding-left: 22px; }
  .menu__item:hover::before { width: 10px; }
  .menu__item:hover .menu__thumb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 2px var(--red); }
}
.menu__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.menu__name { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.menu__sub { font-size: .62em; font-weight: 600; color: var(--snow-muted); }
.menu__time { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--snow-muted); white-space: nowrap; }
.menu__price { grid-column: 3; grid-row: 1 / span 2; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu__desc { grid-column: 2; color: var(--snow-muted); font-size: .93rem; max-width: 64ch; }
/* doplnkové služby – kompaktné riadky bez miniatúry */
.menu__addons-title { margin-top: 40px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--snow); }
.menu__addons-note { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--snow-muted); }
.menu--addons { margin-top: 12px; }
.menu__item--addon { grid-template-columns: 1fr auto; padding: 16px 0; }
.menu__item--addon .menu__main { grid-column: 1; }
.menu__item--addon .menu__name { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.menu__item--addon .menu__price { grid-column: 2; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.menu__item--addon .menu__desc { grid-column: 1; font-size: .88rem; }
.menu__cta { display: flex; justify-content: flex-start; margin-top: 32px; }

/* ---------- OTVORENIE A REZERVÁCIA ---------- */
.booking { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .booking { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.booking__copy .h2 { margin-bottom: 28px; }
.promo {
  display: flex; gap: 16px; align-items: flex-start; max-width: 60ch;
  padding: 20px 22px; border-radius: var(--radius-sm);
  border: 1px solid rgba(154, 20, 29, .3); background: linear-gradient(135deg, rgba(154, 20, 29, .1), rgba(154, 20, 29, .02) 60%, transparent);
  font-weight: 600;
}
.promo__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--black); color: var(--paper); }
.promo__icon .ico { width: 20px; height: 20px; }
.pay { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.pay li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink-line-2); background: #fff; font-size: .92rem; font-weight: 700; }
.pay li.pay__main { background: var(--black); color: var(--paper); border-color: var(--black); }
.pay .ico { width: 18px; height: 18px; }
.pay__note { margin-top: 12px; font-size: .95rem; color: var(--ink-muted); max-width: 48ch; }
.booking__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.cdcard { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--ink-line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); }
.cdcard__label { margin-bottom: 16px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cd { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px 14px; border-radius: var(--radius-sm); background: var(--paper); }
.cd__num { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.cd__lbl { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.cdcard__foot { margin-top: 16px; font-size: .88rem; color: var(--ink-muted); }
.cdcard__big { font-family: var(--font-serif); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.cdcard--open { background: var(--black); color: var(--paper); border-color: var(--black); }
.cdcard--open .cdcard__label, .cdcard--open .cdcard__foot { color: var(--snow-muted); }

/* ---------- BARBERKA ---------- */
.barber { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .barber { grid-template-columns: .8fr 1.2fr; gap: 88px; } }
.portrait {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 600px;
  border-radius: var(--radius-lg); border: 1px solid var(--snow-line);
  background: var(--grain), radial-gradient(90% 70% at 30% 20%, rgba(154, 20, 29, .42), transparent 55%), #131316;
}
.portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .6)); pointer-events: none; }
.portrait__tag { position: absolute; z-index: 1; left: 24px; top: 24px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--snow-line-2); background: rgba(10, 10, 11, .5); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.barber__copy .h2 { margin-bottom: 30px; }
.quote { position: relative; max-width: 30ch; padding-left: 44px; }
.quote::before { content: "„"; position: absolute; left: 0; top: -.78em; font-family: var(--font-serif); font-style: italic; font-size: 3.4em; line-height: 1; color: var(--red); }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.2; text-wrap: pretty; }
.quote__by { margin-top: 16px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--snow-muted); }


/* ---------- GALÉRIA (pripravené) ---------- */
[hidden] { display: none !important; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); aspect-ratio: 4 / 3; }
.gallery__item--tall { aspect-ratio: 4 / 5; grid-row: span 2; }
.gallery__item a { display: block; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .gallery__item:hover img { transform: scale(1.04); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } .gallery__item--tall { grid-row: span 2; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(11, 11, 12, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox__img { display: block; max-width: min(96vw, 1400px); max-height: 94vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox__close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- RECENZIE (pripravené) ---------- */
.reviews { display: grid; gap: 14px; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.review { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px; border-radius: var(--radius); border: 1px solid var(--snow-line); background: rgba(255, 255, 255, .04); }
.review__stars { color: var(--paper); letter-spacing: .12em; font-size: 1.05rem; }
.review__text { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; text-wrap: pretty; }
.review__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--snow-line); font-size: .92rem; }
.review__by small { display: block; color: var(--snow-muted); font-size: .8rem; }
.review__avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); font-weight: 800; }

/* ---------- KONTAKT ---------- */
.contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; } }
.contact__info .h2 { margin-bottom: 30px; }
.address { margin-bottom: 28px; font-style: normal; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; }
.info { margin: 0 0 32px; border-top: 1px solid var(--ink-line); }
.info > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--ink-line); }
.info dt { padding-top: 3px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.info dd { font-weight: 600; }
.info a { text-underline-offset: 3px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; align-self: center; border-radius: var(--radius-lg); border: 1px solid var(--ink-line); background: var(--paper-2); --pin-x: 50%; --pin-y: 52.5%; }
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map iframe { position: absolute; left: 0; right: 0; top: -50px; width: 100%; height: calc(100% + 50px); border: 0; pointer-events: none; opacity: 0; transition: opacity .6s; } /* horných 50 px (Google odkaz) je orezaných; stred mapy je preto v main.js posunutý o 25 px na sever */
.map.is-loaded iframe { opacity: 1; }
.map.is-loaded picture { visibility: hidden; }
.map.is-loaded { --pin-x: 50%; --pin-y: 50%; } /* Google podklad má stred presne na GPS */
.map__pin { z-index: 2; }
.map__pin { position: absolute; left: var(--pin-x); top: var(--pin-y); display: flex; flex-direction: column; align-items: center; }
.map__bubble { position: relative; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--black); color: var(--paper); font-size: .85rem; font-weight: 700; white-space: nowrap; transform: translate(-50%, calc(-100% - 16px)); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .6); }
.map__bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--black); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.map__pulse { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
/* celá mapa je odkaz do Google Máp (nová karta) */
.map__link { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: flex-end; padding: 14px; text-decoration: none; color: var(--ink); cursor: pointer; }
.map__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--ink-line-2); font-size: .82rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); transition: background-color .3s, color .3s, transform .35s var(--ease); }
.map__chip .ico { width: 15px; height: 15px; }
.map__link:hover .map__chip { background: var(--black); color: var(--paper); transform: translateY(-2px); }
@media (max-width: 560px) { .map { aspect-ratio: 1 / 1; } }

/* ---------- ZÁVEREČNÁ VÝZVA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 190px) 0; text-align: center; background: linear-gradient(180deg, rgba(11, 11, 12, .9), rgba(11, 11, 12, .8) 50%, rgba(11, 11, 12, .92)), url("../img/ai/tool-scissors-bg.webp") center 30% / cover no-repeat var(--black); }
.final__glow { position: absolute; inset: 0; z-index: -1; opacity: .6; background: radial-gradient(45% 70% at 15% 30%, rgba(154, 20, 29, .22), transparent 70%), radial-gradient(45% 70% at 88% 80%, rgba(2, 51, 106, .3), transparent 70%); }
.final__title { font-weight: 900; font-size: clamp(3rem, 10vw, 9rem); line-height: .9; letter-spacing: -.055em; text-wrap: balance; }
.final__by { margin-top: 22px; font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--snow-muted); }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

/* ---------- PÄTIČKA ---------- */
.footer { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--snow-line); background: var(--grain), url("../img/ai/texture-dark.webp") center / cover no-repeat var(--black); color: var(--snow); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.plaque { display: inline-block; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--paper); } /* svetlá plaketa – logo nikdy na tmavom */
.plaque img { width: 260px; max-width: 100%; height: auto; }
@media (max-width: 599px) { .plaque { padding: 18px 22px; } .plaque img { width: 220px; } }
.footer__info { display: grid; gap: 8px; color: var(--snow-muted); font-size: .95rem; }
.footer__info a { color: var(--snow); text-decoration: none; }
.footer__info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--snow-line); font-size: .85rem; color: var(--snow-muted); }

/* ---------- ŠÍPKA HORE (objaví sa po odscrollovaní hero) ---------- */
.totop {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 55;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--ink); border: 1px solid rgba(11, 11, 12, .12);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .25); /* biela = vidno na tmavých aj svetlých sekciách */
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .4s var(--ease), background-color .25s, visibility 0s .4s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), background-color .25s, visibility 0s; }
.totop .ico { width: 20px; height: 20px; }
@media (hover: hover) { .totop:hover { background: var(--black); color: var(--paper); } }
@media (max-width: 899px) { .totop { right: max(14px, env(safe-area-inset-right)); bottom: calc(100px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } } /* nad mobilnou lištou */

/* ---------- MOBILNÁ LIŠTA ---------- */
.dock {
  position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; gap: 8px; padding: 7px; border-radius: 999px;
  border: 1px solid rgba(11, 11, 12, .1); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s .55s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.dock .btn { flex: 1; }
.dock__call { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.dock__call .ico { width: 20px; height: 20px; }
@media (min-width: 900px) { .dock { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   ANIMÁCIE
   ========================================================================== */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: reveal 1s var(--ease) var(--d, 0s) backwards; }
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } }

@keyframes rise { from { transform: translateY(.35em) rotate(1.5deg); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js [data-reveal]:not(.is-in), .hero__logo, .hero__mark, .hero .pill, .hero__kicker, .hero__addr, .hero__cta, .hero__hint, .hero__stage { opacity: 1; transform: none; }
  .hero__slogan .w { transform: none; }
}
