/* style.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("forest.jpg") center/cover no-repeat fixed;
    backdrop-filter: blur(1px);
    color: #1a1a1a;
}

/* Полупрозрачный белый слой */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: -1;
}

header {
    background: rgba(11, 61, 11, 0.92);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Уменьшенное лого */
.logo img {
    width: 250px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 6px;
}

nav a:hover {
    background: rgba(255,255,255,0.12);
}

#language-switcher {
    background: white;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
}

section {
    padding: 48px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section p,
section .card,
section h1,
section h2,
section h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1, h2 {
    color: #0b3d0b;
}

/* ----- КАРТОЧКИ В ОДИН РЯД ----- */
.values, .services {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.values .card,
.services .card {
    flex: 0 0 auto;
    min-width: 220px;
}

.card {
    background: rgba(255,255,255,0.85);
    padding: 18px;
    border-radius: 10px;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Плавное появление */
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.9s ease;
}

.fade.visible {
    opacity: 1;
    transform: none;
}

/* ----- УЗКАЯ ФОРМА ----- */
#kontaktid form {
    max-width: 600px;
    margin: 0 auto;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

button {
    background: #0b3d0b;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: rgba(11, 61, 11, 0.92);
    color: white;
    text-align: center;
    padding: 28px 16px;
    margin-top: 40px;
}

/* Мобильная адаптация */
@media (max-width: 640px) {
    nav { 
        order: 3; 
        width: 100%; 
        justify-content: space-around;
    }
    
    .values, .services {
        flex-wrap: wrap;
    }
}
