:root {
    --bg-dark-gradient: linear-gradient(135deg, #252525 0%, #252525 50%, #252525 100%);
    --bg-top: #ffffff;    
    --text-dark: #000000;      
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    overflow-y: auto; /* Povolí skrolování dolů */
    height: auto;     /* Umožní stránce mít výšku podle obsahu */
    min-height: 100vh;
}

/* ================= NAV ================= */

nav {
    width: 100%;
    height: 10vh;
    background-color: #74a8a4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    position: fixed;
    z-index: 100;
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

nav .logo-container .logo img {
    height: 100%;
    max-height: 80px;
    width: auto;
    display: block;
}

nav .logo-container .brand-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ================= TOGGLE ================= */

.theme-toggle {
    width: 64px;
    height: 34px;
    border-radius: 30px;
    background-color: transparent;
    border: 2px solid #ffffff;
    cursor: pointer;
    position: relative;
    padding: 0;
    outline: none;
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease, border-color 0.4s ease;
    z-index: 9999;
    overflow: hidden;
}

.toggle-circle {
    width: 26px;
    height: 26px;
    border-radius: 50px;
    background-color: #ffffff;
    position: absolute;
    left: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, color 0.4s ease;
}

.theme-toggle .icon {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
}

.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg); }

.theme-toggle.dark-mode {
    border-color: #333333;
    background-color: #1a1a1a;
}

.theme-toggle.dark-mode .toggle-circle {
    transform: translateX(30px);
    background-color: #000000;
    color: #ffffff;
}

.theme-toggle.dark-mode .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-toggle.dark-mode .icon-moon {
    opacity: 1;
    transform: rotate(-130deg);
    top: 25%;
    left: 25%;
}

/* ================= LAYOUT ================= */

.portfolio-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Zůstává jako první "obrazovka" */
    overflow: hidden; /* Skryje případné přetékaní masky */
}

/* IMAGE */
.right-image-wrapper {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 5;
}

.right-image-wrapper img {
    max-height: 90vh;
    width: auto;
    opacity: 0.8;
    margin-top: 10vh;
}

/* ================= CODE OVERLAY ================= */

.code-overlay {
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    background: white;
    border-radius: 10%;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    margin-left: 4px;
    background: #74a8a4;
    vertical-align: middle;
    animation: blink .8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.code-overlay pre {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #333333;
    font-family: "Fira Code", monospace;
    font-size: 1.1rem;
    white-space: pre;
    padding: 4%;
}

.accent-color {
    color: #74a8a4;
    font-weight: bold;
}

/* ================= LAYERS ================= */

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    text-align: center;
    max-width: 800px;
    padding: 40px;
    width: 100%;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    display:inline-block;
    text-decoration:none;
}

/* ================= BACKGROUNDS ================= */

.accent-text {
    color: #74a8a4 !important;
    font-weight: 900;
}

.bottom-layer {
    background: var(--bg-dark-gradient);
    z-index: 1;
}

.bottom-layer h1,
.bottom-layer p {
    color: #ffffff;
}

.bottom-layer .cta-btn {
    border: 3px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    z-index: 9999;
}

/* ================= TOP LAYER + MASK FIX ================= */

.top-layer {
    background: var(--bg-top);
    z-index: 3;
    pointer-events: auto;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* 🔥 DŮLEŽITÉ: maska jde přímo na celý layer */
.top-layer {
    -webkit-mask-image: var(--mask-url);
    mask-image: var(--mask-url);
}

.top-layer a{
    pointer-events:auto;
}

.top-layer .content {
    color: var(--text-dark);
    pointer-events: auto;
}

.top-layer .cta-btn {
    pointer-events: auto;
    border: 3px solid var(--text-dark);
    color: var(--text-dark);
    cursor: pointer;
    z-index: 9999;
}

.top-layer .cta-btn:hover {
    background: #74a8a4;
    color: #ffffff;
}

/* ================= CANVAS ================= */

#maskCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}


.about-section {
    padding: 50px 5% 0; /* Zmenšil jsem padding-top, aby se to lépe vlezlo */
    background-color: #ffffff;
    height: 90vh;      /* 90 % výšky */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px; /* Větší mezera mezi textem a obrázkem */
    align-items: flex-start; /* Zarovná obsah nahoru, ne na střed */
    justify-content: space-between; /* Roztáhne prvky na strany */
    max-width: 1200px; /* Mírně rozšíříme celkový kontejner */
    margin: 0 auto;
}

.about-text {
    flex: 1 1 500px; /* Text se může roztáhnout až na 500px+ */
    padding-top: 40px; /* Posune text o něco výše od horního okraje sekce */
}
.about-label{
    color: #74a8a4;
    font-size: 1.4rem;
    padding-bottom: 30px;
}

.about-image {
    flex: 0 1 550px; /* Obrázek se nebude nekonečně roztahovat */
}

.about-image img {
    width: 100%; /* Obrázek je vždy uvnitř svého kontejneru */
    height: auto;
    border-radius: 20px;
}

/* Flexibilní pás technologií */
.tech-stack-bar {
    width: 100%; /* Vynutí, aby zabral celý řádek nad textem a obrázkem */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin: 0 auto 40px auto; /* Méně spodního marginu, pokud je to nahoře */
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.162); 
    border: 1px solid rgba(0,0,0,0.05); /* Tenký okraj pro větší definici */
}

