/* === ЗМІННІ ТА КОЛЬОРИ === */
:root {
    --primary-green: #2E4838;
    --accent-yellow: #FFC107;
    --dark-bg: #1a252f;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-main: #333333;
    --hover-yellow: #ffdb4d;
}

/* === БАЗА === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--light-bg);
}

html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* === HEADER === */
header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.logo span { color: var(--white); }

/* Меню по центру */
.nav-menu { 
    display: flex; 
    gap: 25px; 
    margin: 0 20px;
}
.nav-menu a { 
    font-weight: 500; 
    transition: color 0.3s; 
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-menu a:hover { color: var(--accent-yellow); }

/* Права частина (група) */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Перемикач мов */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Контакти в шапці */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.phone-main {
    color: var(--accent-yellow); 
    font-weight: 800; 
    font-size: 18px;
    text-decoration: none;
}

/* Стиль для посилання на адресу в шапці */
.address-link {
    font-size: 12px;
    opacity: 0.8;
    color: var(--white);
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}
.address-link:hover {
    opacity: 1;
    color: var(--accent-yellow);
    border-bottom: 1px solid var(--accent-yellow);
}

/* === HERO === */
.hero {
    background: linear-gradient(rgba(46, 72, 56, 0.85), rgba(46, 72, 56, 0.8)), url('outside.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 700px; margin: 0 auto 40px; opacity: 0.9; }

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: var(--hover-yellow); transform: translateY(-2px); }
.btn-white { background-color: var(--white); color: var(--primary-green); }

/* === FEATURES BAR === */
.features-bar {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 25px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.features-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 15px; min-width: 250px; }
.f-icon {
    font-size: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--accent-yellow);
}
.f-text { display: flex; flex-direction: column; }
.f-text strong { font-size: 16px; color: var(--accent-yellow); margin-bottom: 2px; }
.f-text span { font-size: 14px; color: #ccc; }

/* === SECTIONS === */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    width: 100%;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px; background: var(--accent-yellow); margin: 15px auto 0; border-radius: 2px;
}

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--dark-bg); }
.about-image { height: 400px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* === SERVICES === */
.services-bg { background-color: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card {
    background: var(--light-bg); padding: 30px; border-radius: 10px; text-align: center;
    border-bottom: 4px solid var(--primary-green); transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--accent-yellow); }
.service-icon { font-size: 50px; margin-bottom: 20px; display: block; }
.service-card h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-green); }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { height: 250px; border-radius: 8px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }

/* === CONTACTS === */
.contact-section { background-color: var(--primary-green); color: var(--white); padding-bottom: 80px; }
.contact-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; }
.contact-info h3 { font-size: 2rem; margin-bottom: 30px; color: var(--accent-yellow); }
.contact-list li { margin-bottom: 20px; display: flex; align-items: center; font-size: 1.1rem; }
.contact-list span { font-size: 1.5rem; margin-right: 15px; width: 30px; text-align: center; }
.contact-list a { color: var(--white); border-bottom: 1px dotted rgba(255,255,255,0.5); transition: 0.3s; }
.contact-list a:hover { color: var(--accent-yellow); border-bottom-color: var(--accent-yellow); }

/* Спеціальний стиль для адреси в контактах */
.address-link-white { font-weight: bold; }
.address-link-white:hover { color: var(--accent-yellow); border-bottom-color: var(--accent-yellow); }

.map-box {
    background: var(--white); height: 100%; min-height: 400px;
    border-radius: 10px; overflow: hidden; border: 4px solid var(--white);
}
.map-box iframe { width: 100%; height: 100%; }

/* === FOOTER === */
footer { background-color: var(--dark-bg); color: #7f8c8d; text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* === MOBILE === */
@media (max-width: 900px) {
    .nav-menu { display: none; } 
    .header-right { gap: 15px; }
    .phone-main { font-size: 14px; }
    .address-link { display: none; } /* Ховаємо адресу в шапці на дуже малих екранах, щоб не забивати місце */
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .contact-container { grid-template-columns: 1fr; }
    .header-contacts { display: none; }
    .nav-container { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .lang-switcher { order: 2; }
    .features-container { flex-direction: column; align-items: flex-start; }
    .feature-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
    .feature-item:last-child { border-bottom: none; padding-bottom: 0; }
}