/* Stránka mobilnej aplikácie na všetkých weboch (scripts/aplikacia-stranka.py, docs/aplikacie.md → Web). Načítava sa iba na nej,
   ostatné stránky neplatia za tieto štýly. Farby z :root v styl.css; tmavý režim prepisuje tie isté premenné. */

/* tmavý režim: triedu s-tmavy dá skript v <head> podľa zariadenia alebo voľby návštevníka (localStorage dr-tema) */
html.s-tmavy {
  color-scheme: dark;
  --bg: #121212; --ink: #ecebe8; --heading: #f6f5f3; --ui: #ecebe8; --dark: #000; --dark-2: #000; --dark-rgb: 0, 0, 0;
  --accent: #f0695c; --accent-2: #f58a7f; --accent-rgb: 240, 105, 92; --accent-soft: #3a211e; --accent-soft-2: #4a2a26;
  --text-2: #c9c7c3; --muted: #a09d98; --line: #2c2c2c; --line-2: #3d3d3d; --line-soft: #242424;
  --surface: #1b1b1b; --surface-2: #262626; --footer: #0a0a0a;
  --sh-1: none; --sh-2: 0 12px 28px -12px rgba(0, 0, 0, .7); --sh-3: 0 24px 48px -20px rgba(0, 0, 0, .8);
}
html.s-tmavy body { background: var(--bg); }
html.s-tmavy .top { background: #181818; border-top-color: #c8352a; box-shadow: 0 1px 0 var(--line); }
html.s-tmavy .logo img { filter: brightness(0) invert(1); }
html.s-tmavy .search:focus-within { background: #1b1b1b; border-color: var(--line-2); box-shadow: none; }
html.s-tmavy .search button, html.s-tmavy .ucet-pis, html.s-tmavy .fav-n { background: #c8352a; }
html.s-tmavy .fav-n { border-color: #181818; }
html.s-tmavy .menu-btn, html.s-tmavy .btn { background: #1b1b1b; }
html.s-tmavy .btn.primary { background: #c8352a; border-color: #c8352a; color: #fff; box-shadow: none; }
html.s-tmavy .lang-switch [aria-current] { color: #141414; }
html.s-tmavy .consent, html.s-tmavy .jazyk-ponuka { background: #1f1f1f; color: var(--ink); border-color: var(--line-2); }
html.s-tmavy .foot { border-top: 1px solid var(--line); }
html.s-tmavy .ok-ico { background: #c8352a; }
html.s-tmavy .app-tel { box-shadow: 0 30px 60px -28px #000, 0 0 0 1px #3a3a3a; }

.app-str { overflow-x: clip; }
.app-str h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.app-str .eyebrow { margin-bottom: 12px; }
.app-sv { background: var(--surface); }

/* rám telefónu okolo snímky; snímka má vlastný stavový riadok, takže iba tenký tmavý okraj */
.app-tel { --r: 36px; display: block; padding: 7px; background: #0b0b0b; border-radius: var(--r); box-shadow: 0 30px 60px -28px rgba(20, 20, 20, .55), 0 0 0 1px rgba(0, 0, 0, .06); }
.app-tel img { display: block; width: 100%; height: auto; border-radius: calc(var(--r) - 7px); background: #fff; }

/* úvod */
.app-hero { position: relative; overflow: hidden; }
.app-str .app-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; min-height: 620px; }
.app-hero-txt { position: relative; padding: 20px 0 52px; }
.app-hero h1 { margin: 26px 0 16px; font-size: clamp(2.2rem, 4.2vw, 3.45rem); line-height: 1.08; }
.app-perex { max-width: 39em; margin: 0 0 24px; color: var(--text-2); font-size: 1.2rem; line-height: 1.6; text-wrap: pretty; }
.app-tema { position: absolute; z-index: 3; top: 16px; right: 24px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 13px 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ui); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.app-tema:hover { border-color: var(--ui); }
.app-tema svg { display: block; width: 17px; height: 17px; }
.app-tema-s { display: none; }
.s-tmavy .app-tema-m { display: none; }
.s-tmavy .app-tema-s { display: block; }
.app-f-txt .app-tema { position: static; margin-top: 18px; }
.app-hero-tel { position: relative; display: flex; justify-content: center; align-items: flex-end; align-self: end; height: 100%; min-height: 560px; }
.app-hero-tel .app-tel { flex: none; }
.app-hero-tel .app-tel:nth-child(1) { width: 256px; margin: 0 -72px 74px 0; --r: 34px; }
.app-hero-tel .app-tel:nth-child(2) { position: relative; z-index: 2; width: 294px; margin-bottom: -78px; }

.app-hero { background: linear-gradient(165deg, #fdf3ee 0%, #fbe5dd 100%); }
.s-tmavy .app-hero { background: linear-gradient(165deg, #241a18 0%, #1a1413 100%); }

/* novinka poslednej verzie nad nadpisom (TEXTY[j]['novinka']), odkaz na jej sekciu */
.app-novinka { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 12px 5px 5px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 22px; background: rgba(255, 255, 255, .72); color: var(--ui); font-size: .93rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.app-novinka:hover { border-color: var(--accent); color: var(--ui); }
.app-novinka b { flex: none; padding: 3px 10px; border-radius: 999px; background: #c8352a; color: #fff; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.app-novinka svg { flex: none; width: 16px; height: 16px; color: var(--accent); }
.s-tmavy .app-novinka { background: rgba(255, 255, 255, .06); }

/* odkazy do obchodov (App Store vždy prvý); na telefóne iba obchod daného telefónu */
.app-obchody { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.app-odznak { display: block; flex: none; transition: transform .15s; }
.app-odznak:hover { transform: translateY(-1px); }
.app-odznak img { display: block; width: auto; height: 54px; }
.os-ios .app-obchody:not(.app-vsetky) .app-o-android, .os-android .app-obchody:not(.app-vsetky) .app-o-ios { display: none; }

/* QR kód: na počítači; biela karta aj v tmavom režime, inak by sa nedal načítať */
.app-qr { display: flex; align-items: center; gap: 14px; max-width: 372px; margin: 0 0 20px; padding: 9px 16px 9px 9px; border: 1px solid #e8e6e3; border-radius: 14px; background: #fff; }
.app-qr-kod { flex: none; width: 92px; height: 92px; }
.app-qr-kod svg { display: block; width: 100%; height: 100%; }
.app-qr p { margin: 0; color: #3d3d3d; font-size: .88rem; line-height: 1.38; }
.os-ios .app-qr, .os-android .app-qr { display: none; }

.app-znaky { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--ui); font-size: .96rem; font-weight: 600; }
.app-znaky li { display: inline-flex; align-items: center; gap: 7px; }
.app-znaky .ok-ico { width: 20px; height: 20px; }
.app-znaky .ok-ico svg { width: 12px; height: 12px; }
.app-hodn { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--text-2); font-size: .94rem; }
.app-hodn svg { flex: none; width: 18px; height: 18px; fill: #e8a317; }

/* čísla pod úvodom */
.app-str .app-cisla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 28px; padding-bottom: 28px; }
.app-cislo { padding: 20px 16px 18px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.app-cislo b { display: block; color: var(--accent); font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.1; }
.app-cislo span { display: block; margin-top: 7px; color: var(--text-2); font-size: .94rem; line-height: 1.38; }

/* funkcie so snímkami, striedavo vľavo a vpravo */
.app-f { padding: 64px 0; }
.app-f-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.app-f.app-sv .app-f-txt { order: 2; }
.app-body { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.app-body li { display: flex; gap: 12px; line-height: 1.55; text-wrap: pretty; }
.app-body .ok-ico { margin-top: 2px; }
.app-f-tel { display: flex; justify-content: center; align-items: flex-start; }
.app-n1 .app-tel { width: 298px; }
.app-n2 > .app-tel { width: 268px; }
.app-n2 > .app-tel:nth-child(1) { position: relative; z-index: 2; }
.app-n2 > .app-tel:nth-child(2) { margin: 52px 0 0 -44px; }
.app-tm { gap: 20px; }
.app-tm figure { flex: 0 1 262px; min-width: 0; margin: 0; }
.app-tm figcaption { margin-top: 12px; color: var(--text-2); font-size: .94rem; font-weight: 600; text-align: center; }

/* widgety na ploche: skutočné výrezy z telefónu; zaoblenie podľa výrezu zakryje rohy pozadia plochy */
.app-plocha { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(150deg, #33414f 0%, #5a4238 60%, #8a5a43 100%); box-shadow: var(--sh-3); }
.app-plocha-st { display: grid; gap: 14px; }
.app-w { display: block; width: 100%; height: auto; }
.app-w-recept, .app-w-dnes { border-radius: 9.4% / 13.9%; }
.app-w-nakup { border-radius: 12.7% / 9.1%; }

/* ďalšie funkcie */
.app-str .app-sek { padding-top: 64px; padding-bottom: 64px; }
.app-sek > h2 { text-align: center; margin-bottom: 26px; }
.app-karty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-karta { padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.app-karta .cp-ikona { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 0 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.app-karta .cp-ikona svg { display: block; width: 23px; height: 23px; }
.app-karta .cp-ikona svg:not([fill]) { fill: currentColor; }
.app-karta h3 { margin: 0 0 6px; font-size: 1.14rem; }
.app-karta p { margin: 0; color: var(--text-2); font-size: .96rem; line-height: 1.55; }

/* aplikácia alebo web */
.app-por { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
.app-por p { margin: 0; color: var(--text-2); font-size: 1.08rem; line-height: 1.6; text-wrap: pretty; }
.app-tab { width: 100%; border-collapse: collapse; border-radius: var(--r); background: var(--bg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.app-tab th, .app-tab td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.35; }
.app-tab tr:last-child th, .app-tab tr:last-child td { border-bottom: 0; }
.app-tab tbody th { font-weight: 500; text-align: left; }
.app-tab thead th { width: 96px; font-size: .9rem; font-weight: 700; text-align: center; }
.app-tab td { text-align: center; }
.app-ano, .app-nie { display: inline-grid; place-items: center; width: 24px; height: 24px; vertical-align: middle; }
.app-ano { color: var(--accent); }
.app-nie { color: var(--muted); }
.app-ano svg, .app-nie svg { width: 20px; height: 20px; }

/* galéria: záložky iba v CSS (rádiá) */
.app-zalozky { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 22px; }
.app-zalozky label { padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ui); font-size: .96rem; font-weight: 600; cursor: pointer; }
.app-zalozky label:hover { border-color: var(--ui); }
#app-z-ios:checked ~ .app-zalozky label[for="app-z-ios"], #app-z-android:checked ~ .app-zalozky label[for="app-z-android"],
#app-z-tmavy:checked ~ .app-zalozky label[for="app-z-tmavy"], #app-z-ipad:checked ~ .app-zalozky label[for="app-z-ipad"] { border-color: #c8352a; background: #c8352a; color: #fff; }
#app-z-ios:focus-visible ~ .app-zalozky label[for="app-z-ios"], #app-z-android:focus-visible ~ .app-zalozky label[for="app-z-android"],
#app-z-tmavy:focus-visible ~ .app-zalozky label[for="app-z-tmavy"], #app-z-ipad:focus-visible ~ .app-zalozky label[for="app-z-ipad"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-gal { display: none; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; padding: 6px 2px 16px; overflow-x: auto; scroll-snap-type: x proximity; justify-content: safe center; }
#app-z-ios:checked ~ .app-g-ios, #app-z-android:checked ~ .app-g-android, #app-z-tmavy:checked ~ .app-g-tmavy, #app-z-ipad:checked ~ .app-g-ipad { display: grid; }
.app-g-ipad { grid-auto-columns: 300px; }
.app-g-pol { display: block; color: inherit; text-decoration: none; scroll-snap-align: center; }
.app-g-pol .app-tel { --r: 26px; padding: 5px; box-shadow: 0 16px 30px -18px rgba(20, 20, 20, .5), 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .15s; }
.app-g-pol .app-tel img { border-radius: 21px; }
.app-g-pol:hover .app-tel { transform: translateY(-3px); }
.app-g-pop { display: block; margin-top: 11px; color: var(--text-2); font-size: .92rem; line-height: 1.35; text-align: center; }
.app-g-pomoc { margin: 6px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* zväčšená snímka */
.app-zv { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .9); color: #fff; }
.app-zv[open] { display: flex; align-items: center; justify-content: center; }
.app-zv::backdrop { background: rgba(0, 0, 0, .9); }
.app-zv figure { margin: 0; text-align: center; }
.app-zv img { display: block; width: auto; max-width: min(92vw, 720px); height: auto; max-height: calc(100dvh - 76px); margin: 0 auto; border-radius: 18px; background: #fff; }
.app-zv figcaption { margin-top: 10px; font-size: .95rem; }
.app-zv button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.app-zv button:hover { background: rgba(255, 255, 255, .3); }
.app-zv button svg { width: 24px; height: 24px; }
.app-zv-x { top: 14px; right: 14px; }
.app-zv-l { left: 14px; top: calc(50% - 23px); }
.app-zv-p { right: 14px; top: calc(50% - 23px); }

/* čo je nové a údaje */
.app-str .app-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 0; }
.app-info-b { padding: 28px 28px 22px; border: 1px solid var(--line); border-radius: var(--r); }
.app-info-b h2 { margin-bottom: 8px; font-size: 1.5rem; }
.app-info-b h3 { margin: 22px 0 8px; font-size: 1.12rem; }
.app-skor { margin: 0; padding: 0 0 0 20px; color: var(--text-2); line-height: 1.55; }
.app-skor li { margin: 0 0 5px; }
.app-info-pata { margin: 18px 0 0; color: var(--muted); font-size: .94rem; }
.app-udaje { margin: 8px 0 0; }
.app-udaje div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.app-udaje div:first-child { border-top: 0; }
.app-udaje dt { flex: none; color: var(--muted); }
.app-udaje dd { margin: 0; font-weight: 600; text-align: right; }

/* časté otázky */
.app-faq-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.app-faq-h { position: sticky; top: 20px; }
.app-faq-h p { margin: 0; color: var(--text-2); }
.app-faq { border-bottom: 1px solid var(--line-2); }
.app-faq:first-child { border-top: 1px solid var(--line-2); }
.app-faq summary { position: relative; padding: 15px 36px 15px 0; color: var(--heading); font-size: 1.06rem; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
.app-faq summary::-webkit-details-marker { display: none; }
.app-faq summary::after { content: ""; position: absolute; top: 21px; right: 6px; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .15s; }
.app-faq[open] summary::after { top: 25px; transform: rotate(225deg); }
.app-faq summary:hover { color: var(--accent); }
.app-faq p { margin: 0 0 18px; color: var(--text-2); line-height: 1.6; }

/* záver */
.app-koniec { background: #141414; color: #ecebe8; }
.s-tmavy .app-koniec { background: #000; border-top: 1px solid var(--line); }
.app-str .app-koniec-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 56px; padding-top: 52px; padding-bottom: 52px; }
.app-koniec h2 { color: #fff; }
.app-koniec p { margin: 0 0 22px; color: #d5d3cf; font-size: 1.1rem; }
.app-koniec .app-obchody { margin: 0; }
.app-koniec .app-qr { margin: 0; }
.app-koniec .app-qr p { margin: 0; color: #3d3d3d; font-size: .88rem; }
.app-pravne { margin: 18px 0 32px; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; }

/* lišta na telefóne */
.app-lista { position: fixed; z-index: 25; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .55); }
.app-lista[hidden] { display: none; }
.app-lista img { flex: none; border-radius: 10px; }
.app-lista p { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .84rem; line-height: 1.3; }
.app-lista strong { display: block; color: var(--heading); font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-lista span { color: var(--muted); }
.app-lista .btn { display: none; flex: none; min-height: 40px; padding: 6px 18px; }
.os-ios .app-lista .app-o-ios, .os-android .app-lista .app-o-android { display: inline-flex; }
.s-app-lista body { padding-bottom: 76px; }
@media (min-width: 761px) { .app-lista { display: none !important; } .s-app-lista body { padding-bottom: 0; } }

/* krátka adresa pre QR kód */
.app-stiahnut section { max-width: 620px; padding-top: 56px; padding-bottom: 72px; text-align: center; }
.app-stiahnut img { margin: 0 auto 16px; border-radius: 16px; }
.app-stiahnut h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.app-stiahnut .app-obchody { justify-content: center; margin: 22px 0; }

@media (max-width: 1100px) { .app-karty { grid-template-columns: repeat(3, minmax(0, 1fr)); } .app-por, .app-faq-in { gap: 32px; } }
@media (max-width: 900px) {
  .app-karty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-str .app-cisla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-por, .app-faq-in, .app-str .app-info { grid-template-columns: minmax(0, 1fr); }
  .app-faq-h { position: static; }
}
@media (max-width: 760px) {
  .app-str .app-hero-in { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
  .app-hero-txt { padding: 14px 0 12px; }
  .app-hero .crumbs { padding-right: 52px; }
  .app-hero > .wrap > .app-tema { top: 10px; right: 16px; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .app-hero > .wrap > .app-tema [data-app-tema-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-hero h1 { margin-top: 18px; }
  .app-perex { font-size: 1.08rem; }
  .app-qr { display: none; }
  .app-hero-tel { min-height: 0; height: 104vw; overflow: hidden; align-items: flex-start; }
  .app-hero-tel .app-tel:nth-child(1) { width: 42vw; margin: 12vw -12vw 0 0; --r: 24px; }
  .app-hero-tel .app-tel:nth-child(2) { width: 50vw; margin: 0; --r: 28px; }
  .app-f, .app-str .app-sek { padding-top: 44px; padding-bottom: 44px; }
  .app-f-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .app-f.app-sv .app-f-txt { order: 0; }
  .app-n1 .app-tel { width: 66vw; }
  .app-n2 > .app-tel { width: 50vw; --r: 26px; }
  .app-n2 > .app-tel:nth-child(2) { margin: 34px 0 0 -8vw; }
  .app-tm { gap: 12px; }
  .app-tm figure { flex: 1 1 0; }
  .app-tm .app-tel { --r: 26px; }
  .app-plocha { padding: 14px; gap: 10px; }
  .app-plocha-st { gap: 10px; }
  .app-karty { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .app-karta { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 15px 16px 14px; }
  .app-karta .cp-ikona { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
  .app-karta .cp-ikona svg { width: 21px; height: 21px; }
  .app-karta h3 { margin-bottom: 3px; }
  .app-tab th, .app-tab td { padding: 10px; font-size: .94rem; }
  .app-tab thead th { width: 70px; font-size: .84rem; }
  .app-gal { grid-auto-columns: 58vw; justify-content: start; }
  .app-g-ipad { grid-auto-columns: 78vw; }
  .app-info-b { padding: 22px 18px 16px; }
  .app-udaje div { gap: 12px; }
  .app-str .app-koniec-in { padding-top: 40px; padding-bottom: 40px; }
  .app-zv-l, .app-zv-p { display: none !important; }
}
@media (max-width: 360px) { .app-str .app-cisla { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .app-odznak, .app-g-pol .app-tel, .app-faq summary::after { transition: none; } }
@media print { .app-tema, .app-qr, .app-lista, .app-zalozky, .app-koniec { display: none !important; } }
