/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* HERO секция - только заголовок и подзаголовок */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.0)), 
                url('./images/hero0.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    max-width: 800px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .btn-warning {
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.hero-section .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #ffca2c;
    border-color: #ffca2c;
}

/* Секция с техническими характеристиками */
.characteristics-section {
    background-color: #f8f9fa;
}

.characteristics-list {
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.characteristics-list li {
    transition: all 0.3s ease;
    padding-left: 1rem;
    padding-right: 1rem;
}

.characteristics-list li:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

.characteristics-list .border-bottom {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.characteristics-list .text-primary {
    color: #0d6efd !important;
}

/* Галерея */
.gallery-section {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

/* Если изображения не загружаются, добавим fallback */
.carousel-item img:after {
    content: "Изображение не загружено";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    padding: 15px 20px;
    left: 10%;
    right: 10%;
    bottom: 20px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.icon-feature {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 30px 25px;
}

/* Контакты - ОПТИМИЗИРОВАНО ДЛЯ МОБИЛЬНЫХ */
.contacts-section {
    background-color: #f8f9fa;
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-item {
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border-color: #dee2e6;
}

.icon-wrapper {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    flex: 1;
    min-width: 0; /* Это важно для корректного переноса текста */
}

.contact-text a {
    word-break: break-all; /* Позволяет переносить длинные ссылки и номера */
}

/* Футер */
.footer {
    background-color: #1a1a1a;
    padding-top: 25px;
    padding-bottom: 25px;
}

.footer a:hover {
    color: #ffd966 !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    /* Заголовок */
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn-warning {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Характеристики */
    .characteristics-section h2 {
        font-size: 2rem;
    }
    
    .characteristics-list {
        padding: 20px !important;
    }
    
    .characteristics-list li {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    .characteristics-list .fs-5 {
        font-size: 1.1rem !important;
        display: block;
        margin-bottom: 5px;
    }
    
    .characteristics-list .fs-4 {
        font-size: 1.3rem !important;
        display: block;
    }
    
    .characteristics-list .text-muted {
        font-size: 0.9rem;
        display: block;
        margin-top: 5px;
    }
    
    /* Галерея */
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
        padding: 10px 15px;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Контакты - ОСОБОЕ ВНИМАНИЕ */
    .contacts-section h2 {
        font-size: 2rem;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .icon-wrapper {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .icon-wrapper i {
        font-size: 1rem;
    }
    
    .contact-text h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .contact-text a {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    .contact-text .small {
        font-size: 0.8rem;
    }
    
    /* Карточка контактов */
    .card-body {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        background-attachment: scroll;
        background-position: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }
    
    .contact-text a {
        font-size: 0.95rem !important;
    }
    
    /* Уменьшаем отступы в контактах */
    .contacts-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .contacts-section .card {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    /* Характеристики для мобильных */
    .characteristics-list li {
        padding: 12px 8px;
    }
    
    .characteristics-list .fs-5 {
        font-size: 1rem !important;
    }
    
    .characteristics-list .fs-4 {
        font-size: 1.2rem !important;
    }
}

/* Улучшение читаемости */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

.text-warning {
    color: #ffc107 !important;
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Анимация для HERO секции */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-section .container {
    animation: fadeIn 1s ease-out;
}

/* Анимация для характеристик */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.characteristics-list {
    animation: slideUp 0.8s ease-out;
}