/* ====== PALETA BAREV ====== */
:root {
    --primary: #dce3ea;
    --secondary: #b8c4cf;
    --accent: #7a8fa3;
    --light: #ffffff;
    --bg: #f7f9fb;
    --text: #1e1e1e;
}

/* ====== BODY ====== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ====== HEADER ====== */
header {
    background-image: url("../img/papers.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text);
    padding: 25px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--secondary);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.3);
}

header * {
    position: relative;
    z-index: 1;
}

/* ====== LOGO ====== */
.logo img {
    max-height: 40px;
    width: auto;
}

.logo-link img {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-link img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ====== HAMBURGER ====== */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ====== NAVIGACE ====== */
.nav-menu {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-right: 30px;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: white;
}

/* ====== OBSAH ====== */
.content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    
}

section {
    background: white;
    padding: 35px;
    border-radius: 6px;
    border: 1px solid #d5d9dd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 35px;
}

h2 {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

main, section {
    width: 100%;
}

/* ====== BUTTONS ====== */
button, .btn {
    background: var(--secondary);
    color: var(--text);
    padding: 12px 22px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover, .btn:hover {
    background: var(--primary);
}

/* ====== FORMS ====== */
input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c7ccd1;
    border-radius: 5px;
    font-size: 15px;
    margin-bottom: 20px;
}

input:focus, textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

/* ====== TABULKY ====== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: var(--secondary);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--light);
}

table tr:hover td {
    background: #f0f2f4;
}

/* ====== FOOTER ====== */
footer {
    background-image: url("../img/papers.jpg");
    background-size: cover;
    background-position: center;
    color: var(--text);
    text-align: center;
    padding: 35px 20px;
    margin-top: 40px;
    font-size: 14px;
    border-top: 3px solid var(--secondary);
}

/* ====== MOBILNÍ VERZE ====== */
@media (max-width: 768px) {

    /* Header layout */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        position: relative;
        padding: 15px 20px;
    }

    /* Logo */
    .logo {
        z-index: 20;
    }

    /* Hamburger */
    .menu-toggle {
        display: block;
        z-index: 30;
    }
    .content,
    main,
    section {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* Navigation menu */
    .nav-menu {
        position: absolute;
        top: 100%;          /* menu začne hned pod headerem */
        right: 0;
        width: 240px;
        box-sizing: border-box;
        background-color: var(--light);
        padding: 15px 0;
        border: 3px solid var(--secondary);
        display: none;
        flex-direction: column;
        gap: 5px;
        text-align: center;
        z-index: 999;       /* nad obsahem */
    }
    .nav-menu a {
    border-bottom: 1px solid var(--secondary);
    padding: 10px 20px;
}
.nav-menu a:hover {
    background-color: var(--secondary);
    color: var(--light);
}
    .nav-menu a:last-child {
    border-bottom: none; /* poslední položka bez linky */
}

    .nav-menu.open {
        display: flex;
    }

    header {
        position: relative; /* aby nav-menu mělo referenční bod */
    }

    /* Remove desktop margin */
    nav {
        margin-top: 0;
    }

    nav a {
        font-size: 15px;
        padding: 8px 12px;
        margin-right: 0;
    }
}

/* ====== SVG IKONY ====== */
.icon {
    width: 16px;
    height: 16px;
    fill: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .icon {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0;
    }
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 16px;
}	