* {
    margin: 0;
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

body {
    background-image: url('img/sciezka-morena-czarnkowska-min.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #333;
}

#wrapper {
    max-width: 1180px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}

header img {
    width: 100%;
    height: 400px;
    display: block;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #acc6c6;
}

nav a {
    flex: 1 1 200px;
    text-align: center;
    text-decoration: none;
    color: white;
    padding: 14px 10px;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

nav a:last-child {
    border-right: none;
}

nav a:hover,
nav a.active {
    background: #55abab;
}

article {
    margin: 28px 25px;
}

article h1 {
    font-size: 28px;
    text-align: center;
    color: #2f5a69;
    margin: 0 10% 20px 10%;
    padding-bottom: 15px;
    border-bottom: 2px solid #55abab;
}

article p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #3f4f5e;
}

.contact {
    display: inline-block;
    margin: 0 24px 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2f5a69;
    text-decoration: none;
}

.contact:hover {
    color: #1a3a45;
    text-decoration: none;
}

.contact-links {
    text-align: left;
    margin: 18px 0 14px;
}

.contact-address {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.5;
}

.contact-header h2 {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 26px;
    color: #1f4662;
}

img.left {
    float: left;
    width: 36%;
    margin: 0 18px 14px 0;
    border-radius: 8px;
}

@media (max-width: 860px) {
    img.left {
        float: none;
        width: 100%;
        margin: 0 0 16px;
    }

    nav a {
        flex: 1 1 45%;
        margin-bottom: 6px;
    }

    .lang-switcher {
        flex: 1 1 100%;
        justify-content: center;
        padding: 6px 12px;
    }
}

@media (max-width: 500px) {
    nav a {
        flex: 1 1 100%;
    }

    article {
        margin: 20px 12px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 7px;
    cursor: zoom-in;
}

.lang-switcher {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 4px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0;
    padding: 2px 3px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.lang-btn .fi {
    display: inline-block;
    width: 22px;
    height: 16px;
    background-size: cover;
    border-radius: 2px;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    border-color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

footer {
    background: #acc6c6;
    color: #fff;
    text-align: center;
    padding: 12px 0;
}

.contact-form {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-width: 420px;
    margin: 48px auto 0 auto;
    clear: left;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    font-weight: 500;
    color: #2f5a69;
    font-size: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    margin-bottom: 0;
    border: 1px solid #b7c7c7;
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    font-size: 15px;
    font-family: Roboto, Arial, sans-serif;
    transition: border 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form textarea {
    min-height: 80px;
    resize: vertical;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232f5a69' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.field-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 2px;
    display: block;
    min-height: 0;
}

.contact-form select:focus {
    border: 1.5px solid #55abab;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid #55abab;
    outline: none;
}

.contact-form button {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    background: #55abab;
    color: #fff;
    border: none;
    box-shadow: 0 1px 4px rgba(85, 171, 171, 0.08);
    transition: background 0.2s;
    padding: 10px 18px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #3d8f8f;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 0;
        max-width: 98vw;
    }
}

body {
    background-size: auto;
    background-attachment: fixed;
}


