* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: #f9f9f9; color: #333; line-height: 1.6; }
header { background: #1a2a3a; color: white; padding: 20px 50px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.logo { font-size: 24px; font-weight: 700; letter-spacing: 1px; text-decoration: none; color: white; }
.logo span { color: #4CAF50; }

nav.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a { color: white; text-decoration: none; font-weight: 400; font-size: 15px; transition: color 0.3s; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.nav-item > a:hover { color: #4CAF50; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #1a2a3a; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 0; box-shadow: 0 12px 28px rgba(0,0,0,0.35); z-index: 200; }
.dropdown a { display: block; padding: 10px 18px; color: #f1f5f9; text-decoration: none; font-size: 14px; font-weight: 300; transition: background 0.2s, color 0.2s; }
.dropdown a:hover { background: rgba(76, 175, 80, 0.18); color: #4CAF50; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }

.hero { min-height: 75vh; background: linear-gradient(rgba(26,42,58,0.68), rgba(26,42,58,0.68)), url('../img/hero.jpg') center/cover no-repeat; background-color: #2c3e50; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 40px 20px; }
.hero-content { max-width: 820px; }
.hero-content h1 { font-size: 44px; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 19px; margin-bottom: 30px; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 14px 34px; background-color: #4CAF50; color: white; text-decoration: none; border-radius: 30px; font-weight: 700; font-size: 15px; border: none; cursor: pointer; font-family: inherit; transition: background 0.3s, transform 0.2s; }
.btn:hover { background-color: #45a049; transform: translateY(-1px); }
.btn-outline { background-color: transparent; border: 2px solid #4CAF50; }
.btn-outline:hover { background-color: #4CAF50; }

.section-block { padding: 70px 50px; max-width: 1240px; margin: 0 auto; }
.section-block h2 { font-size: 34px; margin-bottom: 16px; text-align: center; color: #1a2a3a; }
.section-subtitle { text-align: center; color: #666; max-width: 680px; margin: 0 auto 40px; font-size: 16px; }

.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 35px; }
.filter-btn { padding: 9px 20px; border: 1px solid #1a2a3a; background: white; color: #1a2a3a; border-radius: 25px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; transition: all 0.25s; }
.filter-btn.active, .filter-btn:hover { background: #1a2a3a; color: white; }

.features { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.feature { flex: 1 1 300px; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 18px rgba(0,0,0,0.06); text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.feature h3 { margin-bottom: 12px; color: #1a2a3a; font-size: 20px; }
.feature p { color: #555; font-size: 15px; }
.route-meta { display: flex; justify-content: space-between; font-size: 13px; color: #777; border-top: 1px solid #eee; padding-top: 12px; margin-top: 16px; }
.card-link { display: inline-block; margin-top: 14px; color: #4CAF50; font-weight: 700; text-decoration: none; font-size: 14px; }
.card-link:hover { text-decoration: underline; }

.gallery { padding: 60px 50px; background: #eef2f5; text-align: center; }
.gallery h2 { margin-bottom: 35px; font-size: 34px; color: #1a2a3a; }
.images { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; }
.images img { width: 31%; min-width: 260px; height: 250px; object-fit: cover; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; cursor: pointer; }
.images img:hover { transform: scale(1.03); }

/* Внутренние страницы */
.page-banner { background: #1a2a3a; color: white; padding: 55px 50px 45px; text-align: center; }
.page-banner h1 { font-size: 36px; margin-bottom: 12px; }
.page-banner p { color: #cbd5e1; max-width: 720px; margin: 0 auto; font-weight: 300; }
.breadcrumbs { max-width: 1000px; margin: 20px auto 0; padding: 0 30px; font-size: 13px; color: #666; }
.breadcrumbs a { color: #4CAF50; text-decoration: none; }
.article-container { max-width: 1000px; margin: 25px auto 60px; padding: 40px; background: white; border-radius: 12px; box-shadow: 0 5px 18px rgba(0,0,0,0.05); }
.article-container h2 { color: #1a2a3a; margin: 28px 0 12px; font-size: 24px; }
.article-container h2:first-child { margin-top: 0; }
.article-container p { margin-bottom: 16px; color: #444; }
.article-container ul { margin: 0 0 20px 22px; color: #444; }
.article-container li { margin-bottom: 8px; }
.info-box { background: #eef2f5; border-left: 4px solid #4CAF50; padding: 18px 22px; border-radius: 6px; margin: 22px 0; }

/* Модальные окна */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-box { background: white; color: #333; max-width: 540px; width: 100%; border-radius: 12px; padding: 28px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; cursor: pointer; color: #666; }
.modal-box img { width: 100%; max-height: 65vh; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #1a2a3a; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 14px; }

footer { background: #1a2a3a; color: white; padding: 45px 50px 30px; margin-top: 50px; }
.footer-grid { max-width: 1240px; margin: 0 auto 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: left; }
.footer-grid h4 { color: #4CAF50; margin-bottom: 12px; font-size: 16px; }
.footer-grid p, .footer-grid li { font-size: 14px; color: #cbd5e1; font-weight: 300; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: #4CAF50; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; color: #94a3b8; }

@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px 20px; }
    nav.main-nav { margin-top: 14px; justify-content: center; gap: 14px; }
    .hero-content h1 { font-size: 30px; }
    .section-block, .gallery { padding: 45px 20px; }
    .images img { width: 100%; }
    .article-container { padding: 24px 20px; margin: 20px 15px 40px; }
}

/* Галерея с видимыми подписями под фото */
.gallery-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.gallery-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 16px rgba(0,0,0,0.08); text-align: left; display: flex; flex-direction: column; }
.gallery-card img { width: 100%; height: 240px; object-fit: cover; display: block; cursor: pointer; transition: transform 0.3s; }
.gallery-card img:hover { transform: scale(1.03); }
.gallery-caption { padding: 16px 20px; }
.gallery-caption h3 { font-size: 17px; color: #1a2a3a; margin-bottom: 6px; }
.gallery-caption p { font-size: 14px; color: #555; line-height: 1.5; margin: 0; }
