/* Modern PIC Styles - Modernizovaná verze */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===== ZÁKLADNÍ STYLY ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #f4c97e;
    --accent-color: #e84545;
    --text-dark: #2c3e50;
    --text-light: #606060;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.stranka {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100vw;
    padding-bottom: 3rem;
    background-color: var(--bg-light);
    position: relative;
}

.levyOkraj {
    flex: 1 4 10%;
    order: 1;
}

.pravyOkraj {
    flex: 1 4 10%;
    order: 3;
}

.stredStrany {
    display: flex;
    flex-wrap: wrap;
    flex: 2 1 80%;
    max-width: 1200px;
    order: 2;
    gap: 2rem;
    padding: 0 1rem;
}

/* ===== ODSTAVCE A TYPOGRAFIE ===== */
.odstavec {
    max-width: 800px;
    min-width: max(250px, 20vw);
    flex: 1 1 350px;
    margin-top: 0;
    padding: 2rem;
    line-height: 1.7;
    transition: var(--transition);
}

.pravyPrvniOdstavec {
    padding-top: 0;
}

.normalImage {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.normalImage:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.odstavec h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.odstavec h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.odstavec h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: var(--text-dark);
}

/* ===== HERO SEKCE (BIG PIG) ===== */
.bigPig {
    display: block;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 70px;
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.bigPig::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
    z-index: 1;
}

.obrBigPig {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}

