/*
  styles.css — AD Fashion
  Zdroj pravdy pre dizajn je Figma (tobvLRLnb4HZysARorZryA, frame 2:5 a lightbox 2:153).
  Mobile-first. Pri šírke 1440 px hodnoty zodpovedajú Figme, menšie šírky sú odvodené.
*/

/* ==========================================================================
   Tokeny
   ========================================================================== */
:root {
  --red: #c10e0c;
  --red-dark: #a00b09;
  --red-nav: #ba3c3b;          /* aktívny odkaz v navigácii */
  --ink: #211d1b;
  --text: #1a1a1a;
  --muted: #635c58;
  --muted-2: #756f6b; /* tmavšie než figma #8f8783 — pôvodná dala len 3,5:1 na bielej, WCAG AA chce 4,5:1 */
  --brand: #8a857f;
  --line: #e9e7e6;
  --line-warm: #e5dec9;
  --cream: #faf8f5;
  --beige: #f2ece4;
  --tile: #eeece9;
  --map: #f2f0ee;
  --backdrop: rgba(245, 245, 245, .96);

  --f-display: "Ultra", "Rockwell Extra Bold", Georgia, serif;
  --f-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Slabo 13px", Georgia, "Times New Roman", serif;

  --nav-h: 64px;
  --gutter: 20px;
  --container: 1200px;
  --ease-natural: cubic-bezier(.22, .61, .36, 1); /* jemné doznenie, pre vstupné animácie */
}
@media (min-width: 768px)  { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; --nav-h: 81px; } }
@media (min-width: 1440px) { :root { --gutter: 120px; } }

/* ==========================================================================
   Základ
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
/* Mobil: stránka sa nesmie hýbať do strán ani „plávať“ pod prstom. clip (na rozdiel od hidden)
   nevytvára scroll kontajner, takže nerozbije sticky navigáciu. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
html { touch-action: pan-y; }
/* karusely a dialógy si horizontálny pohyb ponechávajú */
.carousel__viewport, .gallery__viewport { touch-action: pan-x pan-y; }
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

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

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.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-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 4px;
  background: var(--ink); color: #fff; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* Nadpis sekcie (PONUKA, KONTAKT) */
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 40px);
  line-height: normal;
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
}

/* Tlačidlá (Figma 42:9, 42:12) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px; border-radius: 8px;
  font-family: var(--f-serif); font-size: 16px; line-height: 1.6;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.btn--primary { min-width: 143px; background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { min-width: 147px; border: 1px solid #000; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Šípky karuselov (Figma 110:3, 122:29) */
