/* Komunita N760 F2 - vzhľad podľa brandu CARICIA (fakty Mozgu, stav aktualne, a plátna Finálna v3).
   Coral #ED6C64 = tlačidlá, plochy, progres (text na Coral #1F2322); Charcoal #373736 = všetok text a vybrané značky (biely text);
   Champagne Gold #C0A46E len akcenty (nikdy text na svetlom); odkazy Gold Deep #8C7240; pozadie Off White #F5F5F5, karty biele. Písmo Satoshi. */
@font-face { font-family: 'Satoshi'; src: url('/komunita/pismo/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/komunita/pismo/Satoshi-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/komunita/pismo/Satoshi-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/komunita/pismo/Satoshi-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --coral: #ED6C64; --coral-svetla: #FBE9E7; --coral-text: #1F2322; --coral-tmava: #C2453C;
  --charcoal: #373736; --gold: #C0A46E; --gold-deep: #8C7240; --gold-hover: #5E4C2A;
  --pozadie: #F5F5F5; --karta: #FFFFFF; --linka: #E4E4E7; --linka2: #D4D4D8; --tlmeny: #52525B; --tlmeny2: #5C5C5A;
  --ok-poz: #DCFCE7; --ok-text: #14532D; --caka: #78350F;
  --r: 12px; --menu: 236px;
  --spodok: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--pozadie); color: var(--charcoal); font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skryt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.25; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
.tlmeny { color: var(--tlmeny); }
.male { font-size: 13px; }

/* tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--coral); color: var(--coral-text); font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(.96); text-decoration: none; color: var(--coral-text); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.plne { width: 100%; min-height: 52px; border-radius: 14px; font-weight: 800; }
.btn.tichy { background: var(--karta); color: var(--charcoal); border: 1px solid var(--linka2); font-weight: 600; }
.btn.maly { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.odkaz { background: none; border: 0; padding: 4px 2px; color: var(--gold-deep); font-weight: 600; min-height: 32px; }
.odkaz:hover { color: var(--gold-hover); text-decoration: underline; }
.ikona-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linka); background: var(--karta); display: inline-flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.bodka { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }

/* značky (výber viac naraz) */
.znacky { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--linka2); background: var(--karta); color: var(--charcoal); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.chip[aria-pressed="true"] { border-color: var(--charcoal); background: var(--charcoal); color: #FFFFFF; font-weight: 600; }
.chip svg { flex-shrink: 0; }
.chip.velky { height: 48px; border-radius: 12px; justify-content: center; font-weight: 600; }
.chip.velky[aria-pressed="true"] { border-width: 2px; }
.mriezka2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mriezka2 .chip { width: 100%; }
.znacky-mobil { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.znacky-mobil::-webkit-scrollbar { display: none; }
.znacky-mobil .chip { height: 36px; border-radius: 18px; }

/* prihlásenie a prvé spustenie */
.uvod { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--karta); max-width: 520px; margin: 0 auto; }
@media (min-width: 560px) { body.uvodny { background: var(--pozadie); } .uvod { min-height: auto; margin: 40px auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--linka); } }
.uvod-hlava { background: var(--coral); padding: 40px 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--coral-text); }
.uvod-hlava img { width: 56px; height: 82px; }
.uvod-hlava h1 { font-size: 24px; font-weight: 800; color: var(--coral-text); }
.uvod-hlava .krok { font-size: 12px; font-weight: 600; }
.uvod-telo { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.uvod-spodok { padding: 12px 24px calc(28px + var(--spodok)); display: flex; flex-direction: column; gap: 10px; }
.pole { display: flex; flex-direction: column; gap: 8px; }
.pole label, .pole .nadpis-pola { font-weight: 700; }
.vstup, select.vstup, textarea.vstup { width: 100%; min-height: 48px; border: 1px solid #CFC7B8; border-radius: 12px; padding: 10px 14px; background: #FFFFFF; color: var(--charcoal); }
textarea.vstup { min-height: 120px; resize: vertical; line-height: 1.5; }
.vstup.kod { font-size: 26px; letter-spacing: 8px; text-align: center; font-weight: 700; }
.pozn { font-size: 13px; color: var(--tlmeny2); }
.chyba { color: #9F1D16; font-size: 14px; font-weight: 600; }
.ok-sprava { color: var(--ok-text); font-size: 14px; font-weight: 600; }
.zaskrtni { display: flex; gap: 12px; align-items: flex-start; }
.zaskrtni input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--charcoal); flex-shrink: 0; }
.riadok-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--pozadie); }
.riadok-info svg { flex-shrink: 0; }
.riadok-info b { display: block; }
.riadok-info span { font-size: 13px; color: var(--tlmeny2); line-height: 1.45; }