.tech-icons {
    display: flex;
    gap: 50px;
}

.tech-icons img {
    height: 35px; /* Relativní výška */
    width: auto;
}
.tech-title{
    font-weight: 900;
}


.project-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
}

.projects-container {
    position: relative;
    width: 100%;
    min-height: 80vh;
}

.brush-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 105%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.projects-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;

    gap: 80px;

    padding: 80px 6%;
}

/* Styling šipek */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    
    /* Pevné vycentrování */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Vynucení vzhledu */
    font-size: 25px;
    line-height: 1; /* Důležité: zabrání posunu textu nahoru/dolů */
    padding: 0;     /* Musí být 0, jinak to padding rozhází */
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.arrow:hover {
    background: #74a8a4; /* Barva při najetí[cite: 1] */
    color: white;
}

/* Pozice šipek */
.prev-btn {
    left: 270px; /* Uprav podle potřeby, aby byly u karty */
}

.next-btn {
    right: 60px;
}

.projects-content h2 {
    width: 280px;
    margin: 0;
    font-size: 40px;
    align-self: center;
}

.projects-slider{
    display:flex;
    align-items:center;
    gap:15px;
    transition: transform 0.5s ease-in-out; 
    will-change: transform;
}

.project-card{
    width:350px;
    height: 400px;
    background:white;
    border-radius:25px;
    padding:18px;
    text-align:center;

    transition:0.4s;

    opacity:0.7;
    scale: 0.7;
    /* PŘIDAT TYTO ŘÁDKY */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Obsah se řadí odshora */
    align-items: center;
    gap: 0px; /* Pevná mezera mezi prvky */
}

.project-card-active{
    width:350px;
    height: 400px;
    background:white;
    border-radius:25px;
    padding:18px;
    text-align:center;

    transition:0.4s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.162);
    scale: 1;
    /* PŘIDAT TYTO ŘÁDKY */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Obsah se řadí odshora */
    align-items: center;
    gap: 0px; /* Pevná mezera mezi prvky */
}
.projects-slider img {
    width: 100%;
    height: 180px; /* Fixní výška obrázku */
    object-fit: cover; /* Obrázek se ořízne, aby se nedeformoval */
    border: 3px solid black;
    border-radius: 15px;
}
.projects-slider h3{
    padding-top: 20px;
    font-size: 1.4rem;
}
.projects-slider p{
    font-size: 1.3rem;
    padding-bottom: 0;
}
.projects-slider a{
    text-decoration: none;
    color: black;
}

.projects-slider button {
    background-color: #74a8a4;
    width: 120px;
    height: 40px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0px; /* Tlačítko bude těsně pod textem */
}

.modal {
    display: none; 
    position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.8);
}
.modal-content {
    top: 50%;
    transform: translateY(10%);
    margin: auto;
    display: block;
    max-width: 90%;   /* Obrázek nezabere víc než 90 % šířky okna */
    max-height: 80vh; /* Obrázek nezabere víc než 80 % výšky okna */
    object-fit: contain; /* Toto zajistí, že bude vidět CELÝ obrázek */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.close { position: absolute; top: 20px; right: 35px; color: white; font-size: 40px; cursor: pointer; }


/* Kontejner sekce */
.interests-section {
    padding-bottom: 80px;
    text-align: center;
    background: #fff;
    position: relative; /* Pro jistotu */
}

.interests-header { margin-bottom: 30px; }

/* Wrapper musí mít relativní pozici, aby se v něm šipky udržely */
.interests-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px; 
    position: relative; /* Klíčové pro pozicování šipek */
    max-width: 1250px;  /* Omezí šířku, aby se šipky nerozutekly do stran */
    margin: 0 auto;
}

