@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: 'Diablo';
    src: url('fonty/Diablo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    background: #414042;
}
body {
    font-family: 'Diablo', Arial, sans-serif;
    font: 14px "Poppins";
    background: #fff; /* změna z #222 na #fff */
    /* background-image: url('Obrazky/BB1B0F66-339A-4B7C-9D18-FFC814D34F09.PNG'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #414042;
    box-sizing: border-box;
    margin: 0;
    padding: 100px 0px 0px 0px;
    min-width: 0;
    /* ODSTRAŇ nebo ZAKOMENTUJ tyto řádky: */
    /* display: flex;
    justify-content: center;
    align-items: center; */
    position: relative;
}

/* Zachovej speciální pozadí jen pro děkovací stránku */
body.thankyou-bg {
    background: #222;
    background-image: url('Obrazky/BB1B0F66-339A-4B7C-9D18-FFC814D34F09.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body > header {
    height: 100px;
    width: 100%;
    background: #000;
    color: white;
    display: flex;
    align-items: center;         /* zarovná logo, tlačítko i menu na střed vertikálně */
    justify-content: space-between;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    padding: 0 32px;             /* odsazení zleva a zprava */
    box-sizing: border-box;
}

#logo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#logo h1, #logo small {
    color: inherit;
}

#logo {
    height: 70px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('Obrazky/DE127D01-B987-41EE-AB5A-77C0B729AD32.PNG') no-repeat left center;
    background-size: 60px 60px;
    margin: 0;
}

#logo > * {
    margin: 0 0 0 75px;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    margin-left: 24px;
}

nav#hlavni-menu {
    display: flex;
    align-items: center;
}

nav ul {
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: flex-end; /* zarovná odkazy dolů */
    height: 100%;
    padding: 0;
}

nav ul li {
    padding: 0 18px;
    margin: 0;
    font-size: 1em;
    line-height: 1.2; /* menší line-height, aby linka byla pod textem */
}

nav ul a {
    color: white;
    padding: 8px 0 14px 0; /* větší padding dole pro červenou linku */
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    display: inline-block;
}

nav ul a:hover,
.aktivni a {
    border-bottom: 2px solid #d32f2f;
}

/* --- Hamburger menu na mobilu --- */
@media (max-width: 900px) {
    body > header {
        flex-direction: row;
        height: 60px;
        padding: 0 10px;
    }
    #logo {
        background-size: 40px 40px;
        height: 50px;
        min-width: 120px;
    }
    #logo > * {
        margin-left: 50px;
    }
    #menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
        margin-left: auto;
    }
    nav#hlavni-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #000;
        z-index: 1001;
        padding-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        max-height: 80vh;
        overflow-y: auto;
    }
    nav#hlavni-menu.aktivni {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0;
    }
    nav ul li {
        width: 100%;
        padding: 0 0 0 20px;
        line-height: 2.5em;
    }
}

main {
    padding: 0;         /* žádné extra odsazení */
    margin: 0;
}

article {
    margin: 0 auto;
    max-width: 960px;
    padding: 50px 50px 10px 50px;
}

article header {
    height: 80px;       /* stejné jako na O mně */
}

article h1 {
    margin: 0;
    font-size: 2.3em;
    font-weight: bold;
    text-transform: uppercase;
    width: max-content;
    border-bottom: 4px solid #d32f2f;
    color: #000;
    padding: 10px 0;
}

article h2,
article h3,
article h4,
article h5,
article h6 {
    padding: 10px 0;
    color: #000; /* černá barva písma */
}

article h1 {
    margin: 0;
    font-size: 2.3em;
    font-weight: bold;
    text-transform: uppercase;
    width: max-content;
    border-bottom: 4px solid #d32f2f; /* červené podtržení */
}

article h2 {
    font-size: 2em;
}

article header {
    height: 80px;
}

article section p {
    margin-bottom: 1.5em;
    line-height: 1.8em;
}

article section a {
    color: #d32f2f;
    text-decoration: underline;
}

