@charset "UTF-8";
/* --- ОСНОВНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary: #ffc107; /* Желтый (строительный) */
    --primary-dark: #e0a800;
    --dark: #333;
    --light: #f8f9fa;
    --grey: #6c757d;
    --green-call: #25d366; /* Ярко-зеленый для кнопки звонка */
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
   /* padding-bottom: 60px; /* Чтобы не перекрывало согласие */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto;
}

/* --- ШАПКА И МЕНЮ --- */
header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
}
.logo span { color: var(--primary-dark); }

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item { position: relative; }
.nav-link { font-weight: 500; transition: var(--transition); cursor: pointer; }
.nav-link:hover { color: var(--primary-dark); }

/* Выпадающее меню */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    flex-direction: column;
}
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.dropdown-content a:hover { background: var(--light); }

.header-btn {
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}
.header-btn:hover { background: var(--primary-dark); }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- HERO (ОФФЕР) --- */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/img/spectehnika.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    max-width: 100%;
}
#hero h1 { font-size: 3rem; margin-bottom: 20px; }
#hero p { font-size: 1.2rem; margin-bottom: 30px; }
.cta-btn {
    background: var(--primary);
    color: #000;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}
.cta-btn:hover { transform: scale(1.05); background: var(--primary-dark); }

/* --- ТЕХНИКА (КАТАЛОГ) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Чуть шире для характеристик */
    gap: 30px;
}
.tech-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
}
.tech-card:hover {
    transform: translateY(-10px); /* Эффект приподнимания */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.tech-card img { width: 100%; height: 220px; object-fit: cover; }
.tech-info { 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tech-title { 
    font-weight: bold; 
    font-size: 1.1rem; /* SP */ 
    margin-bottom: 15px; 
    text-align: center;
}

/* Стили для характеристик */
.tech-specs {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}
.tech-specs li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted #e0e0e0;
}
.tech-specs li span:first-child {
    font-weight: 600;
    color: var(--dark);
}

.tech-link {
    display: block;
    text-align: center;
    margin-top: auto; /* Прижимаем к низу */
    padding: 10px;
    background: var(--light);
    color: var(--primary-dark);
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
}
.tech-card:hover .tech-link {
     background: var(--primary);
     color: #000;
}

/* --- ОПИСАНИЕ УСЛУГ (СПОЙЛЕР) --- */
.spoiler-container {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.spoiler-container.open { max-height: 1000px; }
.spoiler-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.spoiler-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}
.spoiler-btn:hover { background: var(--primary); }

/* --- ПОРТФОЛИО --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: var(--transition);
}
.portfolio-item:hover img { transform: scale(1.03); filter: brightness(0.9); }

/* --- ОТЗЫВЫ (КАРУСЕЛЬ) --- */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.review-card {
    min-width: 100%;
    padding: 40px;
    background: var(--light);
    text-align: center;
    border-radius: 10px;
}
.review-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.nav-arrow {
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-dark);
    user-select: none;
}

/* --- FAQ (АККОРДЕОН) --- */
.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}
.faq-question {
    padding: 15px;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    background: var(--light);
}
.faq-item.active .faq-answer { max-height: 200px; padding: 15px; }

/* --- КОНТАКТЫ --- */
.contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.contacts-info { flex: 1; min-width: 300px; }
.contacts-map { flex: 1; min-width: 300px; }
.socials { display: flex; gap: 15px; margin-top: 20px; }
.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

/* --- ПОДВАЛ --- */
footer {
    background: #222;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 10px; color: #ccc; font-size: 0.9rem; border-bottom: 1px dashed #555; }
.copyright { font-size: 0.8rem; color: #777; }

/* --- ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ --- */
.fab-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--green-call); /* Зеленый цвет */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 900;
    /* Новая анимация пульсации с тенью */
    animation: pulse-green 2s infinite;
}
.fab-call::before { content: '📞'; font-size: 30px; }

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-btn {
    background: var(--primary);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 20px;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;       /* Разрешаем перенос элементов на новую строку */
        height: auto;          /* Убираем фиксированную высоту 70px */
        padding: 10px 0;       /* Добавляем отступы сверху и снизу */
    }
    .logo {
        order: 1;              /* Логотип первым */
    }
    .hamburger {
        display: block;
        order: 2;              /* Гамбургер вторым (справа) */
    }
    .header-btn {
        width: 100%;           /* Кнопка занимает всю ширину */
        text-align: center;    /* Центрируем номер телефона */
        order: 3;              /* Ставим в самый низ */
        margin-top: 10px;      /* Отступ от логотипа */
        padding: 12px;         /* Чуть увеличиваем кнопку для удобства нажатия */
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .nav-menu.active { display: flex; }
    
    .hamburger { display: block; }
    .dropdown-content { position: static; box-shadow: none; border: none; padding-left: 20px; }
    
    #hero h1 { font-size: 2rem; }
    section { padding: 40px 15px; }
    
    .cookie-banner { flex-direction: column; text-align: center; gap: 10px; }
    
    .fab-call { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .fab-call::before { font-size: 24px; }
}

/* --- SP --- */
.btn {
    background: var(--primary);
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}
.btn:hover { background: var(--primary-dark); }

#text p { padding-bottom: 20px; }
#text ul { list-style-type: circle; padding-left: 30px; }
#text a { color: var(--primary); }
#text a:hover { color: var(--primary-dark); text-decoration: underline; }


/* --- СТИЛИ ДЛЯ КАРТОЧКИ ТОВАРА --- */
.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* Галерея фото */
.product-gallery { position: relative; }
.main-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}
.thumbnails { display: flex; gap: 10px; }
.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
}
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--primary); }

/* Информация */
.product-title { font-size: 2.2rem; margin-bottom: 10px; line-height: 1.2; }
.product-status {
    display: inline-block;
    background: #e6fffa;
    color: #00b894;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.price-block {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    margin-bottom: 30px;
}
.price-val { font-size: 1.8rem; font-weight: bold; color: var(--dark); }
.price-note { font-size: 0.9rem; color: var(--grey); }

/* Таблица характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.specs-table td:first-child { font-weight: 600; color: #555; width: 50%; }
.specs-table td:last-child { font-weight: bold; text-align: right; }

.order-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: #000;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.order-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Описание */
.product-desc { margin-top: 40px; }
.product-desc h3 { font-size: 1.5rem; margin-bottom: 15px; border-bottom: 2px solid var(--primary); display: inline-block; }

/* Адаптив */
@media (max-width: 768px) {
    .product-wrapper { grid-template-columns: 1fr; }
    .main-img { height: 250px; }
    .product-title { font-size: 1.8rem; }
}