/* ============================================================
   O Mně - Vlastné štýly podstránky
   ============================================================ */

/* CSS Variables pre O mně sekciu */
:root {
    --omne-pad-desktop: 80px;
    --omne-pad-mobile: 20px;
    --omne-text-color: #333333;
    --omne-bg-color: #f9f9f9;
}

/* ============================================================
   HLAVIČKA & NAVIGÁCIA (Špecifické pre O mně)
   ============================================================ */

.main-header {
    position: absolute !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nav-container {
    justify-content: space-between !important;
}

.nav-logo {
    height: 38px;
    width: auto;
}

/* Fixné čierne menu tlačidlo bez lišty */
.menu-toggle {
    position: fixed !important;
    top: 20px;
    right: 20px;
    color: #000000 !important;
    z-index: 1100;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle .hamburger span {
    background-color: #000000 !important;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

@media (min-width: 1025px) {
    .nav-logo {
        height: 48px;
    }

    .menu-toggle {
        top: 40px;
        right: 80px;
    }
}

/* ============================================================
   HERO SEKCIA
   ============================================================ */
.hero-omne-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 10vh;
    padding-bottom: 0;
}

/* Pozadie s clip-path pre šikmý orez */
.hero-omne-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, #DBDBDB 0%, #ffffff 70%);
    /* Zmenšený uhol a skorší nástup bielej */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 60%);
    /* Pravý bod posunutý z 100% na 85% pre miernejší sklon */
    z-index: -1;
}

.hero-omne-container {
    padding: 0 var(--omne-pad-mobile);
}

.hero-omne-grid {
    display: flex;
    flex-direction: column;
    /* Predvolene jeden stĺpec */
    gap: 40px;
    align-items: center;
}

.hero-omne-text {
    text-align: center;
    /* Vycentrované pre mobil/tablet */
    order: 2;
    /* Text pôjde pod fotku */
}

.hero-omne-text h1 {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: clamp(2rem, 8vw, 4rem);
    /* Zväčšené VW pre lepšiu viditeľnosť na tabletoch */
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
    /* white-space: nowrap odstránený pre malé mobily */
}

.hero-omne-text h2 {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-omne-text p {
    font-family: var(--font-secondary, 'Open Sans', sans-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 500px;
    margin: 0 auto 40px;
    /* Vycentrovanie a pridanie odstupu od spodku */
}

/* ============================================================
   ORBIT ANIMÁCIA
   ============================================================ */
.hero-omne-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    order: 1;
    /* Fotka pôjde navrch */
}

.orbit-center {
    position: relative;
    width: 100%;
    max-width: 2000px;
    /* Prispôsobené pre extrémne veľkú fotku */
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-portrait {
    position: relative;
    z-index: 10;
    width: 100%;
    /* Edge-to-edge pre mobil/tablet */
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.main-portrait:hover {
    transform: scale(1.02);
}

/* Skrytý stred okolo ktorého to rotuje */
.orbit-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Centrovanie na stred pre mobil */
    width: 0;
    height: 0;
    z-index: 20;
    /* Zvýšené z 5, aby boli ikony pred fotkou */
    animation: orbitRotate 50s linear infinite;
    /* Spomalené z 40s */
}

.orbit-item {
    position: absolute;
    /* Centrovanie bodu do stredu */
    top: -20px;
    /* Zmenšené pre mobil */
    left: -20px;
    width: 40px;
    height: 40px;
    /* Dynamický polomer so zabezpečením proti vytečeniu z obrazovky (zväčšený pre tablety) */
    transform: rotate(var(--angle)) translate(min(42vw, 320px)) rotate(calc(-1 * var(--angle)));
}

.orbit-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Tieň prispôsobený tvaru SVG ikony */
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.2));
    /* Presná protistredná rotácia obalu */
    animation: orbitCounterRotate 50s linear infinite;
    /* Spomalené z 40s */
}

.orbit-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Keyframes pre animácie */
@keyframes orbitRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbitCounterRotate {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


/* ============================================================
   SEKCIE 50/50 (Grids)
   ============================================================ */
.content-omne {
    max-width: 1440px;
    /* Zosúladené so štandardom subpages */
    margin: 0 auto;
    padding: 10px 20px;
    /* Responzívny padding pre mobil/tablet */
    display: flex;
    flex-direction: column;
    gap: 100px;
    /* Väčšie rozostupy medzi sekciami */
}

.omne-card {
    width: 100%;
}

.omne-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 20px;
}