footer {
    box-sizing: border-box;
    text-align: center;
    height: 100px;
    color: white;
    background: #414042;
    padding: 50px 0 0 0;
    clip-path: polygon(0 30px, 100% 0, 100% 105%, 0 105%);
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

footer a {
    color: white;
    text-decoration: none;
}

.avatar{
    width: 300px;
    padding-left: 10px;
    filter: grayscale(1);
    display: block;
}

.cistic {
    clear: both;
}

.centrovany {
    text-align: center;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.reference-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px 18px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reference-item img {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.reference-item h3 {
    margin: 10px 0 8px 0;
    font-size: 1.2em;
    color: #d32f2f;
}

.reference-item p {
    color: #555;
    font-size: 0.98em;
    margin-bottom: 18px;
    min-height: 48px;
}

.reference-tlacitko {
    background: #d32f2f;
    color: white;
    font-size: 0.95em;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 25px;
    transition: background 0.2s;
    display: inline-block;
}

.reference-tlacitko:hover {
    background: #b71c1c;
}

#dovednosti td {
    width: 33%;
    padding: 10px;
    vertical-align: top;
    border: 1px solid gray;
}

#dovednosti {
    border-collapse: collapse;
}

#reference img {
    border: 1px solid gray;
    padding: 6px;
    box-shadow: 3px 3px 6px #999999;
    margin-right: 6px;
}

#reference a {
    text-decoration: none;
}

#reference a:hover {
    text-decoration: none;
}

.tlacitko-odstavec {
    margin-left: 50px;   /* stejné odsazení jako článek */
    margin-top: 20px;
}

.kontakt-karta {
    max-width: 280px; /* zúžení boxu */
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 18px 24px 18px; /* menší vnitřní odsazení */
    text-align: center;
}

.kontakt-ikona img {
    width: 60px;
    margin-bottom: 10px;
    filter: grayscale(1) brightness(0.7);
}

.kontakt-karta h2 {
    margin-top: 0;
    color: #d32f2f;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 1px;
}

.kontakt-karta p {
    color: #555;
    margin-bottom: 24px;
}

.kontakt-karta a {
    color: #d32f2f;
    text-decoration: underline;
}

.kontakt-formular {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.formular-polozka {
    text-align: left;
    margin-bottom: 18px;
}

.formular-polozka label {
    display: block;
    margin-bottom: 6px;
    color: #222;
    font-weight: 500;
}

.kontakt-formular input,
.kontakt-formular textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    background: #f7f7f7;
    transition: border 0.2s;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    border: 1.5px solid #d32f2f;
    outline: none;
}

.kontakt-formular button {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.kontakt-formular button:hover {
    background: #b71c1c;
}

.dovednosti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.6em 1.2em; /* větší mezera mezi řádky, menší mezi sloupci */
    justify-content: center;
    margin: 60px auto 60px auto;
    max-width: 1100px;
}

.dovednost-item {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    padding: 2em 1.1em 1.7em 1.1em;
    width: 250px;
    height: 260px; /* pevná výška pro zarovnání do mřížky */
    max-width: 94vw;
    text-align: center;
    transition: box-shadow 0.18s, transform 0.16s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-left: auto;
    margin-right: auto;
}

.dovednost-item img {
    margin-bottom: 1.1em;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.dovednost-item h3 {
    color: #d32f2f;
    font-size: 1.18em;
    margin-bottom: 0.7em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.dovednost-item p {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.dovednost-item:hover {
    box-shadow: 0 16px 48px rgba(211,47,47,0.13);
    transform: translateY(-4px) scale(1.025);
}

@media (max-width: 1200px) {
    .dovednosti-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2em 2em;
    }
    .dovednost-item {
        width: 95vw;
        max-width: 420px;
    }
}
@media (max-width: 900px) {
    .dovednosti-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dovednost-item {
        width: 95vw;
        max-width: 340px;
        height: 260px;
    }
}
@media (max-width: 800px) {
    .dovednosti-grid {
        grid-template-columns: 1fr;
        gap: 1.5em 0;
    }
    .dovednost-item {
        width: 98vw;
        max-width: 440px;
        height: auto;
    }
}

.certifikace-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 32px 0 24px 0;
    justify-content: center;
}

.certifikat-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.certifikat-btn:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.certifikat-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* Přidáno! */
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 36px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #ff5252;
}

.certifikat-img-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
}
.certifikat-img-wrap img {
    width: 100%;
    max-width: 340px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: none;
}
@media (max-width: 800px) {
  .certifikat-img-wrap img {
    max-width: 98vw;
    max-height: 40vw;
  }
}
@media (max-width: 500px) {
  .certifikat-img-wrap img {
    max-width: 98vw;
    max-height: 38vw;
  }
}

