/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    padding-top: 70px; /* Отступ для фиксированного меню */
}

/* Фоновая подложка */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Увеличил затемнение для контраста */
    z-index: -1;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ФИКСИРОВАННОЕ МЕНЮ - ПРОЗРАЧНОЕ */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(21, 67, 22, 0.15); /* Почти полностью прозрачное */
    backdrop-filter: blur(12px); /* Сильнее размытие для красоты */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(21, 67, 22, 0.3); /* Лёгкая зелёная граница */
    transition: all 0.3s ease;
}

.fixed-header:hover {
    background: rgba(21, 67, 22, 0.25); /* Чуть заметнее при наведении */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px;
}

/* Логотип в шапке */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    white-space: nowrap;
}

/* Основная навигация */
.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #154316; /* ЗЕЛЁНЫЙ вместо синего */
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Контакты в шапке */
.header-contacts .phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-contacts .phone-link:hover {
    background: rgba(21, 67, 22, 0.4); /* ЗЕЛЁНЫЙ при наведении */
    transform: translateY(-2px);
}

.header-contacts .phone-link i {
    font-size: 1.1rem;
}

/* Основные секции */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.hero.active {
    opacity: 1;
    transform: translateY(0);
}

/* Герой-секция */
.hero {
    padding: 120px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Кнопки */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #154316; /* ЗЕЛЁНЫЙ */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #154316; /* ЗЕЛЁНЫЙ */
}

.btn:hover {
    background: #0f3210; /* Тёмно-зелёный */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(21, 67, 22, 0.3); /* Зелёная тень */
}

.btn-outline {
    background: transparent;
    border-color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Заголовки секций */
h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #154316; /* ЗЕЛЁНЫЙ */
}

.section-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    opacity: 0.9;
}

/* О компании */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 2.5rem;
    color: #154316; /* ЗЕЛЁНЫЙ иконки */
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature p {
    opacity: 0.8;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.2rem;
    color: #154316; /* ЗЕЛЁНЫЙ вместо #4CAF50 */
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Соцсети */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 150px;
    justify-content: center;
}

.social-btn:hover {
    background: rgba(21, 67, 22, 0.3); /* ЗЕЛЁНЫЙ при наведении */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Кастомные иконки в соцкнопках */
.custom-icon {
    height: 1.2em;
    width: auto;
    vertical-align: -0.2em;
}

/* Ресурсы - ВАЖНО: здесь меняем цвет иконок */
.resource-section {
    margin-top: 50px;
}

.resource-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.resource-card i:first-child {
    font-size: 1.8rem;
    color: #154316; /* ЗЕЛЁНЫЙ иконки ресурсов */
}

.resource-content {
    flex: 1;
}

.resource-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.resource-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.resource-external {
    font-size: 1rem;
    opacity: 0.7;
}

/* Контакты - ВАЖНО: здесь меняем цвет иконок */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    color: #154316; /* ЗЕЛЁНЫЙ иконки контактов */
    margin-bottom: 20px;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-details a,
.contact-details p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #154316; /* ЗЕЛЁНЫЙ при наведении */
}

/* График работы */
.schedule {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.day {
    font-weight: 500;
}

.time {
    font-weight: 500;
}

/* Футер */
.footer {
    background: rgba(21, 67, 22, 0.9); /* ЗЕЛЁНЫЙ */
    padding: 50px 0 30px;
    border-top: 2px solid #154316; /* ЗЕЛЁНАЯ граница */
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .header-content {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(21, 67, 22, 0.95); /* ЗЕЛЁНЫЙ для мобильного меню */
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 15px;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .main-nav a {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }
    
    .header-contacts {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }
    
    .header-contacts .phone-link {
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .features,
    .services-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .feature,
    .service-card,
    .contact-card,
    .resource-card {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 1rem; /* Ещё меньше для мобильных */
    }
}


.feature i, .service-card i, .resource-card i:first-child, .contact-icon {
    color: #2a7d2a; /* Светлее на 20% */
}
