/* Stranka O mne */

.omne {
    --omne-container: 1140px;
    --omne-okraj: max(20px, calc((100vw - var(--omne-container)) / 2));
    --omne-seda: #9B9B9B;
    --omne-linka: #E6E6E6;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    color: #1A1A1A;
}
.omne h1,
.omne h2,
.omne h3 {
    font-family: "Lora", serif;
    font-weight: 400;
    margin: 0;
}
.omne-wrap {
    padding: 0 var(--omne-okraj);
}

/* ---------- Hero ---------- */

/* hero zacina az pod hlavickou, ale cierne pozadie siaha aj za nu,
   takze medzi nimi nikdy nepresvitne biela (napr. pri admin liste) */
.omne-hero {
    position: relative;
    padding-top: 100px;
    background: #000;
    color: #FFF;
    overflow: hidden;
}
.omne-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(900px, calc(100vh - 100px));
    padding-left: var(--omne-okraj);
}
.omne-hero-text {
    align-self: center;
    max-width: 540px;
    padding: 90px 40px 90px 0;
}
.omne-hero h1 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}
.omne-hero-text p {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 16px 0;
}
.omne-hero-text p.omne-podpis {
    margin-top: 28px;
    font-style: italic;
    color: #FFF;
}
.omne-hero-foto {
    position: relative;
    min-height: 100%;
}
.omne-hero-foto img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
}
/* fotka sa prelina do cierneho pozadia */
.omne-hero-foto:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    background: linear-gradient(to right, #000, rgba(0, 0, 0, 0));
}

.omne-tlacidlo {
    /* rovnake ako tlacidlo .button vo formulari na stranke Kontakt */
    display: inline-block;
    padding: 20px 48px;
    background: #000;
    font-family: "Lora", serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFF;
    transition: background 0.2s ease;
}
.omne-tlacidlo:hover,
.omne-tlacidlo:focus {
    background: #404040;
    color: #FFF;
    text-decoration: none;
}

/* ---------- Cisla ---------- */

.omne-cisla {
    background: #000;
    color: #FFF;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.omne-cisla ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
.omne-cisla li {
    padding: 42px 30px;
    text-align: left;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
/* prvy stlpec zarovnany s textom nad nim */
.omne-cisla li:first-child {
    padding-left: 0;
    border-left: 0;
}
.omne-cisla strong {
    display: block;
    font-family: "Lora", serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 10px;
}
.omne-cisla span {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Sekcie ---------- */

.omne-sekcia {
    padding: 110px 0;
}
/* sekcie bez deliacich ciar; medzeru medzi nimi dava len spodny odstup predoslej */
.omne-sekcia + .omne-sekcia {
    padding-top: 0;
}
.omne-sekcia-hlavicka {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 56px;
}
.omne-sekcia h2 {
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.1;
}
/* casova os trochu nizsie pod nadpisom */
.omne-vystavy .omne-sekcia-hlavicka {
    margin-bottom: 84px;
}

/* ---------- Clenstva ---------- */

.omne-clenstva-uvod {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin: -26px 0 50px 0;
}
.omne-clenstva ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.omne-clenstvo {
    padding: 34px 30px;
    border: 1px solid var(--omne-linka);
    transition: border-color 0.25s ease;
}
/* karta s odkazom: klikatelna cela plocha, na hover cierny okraj */
.omne-clenstvo.je-odkaz {
    padding: 0;
}
.omne-clenstvo.je-odkaz:hover,
.omne-clenstvo.je-odkaz:focus-within {
    border-color: #000;
}
.omne-clenstvo-skratka {
    display: block;
    font-family: "Lora", serif;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 14px;
}
.omne-clenstvo-nazov {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}
.omne-clenstvo-titul {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.5;
    color: #1A1A1A;
}
/* tenka sipka v rohu = externy odkaz */
.omne-clenstvo.je-odkaz a:after {
    content: "";
    position: absolute;
    top: 22px;
    right: 22px;
    width: 16px;
    height: 16px;
    background: #9B9B9B;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13L13 3M5 3h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13L13 3M5 3h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: background 0.25s ease, transform 0.25s ease;
}
.omne-clenstvo.je-odkaz:hover a:after,
.omne-clenstvo.je-odkaz:focus-within a:after {
    background: #000;
    transform: translate(2px, -2px);
}
.omne-clenstvo a,
.omne-clenstvo a:hover,
.omne-clenstvo a:focus {
    position: relative;
    display: block;
    height: 100%;
    padding: 34px 30px;
    color: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

/* ---------- Timeline vystav ---------- */

.omne-timeline-nav {
    display: flex;
    gap: 6px;
}
.omne-timeline-nav button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--omne-linka);
    border-radius: 0;
    background: none;
    color: #000;
    line-height: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.omne-timeline-nav button:hover {
    border-color: #000;
}
.omne-timeline-nav button:disabled {
    opacity: 0.3;
    cursor: default;
}
.omne-timeline-nav button:disabled:hover {
    border-color: var(--omne-linka);
}
.omne-timeline-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.omne-timeline {
    /* tahanie mysou by inak oznacovalo text */
    -webkit-user-select: none;
    user-select: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--omne-okraj);
    scrollbar-width: none;
    cursor: grab;
}
.omne-timeline::-webkit-scrollbar {
    display: none;
}
.omne-timeline.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}
.omne-timeline.is-dragging * {
    pointer-events: none;
}
.omne-timeline ol {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0 var(--omne-okraj);
    list-style: none;
}
.omne-timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 280px;
    padding: 0 36px 0 0;
    scroll-snap-align: start;
}
.omne-timeline li:last-child {
    width: 244px;
    padding-right: 0;
}
/* poradie: ciara s bodom, rok, nazov, popis */
.omne-timeline-os {
    order: -1;
    position: relative;
    display: block;
    height: 7px;
    margin-bottom: 22px;
}
.omne-timeline-os:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    right: -36px;
    border-top: 1px solid #E6E6E6;
}
.omne-timeline li:last-child .omne-timeline-os:before {
    right: 0;
}
.omne-timeline-os:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    background: #FFF;
    border: 1px solid #C4C4C4;
}
.omne-timeline-rok {
    display: block;
    margin-bottom: 14px;
    font-family: "Lora", serif;
    font-size: 24px;
    line-height: 1;
}
/* rok sa pri viacerych vystavach v jednom roku zobrazi len raz */
.omne-timeline li.je-rovnaky-rok .omne-timeline-rok {
    visibility: hidden;
}
/* rovnako ako nazvy oceneni */
.omne-timeline h3 {
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: 0;
    margin-bottom: 8px;
}
.omne-timeline p {
    font-size: 17px;
    line-height: 1.5;
    color: #6B6B6B;
    margin: 0;
}

