:root {
    --primary-red: #e60000;
    --bg-black: #0a0a0a;
    --card-bg: #141414;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
}

/* Шапка сайта */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center; /* Выравнивание текста и картинки по одной линии */
    gap: 12px;           /* Расстояние между текстом и иконкой */
    cursor: pointer;
}

.logo-text {
    font-weight: 800;    /* Жирный шрифт как на скриншоте */
    font-size: 24px;     /* Размер можно подправить под себя */
    letter-spacing: 1px;
}

/* SOLAR будет белым */
.white-text {
    color: #FFFFFF;
}

/* LINE будет красным */
.red-text {
    color: #FF0000;      /* Яркий красный цвет */
}

/* Настройки иконки */
.logo-img {
    height: 35px;        /* Высота иконки относительно текста */
    width: auto;
    display: block;
}

.menu-btn {
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* Главный экран */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: radial-gradient(circle at center, #1a0000 0%, var(--bg-black) 70%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary-red);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--primary-red);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
}

/* Секция контента */
/* 1. Общий контейнер (центрирует всё и ограничивает ширину) */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Чтобы карточки не создавали горизонтальный скролл у всего сайта */
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.section-title span {
    color: var(--primary-red);
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-tag {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid #222;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .blocks-grid { grid-template-columns: 1fr; }
}

.hero {
    height: auto;
    padding-top: 120px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.secondary-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #444;
}

.main-image {
    margin-top: 40px;
    width: 100%;
    display: flex;         /* Включаем гибкую разметку */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center;     /* Центрируем по вертикали */
}

.main-image img {
    max-width: 600px;      /* Ограничиваем максимальную ширину */
    width: 90%;            /* Чтобы на мобилках не вылезало за края */
    height: auto;
    /* Убираем фон и тени, если они были вшиты */
    background: transparent;
    /* Добавляем мягкое красное свечение вокруг дома, как на макете */
    filter: drop-shadow(0 0 50px rgba(230, 0, 0, 0.15));
}

/* Стили бокового меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px; /* Спрятано за экраном */
    width: 320px;
    height: 100%;
    background: #0d0d0d;
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid #222;
}

.logo-small {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-red); /* Використовуємо твій червоний колір */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 10px;
    /* Ефект легкого світіння */
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

.side-menu.active {
    left: 0; /* Выезжает */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 1999;
}

.menu-overlay.active {
    display: block;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.menu-nav {
    flex-grow: 1;
}

.menu-item {
    margin-bottom: 15px;
}

.menu-item a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-item i {
    width: 20px;
    color: var(--primary-red);
}

.menu-item.active > a {
    color: var(--primary-red);
}

.submenu {
    margin-left: 35px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid #222;
    padding-left: 15px;
}

.submenu a {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.menu-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.btn-outline {
    border: 1px solid #333;
    padding: 12px;
    text-align: center;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-red {
    background: var(--primary-red);
    padding: 12px;
    text-align: center;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Базовые стили модалки */
.modal {
    display: none;
    position: fixed;
    z-index: 2000; /* Выше чем меню */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #ff0000;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    color: white;
}

.close-button {
    position: absolute;
    right: 15px; top: 10px;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
}

.submit-btn {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.benefits {
    padding: 80px 20px;
    background: #0a0a0a;
}

.benefits .container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: #151515;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #222;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #ff0000;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 40px;
    color: #ff0000;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.benefit-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 16px;
}

/* Для заголовків секцій, якщо ви їх ще не стилізували */
.section-title {
    text-align: center;
    font-size: 36px;
    color: #fff;
}

.section-title span {
    color: #ff0000;
}

.calc-content {
    max-width: 500px !important;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.step h2 {
    color: #ff0000;
    margin-bottom: 20px;
}

.step input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
}

.step-btns {
    display: flex;
    gap: 10px;
}

.next-btn, .prev-btn {
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.next-btn {
    background: #ff0000;
    color: #fff;
    border: none;
    width: 100%;
}

.prev-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Основні стилі для нових розділів */
.full-section {
    padding: 80px 20px;
    background: #0a0a0a; /* Глибокий темний колір */
    color: #fff;
    border-bottom: 1px solid #1a1a1a;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.dark-card {
    background: #141414;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.dark-card:hover {
    transform: translateY(-5px);
    border-color: #e60000; /* Червона рамка при наведенні */
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.1);
}

.dark-card h3 {
    color: #e60000;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.dark-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Клас для анімації появи */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Контейнер для іконок під картинкою */
.features {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Розтягує всі блоки до однакової висоти */
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid #222;
}

.feature-item {
    flex: 1; /* Кожен блок займає рівно 1/3 ширини */
    background: rgba(255, 255, 255, 0.03); /* Ледь помітний фон для структури */
    border: 1px solid rgba(230, 0, 0, 0.2); /* Тонка рамка */
    border-radius: 8px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column; /* Іконка зверху, текст знизу */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px; /* Гарантує однакову висоту */
    transition: 0.3s;
}

.feature-item i {
    font-size: 1.5rem;
    color: #e60000;
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 0.8rem; /* Трохи менший шрифт, щоб текст не розривав блоки */
    line-height: 1.2;
    color: #fff;
    word-wrap: break-word;
}

/* Адаптація для зовсім маленьких екранів */
@media (max-width: 400px) {
    .feature-item span {
        font-size: 0.7rem;
    }
    .feature-item i {
        font-size: 1.2rem;
    }
}

/* Стили для окна просмотра карточки */
.detail-content {
    max-width: 800px !important; /* Делаем окно шире для удобства чтения */
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--primary-red);
}

#detail-body img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.detail-info {
    padding: 30px;
    background: #141414;
}

.detail-info h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 2rem;
}

.detail-info p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line; /* Сохраняет абзацы из бота */
}

.work-card, .card {
    cursor: pointer; /* Показываем, что на блок можно нажать */
}

#close-detail {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    z-index: 1001; /* Число должно быть больше, чем у .modal-content */
    line-height: 1;
}

/* Основной фон модалки с эффектом размытия */
#card-detail-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Размытие заднего плана */
    transition: all 0.4s ease;
}