.arrow {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink);
  transition: opacity .2s, transform .2s;
}
.arrow svg { width: 44px; height: 44px; }
.arrow__ring { fill: #fff; stroke: var(--line); transition: stroke .2s; }
.arrow:hover:not(:disabled) .arrow__ring { stroke: var(--ink); }
.arrow:hover:not(:disabled) { transform: scale(1.06); }
.arrow:disabled { opacity: .35; cursor: default; }

/* Neutrálna dlaždica, kým nie je fotka */
.foto-prazdne { display: block; width: 100%; height: 100%; background: var(--beige); }

/* ==========================================================================
   Navigácia (Figma 2:6)
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-warm);
}
.nav__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: calc(var(--nav-h) - 1px);
  padding-inline: 12px;
}

.nav__toggle {
  justify-self: start;
  display: grid; place-items: center;
  width: 44px; height: 44px;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav__toggle-bar { position: relative; }
.nav__toggle-bar::before,
.nav__toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* bez JS: odkazy v riadku pod logom */
.nav__links {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
  padding: 4px 0 12px;
}
.nav__links a { font-weight: 500; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
html:not(.js) .nav__toggle { visibility: hidden; }

/* s JS: rozbaľovacie menu */
.js .nav__links {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; flex-direction: column; align-items: stretch; gap: 0;
  padding: 4px var(--gutter) 12px;
  background: #fff;
  border-bottom: 1px solid var(--line-warm);
  box-shadow: 0 12px 16px rgba(0, 0, 0, .06);
}
.js .nav__links.is-open { display: flex; }
.js .nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.js .nav__links a:last-child { border-bottom: 0; }
.nav__links a.is-active { color: var(--red-nav); font-weight: 600; }

.nav__logo { grid-column: 2; grid-row: 1; justify-self: center; }
.nav__logo img { width: 112px; height: auto; }

.nav__phone {
  grid-column: 3; grid-row: 1; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; justify-content: center;
  font-weight: 600; font-size: 14px; line-height: normal; color: var(--ink);
  transition: color .2s;
}
.nav__phone:hover { color: var(--red); }
.nav__phone-icon { flex: none; width: 16px; height: 16px; }
@media (max-width: 559px) {
  .nav__phone-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav__phone-icon { width: 20px; height: 20px; }
}

@media (min-width: 1024px) {
  /* okraje na prvkoch, nie na mriežke, aby logo ostalo presne v strede stránky (Figma x 654) */
  .nav__inner { padding: 0; }
  .nav__phone { margin-right: 80px; }
  .nav__toggle { display: none; }
  .nav__links,
  .js .nav__links {
    position: static; grid-column: 1; grid-row: 1; justify-self: start;
    display: flex; flex-direction: row; align-items: center; gap: 32px;
    margin-left: 26px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav__links a,
  .js .nav__links a { position: relative; padding: 0; border: 0; font-size: 14px; line-height: 18px; }
  .nav__links a.is-active::after {
    content: ""; position: absolute; left: 0; top: 22px;
    width: 24px; height: 1px; background: var(--red-nav);
  }
  .nav__logo { margin-top: 9px; }
  .nav__logo img { width: 133px; }
}

/* ==========================================================================
   Hero (Figma 2:19)
   Pod 768 px: jednoduchý stĺpec (nadpis → fotka → text), všetko na stred.
   Od 768 px: grid s dvoma riadkami (nadpis cez celú šírku, pod ním fotka +
   text vedľa seba) — rovnaký spoľahlivý vzor ako `.about__row`. Žiadne
   absolútne pozicovanie ani magické pixely, takže sa nadpis s fotkou
   nemôže prekryť pri ŽIADNEJ šírke (predtým sa to lámalo okolo 640 aj 1280 px,
   lebo hodnoty boli vypočítané presne pre 1440 px a mimo neho sa rozchádzali).
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 40px var(--gutter);
  background-color: #fff;
  background-image: url("img/hero-bg-768.jpg");
  background-image: image-set(url("img/hero-bg-768.avif") type("image/avif"), url("img/hero-bg-768.webp") type("image/webp"), url("img/hero-bg-768.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) {
  .hero {
    background-image: url("img/hero-bg-1440.jpg");
    background-image: image-set(url("img/hero-bg-1440.avif") type("image/avif"), url("img/hero-bg-1440.webp") type("image/webp"), url("img/hero-bg-1440.jpg") type("image/jpeg"));
  }
}
@media (min-width: 1600px), (min-width: 1024px) and (min-resolution: 1.5dppx) {
  .hero {
    background-image: url("img/hero-bg-1995.jpg");
    background-image: image-set(url("img/hero-bg-1995.avif") type("image/avif"), url("img/hero-bg-1995.webp") type("image/webp"), url("img/hero-bg-1995.jpg") type("image/jpeg"));
  }
}

@keyframes hero-vstup {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Iba transform, žiadne opacity — fotka žien má fetchpriority="high" (LCP kandidát na niektorých
   zlomoch), opacity 0→1 by prehliadaču posunulo čas jej vykreslenia a zhoršilo LCP v Lighthouse. */
@keyframes hero-foto-vstup {
  from { transform: translateY(18px) scale(.98); }
  to { transform: translateY(0) scale(1); }
}

.hero__title {
  position: relative; z-index: 1;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 4.45vw, 64px);
  line-height: 1.15;
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 .156em .3125em rgba(0, 0, 0, .6);
  text-wrap: balance;
  animation: hero-vstup .9s var(--ease-natural) both;
}

.hero__side { position: relative; z-index: 1; margin-top: 28px; text-align: center; animation: hero-vstup .9s var(--ease-natural) .2s both; }
.hero__lead { font-size: 18px; line-height: 1.35; color: #000; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 28px; }

.hero__women {
  display: block; /* <picture> je inak inline a transform (animácia nižšie) by sa naň neaplikoval */
  position: relative; z-index: 1; width: min(62vw, 300px); margin: 24px auto 0;
  animation: hero-foto-vstup .9s var(--ease-natural) .08s both;
}
.hero__women img { width: 100%; height: auto; }
/* telefón: fotka je sama na stred, dámy sú v nej posunuté o 7,73 % šírky doprava */
@media (max-width: 767px) { .hero__women img { transform: translateX(-7.73%); } }

@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(220px, 420px) 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 48px; row-gap: 40px;
    /* žiadny padding zospodu — fotka má sedieť úplne na hrane rámu, bez medzery */
    padding: 64px var(--gutter) 0;
  }
  .hero__title { grid-column: 1 / -1; grid-row: 1; }
  .hero__women { grid-column: 1; grid-row: 2; align-self: end; width: 100%; margin: 0; }
  .hero__side { grid-column: 2; grid-row: 2; margin: 0; text-align: left; }
  .hero__actions { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(300px, 472px) 1fr;
    max-width: 1440px; margin-inline: auto;
    min-height: 800px;
    /* min-height býva väčšia než skutočný obsah (nadpis + fotka) — bez tohto by voľný
       priestor ostal POD fotkou (fotka by „levitovala"). align-content:end ho posunie
       nad nadpis, takže fotka sa vždy postaví až na spodok rámu, presne ako vo Figme. */
    align-content: end;
    padding: 100px var(--gutter) 0;
  }
  .hero__lead { font-size: clamp(18px, 1.67vw, 24px); }
  .hero__actions { margin-top: 28px; }
}

/* ==========================================================================
   Pásik (Figma 202:2)
   ========================================================================== */
.ticker {
  display: flex; align-items: center;
  height: 48px; overflow: hidden;
  padding-left: 48px;
  background: #fff;
  border-block: 1px solid var(--line);
}
.ticker__track { display: flex; flex: none; width: max-content; animation: ticker 75s linear infinite; }
.ticker__group { display: flex; flex: none; gap: 40px; padding-right: 40px; }
.ticker__item {
  font-weight: 500; font-size: 12px; line-height: normal;
  letter-spacing: .96px; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.ticker__icon { flex: none; width: 20px; height: 20px; }
.ticker__icon img {
  width: 100%; height: 100%; object-fit: contain;
  /* vždy čierna bez ohľadu na farbu zdrojového súboru (vo Figme vyšla jedna ikona omylom červená) */
  filter: brightness(0);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Ponuka (Figma 2:37)
   ========================================================================== */
.ponuka { padding-block: 64px; }
.ponuka .section-title { margin-bottom: 40px; }

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
.cat__btn { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: center; }
.cat__foto {
  display: block; aspect-ratio: 384 / 500; overflow: hidden;
  border-radius: 4px; background: var(--beige);
}
.cat__foto picture, .cat__foto img { width: 100%; height: 100%; }
.cat__foto img { object-fit: cover; transition: transform .6s ease; }
.cat__btn:hover .cat__foto img { transform: scale(1.03); }
.cat__btn:focus-visible { outline-offset: 6px; }
.cat__nazov { font-size: 16px; line-height: normal; color: var(--ink); }

@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .ponuka { padding-block: 120px; }
  .ponuka .section-title { margin-bottom: 56px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
}

/* ==========================================================================
   Značky (Figma 104:2)
   ========================================================================== */
.znacky { padding-block: 48px; }
.carousel { display: flex; align-items: center; gap: 8px; }

.carousel__viewport {
  flex: 1; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-end { -webkit-mask-image: none; mask-image: none; }

.znacky__track {
  display: flex; align-items: center; gap: 40px;
  width: max-content; height: 72px;
  padding-inline: var(--gutter);
}
.znacka {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 170px; height: 52px;
  border-radius: 4px;
  scroll-snap-align: start;
  transition: opacity .2s;
}
.znacka picture { width: 100%; height: 100%; }
.znacka img { width: 100%; height: 100%; object-fit: contain; }
.znacka img[src$=".svg"] { width: 150px; height: 41px; }
.znacka--text {
  width: auto; height: 72px; padding-inline: 12px;
  font-weight: 500; font-size: 19px; line-height: normal; letter-spacing: .38px;
  color: var(--ink); white-space: nowrap;
}
/* Logo je odkaz na web tej firmy — jemný náznak klikateľnosti, nič, čo by narušilo logovú stenu. */
a.znacka:hover, a.znacka:focus-visible { opacity: .7; }
a.znacka:focus-visible { outline-offset: 4px; }

@media (min-width: 640px) {
  .znacky__track { padding-inline: 0; }
}
@media (min-width: 1024px) {
  .znacky { padding-block: 64px; }
  .carousel { gap: 24px; }
  .znacky__track { gap: 56px; }
}

/* ==========================================================================
   Prečo u nás (Figma 58:4)
   ========================================================================== */
.preco {
  padding-block: 56px;
  background-color: #fff;
  background-image: url("img/preco-bg-768.jpg");
  background-image: image-set(url("img/preco-bg-768.avif") type("image/avif"), url("img/preco-bg-768.webp") type("image/webp"), url("img/preco-bg-768.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 100% 50%;
}
@media (min-width: 768px) {
  .preco {
    background-image: url("img/preco-bg-1440.jpg");
    background-image: image-set(url("img/preco-bg-1440.avif") type("image/avif"), url("img/preco-bg-1440.webp") type("image/webp"), url("img/preco-bg-1440.jpg") type("image/jpeg"));
  }
}
@media (min-width: 1600px), (min-width: 1024px) and (min-resolution: 1.5dppx) {
  .preco {
    background-image: url("img/preco-bg-2400.jpg");
    background-image: image-set(url("img/preco-bg-2400.avif") type("image/avif"), url("img/preco-bg-2400.webp") type("image/webp"), url("img/preco-bg-2400.jpg") type("image/jpeg"));
  }
}

.preco__row { display: grid; grid-template-columns: 1fr; gap: 48px; }
.preco__item { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.preco__icon {
  display: block; width: 64px; height: 64px; overflow: hidden;
  border-radius: 4px; background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.preco__icon img { width: 64px; height: 64px; object-fit: contain; }
.preco__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: 24px; line-height: 1.3; color: var(--ink);
}
.preco__title .accent { color: var(--red); }
.preco__text { max-width: 400px; margin-top: -8px; font-size: 14px; line-height: 1.5; color: var(--text); }

@media (min-width: 768px) {
  .preco__row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .preco__title { min-height: 66px; }
}
@media (min-width: 1024px) { .preco { padding-block: 72px; } }

/* ==========================================================================
   Predajňa (Figma 116:2)
   ========================================================================== */
.predajna { padding: 48px 0 40px; }

.gallery__viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
/* telefón: v zábere jedna celá fotka, medzera = bočný okraj; od 768 px pás 360 px dlaždíc (Figma) */
.gallery__track { display: flex; gap: var(--gutter); width: max-content; padding-inline: var(--gutter); }

.tile { flex: none; width: calc(100vw - 2 * var(--gutter)); scroll-snap-align: start; }
.tile__btn {
  position: relative; display: block; width: 100%;
  aspect-ratio: 360 / 450; overflow: hidden;
  background: var(--tile);
}
.tile__btn:focus-visible { outline-offset: -3px; outline-color: #fff; }
.tile__btn picture, .tile__btn img { width: 100%; height: 100%; }
.tile__btn img { object-fit: cover; object-position: 50% 0; }

.tile__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: rgba(193, 14, 12, .62);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.tile__btn:hover .tile__overlay,
.tile__btn:focus-visible .tile__overlay,
button.lb-card__foto:hover .tile__overlay,
button.lb-card__foto:focus-visible .tile__overlay { opacity: 1; }
.tile__plus { position: relative; width: 56px; height: 56px; border: 1.5px solid #fff; border-radius: 50%; }
.tile__plus::before,
.tile__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: #fff; transform: translate(-50%, -50%);
}
.tile__plus::before { width: 18px; height: 1.5px; }
.tile__plus::after  { width: 1.5px; height: 18px; }
.tile__label { font-weight: 500; font-size: 14px; line-height: normal; letter-spacing: 1px; }

.gallery__controls {
  display: flex; justify-content: flex-end; gap: 12px;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 20px auto 0;
}
@media (min-width: 768px) {
  .gallery__viewport { scroll-padding-inline: 0; }
  .gallery__track { gap: 16px; padding-inline: 0; }
  .tile { width: 360px; }
  .gallery__controls { margin-top: 24px; }
}
@media (min-width: 1024px) {
  .predajna { padding: 74px 0 58px; } /* Figma: pás 450 + šípky 44 vycentrované v ráme 626, odstup šípok pridaný navyše */
  .gallery__controls { margin-top: 28px; }
}

/* ==========================================================================
   O obchode (Figma 2:120)
   ========================================================================== */
.about {
  padding-block: 64px;
  background-color: #fff;
  background-image: url("img/oobchode-bg-768.jpg");
  background-image: image-set(url("img/oobchode-bg-768.avif") type("image/avif"), url("img/oobchode-bg-768.webp") type("image/webp"), url("img/oobchode-bg-768.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 100% 50%;
}
@media (min-width: 768px) {
  .about {
    background-image: url("img/oobchode-bg-1440.jpg");
    background-image: image-set(url("img/oobchode-bg-1440.avif") type("image/avif"), url("img/oobchode-bg-1440.webp") type("image/webp"), url("img/oobchode-bg-1440.jpg") type("image/jpeg"));
  }
}
@media (min-width: 1600px), (min-width: 1024px) and (min-resolution: 1.5dppx) {
  .about {
    background-image: url("img/oobchode-bg-1995.jpg");
    background-image: image-set(url("img/oobchode-bg-1995.avif") type("image/avif"), url("img/oobchode-bg-1995.webp") type("image/webp"), url("img/oobchode-bg-1995.jpg") type("image/jpeg"));
  }
}

.about__row { display: grid; gap: 40px; align-items: center; }
.about__photo { aspect-ratio: 560 / 480; overflow: hidden; border-radius: 8px; background: var(--cream); }
.about__photo picture, .about__photo img { width: 100%; height: 100%; }
.about__photo img { object-fit: cover; }

.about__text { display: flex; flex-direction: column; gap: 28px; }
.about__quote {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.22;
  color: var(--red);
  text-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.about__body { font-size: 16px; line-height: 1.6; color: #000; }
.about__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.about__person { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.about__name { font-size: 20px; line-height: normal; color: #000; }
.about__role { font-size: 13px; line-height: normal; color: #000; }

@media (min-width: 1024px) {
  .about { padding-block: 120px; }
  .about__row { grid-template-columns: 1fr 1fr; gap: 80px; }
  .about__photo { aspect-ratio: auto; height: 480px; }
  .about__sign { gap: 24px 120px; }
}

/* ==========================================================================
   Kontakt (Figma 106:2)
   ========================================================================== */
.kontakt { padding-block: 64px; }
.kontakt .section-title { margin-bottom: 40px; }
.kontakt__row { display: grid; gap: 40px; }

.kontakt__info { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.kontakt__group { display: flex; flex-direction: column; gap: 8px; }
.kontakt__label {
  font-weight: 500; font-size: 12px; line-height: normal;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
}
.kontakt__value { font-size: 18px; line-height: normal; color: var(--ink); }
.kontakt__value a { transition: color .2s; }
.kontakt__value a:hover { color: var(--red); }
.hours { display: flex; flex-direction: column; gap: 8px; }
.hours__time { margin-left: .45em; }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 4px;
  background: var(--red); color: #fff;
  font-weight: 500; font-size: 16px; line-height: normal;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-cta:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }

.kontakt__map {
  height: 320px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--map);
}
.kontakt__map iframe { width: 100%; height: 100%; border: 0; }

/* Mapa sa načíta až po súhlase (cookies.js): bez súhlasu je vidieť iba tento panel */
.kontakt__map:not(.is-loaded) iframe { display: none; }
.kontakt__map.is-loaded .map-consent { display: none; }
.map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 100%; padding: 24px; text-align: center;
  font-family: var(--f-ui); color: var(--ink);
}
.map-consent__title { margin: 0; font-family: var(--f-display); font-size: 22px; line-height: 1.2; color: var(--red); }
.map-consent__addr { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 500; }
.map-consent__text { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.map-consent__text a { text-decoration: underline; text-underline-offset: 2px; }
.map-consent__text a:hover { color: var(--red); }
.map-consent__btn { display: none; margin-top: 6px; }
.js .map-consent__btn { display: inline-flex; }

/* Cookie lišta (Figma ju nemá, odvodená z tokenov a tlačidiel webu). Nie je modálna, nič neblokuje. */
.cookiebar {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 760px; margin-inline: auto; padding: 16px;
  border: 1px solid var(--line-warm); border-radius: 8px;
  background: var(--cream); box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  font-family: var(--f-ui); font-size: 14px; line-height: 1.5; color: var(--ink);
}
.cookiebar__text { margin: 0; }
.cookiebar__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookiebar__text a:hover { color: var(--red); }
.cookiebar__btns { display: flex; gap: 8px; }
.cookiebar__btns .btn { flex: 1 1 0; min-width: 0; padding: 0 16px; }
@media (min-width: 768px) {
  .cookiebar { flex-direction: row; align-items: center; gap: 24px; bottom: 24px; padding: 16px 20px; }
  .cookiebar__btns { flex: none; }
  .cookiebar__btns .btn { flex: none; min-width: 120px; }
}

@media (min-width: 1024px) {
  .kontakt { padding-block: 100px; }
  .kontakt .section-title { margin-bottom: 56px; }
  .kontakt__row { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .kontakt__map { height: 420px; }
}

/* ==========================================================================
   Pätička (Figma 2:130)
   ========================================================================== */
.footer { padding: 56px 0 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "logo logo"
    "addr addr"
    "nav  contact"
    "nav  hours";
  gap: 28px 24px;
}
.footer__logo    { grid-area: logo; justify-self: start; }
.footer__nav     { grid-area: nav; }
.footer__contact { grid-area: contact; }
.footer__open    { grid-area: hours; }
.footer__address { grid-area: addr; }

.footer__logo img { width: 225px; height: auto; }
.footer__col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: normal; color: var(--muted);
}
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__nav a { font-weight: 500; }
.footer__title { font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--muted-2); }
.footer__hours { display: flex; flex-direction: column; gap: 12px; }
.footer__address { font-style: normal; font-size: 14px; line-height: 1.5; color: var(--muted); }

.footer__legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid #000; /* čierna deliaca linka (požiadavka používateľky), nie z Figmy */
  font-size: 12px; line-height: normal; color: var(--muted-2);
}
.footer__legal p { margin: 0; }
.footer__legal .footer__ident { margin-top: 8px; line-height: 1.5; }
.footer__legal .footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.footer__links a, .footer__cookies {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.footer__links a:hover, .footer__cookies:hover { color: var(--red); }

@media (min-width: 1024px) {
  .footer { padding: 80px 0 48px; }
  .footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "logo nav contact hours"
      "addr nav .       .";
    gap: 20px 100px;
  }
  .footer__legal { margin-top: 64px; }
}

/* ==========================================================================
   Lightbox kategórie (Figma 2:153)
   ========================================================================== */
.modal,
.viewer {
  width: 100%; height: 100%; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop,
.viewer::backdrop { background: var(--backdrop); }
@keyframes dialog-pozadie-vstup { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-obsah-vstup {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
.modal[open]::backdrop,
.viewer[open]::backdrop { animation: dialog-pozadie-vstup .3s var(--ease-natural); }
.modal[open] .modal__box,
.viewer[open] .viewer__box { animation: dialog-obsah-vstup .32s var(--ease-natural); }
.modal[open] { display: flex; }

.modal__box {
  position: relative;
  width: 100%; min-height: 100%;
  margin: auto;
  padding: 20px 16px 32px;
  background: var(--cream);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 16px;
}
.modal__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(24px, 5vw, 36px); line-height: normal;
  color: var(--red);
}
.modal__sub { margin-top: 4px; font-family: var(--f-serif); font-size: 12px; line-height: normal; color: var(--ink); }
.modal__foot {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid #000;
}
.modal__note {
  margin: 0; max-width: 520px; text-align: center;
  font-family: var(--f-ui); font-size: 15px; line-height: 1.5; color: var(--muted);
}
.modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.modal__actions .btn { gap: .35em; } /* medzera medzi „Zavolať“ a číslom (flex ju inak pohltí) */
.modal__close {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--beige); border: 1px solid var(--line-warm);
  color: var(--ink);
  transition: background-color .2s;
}
.modal__close::after { content: ""; position: absolute; inset: -6px; } /* väčšia plocha na dotyk */
.modal__close:hover { background: #e9e1d6; }

.lb-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.lb-card {
  display: flex; flex-direction: column; gap: 12px;
  width: calc(50% - 8px); padding: 12px;
  background: #fff; border: 1px solid #fff; border-radius: 4px;
}
.lb-card__foto { aspect-ratio: 174 / 180; overflow: hidden; border-radius: 2px; background: var(--beige); }
.lb-card__foto picture, .lb-card__foto img { width: 100%; height: 100%; }
.lb-card__foto img { object-fit: cover; transition: transform .6s ease; }
button.lb-card__foto { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
.lb-card__foto .tile__overlay { gap: 12px; }
.lb-card__foto .tile__plus { width: 44px; height: 44px; }
.lb-card__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lb-card__nazov { font-weight: 600; font-size: 14px; line-height: normal; color: var(--ink); }
.lb-card__sezona {
  padding: 3px 8px; border-radius: 100px;
  background: var(--beige);
  font-weight: 500; font-size: 11px; line-height: normal; color: var(--ink);
}
.lb-card__znacka { font-size: 11px; line-height: normal; color: var(--brand); }

@media (min-width: 600px) { .lb-card { width: 198px; } }
@media (min-width: 768px) {
  .modal[open] { padding: 40px 24px; }
  .modal__box {
    width: min(920px, 100%); min-height: 0;
    padding: 40px 40px 108px;
    border-radius: 8px;
    box-shadow: 0 16px 16px rgba(0, 0, 0, .2);
  }
  .modal__head { margin-bottom: 32px; }
}

/* ==========================================================================
   Prehliadač fotiek z Predajne
   ========================================================================== */
.viewer[open] { display: flex; }
.viewer__box {
  position: relative; margin: auto;
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 100%;
  padding: 64px 16px 24px;
}
.viewer__figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer__foto picture { display: block; }
.viewer__foto img {
  width: auto; height: auto;
  max-width: min(720px, 100vw - 32px);
  max-height: calc(100dvh - 150px);
  border-radius: 4px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, .2);
}
.viewer__caption { font-size: 14px; line-height: normal; color: var(--ink); text-align: center; }
.viewer__count { margin-left: 8px; color: var(--muted-2); }
.viewer__close { position: fixed; top: 16px; right: 16px; z-index: 2; }
.viewer__prev,
.viewer__next { position: fixed; top: 50%; z-index: 2; transform: translateY(-50%); }
.viewer__prev { left: 12px; }
.viewer__next { right: 12px; }

/* Fotky položiek z Ponuky majú zdroj iba do 400px — nezväčšovať cez reálnu veľkosť,
   inak by boli rozmazané. */
.viewer--polozka .viewer__foto img { max-width: min(400px, 100vw - 32px); }

@media (min-width: 768px) {
  .viewer__foto img { max-width: min(720px, 100vw - 160px); }
  .viewer--polozka .viewer__foto img { max-width: 400px; }
  .viewer__prev { left: 32px; }
  .viewer__next { right: 32px; }
  .viewer__close { top: 24px; right: 24px; }
}

/* ==========================================================================
   Telefón: text na stred
   Figma (1440 px) má O obchode, Kontakt a pätičku zarovnané doľava — to platí
   od 768 px vyššie beze zmeny. Na telefóne (do 767 px) si používateľ vyžiadal
   všetko na stred, aj keď to Figma takto nemá.
   ========================================================================== */
@media (max-width: 767px) {
  .about__text { align-items: center; text-align: center; }
  .about__sign { justify-content: center; }
  .kontakt__info { align-items: center; text-align: center; }
  .kontakt__group { align-items: center; }
  .footer__grid { justify-items: center; text-align: center; }
  .footer__logo { justify-self: center; }
  .footer__col { align-items: center; }
  .footer__legal { text-align: center; }
  .footer__links { justify-content: center; }
  .modal__head { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-inline: 50px; } /* rezerva pre tlačidlo zavrieť, nadpis ostáva vycentrovaný */
  .modal__title, .modal__sub { text-align: center; }
  .modal__title { font-size: 20px; } /* na telefóne sa vojde na 1–2 riadky popri tlačidle zavrieť */
  .modal__close { position: absolute; top: 20px; right: 16px; }
  .lb-card__meta { align-items: center; text-align: center; }
}

/* ==========================================================================
   Menej pohybu
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .cat__btn:hover .cat__foto img { transform: none; }
}

/* ==========================================================================
   Stránka Zásady ochrany údajov (zasady-ochrany-udajov.html)
   ========================================================================== */
.doc__top { padding-block: 20px; border-bottom: 1px solid var(--line); }
.doc__top .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc__back { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.doc__back:hover { color: var(--red); }
.doc { max-width: 760px; padding-block: 40px 56px; }
.doc h1 {
  margin: 0 0 8px; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 6vw, 44px); line-height: 1.15; text-transform: uppercase; color: var(--red);
}
.doc__meta { margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.doc h2 { margin: 32px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: var(--text); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.2em; list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--red); }