/* ---------- Ocenenia ---------- */

.omne-ocenenia-zoznam {
    margin: 0;
    padding: 0;
    list-style: none;
}
.omne-ocenenia-rok {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    padding: 42px 0;
    border-top: 1px solid var(--omne-linka);
}
.omne-ocenenia-rok:first-child {
    border-top: 0;
    padding-top: 0;
}
.omne-ocenenia-rok > h3 {
    font-size: 26px;
    line-height: 1;
    margin-top: 10px; /* zarovnanie s prvym ocenenim */
}
.omne-ocenenia-rok ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* umiestnenie vlavo pred nazvom, nazvy su zarovnane pod sebou */
.omne-ocenenie {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding: 11px 0;
}
.omne-ocenenie-umiestnenie {
    justify-self: end;
}
.omne-ocenenie-nazov {
    font-family: "Lora", serif;
    font-size: 18px;
    line-height: 1.45;
}
.omne-ocenenie-detail {
    display: block;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #6B6B6B;
    margin-top: 2px;
}
/* podciarknutie len pod textom (aj pri nazve na viac riadkov) */
.omne-ocenenie-nazov a {
    color: inherit;
    text-decoration: underline solid #555;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.omne-ocenenie-nazov a:hover {
    color: inherit;
    text-decoration-color: #000;
}
.omne-ocenenie-miesto {
    flex: none;
    /* vyska = prvy riadok nazvu (18px * 1.45), stitok je vycentrovany s nazvom */
    display: inline-block;
    height: 26px;
    padding: 0 10px;
    line-height: 24px;
    border: 1px solid #CFCFCF;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.omne-ocenenie-miesto {
    background: #FFF;
}
/* prve miesta a Gold: zlata */
.omne-ocenenie-miesto.je-prve {
    border-color: #B8975A;
    background: #B8975A;
    color: #FFF;
}

/* ---------- Certifikaty (js/o-mne.js) ---------- */

