/* 1. Обнуление и база */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #121212; color: #fff; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* 2. Хедер */
.header { background: #000; padding: 15px 0; border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; text-decoration: none !important; color: #fff !important; }
.logo span { color: #ff4d4d; }

nav { display: flex; gap: 30px; align-items: center; }
.nav-link { color: #fff !important; text-decoration: none; font-size: 14px; text-transform: uppercase; font-weight: 600; transition: 0.3s; }
.nav-link:hover { color: #ff4d4d !important; }

.call-btn { background: #ff4d4d; color: #fff !important; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.call-btn:hover { background: #cc0000; }

/* 3. Главная страница (Hero) */
.hero { padding: 100px 0; text-align: center; background: #121212; }
.hero h1 { font-size: 42px; margin-bottom: 20px; }
.hero p { font-size: 18px; color: #ccc; margin-bottom: 35px; }
.btn-main { display: inline-block; background: #ff4d4d; color: #fff !important; padding: 15px 35px; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 18px; transition: 0.3s; }
.btn-main:hover { background: #cc0000; transform: translateY(-3px); }

/* 4. Секции и сетки (Услуги и Преимущества) */
.section-title { text-align: center; font-size: 32px; margin: 50px 0; }

.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Карточки (общий стиль для всех страниц) */
.feature-card, .service-card, .contact-container, .contact-card {
    background: #1e1e1e;
    padding: 35px;
    border-radius: 10px;
    border-bottom: 4px solid transparent;
    transition: 0.3s;
    text-align: center;
}

.feature-card:hover, .service-card:hover { border-bottom-color: #ff4d4d; transform: translateY(-5px); background: #252525; }
.feature-icon, .service-icon { font-size: 40px; margin-bottom: 20px; display: block; }
h3 { color: #ff4d4d; margin-bottom: 15px; font-size: 22px; }

/* 5. Коротко о главном (Мини-карточки) */
.mini-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 50px; }
.mini-card { background: #1e1e1e; padding: 20px; text-align: center; border-radius: 5px; border-left: 3px solid #ff4d4d; font-weight: 600; }

/* 6. Таблица цен */
.price-table { width: 100%; border-collapse: collapse; margin: 30px 0; background: #1e1e1e; border-radius: 10px; overflow: hidden; }
.price-table th { background: #ff4d4d; color: white; text-align: left; padding: 18px 20px; font-size: 16px; text-transform: uppercase; }
.price-table td { padding: 15px 20px; border-bottom: 1px solid #333; color: #eee; }
.price-table tr:hover { background: #252525; }
.price-table td:nth-child(2), .price-table td:nth-child(3) { font-weight: bold; color: #fff; }

.price-footer { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 30px 0 60px; }

/* 7. Контакты и Форма */
.contact-container, .contact-card { max-width: 600px; margin: 0 auto 50px; border-top: 4px solid #ff4d4d; border-bottom: none; text-align: left; }
.appointment-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.appointment-form input { padding: 12px 15px; border-radius: 5px; border: 1px solid #333; background: #2a2a2a; color: white; font-size: 16px; outline: none; }
.appointment-form input:focus { border-color: #ff4d4d; }
.btn-submit { background: #ff4d4d; color: white; padding: 15px; border: none; border-radius: 5px; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: #cc0000; }

/* 8. Футер */
footer, .footer { background: #000; color: #555; text-align: center; padding: 25px 0; border-top: 1px solid #333; margin-top: auto; font-size: 14px; }

/* Секция отзывов в темной теме */
.reviews {
    padding: 80px 20px;
    background-color: #111; /* Цвет фона как у всего сайта */
}

.reviews .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

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

.review-card {
    background: #1a1a1a; /* Темный фон карточки, чуть светлее основного */
    padding: 30px;
    border-radius: 4px; /* Делаем углы более строгими, как в услугах */
    border-left: 3px solid #ff4d4d; /* Твоя фирменная красная линия */
    transition: 0.3s;
}

.review-card:hover {
    background: #222; /* Легкий интерактив при наведении */
}

.review-author {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.review-rating {
    color: #ff4d4d; /* Звезды сделаем красными в тон логотипа, либо оставь #ffc107 */
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.review-card p {
    line-height: 1.6;
    color: #ccc; /* Светло-серый текст для хорошей читаемости на черном */
    font-style: normal; /* Убираем курсив, чтобы было строже */
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    header, .header {
        flex-direction: column !important; /* Выстраиваем логотип и меню вертикально */
        gap: 15px !important;              /* Делаем отступ между логотипом и ссылками */
        padding: 15px 5% !important;
        text-align: center !important;
    }
    nav, .nav {
        display: flex !important;
        flex-wrap: wrap !important;        /* Разрешаем кнопкам переноситься на новый ряд */
        justify-content: center !important;
        gap: 10px !important;
    }
    nav a, .nav a {
        margin: 0 5px !important;          /* Делаем компактные отступы по бокам */
        font-size: 0.9rem !important;      /* Слегка уменьшаем текст под экраны мобильных */
    }
}