* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fbf9f6;
    color: #4a3e3d;
}

header {
    /*background-color: #8B4513;*/
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid #d2b48c;
    background-image: linear-gradient(rgba(139, 69, 19, 0.7), rgba(139, 69, 19, 0.7)), url('/static/img/header_img.jpg');
    background-position: center;
    background-size: auto;
    background-repeat: no-repeat;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    font-style: italic;
    color: #f5deb3;
}

/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #5c2e0b;
    padding: 12px 24px;
    position: relative;
    z-index: 10;
}

.nav-logo {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15em;
    white-space: nowrap;
}

.nav-logo:hover {
    color: #f5deb3;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.links_navbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.02em;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #f5deb3;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.navbar-toggle {
    display: none;
}

.navbar-toggle-label {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
}

.navbar-toggle-label span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* LANGUAGE SELECT */

.lang-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.lang-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 145px;
    background-color: #f8f5f0;
    border: 1px solid #e6dfd5;
    border-radius: 8px;
    padding: 7px 32px 7px 36px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-select-wrapper:hover {
    border-color: #d1b894;
    background-color: #f3ede2;
}

.lang-select-wrapper:focus-within {
    border-color: #bfa175;
    box-shadow: 0 0 0 3px rgba(191, 161, 117, 0.15);
}

.globe-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #8c7b65;
    pointer-events: none;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #4a3f31;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 100%;
}

.lang-select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #8c7b65;
    pointer-events: none;
}

.lang-select option {
    background-color: #ffffff;
    color: #4a3f31;
    padding: 10px;
}

/* LAYOUT */

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.intro {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 5px solid #8B4513;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: #8B4513;
    margin-top: 0;
    border-bottom: 2px solid #f5deb3;
    padding-bottom: 8px;
}

.cta-box {
    text-align: center;
    background-color: #d2b48c;
    color: #4a3e3d;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #8B4513;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #5c2e0b;
}

/* CENNIK */

.cennik-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cennik-section h2 {
    color: #8B4513;
    border-bottom: 3px solid #d2b48c;
    padding-bottom: 10px;
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

th {
    background-color: #8B4513;
    color: #ffffff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #fcf8f2;
}

.price {
    font-weight: bold;
    color: #8B4513;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 15px;
    text-align: center;
}

.badge-available {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-unavailable {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.uwaga-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.95em;
}

/* GALLERY */

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.gallery-image {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.03);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;

    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.modal.show {
    background: rgba(0, 0, 0, 0.85);
}

.modal-content {
    max-width: 85vw;
    max-height: 85vh;

    transform: scale(0.7);
    opacity: 0;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;

    color: white;
    font-size: 40px;
    cursor: pointer;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show .close {
    opacity: 1;
}

/* FOOTER */

footer {
    background-color: #4a3e3d;
    color: #ffffff;
    text-align: center;
    padding: 20px 16px;
    margin-top: 50px;
    font-size: 0.9em;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 14px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.flag-btn {
    border: none;
    background: transparent;

    font-size: 32px;
    cursor: pointer;

    padding: 4px;
    border-radius: 10px;

    transition: all .2s ease;
}

.flag-btn:hover {
    transform: translateY(-2px) scale(1.1);
    background: rgba(255,255,255,0.1);
}

.flag-btn.active {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
}


/* RESPONSIVE */

@media (max-width: 820px) {
    header {
        padding: 32px 16px;
    }

    header h1 {
        font-size: 2.1em;
    }

    header p {
        font-size: 1.05em;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .navbar-toggle-label {
        display: flex;
    }

    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px 0 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .navbar-toggle:checked ~ .navbar-menu {
        display: flex;
    }

    .navbar-toggle:checked + .navbar-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .navbar-toggle:checked + .navbar-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle:checked + .navbar-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .links_navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 14px;
        background-color: rgba(255, 255, 255, 0.08);
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.14);
    }

    .lang-form {
        width: 100%;
        justify-content: center;
    }

    .lang-select-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .container {
        margin: 22px auto;
        padding: 0 14px;
    }

    .intro,
    .cennik-section,
    .info-card,
    .cta-box {
        padding: 22px;
    }

    .info-grid {
        flex-direction: column;
    }

    .info-card {
        min-width: 0;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    header {
        padding: 28px 14px;
    }

    header h1 {
        font-size: 1.75em;
    }

    header p {
        font-size: 0.98em;
    }

    .navbar {
        padding: 10px 12px;
        gap: 12px;
    }

    .nav-logo {
        font-size: 1em;
        max-width: calc(100% - 60px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-toggle-label {
        width: 40px;
        height: 40px;
    }

    .intro,
    .cennik-section,
    .info-card,
    .cta-box {
        padding: 18px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    th,
    td {
        padding: 10px 12px;
    }
}