/* odkaz = plne podciarknutie, certifikat = bodkovane */
.omne-cert-spustac {
    padding: 0;
    border: 0;
    text-decoration: underline dotted #777;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}
.omne-cert-spustac:hover,
.omne-cert-spustac:focus-visible {
    text-decoration-color: #000;
    outline: none;
}
.omne-ocenenie[data-certifikaty],
.omne-clenstvo[data-certifikaty] {
    cursor: zoom-in;
}

/* nahlad pri kurzore (desktop) */
.omne-cert-nahlad {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #FFF;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    opacity: 0;
    transform-origin: 0 0;
    transition: opacity 0.2s ease, scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    scale: 0.92;
}
.omne-cert-nahlad.is-visible {
    opacity: 1;
    scale: 1;
}
.omne-cert-nahlad img {
    display: block;
    width: auto;
    height: auto;
    max-width: 340px;
    max-height: 300px;
}

/* certifikat na celu obrazovku (klik, mobil, klavesnica) */
.omne-cert-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 70px 20px 40px 20px;
    background: rgba(0, 0, 0, 0.94);
    overflow-y: auto;
    animation: omne-fade 0.2s ease-out;
}
.omne-cert-modal[hidden] {
    display: none;
}
/* viac obrazkov (napr. odznaky) vedla seba, zalomia sa ak sa nezmestia */
.omne-cert-obrazky {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
}
.omne-cert-obrazky img {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 900px);
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
}
.omne-cert-zavriet {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #FFF;
    line-height: 0;
    cursor: pointer;
}
.omne-cert-zavriet svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
}
@keyframes omne-fade {
    from { opacity: 0; }
}
html.omne-cert-open,
html.omne-cert-open body {
    overflow: hidden;
}

/* ---------- Vyzva ---------- */

.omne-cta {
    /* ciara cez celu sirku oddeluje vyzvu od oceneni */
    padding: 110px 0 120px 0;
    border-top: 1px solid var(--omne-linka);
    background: #FFF;
    color: #1A1A1A;
    text-align: center;
}
.omne-cta h2 {
    max-width: 760px;
    margin: 0 auto 40px auto;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.2;
}

/* ---------- Mobil / tablet ---------- */

@media (max-width: 991px) {
    .omne-hero {
        padding-top: 80px;
    }
    .omne-hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 0;
    }
    .omne-hero-text {
        max-width: none;
        padding: 56px 24px 10px 24px;
    }
    .omne-hero-foto {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }
    /* na mobile sa fotka prelina zhora */
    .omne-hero-foto:after {
        top: 0;
        bottom: auto;
        width: 100%;
        height: 30%;
        background: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0));
    }
    .omne-cisla ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .omne-cisla li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
    .omne-cisla li:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .omne-clenstva ul {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .omne-sekcia {
        padding: 70px 0;
    }
    .omne-sekcia-hlavicka,
    .omne-vystavy .omne-sekcia-hlavicka {
        align-items: center;
        gap: 16px;
        margin-bottom: 36px;
    }
    .omne-vystavy .omne-sekcia-hlavicka {
        margin-bottom: 52px;
    }
    .omne-sekcia h2 {
        font-size: 28px;
    }
    .omne-cisla li {
        padding: 30px 16px;
    }
    .omne-cisla strong {
        font-size: 32px;
    }
    .omne-cisla span {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    .omne-timeline-nav button {
        width: 40px;
        height: 40px;
    }
    .omne-timeline-nav svg {
        width: 18px;
        height: 18px;
    }
    .omne-timeline li {
        width: 76vw;
        padding-right: 28px;
    }
    .omne-timeline li:last-child {
        width: calc(76vw - 28px);
    }
    .omne-timeline-os:before {
        right: -28px;
    }
    .omne-ocenenia-rok {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 28px 0;
    }
    .omne-ocenenia-rok > h3 {
        font-size: 22px;
    }
    /* na mobile umiestnenie nad nazvom */
    .omne-ocenenie {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 0;
    }
    .omne-ocenenie-umiestnenie {
        justify-self: start;
    }
    .omne-ocenenie-umiestnenie:empty {
        display: none;
    }
    .omne-cta {
        padding: 70px 0 80px 0;
    }
}

/* ---------- Tmava hlavicka nad ciernym hero (js/o-mne.js) ---------- */

/* transform 0.5s = povodne skryvanie hlavicky pri skrolovani (style.css), musi ostat */
header.page,
header.mobil-domov-black {
    transition: transform 0.5s, background 0.35s ease, border-color 0.35s ease;
}
header.page ul.menu li.menu-item a,
header.page .logo-black,
header.mobil-domov-black .logo-mobile-black,
header.mobil-domov-black .menu-black {
    transition: color 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
}
body.omne-tmava-hlavicka header.page,
body.omne-tmava-hlavicka header.mobil-domov-black {
    background: #000;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.omne-tmava-hlavicka header.page ul.menu li.menu-item a,
body.omne-tmava-hlavicka header.page ul.menu li.menu-item a:hover {
    color: #FFF;
}
/* cierne logo sa invertuje na biele */
body.omne-tmava-hlavicka header.page .logo-black,
body.omne-tmava-hlavicka header.mobil-domov-black .logo-mobile-black {
    filter: invert(1);
}
body.omne-tmava-hlavicka header.mobil-domov-black .menu-black {
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.74);
}

/* ---------- WordPress sablona ---------- */

/* povodne pozadie stranky O mne (napis o-mne.svg) uz netreba */
body.page-template-page-omne {
    background: none;
}
body.page-template-page-omne footer.page {
    margin-top: 0;
}
