/* Mekteb — même famille visuelle que Sufara : papier, encre, lazur. Aucune ressource extérieure. */
@font-face { font-family: Andika; font-weight: 400; font-display: swap; src: url(fonts/andika-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+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Andika; font-weight: 400; font-display: swap; src: url(fonts/andika-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+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: Andika; font-weight: 400; font-display: swap; src: url(fonts/andika-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Andika; font-weight: 400; font-display: swap; src: url(fonts/andika-cyrillic-ext-400-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Andika; font-weight: 700; font-display: swap; src: url(fonts/andika-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+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Andika; font-weight: 700; font-display: swap; src: url(fonts/andika-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+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: Andika; font-weight: 700; font-display: swap; src: url(fonts/andika-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Andika; font-weight: 700; font-display: swap; src: url(fonts/andika-cyrillic-ext-700-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root { --papir: #F1F4F6; --list: #FFFFFF; --tinta: #14191F; --tinta-2: #4A545E; --grafit: #9AA4AD; --rab: #D5DBE0;
  --lazur: #1B4F93; --lazur-bled: #E3EBF5; --tocno: #1B7A50; --tocno-bled: #DDF0E6; --greska: #B3392C; --greska-bled: #F7E1DD;
  --zolto: #8A6A10; --zolto-bled: #F6EBCB; --r: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--papir); color: var(--tinta); font: 400 17px/1.5 Andika, system-ui, sans-serif; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; } ul { list-style: none; }
a { color: var(--lazur); } :focus-visible { outline: 3px solid var(--lazur); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }

.lenta { background: var(--tinta); color: #fff; }
.lenta .vnatre { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lenta .ime { font-weight: 700; font-size: 20px; color: #fff; text-decoration: none; }
.lenta .ime small { display: block; font-weight: 400; font-size: 12px; opacity: .7; line-height: 1.1; }
.lenta nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.lenta nav a { color: #fff; opacity: .78; text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 15px; }
.lenta nav a.tuka { background: #fff; color: var(--tinta); opacity: 1; font-weight: 700; }
.lenta .desno { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.lenta .desno a { color: #fff; opacity: .8; text-decoration: none; } .lenta .desno a.tuka { opacity: 1; font-weight: 700; text-decoration: underline; }

main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 30px; line-height: 1.15; margin-bottom: 4px; } .pod { color: var(--tinta-2); margin-bottom: 18px; }
h2 { font-size: 19px; margin: 0 0 10px; } section + section, .mreza + section, section + .mreza { margin-top: 22px; }
.mreza { display: grid; gap: 16px; grid-template-columns: 1fr; } @media (min-width: 880px) { .mreza.dve { grid-template-columns: 320px 1fr; align-items: start; } }
.karta { background: var(--list); border: 1px solid var(--rab); border-radius: var(--r); padding: 16px 18px; }
.karta + .karta { margin-top: 10px; }
.lista { background: var(--list); border: 1px solid var(--rab); border-radius: var(--r); overflow: hidden; }
.lista > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--papir); text-decoration: none; color: inherit; }
.lista > *:last-child { border-bottom: 0; } .lista > a:hover { background: var(--lazur-bled); }
.lista .glavno { min-width: 0; } .lista .glavno b { display: block; } .lista small, .sitno { color: var(--tinta-2); font-size: 14px; }
.prazno { background: var(--list); border: 1px dashed var(--grafit); border-radius: var(--r); padding: 22px; text-align: center; color: var(--tinta-2); }
.znacka { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--papir); color: var(--tinta-2); white-space: nowrap; }
.znacka.odrzan, .znacka.prisuten, .znacka.aktiven { background: var(--tocno-bled); color: var(--tocno); }
.znacka.otkazan, .znacka.otsuten, .znacka.neaktiven { background: var(--greska-bled); color: var(--greska); }
.znacka.zakazan { background: var(--lazur-bled); color: var(--lazur); } .znacka.opravdano, .znacka.denes { background: var(--zolto-bled); color: var(--zolto); }
.den { flex: none; width: 58px; text-align: center; background: var(--lazur-bled); color: var(--lazur); border-radius: 11px; padding: 5px 0; line-height: 1.15; }
.den b { display: block; font-size: 21px; } .den span { font-size: 11.5px; }
.red-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }

label { display: block; font-size: 14px; font-weight: 700; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--grafit); border-radius: 10px; padding: 9px 11px; min-height: 44px; }
textarea { min-height: 84px; resize: vertical; }
.dve-kol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dugme { display: inline-flex; align-items: center; justify-content: center; background: var(--lazur); color: #fff; border: 0; border-radius: 11px;
  padding: 10px 18px; font-weight: 700; min-height: 44px; text-decoration: none; cursor: pointer; }
.dugme.celo { width: 100%; margin-top: 14px; } .dugme.tivko { background: transparent; color: var(--lazur); border: 1.5px solid var(--lazur); }
.dugme.malo { padding: 6px 12px; min-height: 36px; font-size: 14.5px; } .brisi { background: none; border: 0; color: var(--tinta-2); font-size: 14px; cursor: pointer; padding: 6px; }
.brisi:hover { color: var(--greska); } .red-dugmina { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.poraka { background: var(--tocno-bled); color: var(--tocno); border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }
.greska { background: var(--greska-bled); color: var(--greska); border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }

/* présences : trois gros boutons par élève, utilisables au doigt */
.prisustvo .red { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--papir); }
.prisustvo .red:last-child { border-bottom: 0; }
.izbor { display: inline-flex; border: 1.5px solid var(--grafit); border-radius: 11px; overflow: hidden; }
.izbor label { margin: 0; font-weight: 700; font-size: 14.5px; padding: 9px 12px; min-width: 44px; text-align: center; cursor: pointer; border-right: 1px solid var(--rab); }
.izbor label:last-of-type { border-right: 0; } .izbor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.izbor input:checked + label.prisuten { background: var(--tocno); color: #fff; } .izbor input:checked + label.otsuten { background: var(--greska); color: #fff; }
.izbor input:checked + label.opravdano { background: var(--zolto); color: #fff; } .izbor input:focus-visible + label { outline: 3px solid var(--lazur); outline-offset: -3px; }
.brojki { display: flex; gap: 6px; flex-wrap: wrap; } .tabela-wrap { overflow-x: auto; }

.vlez { max-width: 380px; margin: 9vh auto 0; padding: 0 16px; } .vlez h1 { font-size: 40px; } .vlez .jazici { margin-top: 18px; font-size: 14px; } .vlez .jazici a { margin-right: 12px; }
@media (max-width: 620px) { h1 { font-size: 26px; } .lenta nav { order: 3; flex-basis: 100%; } .lenta nav a { padding: 7px 10px; font-size: 14.5px; }
  .prisustvo .red { grid-template-columns: 1fr; } .izbor { width: 100%; } .izbor label { flex: 1; } }
/* déconnexion : un formulaire (et non un lien), présenté comme les liens voisins */
.lenta .desno form.odjava { display: inline; margin: 0; }
.lenta .desno form.odjava button { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #fff; opacity: .8; cursor: pointer; }
.lenta .desno form.odjava button:hover, .lenta .desno form.odjava button:focus-visible { opacity: 1; text-decoration: underline; }
.qr svg { width: 100%; height: auto; display: block; }
