:root {
    --color-bg-dark: #12283d;
    --color-bg-darker: #444;
    --color-bg-light: #fff;
    --color-text-light: #fff;
    --color-text-dark: #4d4c4c;
    --color-highlight: #cc7604;
    --color-border-yellow: #ffcc00;
    --color-border-gray: #4d4c4c;
    --color-gray-light: #bbb;
    --color-gray-medium: #7d7878;
    --color-gray-dark: #777;
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.container h1 {
    font-size: 2.8rem;
}

.container h2 {
    font-size: 2.2rem;
}

.container h3 {
    font-size: 1.6rem;
}

.container a,
.footer-column a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
.footer-column a:hover {
    color: #000;
    text-decoration: underline;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-gray-light);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Inputs */
input,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border-yellow);
    border-radius: 6px;
    background-color: #222;
    color: var(--color-text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--color-border-gray);
    outline: none;
}

/* Top Contact Bar */
.top-contact-bar {
    background-color: var(--color-bg-darker);
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding: 5px 0;
    font-weight: 600;
    font-family: var(--font-family-base);
}

.top-contact-bar .container {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-contact-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Header */
header {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.logo {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 10px;
}

.nav-list li a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: var(--color-highlight);
    color: #000;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle div {
    width: 28px;
    height: 4px;
    background-color: var(--color-text-dark);
    border-radius: 3px;
}

.lang-switch {
    padding-left: 25px;
    padding-bottom: 25px;
}

.lang-switch a {
    color: var(--color-highlight);
}

/* Footer */
footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    width: 100%;
    padding: 5px 20px 10px;
    font-family: var(--font-family-base);
    border-top: 4px solid var(--color-border-gray);
    box-sizing: border-box;
    text-align: center;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1550px;
    gap: 40px;
    margin: 0 auto;
    text-align: left;
}

.footer-column {
    flex: 1 1 260px;
    min-width: 220px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--color-gray-medium);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--color-border-gray);
    padding-bottom: 6px;
}

.footer-column p,
.footer-column a {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-us p {
    font-size: 1.15rem;
}

.footer-form label {
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid var(--color-bg-darker);
    border-radius: 5px;
    background-color: var(--color-bg-light);
    color: #000;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: var(--color-border-gray);
    outline: none;
}

.sitemap ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sitemap ul li {
    margin-bottom: 10px;
}

.sitemap ul li a {
    font-weight: 500;
}

.footer-form button {
    margin-top: 18px;
    background-color: var(--color-border-gray);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-bg-light);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.footer-form button:hover {
    background-color: var(--color-highlight);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.footer-logo {
    text-align: center;
    padding: 10px 0 20px;
}

.logo2 {
    height: 90px;
}

.footer-copy {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    border-top: 1px solid var(--color-bg-darker);
    padding-top: 15px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.03em;
}

/* Form response */
.form-message {
    margin-top: 10px;
    font-weight: bold;
}

.form-message.success {
    color: green;
}

.form-message.error {
    color: red;
}

/* Scroll to top button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-bg-light);
    border: none;
    color: var(--color-bg-dark);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
}

#scrollToTop.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#scrollToTop:hover,
#scrollToTop:focus {
    background-color: #aaa8a9;
    outline: none;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1024px) {
    header .container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    /* Ukrywamy top-contact-bar na telefonach/tabletach */
    .top-contact-bar {
        display: none;
    }

    .logo {
        height: 45px;
    }

    nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        order: 3;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        order: 1;
        cursor: pointer;
        z-index: 10001;
        gap: 6px;
    }

    .menu-toggle div {
        width: 28px;
        height: 4px;
        background-color: var(--color-text-dark);
        border-radius: 3px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: var(--color-bg-dark);
        border-top: 1px solid var(--color-border-gray);
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        position: absolute;
        top: 60px;
        right: 0;
        z-index: 10000;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        display: block;
        width: 100%;
        padding: 10px 20px;
    }

    .lang-switch {
        order: 2;
        width: 100%;
        padding: 10px 20px;
        background-color: var(--color-bg-dark);
        text-align: right;
    }

    .lang-switch a {
        color: var(--color-highlight);
        font-weight: 600;
    }

    .footer-logo {
        padding-bottom: 10px;
    }

    .logo2 {
        height: 70px;
    }

    .footer-copy {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .logo {
        height: 40px;
    }

    .logo2 {
        height: 60px;
    }

    .nav-list li a {
        font-size: 1rem;
    }

    .footer-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .footer-column {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .footer-column p,
    .footer-column a {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .about-us p {
        font-size: 1rem;
    }

    .sitemap {
        display: none;
    }

    .sitemap ul {
        padding-left: 0;
    }

    .sitemap ul li {
        margin-bottom: 6px;
    }

    .footer-logo {
        padding: 10px 0;
    }

    .footer-copy {
        font-size: 0.75rem;
        padding: 10px;
        margin-top: 20px;
    }

    /* Ukrywamy top bar */
    .top-contact-bar {
        display: none;
    }

    .contact-form {
        display: none;
    }
}

/* Telefony poziomo */
@media (min-width: 600px) and (max-width: 767px) {
    .footer-columns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-column {
        flex: 1 1 45%;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 0.9rem;
    }

    .logo {
        height: 40px;
    }

    .logo2 {
        height: 60px;
    }

    .nav-list li a {
        font-size: 1rem;
    }

    .top-contact-bar,
    .sitemap,
    .contact-form {
        display: none;
    }
}

/* Małe tablety */
@media (min-width: 768px) and (max-width: 899px) {
    .footer-columns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .footer-column {
        flex: 1 1 45%;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1.25rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 1rem;
    }

    .top-contact-bar,
    .sitemap,
    .contact-form {
        display: none;
    }
}

/* Duże tablety */
@media (min-width: 900px) and (max-width: 1199px) {
    .footer-columns {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 30px;
    }

    .footer-column {
        flex: 1 1 30%;
        text-align: left;
    }

    .footer-column h3 {
        font-size: 1.3rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 1rem;
    }

    .contact-form {
        display: block;
    }
}

/* Małe laptopy */
@media (min-width: 1200px) and (max-width: 1399px) {
    .footer-columns {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 40px;
    }

    .footer-column {
        flex: 1 1 22%;
        text-align: left;
    }

    .contact-form {
        display: block;
    }
}