/* Speciální rozložení vedle sebe pouze pro Rekvalifikační kurz C# */
.certifikat-img-wrap.vedle-sebe {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0; /* úplně bez mezery */
    width: 100%;
    max-width: 98vw;
    margin: 0 auto;
    padding: 12px 0;
    box-sizing: border-box;
}
.certifikat-img-wrap.vedle-sebe img {
    width: 48vw;
    max-width: 340px;
    min-width: 120px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: none;
}
@media (max-width: 700px) {
    .certifikat-img-wrap.vedle-sebe img {
        width: 98vw;
        max-width: 98vw;
        min-width: 80px;
        max-height: 38vh;
    }
    .certifikat-img-wrap.vedle-sebe {
        flex-direction: column !important;
        align-items: center;
        gap: 10px;
    }
}

/* Cookie lišta */
.cookie-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #222;
    color: #fff;
    padding: 32px 10px 28px 10px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.25);
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
.cookie-bar strong {
    font-size: 1.35em;
    color: #d32f2f; 
}
.cookie-bar a {
    color: #d32f2f; 
    text-decoration: underline;
}
.cookie-bar button {
    margin: 24px 10px 0 0;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    background: #e53935;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(229,57,53,0.15);
    transition: background 0.2s;
    display: inline-block;
}
.cookie-bar button:last-child {
    background: #888;
    margin-right: 0;
}
.cookie-bar button:hover {
    background: #b71c1c;
}
.cookie-bar button:last-child:hover {
    background: #555;
}
.cookie-bar .cookie-info {
    font-size: 0.95em;
    color: #fff;
    display: inline-block;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

.lang-switch {
    text-align: right;
    margin: 1em 0;
}
.lang-switch button {
    margin-left: 0.5em;
    padding: 0.3em 1em;
    border-radius: 20px;
    border: none;
    background: #d32f2f;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.lang-switch button.active,
.lang-switch button:hover {
    background: #a31515;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

#lang-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid #ccc;
    display: block;
}

/* Skryj šipku */
.lang-arrow {
    display: none;
}

/* Rozbalení menu po najetí myší na vlaječku */
.language-dropdown:hover .lang-menu,
.language-dropdown:focus-within .lang-menu {
    display: block;
}

.lang-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    z-index: 100;
}

.lang-menu a {
    display: block;
    margin: 0;
    padding: 0;
}

.lang-menu img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid #ccc;
    display: block;
    margin: 2px 0;
}

/* Odsazení první viditelné vlaječky v menu */
.lang-menu a[style="display: inline-block;"]:first-of-type,
.lang-menu a:not([style*="display: none"]):first-of-type {
    margin-top: 12px !important;
}

main {
    padding: 0;         /* žádné extra odsazení */
    margin: 0;
}

.certifikace-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.certifikace-section h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #d32f2f;
    text-align: center;
}

.certifikace-section p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    text-align: center;
    color: #555;
}

.kontakt-form-box {
    max-width: 420px;
    margin: 2em auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2em 2em 1.5em 2em;
}

.form-group {
    margin-bottom: 1.2em;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4em;
    color: #222;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7em;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    background: #fafafa;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.5px solid #d32f2f;
    outline: none;
}

.tlacitko-cervene {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 0.9em 0;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5em;
    transition: background 0.2s;
}

.tlacitko-cervene:hover {
    background: #b71c1c;
}

/* Sociální ikonky pod formulářem */
.social-links {
    margin-top: 1.7em;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}

.social-links a {
    display: inline-block;
    border-radius: 50%;
    background: #f5f5f5;
    transition: background 0.2s, transform 0.2s;
    padding: 4px;
}

.social-links img {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 50%;
}

.social-links a:hover {
    background: #ffeaea;
    transform: scale(1.13);
}

/* ========================================
   MODERNÍ NOTIFIKACE PRO FORMULÁŘ
   ======================================== */
.form-notification {
    display: none;
    margin: 1.5em auto;
    padding: 1em 1.5em;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
    animation: slideIn 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-notification.show {
    display: block;
}

.form-notification.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-left: 5px solid #2e7d32;
}