/* Контейнер контента с анимацией появления */
.detail-content {
    position: relative;
    margin: 5vh auto;
    background: #141414;
    width: 90%;
    max-width: 850px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(230, 0, 0, 0.3);

    /* Начальное состояние для анимации */
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: modalAppear 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Анимация вылета карточки */
@keyframes modalAppear {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Плавное появление текста внутри */
.detail-info h2, .detail-info p, .detail-info .btn-red {
    opacity: 0;
    transform: translateY(15px);
    animation: textSlideUp 0.6s ease forwards;
}

.detail-info h2 { animation-delay: 0.2s; }
.detail-info p { animation-delay: 0.3s; }
.detail-info .btn-red { animation-delay: 0.4s; }

@keyframes textSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенный крестик */
#close-detail {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    z-index: 1010;
    transition: transform 0.3s ease, color 0.3s ease;
}

#close-detail:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* 2. Обертка для слайдера (позиционирует стрелки относительно ленты) */

/* Контейнер слайдера */
.slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

/* САМА ЛЕНТА - Исправляем конфликт */
#new-dynamic-blocks {
    display: flex !important;       /* ВСЕГДА Flex, никакой сетки (Grid) */
    flex-direction: row !important; /* Только в ряд */
    flex-wrap: nowrap !important;   /* Запрещаем перенос на новую строку */
    overflow-x: auto;               /* Разрешаем горизонтальный скролл */
    scroll-behavior: smooth;
    gap: 25px;
    padding: 20px 0;
    width: 100%;
    scrollbar-width: none;          /* Скрываем скроллбар */
}

