/* Базові налаштування */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.main-nav a:hover {
    color: #0056b3;
}

/* Hero Section з локальним фото */
.hero {
    height: 60vh;
    /* ВИКОРИСТОВУЄМО ЛОКАЛЬНИЙ ШЛЯХ */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/site.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #fff;
    color: #333;
}

/* Секції */
.news-section, .contacts-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #f9f9f9;
    padding: 30px;
    border-top: 4px solid #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-card h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.news-card time {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

/* Contacts */
.contacts-section {
    background-color: #f4f4f4;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item a {
    color: #0056b3;
    text-decoration: none;
}

/* Footer */
.main-footer {
    padding: 40px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    color: #888;
}

/* Адаптивність */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav {
        margin-top: 20px;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}