.form-notification.error {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border-left: 5px solid #c62828;
}

.form-notification.warning {
    background: linear-gradient(135deg, #ff9800, #fb8c00);
    color: white;
    border-left: 5px solid #e65100;
}

.form-notification.info {
    background: linear-gradient(135deg, #2196f3, #1e88e5);
    color: white;
    border-left: 5px solid #1565c0;
}

/* Ikony pro notifikace */
.form-notification::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

.form-notification.success::before {
    content: '✓';
    font-size: 1.5em;
    font-weight: bold;
}

.form-notification.error::before {
    content: '✕';
    font-size: 1.5em;
    font-weight: bold;
}

.form-notification.warning::before {
    content: '⚠';
    font-size: 1.5em;
}

.form-notification.info::before {
    content: 'ℹ';
    font-size: 1.5em;
}

/* Animace slide in */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner pro tlačítko */
.tlacitko-cervene.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.tlacitko-cervene.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responzivita */
@media (max-width: 600px) {
    .form-notification {
        margin: 1em;
        padding: 0.8em 1em;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .dovednosti-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .dovednosti-grid {
        grid-template-columns: 1fr;
    }
    .dovednost-item {
        width: 96vw;
        height: auto;
        max-width: 420px;
    }
}

#contact-form, .kontakt-form-box, .kontakt-formular {
    padding-left: 1.2em;
    padding-right: 1.2em;
    box-sizing: border-box;
}

.uvod-flex {
    align-items: flex-start;
}
.uvod-text {
    width: 100%;
    max-width: 600px; /* stejná nebo podobná šířka jako má nadpis/obsah na omne.html */
    margin-left: 0;
}
@media (min-width: 800px) {
    .uvod-flex {
        justify-content: flex-start;
    }
    .uvod-text {
        margin-left: 40px; /* nebo podle potřeby */
    }
}

.uvod-flex {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px; /* mezera mezi textem a obrázkem */
    margin-top: 24px;
}

.uvod-text {
    max-width: 600px;
    flex: 1 1 0;
    text-align: left;
}

.uvod-img {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.avatar {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    width: 220px;
    height: auto;
}

/* Na mobilu pod sebe */
@media (max-width: 800px) {
    .uvod-flex {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .uvod-text {
        max-width: 100%;
        text-align: left;
    }
    .uvod-img {
        justify-content: center;
    }
}

#hlavni-menu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}
#hlavni-menu li {
    margin: 0 0.5em;
}
.menu-lang {
    margin-left: auto;
    /* Pokud chceš, aby jazyk byl úplně vpravo, jinak můžeš odstranit */
}

@media (max-width: 600px) {
    .lang-menu {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        min-width: 0;
        padding: 6px 0 0 0;
        margin: 0;
        text-align: left;
        white-space: nowrap;
    }
    .language-dropdown:hover .lang-menu,
    .language-dropdown:focus-within .lang-menu {
        display: block;
    }
    .lang-menu a {
        display: inline-block;
        margin: 0 3px;
        padding: 0;
        vertical-align: middle;
    }
    .lang-menu img {
        width: 24px;
        height: 16px;
        margin: 0;
    }
    /* Odsazení první vlaječky od aktivní */
    .lang-menu a[style="display: inline-block;"]:first-of-type,
    .lang-menu a:not([style*="display: none"]):first-of-type {
        margin-left: 6px !important;
        margin-top: 0 !important;
    }
}

.devbrain {
    color: red;
}

.lang-menu-item {
  margin-left: 32px;
  position: relative;
  display: flex;
  align-items: center;
}

.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-current {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  outline: none;
}

.lang-current img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background: none;
  border: none;
  transition: filter 0.15s;
}

.lang-current:hover img,
.lang-current:focus img {
  filter: brightness(1.15) drop-shadow(0 1px 4px rgba(0,0,0,0.10));
}

/* --- JAZYKOVÉ MENU MINIMALISTICKÉ --- */

/* Výchozí styl pro PC: vlaječky pod sebou, tmavé pozadí, decentní stín, žádné bílé okraje */
.lang-list {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: #111;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 2px 6px;
  z-index: 100;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border: none;
  min-width: unset;
  min-height: 28px;
  overflow-x: auto;
  max-width: 90vw;
  white-space: nowrap;
}

.lang-dropdown.open .lang-list {
  display: flex;
}

.lang-option {
  background: none;
  border: none;
  padding: 2px 4px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 2px;
  transition: background 0.12s;
  flex: 0 0 auto;
}

.lang-option img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: none;
  background: none;
  box-shadow: none;
  margin: 0;
  transition: filter 0.12s;
  display: block;
}

.lang-option:hover,
.lang-option:focus {
  background: #181818;
}

.lang-option:hover img,
.lang-option:focus img {
  filter: brightness(1.10);
}

/* Mobil/tablet: vlaječky vedle sebe, decentní styl, tmavé pozadí */
@media (max-width: 900px) {
  .lang-list {
    top: 0;
    left: 110%;
    right: auto;
    flex-direction: row;
    align-items: center;
    background: #111;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 2px 4px;
    min-width: unset;
    min-height: 28px;
    overflow-x: auto;
    max-width: 90vw;
    white-space: nowrap;
    gap: 2px;
    height: auto;
  }
  .lang-option {
    margin: 0 1px;
    flex: 0 0 auto;
    padding: 2px 4px;
    justify-content: center;
  }
}

/* --- JAZYKOVÉ MENU – OPRAVA PRO PC I MOBIL --- */

/* Výchozí styl pro všechny: vlaječky pod sebou, žádné scrollování */
.lang-list {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: #111;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 2px 0;
  z-index: 100;
  flex-direction: column;
  gap: 0;
  border: none;
  min-width: 36px;
  max-height: none;
  overflow: visible;
  height: auto;
  white-space: normal;
}

.lang-dropdown.open .lang-list {
  display: flex;
}

.lang-option {
  background: none;
  border: none;
  padding: 2px 8px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 2px;
  transition: background 0.12s;
  min-width: 36px;
  justify-content: flex-end;
}

.lang-option img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: none;
  background: none;
  box-shadow: none;
  margin: 0;
  transition: filter 0.12s;
  display: block;
}