#new-dynamic-blocks::-webkit-scrollbar {
    display: none;
}

/* КАРТОЧКИ В СЛАЙДЕРЕ */
#new-dynamic-blocks .card {
    min-width: 350px;               /* Фиксированная ширина на ПК */
    max-width: 350px;
    flex-shrink: 0;                 /* Запрещаем карточкам сжиматься */
    margin-bottom: 0 !important;
}

/* СТРЕЛКИ */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e60000;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }

.slider-arrow:hover {
    background: #ff0000;
    transform: translateY(-50%) scale(1.1);
}

/* АДАПТИВ ДЛЯ МОБИЛОК */
@media (max-width: 768px) {
    #new-dynamic-blocks .card {
        min-width: 280px;  /* На мобилках карточки чуть уже */
        max-width: 280px;
    }

    .slider-arrow {
        display: none;     /* На телефонах листаем пальцем (swipe) */
    }

    .slider-wrapper {
        padding: 0;
    }
}

.swipe-hint {
    display: none; /* По умолчанию скрыто */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    border-radius: 12px;
    z-index: 100;
    pointer-events: none; /* Чтобы не мешала нажимать на карточки */
    transition: opacity 0.5s ease;
}

.swipe-hint span {
    font-size: 14px;
    margin-top: 8px;
    white-space: nowrap;
}

/* Анимация руки влево-вправо */
.hand-icon {
    animation: swipeGesture 2s infinite ease-in-out;
}

@keyframes swipeGesture {
    0% { transform: translateX(20px); opacity: 0; }
    30% { transform: translateX(20px); opacity: 1; }
    60% { transform: translateX(-20px); opacity: 1; }
    100% { transform: translateX(-20px); opacity: 0; }
}

/* Показываем только на мобильных (до 768px) */
@media (max-width: 768px) {
    .swipe-hint {
        display: flex;
    }
}

.faq-section {
    padding: 60px 20px;
    background-color: #000; /* Темный фон как на сайте */
    color: #fff;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.faq-title span {
    color: #e60000; /* Твой фирменный красный */
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #e60000;
}

/* Иконка плюсика/стрелочки */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: #e60000;
    transition: transform 0.3s ease;
}

/* Горизонтальная палочка */
.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 9px;
    left: 0;
}

/* Вертикальная палочка (делает из минуса плюс) */
.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 9px;
    top: 0;
}

/* Стили при открытии */
.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0; /* Оставляем только горизонтальную линию (минус) */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Достаточно для текста */
}

/* Кнопка в Hero: Красный текст на белом фоне */
.shop-btn-hero {
    display: inline-block;
    background-color: #ffffff; /* Белый фон */
    color: #e60000;            /* Красный текст */
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    border: 2px solid #ffffff;
    margin: 10px 0;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
}

.shop-btn-hero:hover {
    background-color: transparent;
    color: #ffffff; /* При наведении становится прозрачной с белым текстом */
}

/* Центрирование кнопок в Hero для мобильных и десктопа */
.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Расстояние между кнопками */
    margin-top: 20px;
}

.secondary-link {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
}

.secondary-link:hover {
    opacity: 1;
}

.achievements-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 5%;
    background: #0f0f0f;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    gap: 30px;
}

.achievement-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.achievement-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* небольшой отступ между цифрой и символом */
    font-size: 3.5rem;
    font-weight: 800;
    color: #e60000;
}

.achievement-text {
    color: #bbb;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.achievement-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e60000;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.achievement-text {
    color: #bbb;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .achievement-number { font-size: 2.2rem; }
    .achievements-section { padding: 40px 20px; }
}

.modal-slider {
    position: relative;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 450px;
}

.slider-img {
    min-width: 100%;
    object-fit: cover;
    height: 450px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(230, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.slider-nav.prev { left: 0; }
.slider-nav.next { right: 0; }

.slider-nav:hover { background: rgba(255, 0, 0, 1); }