/* Šipky nyní pozicujeme vůči .interests-wrapper */
.prev-btn-int, .next-btn-int {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.256);
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.prev-btn-int { left: 0px; } /* Vzdálenost od levého okraje wrapperu */
.next-btn-int { right: 0px; } /* Vzdálenost od pravého okraje wrapperu */

.interests-slider {
    display: flex;
    align-items: center;
    gap: 100px; 
    overflow: visible; 
    padding: 0px 0;
    justify-content: center;
}

.int-card {
    flex: 0 0 auto; /* Karta se přizpůsobí obsahu, nebude mít pevnou šířku 200px */
    border: 8px solid #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    opacity: 0.7;
    background: #fff;
    scale: 0.8;
}

.int-card img {
    display: block;
    width: 100%;      /* Obrázek si zachová svou šířku */
    height: auto;     /* Obrázek si zachová svou původní výšku */
    max-width: 300px; /* Volitelně: omez maximální šířku, aby se nerozbila stránka */
    max-height: 400px; /* Volitelně: omez maximální výšku */
    border-radius: 10px;
}

.int-card.active {
    border: 8px solid #74a8a4;
    background: #000;
    transform: scale(1.25); /* Zvětšení aktivní karty */
    z-index: 10;
    opacity: 1;
}

.contact-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 80px; /* Zvětšil jsem mezeru pro lepší vzhled */
    align-items: center;
    flex: 1;
}

/* Kontejner, který ikony narovná */
.icon-wrapper {
    width: 40px;  /* Pevná šířka čtverce */
    height: 40px; /* Pevná výška čtverce */
    display: flex;
    justify-content: center; /* Vycentruje obrázek vodorovně */
    align-items: center;     /* Vycentruje obrázek svisle */
    transition: transform 0.3s ease;
}

.footer-left img {
    max-width: 100%;  /* Obrázek nikdy nepřeteče */
    max-height: 100%;
    object-fit: contain; /* Zachová poměr stran, ale vejde se do čtverce */
}

.icon-wrapper:hover {
    transform: scale(1.15); /* Plynulé zvětšení při najetí */
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-right {
    text-align: right;
    flex: 1;
}

.phone-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
}



/* =========================
   SAFE FLEX FIX (NEBORTÍ DESIGN)
========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* všechny hlavní sekce musí umět zmenšení */
.portfolio-container,
.about-container,
.projects-slider,
.interests-slider {
    max-width: 100%;
}

/* zabrání overflow layoutu */
.portfolio-container,
.about-container,
.project-section,
.interests-section {
    overflow-x: hidden;
}

/* ==========================================================
   KOMPLETNÍ RESPONZIVITA A OPRAVA PODLE NÁVRHU (FLEXIBILNÍ)
   ========================================================== */

/* Globální nastavení pro plynulé zvětšování/zmenšování textů napříč celým webem */
html {
    font-size: clamp(12px, 1vw + 10px, 18px);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.5rem) !important; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem) !important; }
p { font-size: clamp(1rem, 2vw, 1.5rem) !important; }

/* ================= NAVIGACE & HAMBURGER (OPRAVA) ================= */

/* Skrytí hamburgeru na PC */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        height: 70px;
        padding: 0 5%;
    }

    .menu-toggle {
        display: flex !important; /* Vynucení zobrazení hamburgeru na mobilu */
    }

    /* Skryté menu na mobilu - rozbaluje se dolů */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #74a8a4;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        z-index: 9999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Stav, když skript přidá třídu .active */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        order: -1; /* Posun přepínače režimů vedle loga, pokud je potřeba */
    }
}