/* ===== AKTUALITA BANNER ===== */
.aktualita-banner {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.1rem;
    min-height: 3.5rem;
    z-index: 120;
    gap: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.aktualita-vyzva {
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: #ef4444;
    color: #ffffff;
    padding: 1rem 1.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.aktualita-text {
    font-weight: 500;
    letter-spacing: 0.01em;
    background-color: transparent;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

.aktualita-odkaz {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 0.5rem;
    position: relative;
}

.aktualita-odkaz::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.aktualita-odkaz:hover {
    color: #ef4444;
}

.aktualita-odkaz:hover::after {
    transform: translateX(4px);
}

/* ===== SEMINÁŘ SEKCE ===== */
.seminar-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: var(--bg-light);
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 2rem;
}

.seminar-box {
    display: flex;
    width: 100%;
    background-color: var(--bg-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.seminar-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.seminar-fotka {
    flex: 0 0 200px;
    width: 200px;
    height: 180px;
    background-color: #e5e7eb;
    object-fit: cover;
}

.seminar-text {
    flex: 1 1 0;
    background-color: transparent;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.seminar-presenter {
    font-size: 1rem;
    margin-top: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.seminar-firma {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.seminar-download {
    display: inline-block;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-top: 1rem;
    color: #3b82f6;
    transition: var(--transition);
}

.seminar-download:hover {
    color: #2563eb;
}

/* ===== LOGO A NAVIGACE ===== */
.logo {
    display: block;
    top: 20px;
    left: 2rem;
    position: absolute;
    z-index: 200;
    width: 60px;
    height: auto;
    transition: var(--transition);
}

.nazevFirmy {
    top: 25px;
    left: 90px;
    position: fixed;
    z-index: 200;
    font-size: 1.5rem;
    background-color: white;
    color: var(--text-light);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
    padding-right: 1rem;
}

/* ===== SLOGAN ===== */
.slogan {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    max-width: 500px;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 0;
    position: absolute;
    right: 5%;
    bottom: 15%;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInSlogan 1s ease-out;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    z-index: 100;
}

@keyframes fadeInSlogan {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sloganSpodni {
    display: none;
}

.sloganSpodniAktualita {
    display: none;
}

/* ===== BÍLÝ RÁMEČEK - HEADER ===== */
#bilyRamecek {
    box-sizing: content-box;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 180;
    box-shadow: var(--shadow-sm);
}

/* ===== NAVIGACE ===== */
.menu {
    display: block;
    top: 10px;
    right: 100px;
    position: fixed;
    z-index: 190;
}

.navbar {
    margin-top: 0;
    width: 95%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.navbar-links ul {
    margin-top: 8px;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.navbar-links li {
    list-style: none;
}

.navbar-links li a {
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 6px;
    position: relative;
}

.navbar-links li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navbar-links li a:hover {
    color: var(--accent-color);
    background-color: rgba(232, 69, 69, 0.05);
}

.navbar-links li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== LANGUAGE FLAGS ===== */
.langFlag {
    position: fixed;
    top: 30px;
    right: 32px;
    color: var(--text-dark);
    font-size: 0.9rem;
    z-index: 300;
}

.langFlag a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.langFlag a:hover {
    color: var(--accent-color);
}

.langFlagActive {
    position: fixed;
    top: 31px;
    right: 82px;
    z-index: 300;
    width: 20px;
    height: auto;
}

/* ===== PRODUKTY ===== */
.produkt {
    font-size: 2rem;
    line-height: 2.2rem;
    color: #f87171;
    font-variant: small-caps;
    font-weight: 600;
    width: 100%;
    padding-left: 0;
    margin: 3rem 0 0.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.produktModry {
    color: #60a5fa;
    font-size: 2rem;
}

.produktPopis {
    font-size: 1rem;
    line-height: 1.5rem;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    font-weight: 400;
    padding: 0.5rem 1rem;
    margin: 0 0 1.5rem 0;
    width: 100%;
    color: white;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.produktPopisModry {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.produktObrazek {
    width: 90%;
    display: block;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ===== TITULNÍ OBRÁZKY ===== */
.flexContainer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.titulniObrazekBox {
    display: flex;
    flex: 1 1 350px;
    background-color: #10b981;
    min-width: 300px;
    min-height: 250px;
    max-height: 350px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.titulniObrazekBox:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.obrazek {
    display: block;
    object-fit: cover;
    object-position: right;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: sepia(60%) brightness(90%);
    transition: var(--transition);
}

.titulniObrazekBox:hover .obrazek {
    filter: sepia(40%) brightness(100%);
    transform: scale(1.05);
}

.obrProdukty {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(85%) sepia(80%);
}

.obrPartneri {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    object-position: 6% 70%;
}

.obrKontakt {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}

.obrPodpora {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: 60% center;
}

.nadpisStranky {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #a67d3f;
    line-height: 1.2;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ===== ADRESY ===== */
.flexContainerAdresa {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 2rem;
    justify-content: flex-start;
    gap: 2rem;
}

.odstavecAdresa {
    flex: 1 1 300px;
    border-radius: 12px;
    padding: 2rem;
    min-width: 300px;
    line-height: 1.6;
    max-width: 400px;
    border: none;
    background-color: var(--bg-gray);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.odstavecAdresa:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.odstavecAdresa0 {
    flex: 1 1 300px;
    min-width: 300px;
    padding: 1rem;
    background-color: var(--bg-light);
    border: none;
}

.noMargin {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== PATIČKA ===== */
.flexContainerPaticka {
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
    font-size: 0.85rem;
    width: 100%;
    padding: 1.5rem 2rem;
    color: #e5e7eb;
    gap: 2rem;
}

.flexContainerPaticka a {
    color: #fde68a;
    transition: var(--transition);
}

.flexContainerPaticka a:hover {
    color: #fef08a;
}

.podporaOdkaz {
    color: #fef08a;
    text-decoration: underline;
}

.cernyPodklad {
    background-color: #1f2937;
    color: white;
    font-size: 0.85rem;
    min-width: 100px;
    padding: 1.5rem;
}

.sedyPodklad {
    background-color: var(--bg-gray);
}

.tmaveSedyPodklad {
    background-color: #4b5563;
}

.designedBy {
    display: inline-block;
    text-align: center;
    font-size: 0.85rem;
    width: 100%;
    padding: 1rem;
}

/* ===== UTILITY ===== */
h6, h7 {
    display: block;
    position: relative;
    bottom: 50px;
    visibility: hidden;
    margin: 0;
    padding: 0;
}

h8 {
    font-size: 1.3rem;
    color: #f9f8f7;
}

h8 a {
    color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
}

.active {
    color: #10b981 !important;
    font-weight: 600;
}

/* ===== MOBILNÍ NAVIGACE ===== */
#menuToggle {
    display: none;
    position: absolute;
    right: 50px;
    top: 25px;
    z-index: 500;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle a {
    text-decoration: none;
    color: #f3f4f6;
    font-variant: small-caps;
    transition: var(--transition);
    font-weight: 500;
}

#menuToggle a:hover {
    color: #fca5a5;
    font-weight: 700;
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
}

#menuToggle span {
    display: block;
    width: 35px;
    height: 4px;
    margin-bottom: 6px;
    position: relative;
    background: var(--text-dark);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #f9f8f8;
}

#menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

#menuMobile {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -200px;
    padding: 50px;
    padding-top: 125px;
    color: #e5e7eb;
    background: #1f2937;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(200%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    border-radius: 0 0 0 16px;
    box-shadow: var(--shadow-lg);
}

#menuMobile li {
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#menuMobile li a:hover {
    color: #fde047;
    font-weight: 600;
}

#menuToggle input:checked ~ ul {
    transform: none;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1300px) {
    .obrBigPig {
        object-position: 20% center;
    }

    .slogan {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        padding: 1.5rem;
    }
}

@media (max-width: 1000px) {
    .menu {
        display: none;
    }

    .langFlag,
    .langFlagActive {
        display: none;
    }

    #menuToggle {
        display: block;
    }

    .logo {
        left: 2rem;
        top: 20px;
        width: 50px;
    }

    .nazevFirmy {
        top: 22px;
        left: 80px;
        font-size: 1.3rem;
    }

    .slogan {
        display: none;
    }

    .sloganSpodni {
        display: inline-flex;
        visibility: visible;
        position: relative;
        margin-top: -100px;
        font-size: 1.5rem;
        font-weight: 600;
        padding: 5%;
        color: var(--text-dark);
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }

    .sloganSpodni a {
        color: var(--text-dark);
    }

    .stredStrany {
        gap: 1.5rem;
    }
}

@media (max-width: 840px) {
    .obrPartneri {
        object-position: center;
    }

    .odstavecAdresa {
        font-size: 0.95rem;
        min-width: 100%;
        max-width: 100%;
    }

    .aktualita-banner {
        font-size: 1rem;
    }

    .seminar-box {
        flex-direction: column;
    }

    .seminar-fotka {
        flex: 0 0 200px;
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 750px) {
    .logo {
        left: 1rem;
        width: 45px;
    }

    .nazevFirmy {
        left: 70px;
        font-size: 1.2rem;
    }

    .bigPig {
        height: 40vh;
        min-height: 300px;
    }

    .obrBigPig {
        object-position: 30% center;
    }

    .sloganSpodni {
        font-size: 1.2rem;
        margin-top: -80px;
    }

    .flexContainerPaticka {
        flex-flow: wrap;
        gap: 1rem;
    }

    .aktualita-banner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .aktualita-vyzva,
    .aktualita-text {
        min-width: 100%;
        min-height: 2.5rem;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 1rem;
    }

    .bigPig {
        height: 35vh;
        min-height: 250px;
    }

    .obrBigPig {
        object-position: 25% center;
    }

    .slogan {
        display: none;
    }

    .sloganSpodni {
        font-size: 1rem;
        margin-top: -60px;
    }

    .levyOkraj {
        flex: 1 4 3%;
    }

    .pravyOkraj {
        flex: 1 4 3%;
    }

    .stredStrany {
        flex: 2 1 94%;
        padding: 0 0.5rem;
    }

    #menuToggle {
        right: 30px;
        top: 20px;
    }

    .logo {
        left: 1rem;
        top: 15px;
        width: 40px;
    }

    .nazevFirmy {
        top: 20px;
        left: 60px;
        font-size: 1.1rem;
    }

    .titulniObrazekBox {
        min-height: 200px;
        max-height: 250px;
    }

    .odstavec {
        padding: 1rem;
    }

    .flexContainerAdresa,
    .seminar-container {
        padding: 0 1rem;
    }
}

/* ===== ANIMACE A EFEKTY ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 0.6s ease-in;
}

/* Smooth scrolling pro kotvy */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .menu,
    .langFlag,
    .langFlagActive,
    #menuToggle,
    #bilyRamecek {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}
