:root {
    /* ЦВЕТА ИЗ ЛОГОТИПА */
    --primary-color: #0b1638; /* Глубокий темно-синий */
    --accent-color: #fd610f;  /* Яркий красно-оранжевый */
    
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* Базовые настройки */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Заголовки */
h1, h2, h3, h4 {
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo-image-link {
    display: block;
    text-decoration: none;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.nav-list { display: flex; gap: 30px; list-style: none; }
.nav-list a { text-decoration: none; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; transition: color 0.3s; }
.nav-list a:hover { color: var(--accent-color); }

.phone-btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.phone-btn:hover { background: #e0550d; }
.phone-btn i { font-size: 0.9rem; }

.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; color: var(--primary-color); cursor: pointer; }

/* --- Hero Section --- */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1556910103-1c02745a30bf?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -80px; 
    padding-top: 80px;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(11, 22, 56, 0.95) 40%, rgba(253, 97, 15, 0.85) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.9; font-weight: 400; font-family: 'Open Sans', sans-serif; }

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(253, 97, 15, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(253, 97, 15, 0.6); }
.btn-primary i { font-size: 1.1rem; margin-right: 8px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 97, 15, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(253, 97, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 97, 15, 0); }
}
.pulse-effect { animation: pulse 2s infinite; }

.hero-features { margin-top: 40px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 1rem; font-weight: 600; font-family: 'Teko', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-features span i { color: var(--accent-color); margin-right: 5px; }

/* --- Brands Section --- */
.brands-section { padding: 40px 0; background: #fff; border-bottom: 1px solid #eee; text-align: center; }
.brands-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; font-family: 'Teko', sans-serif; }
.brands-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.5; font-weight: 700; color: var(--primary-color); font-size: 1.5rem; font-family: 'Teko', sans-serif; }
.brand-item:hover { opacity: 1; color: var(--accent-color); cursor: default; transition: 0.3s; }

/* --- About Section --- */
.about-section { padding: 80px 0; background: var(--white); }
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-title-left { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-color); font-weight: 700; }
.about-features { list-style: none; margin-top: 25px; }
.about-features li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.about-features i { color: var(--accent-color); font-size: 1.2rem; margin-top: 4px; }
.about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* --- Services Section --- */
.services { padding: 80px 0; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.8rem; color: var(--primary-color); font-weight: 700; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-top-color: var(--accent-color); }

.img-placeholder { height: 220px; background: #eee; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .img-placeholder img { transform: scale(1.05); }

.service-card h3 { padding: 20px 25px 10px; color: var(--primary-color); font-size: 1.5rem; font-weight: 700; }
.problem-list { padding: 0 25px 25px; list-style: none; }
.problem-list li { margin-bottom: 8px; position: relative; padding-left: 20px; font-size: 0.95rem; color: var(--text-main); }
.problem-list li::before { content: '•'; color: var(--accent-color); font-weight: bold; position: absolute; left: 0; font-size: 1.2rem; line-height: 1; }

/* --- Reviews Section --- */
.reviews-section { padding: 80px 0; background: var(--white); text-align: center; }
.reviews-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.review-card { background: var(--bg-light); padding: 30px; border-radius: var(--radius); max-width: 500px; box-shadow: var(--shadow-soft); text-align: left; }
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 1.1rem; }
.review-text { font-style: italic; margin-bottom: 15px; color: var(--text-main); }
.review-author { font-weight: 700; color: var(--primary-color); font-family: 'Teko', sans-serif; letter-spacing: 1px; }

.btn-google {
    background: #4285F4;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.4);
}
.btn-google:hover { background: #3367d6; transform: translateY(-3px); }

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: #bdc3c7;
    padding: 70px 0 30px;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-logo-link { display: inline-block; margin-bottom: 20px; }
.footer-logo-link .logo-image { height: 70px; }
.footer-desc { margin-top: 15px; opacity: 0.8; }

.footer-contact-list, .footer-hours-list { list-style: none; }
.footer-contact-list li, .footer-hours-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.footer-contact-list i { color: var(--accent-color); font-size: 1.1rem; width: 20px; text-align: center; }

.footer a { color: #bdc3c7; text-decoration: none; transition: 0.3s; }
.footer a:hover { color: var(--accent-color); }

.footer-hours-list span { color: var(--white); font-weight: 600; min-width: 90px; display: inline-block; font-family: 'Teko', sans-serif; letter-spacing: 0.5px; font-size: 1.1rem; }

.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* --- Sticky Mobile Bottom Bar (FIXED VERSION) --- */
.mobile-sticky-bar {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    
    /* 1. Убираем фон и тень в скрытом состоянии, чтобы не было "призраков" */
    background: transparent;
    box-shadow: none; 
    
    /* Учет безопасной зоны на iPhone */
    padding: 10px 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    
    z-index: 2000;
    
    display: none; /* Для десктопа */

    /* 2. Скрываем элемент полностью, чтобы он не кликался и не отбрасывал тень */
    visibility: hidden; 
    transform: translateY(100%); 
    
    /* ВАЖНО: Убрали 'bottom' из анимации! 
       Мы анимируем только появление (transform) и прозрачность.
       Это решает проблему с отрывом кнопки на iPhone при исчезновении панели браузера.
    */
    transition: transform 0.3s ease-in-out, visibility 0.3s, background 0.3s, box-shadow 0.3s;
}

.sticky-call-btn {
    display: block; width: 100%;
    background: var(--accent-color);
    color: white; text-align: center; padding: 12px;
    border-radius: 8px; text-decoration: none;
    font-family: 'Teko', sans-serif;
    font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px;
}

/* Состояние, когда кнопка активна (добавляется JS при скролле) */
.mobile-sticky-bar.visible {
    /* Возвращаем видимость, фон и тень */
    visibility: visible;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    
    /* Поднимаем на место */
    transform: translateY(0);
}

/* --- Cookie Banner (ОБНОВЛЕНО) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    
    /* Учет безопасной зоны снизу */
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    
    /* Прячем через сдвиг вниз на 100% высоты */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    flex-wrap: wrap;
    text-align: center;
}

.cookie-banner p { font-size: 0.9rem; margin: 0; }

.cookie-banner.show {
    transform: translateY(0);
}

.btn-cookie {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.btn-cookie:hover { background: #e0550d; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in-up { animation: fadeInUp 1s ease-out forwards; }
.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- Mobile Adaptation (Media Queries) --- */
@media (max-width: 900px) {
    .header { padding: 15px 0; }
    .logo-image { height: 50px; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); text-align: center; }
    .nav-list.active { display: flex; }
    .menu-toggle { display: block; }
    .phone-btn { display: none; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
    .about-wrapper { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-contact-list li, .footer-hours-list li { justify-content: center; }
    .footer { padding-bottom: 90px; }
    
    /* Включаем кнопку на мобильных (видимость управляется через класс .visible) */
    .mobile-sticky-bar { display: block; }
}