/* Сброс стандартных отступов и настройка шрифтов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5530;    /* Основной зеленый */
    --secondary-color: #f8a01c;  /* Оранжевый для акцентов */
    --accent-color: #e74c3c;     /* Красный для срочности */
    --text-dark: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Общие стили для кнопок */
.btn-custom {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: #e6910c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для шапки */
.main-header {
    padding-top: 76px; /* Компенсируем фиксированную шапку */
}

.navbar-brand .slogan {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: normal;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Стили для главного экрана */
.hero-section {
    position: relative;
    color: white;
    padding: 100px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Фоновое изображение техники */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/bg.jpg') center/cover no-repeat;
    z-index: -2;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

/* Градиент поверх изображения */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(44, 85, 48, 0.85) 0%, 
        rgba(30, 58, 35, 0.75) 100%
    );
    z-index: -1;
}

/* Контент поверх всего */
.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Плавное увеличение фона */
@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.emergency-badge {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.feature-item {
    font-weight: 500;
}

.hero-form .card {
    border: none;
    border-radius: 15px;
}

.hero-form .form-control {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(248, 160, 28, 0.25);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.emergency-badge {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
}

/* Стили для секции услуг */
.services-section {
    background: var(--background-light);
    position: relative;
}

.section-badge {
    display: inline-block;
    background: rgba(44, 85, 48, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки услуг */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.shadow-hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-features {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(44, 85, 48, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* CTA карточка */
.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a23 100%);
    box-shadow: 0 10px 40px rgba(44, 85, 48, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .cta-card {
        padding: 30px 20px !important;
    }
}

/* Стили для секции преимуществ */
.advantages-section {
    position: relative;
}

.advantage-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a23 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-title {
    font-weight: 600;
    color: var(--text-dark);
}

.advantage-text {
    line-height: 1.6;
}

/* Статистика */
.stats-card {
    border: 2px solid rgba(44, 85, 48, 0.1);
}

.stat-number {
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Анимация появления при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для секции отзывов */
.reviews-section {
    position: relative;
}

.review-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-avatar {
    color: var(--primary-color);
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-rating {
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    line-height: 1.7;
    color: var(--text-light);
    position: relative;
}

.review-text::before {
    content: '"';
    font-size: 3rem;
    color: rgba(44, 85, 48, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

/* Карусель */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    margin: 0 5px;
}

.carousel-indicators button.active {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
}

/* Стили для секции "О компании" */
.about-section {
    position: relative;
}

.about-features .feature-icon {
    width: 24px;
    text-align: center;
}

.feature-item {
    font-weight: 500;
}

.about-image {
    position: relative;
}

.experience-card,
.clients-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    min-width: 120px;
}

.experience-card {
    transform: translateX(-20px);
}

.clients-card {
    transform: translateX(20px);
}

/* Анимация для карточек */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.experience-card {
    animation: float 3s ease-in-out infinite;
}

.clients-card {
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Стили для футера */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.footer-title {
    font-weight: 700;
    color: white;
}

.footer-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white !important;
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444 !important;
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a23 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
}

.modal-title {
    font-weight: 600;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffc107;
}

/* Простой вариант круглого изображения */
.circle-image-wrapper {
    display: inline-block;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.circle-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}