.lang-option:hover,
.lang-option:focus {
  background: #181818;
}

.lang-option:hover img,
.lang-option:focus img {
  filter: brightness(1.10);
}

/* --- MOBIL/TABLET: vlaječky vedle sebe, horizontální scroll pokud je málo místa --- */
@media (max-width: 900px) {
  .lang-list {
    top: 0;
    left: 110%;
    right: auto;
    flex-direction: row;
    align-items: center;
    background: #111;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 2px 4px;
    min-width: unset;
    min-height: 28px;
    overflow-x: auto;
    max-width: 90vw;
    white-space: nowrap;
    gap: 2px;
    height: auto;
  }
  .lang-option {
    margin: 0 1px;
    flex: 0 0 auto;
    padding: 2px 4px;
    justify-content: center;
  }
}

/* Nastaví stejnou velikost všem vlaječkám v jazykovém menu */
.lang-dropdown img,
.lang-list img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.thankyou-box {
    background: rgba(255,255,255,0.28);      /* poloprůhledné bílé */
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    padding: 40px 28px 32px 28px;
    text-align: center;
    max-width: 380px;
    width: 90vw;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.35);
}

.thankyou-logo {
    width: 80px;
    margin-bottom: 18px;
}

.thankyou-msg {
    font-size: 1.25em;
    margin-bottom: 18px;
    color: #222;
}

.thankyou-sign {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 24px;
    display: block;
}

.thankyou-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 12px 36px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.18s;
    margin-top: 10px;
}
.thankyou-btn:hover {
    background: #a31515;
}

@media (max-width: 500px) {
    .thankyou-box {
        padding: 18px 4vw 14px 4vw;
        max-width: 98vw;
    }
    .thankyou-logo {
        width: 54px;
    }
    .thankyou-msg {
        font-size: 1em;
    }
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,0.45);
    z-index: 0;
    pointer-events: none;
}

.watermark-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 340px;
}

.watermark-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.watermark-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: transparent; /* průhledná výplň */
    -webkit-text-stroke: 2px rgba(80,80,80,0.18); /* šedý obrys, silnější */
    font-size: 2.2rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    text-shadow: none;
    letter-spacing: 2px;
}

.avatar, .uvod-img {
    border: none;
    box-shadow: none;
    background: none;
}
