/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */
:root {
    --primary: #0056b3;
    --primary-hover: #004494;
    --accent: #ff9800;
    --accent-hover: #e68900;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-light);
}

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

h1, h2, h3 { line-height: 1.2; margin-bottom: 0.5em; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
    cursor: pointer; transition: var(--transition);
    background: var(--primary); color: #fff; border: none;
    text-align: center;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--small { padding: 8px 16px; font-size: 0.9rem; }

/* ===== ШАПКА ===== */
.header {
    background: var(--bg-white); box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.header__inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; flex-wrap: wrap; gap: 15px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav a { font-weight: 500; color: var(--text-muted); }
.nav a:hover { color: var(--primary); }
.phone { font-weight: 700; color: var(--text-main); margin: 0 5px; }
.phone:hover { color: var(--primary); }
.header-contacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ===== ГЕРОЙ ===== */
.hero {
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: #fff; padding: 80px 0; text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__subtitle {
    font-size: 1.15rem; max-width: 800px; margin: 0 auto 1rem; opacity: 0.9;
}
.hero__features {
    display: flex; justify-content: center; gap: 15px;
    flex-wrap: wrap; margin: 2rem 0;
}
.hero__features span {
    background: rgba(255,255,255,0.15); padding: 8px 16px;
    border-radius: 20px; font-weight: 500;
}
.hero__actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ===== СЕКЦИИ ===== */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-white); }

/* ===== НОВОСТИ ===== */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.news-item {
    background: #fff; padding: 25px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition);
}
.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-item h3 { color: var(--primary); margin-bottom: 10px; }
.news-item .news-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.news-item .news-text { margin: 15px 0; line-height: 1.7; }
.news-item img, .news-item video {
    width: 100%; border-radius: var(--radius); margin: 10px 0;
    max-height: 400px; object-fit: cover;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    cursor: pointer;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.gallery-item img {
    width: 100%; height: 220px; object-fit: cover; display: block;
}
.gallery-caption {
    padding: 12px 16px; font-size: 0.95rem; color: #333;
}

/* ===== ВИДЕО ===== */
.video-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.video-item {
    background: #fff; padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.video-item video {
    width: 100%; border-radius: var(--radius); margin-bottom: 15px;
    background: #000;
}
.video-item h3 { color: var(--primary); margin-bottom: 8px; }
.video-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; text-align: center;
}
.contact-item h3 { margin-bottom: 10px; color: var(--primary); }
.contact-item p, .contact-item a { color: var(--text-muted); }
.contact-item a:hover { color: var(--primary); }

/* ===== ФУТЕР ===== */
.footer { background: #212529; color: #adb5bd; padding: 40px 0 20px; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px; margin-bottom: 30px;
}
.footer h4 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid #343a40; font-size: 0.9rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .header__inner { flex-direction: column; text-align: center; }
    .nav { justify-content: center; }
    .header-contacts { justify-content: center; }
    .hero { padding: 50px 0; }
    .hero__subtitle { font-size: 1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .news-grid, .video-grid { grid-template-columns: 1fr; }
}