/* rozloženie appky */
.appka { display: flex; min-height: 100vh; min-height: 100dvh; }
.menu { width: var(--menu); flex-shrink: 0; background: var(--karta); border-right: 1px solid var(--linka); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; color: var(--charcoal); }
.logo:hover { text-decoration: none; color: var(--charcoal); }
.logo img { width: 28px; height: 40px; }
.logo span { font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.logo span i { font-style: normal; font-weight: 500; }
.menu a.pol { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--charcoal); min-height: 40px; }
.menu a.pol:hover { background: var(--pozadie); text-decoration: none; }
.menu a.pol[aria-current="page"] { background: var(--coral-svetla); font-weight: 600; }
.menu a.pol .poc { font-size: 12px; color: var(--caka); font-weight: 600; }
.menu .skupina { font-size: 11px; font-weight: 600; color: var(--tlmeny); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 4px; }
.profil-odkaz { margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--linka); display: flex; align-items: center; gap: 10px; color: var(--charcoal); }
.profil-odkaz:hover { text-decoration: none; color: var(--charcoal); background: var(--pozadie); border-radius: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #ECE4D3; color: var(--charcoal); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.profil-odkaz b { display: block; font-weight: 600; }
.profil-odkaz small { display: block; font-size: 12px; color: var(--tlmeny); }

.hlavna { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hore { background: var(--karta); border-bottom: 1px solid var(--linka); padding: 12px 24px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 5; }
.hore-riadok { display: flex; gap: 12px; align-items: center; }
.hladanie { flex: 1; position: relative; }
.hladanie input { width: 100%; height: 40px; border: 1px solid var(--linka2); border-radius: 10px; padding: 0 14px; background: #fff; }
.znacky-pozn { font-size: 12px; color: var(--tlmeny); }
.obsah { padding: 18px 24px 40px; display: flex; gap: 16px; align-items: flex-start; }
.stlpec { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bocny { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 120px; }

/* mobil */
.mobil-hore, .spodne-menu, .zasuvka, .zatienenie { display: none; }
@media (max-width: 899px) {
  .menu, .hore { display: none; }
  .mobil-hore { display: flex; flex-direction: column; gap: 12px; background: var(--karta); padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; border-bottom: 1px solid var(--linka); position: sticky; top: 0; z-index: 5; }
  .mobil-riadok { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .mobil-titul { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mobil-titul img { width: 20px; height: 29px; }
  .mobil-titul span { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .obsah { padding: 14px 16px calc(96px + var(--spodok)); flex-direction: column; }
  .bocny { width: 100%; position: static; order: -1; }
  .bocny .len-web { display: none; }
  .spodne-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: calc(72px + var(--spodok)); padding-bottom: var(--spodok); background: var(--karta); border-top: 1px solid var(--linka); z-index: 6; }
  .spodne-menu a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tlmeny); font-size: 12px; }
  .spodne-menu a:hover { text-decoration: none; }
  .spodne-menu a[aria-current="page"] { color: var(--coral-tmava); font-weight: 600; }
  .zasuvka { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: min(390px, 92vw); background: var(--karta); z-index: 21; transform: translateX(-102%); transition: transform .2s ease; }
  .zasuvka.otvorena { transform: none; }
  .zatienenie { display: block; position: fixed; inset: 0; background: rgba(31, 35, 34, .38); z-index: 20; }
  .zasuvka-hlava { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--linka); }
  .zasuvka-telo { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
  .zasuvka-telo a.pol { padding: 11px 4px; color: var(--charcoal); min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
  .zasuvka-telo a.pol[aria-current="page"] { font-weight: 700; }
  .zasuvka .profil-odkaz { margin: 0; padding: 12px 16px calc(12px + var(--spodok)); }
  .fab { position: fixed; right: 16px; bottom: calc(86px + var(--spodok)); z-index: 6; box-shadow: 0 4px 14px rgba(55, 55, 54, .22); }
}
@media (min-width: 900px) { .fab { display: none; } }

/* karty a zoznamy */
.karta { background: var(--karta); border: 1px solid var(--linka); border-radius: var(--r); padding: 14px 16px; }
.karta.odkazom { display: block; color: var(--charcoal); }
.karta.odkazom:hover { text-decoration: none; border-color: var(--linka2); box-shadow: 0 1px 4px rgba(55, 55, 54, .06); }
.stitky { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--tlmeny); }
.stitok { padding: 3px 8px; border-radius: 6px; background: var(--pozadie); color: var(--charcoal); font-weight: 600; }
.stitok.znacka { background: transparent; border: 1px solid var(--linka2); font-weight: 500; }
.stitok.ok { background: var(--ok-poz); color: var(--ok-text); }
.stitok.pin { background: #ECE4D3; }
.stitok.tim { background: var(--charcoal); color: #fff; }
.stitok.caka { background: #FEF3C7; color: var(--caka); }
.karta h3 { margin: 8px 0 4px; font-size: 15px; }
.karta p { margin: 0; color: #3F3F46; }
.ukazka { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin-top: 8px; font-size: 12px; color: var(--tlmeny); display: flex; gap: 12px; flex-wrap: wrap; }
.boc-titul { font-size: 12px; color: var(--tlmeny); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.progres { height: 6px; border-radius: 3px; background: var(--linka); margin: 8px 0; overflow: hidden; }
.progres i { display: block; height: 6px; background: var(--coral); }
.filtre { display: flex; gap: 8px; flex-wrap: wrap; }
.prazdne { text-align: center; padding: 36px 16px; color: var(--tlmeny); }
.nadpis-sekcie { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.skupina-znacky { margin-top: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tlmeny); }

/* detail a komentáre */
.text-prispevku { white-space: pre-wrap; word-wrap: break-word; margin: 10px 0 0; }
.fotky { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.fotky img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--pozadie); }
.akcie { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.akcia { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--linka); background: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.akcia[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-svetla); font-weight: 600; }
.komentar { padding: 12px 0; border-top: 1px solid var(--linka); }
.komentar.vnoreny { margin-left: 22px; padding-left: 12px; border-left: 2px solid var(--linka); border-top: 0; }
.komentar.riesenie { background: #F2FBF4; border-radius: 10px; padding: 12px; border: 1px solid #B7E4C3; }
.kto { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.kto b { font-weight: 700; }
.preklad { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--pozadie); white-space: pre-wrap; }
.pisanie { display: flex; flex-direction: column; gap: 8px; position: relative; }
.navrhy-mien { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--linka2); border-radius: 10px; z-index: 8; box-shadow: 0 6px 18px rgba(55, 55, 54, .12); overflow: hidden; }
.navrhy-mien button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: #fff; min-height: 44px; }
.navrhy-mien button:hover, .navrhy-mien button:focus { background: var(--pozadie); }
.upozornenie-moder { padding: 10px 12px; border-radius: 10px; background: #FEF3C7; color: var(--caka); font-size: 14px; margin-top: 8px; }
.lea-navrh { padding: 12px; border-radius: 12px; background: #F7F2E8; border: 1px solid #E5D9BF; }
.lea-navrh b { display: block; margin-bottom: 4px; }

/* okno */
.okno-pozadie { position: fixed; inset: 0; background: rgba(31, 35, 34, .45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.okno { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + var(--spodok)); display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 700px) { .okno-pozadie { align-items: center; } .okno { border-radius: 18px; } }
.okno-hlava { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.okno-spodok { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.fotky-nahlad { display: flex; gap: 8px; flex-wrap: wrap; }
.fotky-nahlad span { position: relative; }
.fotky-nahlad img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.fotky-nahlad button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--linka2); background: #fff; font-size: 14px; line-height: 1; }

#toast { position: fixed; left: 50%; bottom: calc(92px + var(--spodok)); transform: translateX(-50%); background: var(--charcoal); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 40; max-width: min(92vw, 520px); font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
@media (min-width: 900px) { #toast { bottom: 28px; } }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #F7F2E8; border: 1px solid #E5D9BF; border-radius: var(--r); padding: 12px 14px; }
.nacitavam { padding: 40px; text-align: center; color: var(--tlmeny); }
.zoznam-riadky { display: flex; flex-direction: column; }
.zoznam-riadky > * { padding: 10px 0; border-bottom: 1px solid var(--linka); }
.zoznam-riadky > *:last-child { border-bottom: 0; }
.pravidla p { margin: 0 0 10px; }
