:root {
    --primary: #2ecc71;
    --accent: #f1c40f;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
}

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

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Основной контент и анимация */
.page {
    display: none;
    padding: 40px 10%;
    animation: fadeInSlide 0.6s ease-out forwards;
}

.page.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили главной страницы */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('r43argr43argr43a.png') center/cover;
    border-radius: 30px;
    color: white;
}

.mission-section {
    text-align: center;
    margin-top: 50px;
}

/* Карточки видов */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Галерея */
.gallery-section {
    margin-top: 50px;
}

.gallery-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
}

.gallery-container::-webkit-scrollbar { display: none; }

.photo-card {
    min-width: 250px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Форма и помощь */
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-container {
    background: var(--white);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
}

.hidden-msg {
    display: none;
    background: #e8f8f5;
    color: var(--primary);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    animation: bounce 0.6s ease;
}

/* Кнопки */
.btn {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: #27ae60;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .help-grid { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; gap: 10px; }
}