/* Textová časť */
.omne-card-text {
    padding: 0;
}

.omne-card-text h2 {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: uppercase;
    /* Moderný štýl nadpisov */
}

.omne-card-text p {
    font-family: var(--font-secondary, 'Open Sans', sans-serif);
    font-size: 1.1rem;
    line-height: 1.65;
    /* Zvýšený riadkový preklad pre lepšiu čitateľnosť */
    color: #4b5563;
    margin-bottom: 20px;
}

/* Obrázková časť */
.omne-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 24px;
    /* Mierne zaoblenejšie rohy */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.08);
}

.omne-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.omne-card:hover .omne-card-image img {
    transform: scale(1.05);
}


/* ============================================================
   MEDIA QUERIES (Desktop prvky)
   ============================================================ */
@media (min-width: 1025px) {
    .hero-omne-grid {
        display: grid;
        grid-template-columns: 35% 65%;
        flex-direction: row;
        text-align: left;
    }

    .hero-omne-text {
        text-align: left;
        order: 1;
    }

    .hero-omne-visual {
        order: 2;
    }

    .hero-omne-wrapper {
        margin-top: -80px;
        /* Negatívny margin vrátený iba pre desktop */
        padding-top: 0;
    }

    .hero-omne-container {
        padding: 0 var(--omne-pad-desktop);
        max-width: none;
        /* Odstránenie limitu pre 24" monitory */
        width: 100%;
    }

    .hero-omne-grid {
        grid-template-columns: 35% 65%;
        /* Viac priestoru pre vizuál */
        gap: 40px;
        align-items: flex-start;
        /* Zarovnanie na hornú hranu pre presnú kontrolu */
    }

    .hero-omne-text {
        padding-top: 30vh;
        /* Bezpečné odsadenie, aby bol text viditeľný, ale stále vysoko */
        margin-top: 0;
    }

    .hero-omne-text p {
        margin-left: 0;
    }

    /* Na desktope chceme obrázok dominantný, ale nie rušivý */
    .hero-omne-visual {
        justify-content: flex-end;
        padding-right: 0;
        margin-right: calc(-1 * var(--omne-pad-desktop));
        /* Zarovnanie až k úplnému okraju */
        overflow: visible;
    }

    .main-portrait {
        max-width: 1035px;
        /* Zmenšené o 10% (1150 * 0.9) */
        width: 100%;
        transform: scale(1);
    }

    .orbit-center {
        max-width: 1300px;
    }

    .orbit-circle {
        left: calc(50% - 40px);
        /* Vrátenie posunu pre desktop (keďže postava vpravo nie je centrovaná) */
    }

    .orbit-item {
        top: -2.1vw;
        left: -2.1vw;
        width: 4.2vw;
        /* Dynamická veľkosť (cca 80px na 24" monitore) */
        height: 4.2vw;
        /* Dynamický polomer podľa šírky monitora (20vw zodpovedá 380px na 1920px/24" monitore) */
        transform: rotate(var(--angle)) translate(20vw) rotate(calc(-1 * var(--angle)));
    }

    .content-omne {
        padding: 0 60px;
        /* Zväčšený padding pre desktopovú verziu */
        gap: 150px;
        /* Ešte výraznejšie rozostupy medzi sekciami */
    }

    .omne-card-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "text image"
            "list image";
        gap: 20px 100px;
        padding: 0;
    }

    .omne-card-grid .omne-card-text  { grid-area: text; }
    .omne-card-grid .omne-card-image { grid-area: image; align-self: center; }
    .omne-card-grid .omne-list       { grid-area: list; }

    .omne-card-text {
        padding: 0;
    }

    /* Alternatívne zarovnanie - obrázok vľavo */
    .omne-card-grid.img-left {
        grid-template-areas:
            "image text"
            "image list";
    }
}

/* ============================================================
   ZOZNAM V KARTÁCH
   ============================================================ */
.omne-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.omne-list li {
    font-family: var(--font-secondary, 'Open Sans', sans-serif);
    font-size: 1.05rem;
    line-height: 1.5;
    color: #4b5563;
    padding-left: 24px;
    position: relative;
}

.omne-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36D1B2;
}

/* ============================================================
   PLACEHOLDER (náhrada za foto)
   ============================================================ */
.omne-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #f0f2f5;
    border-radius: 24px;
    border: 2px dashed #c8cdd4;
}

.omne-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

.omne-placeholder span {
    font-family: var(--font-secondary, 'Open Sans', sans-serif);
    font-size: 0.9rem;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}