/* Moje kocky – stránka na stiahnutie. Farby a písmo ako v appke (frontend/src/plugins/vuetify.ts). */

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

:root {
  color-scheme: light;
  --bg: #FAF8F7;
  --surface: #FFFFFF;
  --surface-variant: #F4F1F0;
  --border: #E6E1E0;
  --border-soft: #EFEAE9;
  --text: #1C1B1B;
  --muted: #5C5B5B;
  --primary: #D01012;
  --on-primary: #FFFFFF;
  --link: #B00D10;
  --link-hover: #8A090C;
  --primary-container: #FFDAD6;
  --on-primary-container: #410004;
  --heart: #93000C;
  --chip: #FFF3C4;
  --on-chip: #3A2E00;
  --ok: #E3F1E6;
  --on-ok: #14532D;
  --shot-border: #DDD6D4;
  --shadow: 0 24px 48px rgba(60, 20, 20, 0.12), 0 4px 12px rgba(60, 20, 20, 0.06);
  --footer: #1B1A1A;
  --on-footer: #EDE7E6;
  --footer-muted: #A9A4A3;
  --footer-link: #FFB3AC;
}

/* Tmavý režim: podľa systému, kým si návštevník nevyberie sám (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131212;
    --surface: #1B1A1A;
    --surface-variant: #232222;
    --border: #353232;
    --border-soft: #2C2A2A;
    --text: #EDE7E6;
    --muted: #A9A4A3;
    --primary: #D01012;
    --link: #FFB3AC;
    --link-hover: #FFDAD6;
    --primary-container: #93000C;
    --on-primary-container: #FFDAD6;
    --heart: #FFDAD6;
    --chip: #4A3B00;
    --on-chip: #FFF3C4;
    --ok: #16351F;
    --on-ok: #B9E6C4;
    --shot-border: #353232;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    --footer: #0C0B0B;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131212;
  --surface: #1B1A1A;
  --surface-variant: #232222;
  --border: #353232;
  --border-soft: #2C2A2A;
  --text: #EDE7E6;
  --muted: #A9A4A3;
  --primary: #D01012;
  --link: #FFB3AC;
  --link-hover: #FFDAD6;
  --primary-container: #93000C;
  --on-primary-container: #FFDAD6;
  --heart: #FFDAD6;
  --chip: #4A3B00;
  --on-chip: #FFF3C4;
  --ok: #16351F;
  --on-ok: #B9E6C4;
  --shot-border: #353232;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --footer: #0C0B0B;
}
:root[data-theme="light"] { color-scheme: light; }

/* Jazyk: bez skriptu sa ukáže slovenčina. */
html:not([lang="en"]) .en, html[lang="en"] .sk { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* Horná lišta */
.bar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.bar .wrap { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 700; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 24px; flex-grow: 1; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--link); }
.lang { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang button { border: 0; min-width: 44px; height: 36px; background: var(--surface); color: var(--text); font: 500 13px Roboto, system-ui, sans-serif; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.theme { width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.theme:hover { background: var(--surface-variant); }
.theme .sun { display: none; }
.is-dark .theme .sun { display: block; }
.is-dark .theme .moon { display: none; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--text); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.btn-outline:hover { color: var(--text); background: var(--surface-variant); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.menu-panel a { padding: 12px; color: var(--text); text-decoration: none; font-weight: 500; border-radius: 6px; }
.menu-panel a:hover { background: var(--surface-variant); }

/* Úvod */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 16px; background: var(--chip); color: var(--on-chip); font-size: 13px; font-weight: 500; }
h1 { font-size: 52px; line-height: 60px; font-weight: 700; letter-spacing: -0.5px; }
.lead { font-size: 19px; line-height: 30px; color: var(--muted); }
.download { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 8px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-size: 18px; font-weight: 500; }
.btn-primary:hover { color: var(--on-primary); background: #B00D10; }
.meta { font-size: 14px; color: var(--muted); }
.phone-note { display: none; padding: 12px 14px; border-radius: 8px; background: var(--surface-variant); font-size: 14px; line-height: 21px; color: var(--muted); }

.shot { margin: 0; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--shot-border); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.titlebar { height: 36px; display: flex; align-items: center; gap: 10px; padding-left: 14px; background: var(--surface-variant); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.titlebar span:first-of-type { flex-grow: 1; }
.titlebar i { width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; }

/* Nekomerčne */
.promise { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; align-items: center; padding: 40px 48px; background: var(--primary-container); color: var(--on-primary-container); border-radius: 12px; }
.promise h2 { font-size: 26px; line-height: 34px; font-weight: 700; }
.promise p { margin-top: 8px; font-size: 17px; line-height: 27px; }
.promise svg { stroke: var(--heart); }

/* Sekcie */
.section { padding-top: 104px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-bottom: 36px; }
h2 { font-size: 36px; line-height: 44px; font-weight: 700; }
h2.small { font-size: 30px; line-height: 38px; }
.section-head p { font-size: 18px; line-height: 28px; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-wide { grid-column: 1 / -1; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.card h3 { font-size: 19px; line-height: 26px; font-weight: 500; }
.card p { font-size: 15px; line-height: 23px; color: var(--muted); }
.card svg { stroke: var(--primary); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { flex-shrink: 0; padding: 4px 10px; border-radius: 12px; background: var(--ok); color: var(--on-ok); font-size: 12px; font-weight: 500; }
.step { width: 40px; height: 40px; border-radius: 20px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.note { margin-top: 24px; font-size: 15px; line-height: 24px; color: var(--muted); }


/* Služby */
.table { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 24px; padding: 18px 28px; border-top: 1px solid var(--border-soft); font-size: 15px; line-height: 23px; }
.row.head { border-top: 0; padding: 14px 28px; background: var(--surface-variant); font-size: 13px; font-weight: 500; color: var(--muted); }
.row a { font-weight: 500; }
.row .what { color: var(--muted); }

/* Softvér */
.software { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; padding: 12px 28px; margin: 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.software li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.software a { color: var(--text); text-decoration: none; font-weight: 500; }
.software a:hover { color: var(--link); text-decoration: underline; }
.software span { color: var(--muted); font-size: 14px; text-align: right; }

.faq { padding-bottom: 104px; }

/* Päta */
footer { background: var(--footer); color: var(--on-footer); padding: 56px 0; }
footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.foot-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-top .brand { color: var(--on-footer); font-size: 18px; flex-grow: 1; }
.foot-top a:not(.brand) { color: var(--footer-link); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; margin-left: 16px; }
footer p { max-width: 960px; font-size: 14px; line-height: 22px; color: var(--footer-muted); }

/* Tablet */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-text { max-width: 680px; }
  .g3, .software { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 160px minmax(0, 1fr) 200px; }
}

@media (max-width: 860px) {
  .nav, .bar .btn-outline { display: none; }
  .menu { display: block; }
  .bar .wrap { gap: 10px; }
  .brand { flex-grow: 1; }
}

/* Telefón */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .bar .wrap { height: 64px; padding-right: 8px; gap: 4px; }
  .brand { gap: 10px; }
  .lang button { min-width: 40px; }
  .brand { font-size: 18px; }
  .hero { padding: 36px 0 40px; }
  .hero .wrap { gap: 28px; }
  .hero-text { gap: 22px; }
  h1 { font-size: 34px; line-height: 41px; letter-spacing: -0.3px; }
  .lead { font-size: 17px; line-height: 26px; }
  .download { align-items: stretch; }
  .btn-primary { font-size: 17px; }
  .meta { text-align: center; }
  .phone-note { display: block; }
  .shot { border-radius: 8px; }
  .titlebar { display: none; }
  .promise { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 22px; }
  .promise svg { width: 36px; height: 36px; }
  .promise h2 { font-size: 22px; line-height: 29px; }
  .promise p { font-size: 16px; line-height: 25px; }
  .section { padding-top: 56px; }
  .section-head { margin-bottom: 20px; }
  .section-head p { font-size: 16px; line-height: 25px; }
  h2 { font-size: 28px; line-height: 35px; }
  h2.small { font-size: 24px; line-height: 31px; }
  .g3, .g2, .software { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 14px; }
  .card { padding: 22px; gap: 10px; }
  .card h3 { font-size: 18px; }
  .steps .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .steps .card .step { grid-row: span 2; width: 36px; height: 36px; font-size: 16px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 20px; }
  .row.head { display: none; }
  .row .what { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 21px; }
  .row .key { font-size: 13px; color: var(--muted); text-align: right; }
  .software { padding: 4px 20px; }
  .faq { padding-bottom: 56px; }
  footer { padding: 40px 0; }
  .foot-top a:not(.brand) { margin-left: 0; margin-right: 20px; }
  .foot-top .brand { flex-basis: 100%; }
  footer p { font-size: 13px; line-height: 20px; }
}
.reg { font-size: 0.45em; vertical-align: 0.9em; font-weight: 500; margin-left: 1px; }

/* Galéria: pás na stránke, prehliadač cez celú obrazovku */
.carousel { position: relative; }
.strip { list-style: none; margin: 0 -40px; padding: 4px 40px 16px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 40px; scrollbar-width: thin; }
.strip li { flex: 0 0 min(520px, 78%); scroll-snap-align: start; }
.strip-cards li { flex-basis: min(340px, 78%); display: flex; }
.strip-cards .card { flex: 1 1 auto; }
.thumb { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.thumb:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); }
.cap { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; font-size: 14px; line-height: 21px; color: var(--muted); }
.cap strong { font-size: 16px; font-weight: 500; color: var(--text); }
.strip-prev, .strip-next { position: absolute; top: calc(50% - 40px); z-index: 2; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.strip-prev:hover, .strip-next:hover { background: var(--surface-variant); }
.strip-prev { left: -24px; }
.strip-next { right: -24px; }
.strip-prev[disabled], .strip-next[disabled] { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .thumb, .thumb:hover { transition: none; transform: none; } }

.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 10, 10, 0.94); color: #EDE7E6; overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(12, 10, 10, 0.94); }
.viewer-bar { flex-shrink: 0; height: 60px; padding: 0 16px 0 24px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: #A9A4A3; }
.track { flex-grow: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 88px 24px; box-sizing: border-box; }
.slide img { display: block; max-width: min(1440px, 100%); max-height: calc(100dvh - 180px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5); }
.slide figcaption { max-width: 900px; text-align: center; font-size: 16px; line-height: 24px; color: #CFC8C6; }
.slide figcaption strong { color: #FFFFFF; font-weight: 500; margin-right: 8px; }
.viewer button { width: 48px; height: 48px; border: 0; border-radius: 24px; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, 0.24); }
.viewer-prev, .viewer-next { position: absolute; top: calc(50% - 24px); }
.viewer-prev { left: 20px; }
.viewer-next { right: 20px; }

/* Zdrojový kód */
.repo { justify-content: flex-start; }
.repo-link { align-self: flex-start; margin-top: auto; max-width: 100%; overflow-wrap: anywhere; height: auto; min-height: 44px; }
.facts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 23px; color: var(--muted); }

@media (max-width: 1100px) {
  .strip-prev { left: 8px; }
  .strip-next { right: 8px; }
}
@media (max-width: 640px) {
  .strip { margin: 0 -20px; padding: 4px 20px 12px; scroll-padding: 0 20px; gap: 14px; }
  .strip li, .strip-cards li { flex-basis: 84%; }
  .strip-prev, .strip-next { display: none; }
  .slide { padding: 0 12px 88px; }
  .slide img { max-height: calc(100dvh - 240px); border-radius: 4px; }
  .slide figcaption { font-size: 15px; line-height: 22px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 20px; }
  .viewer-prev { left: calc(50% - 64px); }
  .viewer-next { right: calc(50% - 64px); }
  .repo-link { align-self: stretch; justify-content: center; font-size: 13px; overflow-wrap: normal; word-break: keep-all; }
}