/* ================= HEROSČÁST (PODLE NÁVRHU) ================= */
@media (max-width: 768px) {
    .portfolio-container {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    /* Zmizení běžícího kódu na pozadí podle zadání */
    .code-overlay {
        display: none !important;
    }

    .layer {
        position: relative;
        height: auto;
    }

    .content {
        padding: 20px;
        text-align: center;
    }

    /* Zařazení obrázku z heroseriálu až POD text */
    .right-image-wrapper {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        width: 100%;
        z-index: 5;
    }

    .right-image-wrapper img {
        max-height: 45vh;
        width: auto;
        margin-top: 0;
    }
    
    /* Překrytí vrstev pro maskování prvků na mobilu */
    .top-layer {
        position: absolute;
        top: 0;
        left: 0;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
}

/* ================= O MNE (PODLE NÁVRHU) ================= */
@media (max-width: 768px) {
    .about-section {
        height: auto;
        padding: 40px 5%;
    }

    /* Technologie se zmenší a srovnají */
    .tech-stack-bar {
        gap: 20px;
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .tech-icons {
        gap: 20px;
    }

    .tech-icons img {
        height: 28px;
    }

    /* Řazení prvků pod sebe */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .about-text {
        padding-top: 0;
        flex: 1 1 100%;
    }

    .about-image {
        flex: 0 1 auto;
        width: 80%;
        max-width: 300px;
    }
}

/* ================= PROJEKTY (Pouze 1 projekt + šipky) ================= */
@media (max-width: 768px) {
    .project-section, .projects-container {
        min-height: auto;
        height: auto;
    }

    .projects-content {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .projects-content h2 {
        width: 100%;
        text-align: center;
        align-self: center;
    }

    /* Příprava pro slider, aby zobrazoval pouze jednu kartu */
    .projects-slider {
        position: relative;
        width: 100%;
        max-width: 330px; /* Šířka jedné karty včetně paddingu */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        overflow: hidden; /* Skryje ostatní projekty */
    }

    /* Karta zabere 100% šířky vymezeného okna slideru */
    .project-card, .project-card-active {
        width: 100% !important;
        max-width: 310px !important;
        height: 380px;
        opacity: 1 !important;
        scale: 1 !important;
        margin: 0 auto;
        flex-shrink: 0;
    }

    /* Zachování funkčních šipek po stranách karty */
    .arrow {
        display: flex !important; /* Vynutíme zobrazení šipek */
        top: 60%;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* ================= FOOTER (PODLE NÁVRHU) ================= */
@media (max-width: 768px) {
    .projects-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
    }

    .projects-slider {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .project-card,
    .project-card-active {
        margin: 0 auto !important;
    }

    .arrow {
        top: 50% !important;
    }
    .contact-footer {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        gap: 25px;
    }

    /* Přerovnání pořadí podle obrázku: 1. Nadpis, 2. Telefon, 3. Ikony */
    .footer-center {
        order: 1;
        flex: none;
    }

    .footer-right {
        order: 2;
        text-align: center;
        flex: none;
    }

    .footer-left {
        order: 3;
        justify-content: center;
        gap: 40px;
        flex: none;
        width: 100%;
    }
}

/* Zajištění, že nic nepřeteče do boků */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    /* ===== HERO FIX ===== */
    .portfolio-container {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        position: relative !important;
    }

    .layer {
        position: relative !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .top-layer {
        position: relative !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    /* DŮLEŽITÉ: aby text nebyl “pod/za” maskou */
    .content {
        position: relative !important;
        z-index: 5 !important;
    }

    /* OBRAZEK nesmí být absolute */
    .right-image-wrapper {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 20px auto 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .right-image-wrapper img {
        max-height: 40vh !important;
    }
}

@media (max-width: 768px) {
    /* Vynucení jedné verze textu a správného pořadí */
    .portfolio-container {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* Schováme vrstvu, která dělá neplechu */
    .bottom-layer {
        display: none !important;
    }

    /* Ujistíme se, že text (top-layer) je vidět a není duplicitní */
    .top-layer {
        display: flex !important;
        flex-direction: column !important;
        order: 1 !important;
        position: relative !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    /* Obrázek pod textem */
    .right-image-wrapper {
        order: 2 !important;
        display: block !important;
        margin-top: 30px !important;
    }
}
@media (max-width: 768px) {
    .right-image-wrapper {
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .right-image-wrapper img {
        margin: 0 auto !important;
        display: block !important;
    }
}
