/* ============================= */
/* 1. СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================= */
/* 2. ШАПКА И НАВИГАЦИЯ */
/* ============================= */

.top-header {
    background-color: #333333;
    color: #fff;
    padding: 5px 0;
}

.navbar {
    background-color: #333;
    padding: 5px 0;
}

.navbar ul {
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0 10px;
}

.navbar ul li a {
    font-size: 14px;
    padding: 8px 0;
}

.logo span {
    color: white;
    font-size: 20px;
}

.header-contacts {
    font-size: 12px;
}

.header-contacts a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.call-btn {
    background-color: #46b5d1;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}
.call-btn:hover {
    background-color: #3294a8;
    transform: scale(1.05);
}

/* Навигационное меню */
.navbar {
    background-color: #333;
    animation: fadeInDown 1s ease-out;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.navbar .container ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}
.navbar ul li {
    margin: 0 15px;
}
.navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    font-size: 16px;
    transition: color 0.3s, transform 0.3s;
}
.navbar ul li a:hover {
    color: #ffcc00;
    transform: scale(1.05);
}

/* ============================= */
/* 3. БАННЕР (HERO) С ЗАДНИМ ФОНОМ */
/* ============================= */
.hero {
    position: relative;
    background: url("/IMG/vid-speredi-dostavsikov-v-koncepcii-raboty.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Заголовок секции */
.section-title {
    font-size: 28px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #46b5d1;
    border-radius: 2px;
}

/* Список преимуществ */
.advantages-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}

/* Отдельный элемент */
.advantage-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Иконка */
.advantage-item .icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Текст */
.advantage-item .text {
    font-size: 16px;
    color: #555;
    line-height: 1.4;
}



.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}
.fade-in.delay-1 {
    animation-delay: 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 10px;
}
.hero p {
    color: #fff;
    font-size: 20px;
}

/* Содержимое внутри .hero (заголовок и текст) */
.hero-content {
    position: relative; /* Чтобы текст был поверх псевдоэлемента .hero::before */
    text-align: center;
    padding: 40px;
}


a {
    color: black;
    text-decoration: none;
}

/* ============================= */
/* 4. АНИМАЦИИ ДЛЯ ЛЕВОЙ И ПРАВОЙ КОЛОНКИ */
/* ============================= */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.fadeInLeft {
    animation: fadeInLeft 1s forwards;
}
.fadeInRight {
    animation: fadeInRight 1s forwards;
}

/* ============================= */
/* 5. "О КОМПАНИИ" И "НАШИ УСЛУГИ" */
/* ============================= */
/* Пример: фон или отступы для секции */
#about {
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    margin-top: 30px;
    padding: 30px;
}
/* Стили заголовков внутри секции */
#about h1, #about h2 {
    margin-bottom: 20px;
}
/* Убираем маркеры у списка преимуществ */
.advantages {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.advantages li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.advantages li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #fa6d4c;
}

/* Блок "Наши услуги" */
.services-block {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.services-block h2 {
    margin-bottom: 20px;
}
.services-block .list-group-item {
    margin-bottom: 5px;
    transition: background 0.3s;
}
.services-block .list-group-item:hover {
    background-color: #e9ecef;
}

/* ============================= */
/* 6. СЕКЦИЯ "ОТЗЫВЫ" */
/* ============================= */
.reviews {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
    animation: fadeInUp 1.5s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.reviews h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.review-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 15px auto;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.review-item:nth-child(1) { animation-delay: 0.3s; }
.review-item:nth-child(2) { animation-delay: 0.5s; }
.review-item:nth-child(3) { animation-delay: 0.7s; }
.review-text {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 10px;
}
.review-author {
    font-size: 16px;
    font-weight: bold;
    color: #46b5d1;
}

/* Стили для блока отзывов */
.review-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для фотографий в отзывах – рамочка, тень и отступ */
.review-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #46b5d1;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================= */
/* 7. ФУТЕР */
/* ============================= */
.footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    animation: fadeIn 1s ease-out;
}
.footer p {
    margin: 5px 0;
}
.header-contacts {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}
.call-btn {
    background-color: #46b5d1;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}
.call-btn:hover {
    background-color: #3294a8;
    transform: scale(1.05);
}

/* ============================= */
/* 8. АДАПТИВНОСТЬ */
/* ============================= */
@media (max-width: 768px) {
    /* Вертикальное расположение на маленьких экранах */
    #about .row {
        flex-direction: column;
    }
    .fadeInLeft, .fadeInRight {
        transform: none !important;
    }
    .services-block {
        margin-top: 20px;
    }
}
