/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h2 {
    color: rgba(255, 255, 255, 1);

    font-family: Oswald;
    font-size: 48px;
    font-weight: 400;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: center;
    text-transform: uppercase;
}

/* Линия под всеми h2 */
h2 {
    position: relative; /* Для позиционирования линии */
    margin-bottom: 40px; /* Отступ снизу для линии (20px + высота линии) */
}

h2::after {
    content: '';
    position: absolute;
    bottom: -20px; /* 20px ниже заголовка */
    left: 35%;
    width: 358px; /* Ширина линии */
    height: 0; /* Высота 0 */
    border: 5px solid rgba(70, 161, 40, 1); /* Зеленая граница */
    border-radius: 0; /* Без скругления, если нужно — добавьте */
}

/*шапка*/
/* Общий стиль header */
.header {
    background-color: #000; /* Предполагаю черный фон, как в типичных дизайнах; замените если нужно */
    padding: 20px 0;
    position: relative;
}

.header__container {
    display: flex;
    justify-content: space-between; /* Логотип слева, меню справа */
    align-items: center;
    max-width: 1200px; /* Ограничьте ширину контейнера */
    margin: 0 auto;
    padding: 0 20px;
}

/* Логотип */
.logo img {
    border-radius: 13px;
    max-height: 50px; /* Ограничьте высоту для пропорций */
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    position: relative;
    margin: 0 15px; /* Отступы между пунктами */
}

/* Основное меню */
nav li a {
    color: rgba(255, 255, 255, 1);
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
}

nav li a:hover {
    color: rgba(70, 161, 40, 1); /* Зеленый цвет при наведении */
}

/* Активный пункт */
nav li.active a {
    border: 3px solid rgba(70, 161, 40, 1);
    border-radius: 5px; /* Для мягкости */
}

/* Вертикальные линии между пунктами основного меню (только для first_lvl) */
nav ul.first_lvl li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px; /* Половина отступа между li */
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 30.5px;
    height: 0;
    border: 1px solid rgba(175, 175, 175, 1);
}

/* Убрать линии для других li (если есть) */
nav li:not(.first_lvl li)::after {
    content: none;
}

/* Стрелка для "Товары" */
nav li:has(ul) a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 5px;
    background: rgba(255, 255, 255, 1);
    clip-path: polygon(50% 100%, 0 0, 100% 0); /* CSS-треугольник вниз */
    margin-left: 15px;
    vertical-align: middle;
}

.lvl_two::after {
    content: none!important;
}

/* Подменю */
nav li ul {
    position: absolute;
    top: 100%;
    left: -63px;
    background-color: #000;
    min-width: 235px;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* Начальный сдвиг вверх для плавности */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; /* Плавный переход с ease */
    z-index: 1000;
    flex-direction: column; /* Развернуто вниз (column) */
}

nav li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Спускается вниз плавно */
}

nav li ul li {
    margin: 0;
    position: relative; /* Для позиционирования линии */
}
.first_lvl_li_1 {
    margin-right: 20px;
    padding-right: 50px;
}
.first_lvl_li_2 {
    margin-right: 20px;
    padding-right: 50px;
    margin-left: 40px;
}

nav li ul li:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px; /* Отступ слева, как у padding ссылок */
    width: 80%;/* Ширина линии */
    height: 0.5px; /* Тонкая линия */
    background-color: rgba(81, 78, 78, 1); /* Цвет линии */
}

nav li ul li a {
    font-size: 12px;
    font-weight: 400;
    text-transform: none; /* Без uppercase */
    padding: 8px 15px;
    display: block;
}

.lvl_two a::after {
    content: none;
}
/* Бургер-кнопка */
.burger {
    display: none; /* Скрыта на десктопе */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2.4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Активное состояние бургера (крестик) */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.mobile-menu {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-start; /* Изменено на flex-start для размещения сверху */
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 20px; /* Отступ сверху для логотипа */
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Заголовок мобильного меню с логотипом */
.mobile-menu-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1002;
}

.mobile-logo img {
    max-height: 40px; /* Размер логотипа */
    border-radius: 13px; /* Как в десктопе */
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    margin-top: 80px; /* Отступ от логотипа */
}

.mobile-menu li {
    margin: 20px 0;
    position: relative; /* Для позиционирования стрелки */
}

.mobile-menu a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: rgba(70, 161, 40, 1);
}

/* Стрелка для подменю */
.submenu-toggle {
    display: inline-block;
    width: 7px;
    height: 5px;
    background: rgba(255, 255, 255, 1);
    clip-path: polygon(50% 100%, 0 0, 100% 0); /* Треугольник вниз */
    margin-left: 10px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submenu-toggle.active {
    transform: rotate(180deg); /* Поворот вверх при активном состоянии */
}

/* Подменю в мобильном меню */
.submenu {
    display: none; /* Скрыто по умолчанию */
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.submenu.active {
    display: flex;
    gap: 20px;
    flex-direction: column;
    margin-top: 20px;
}

.submenu li {
    margin: 10px 0;
}

.submenu a {
    font-size: 16px;
    text-transform: none;
}


/* Мобильная версия header */
@media (max-width: 768px) {
    .header__container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .burger {
        display: flex; /* Показать бургер на мобильных */
    }
    
    nav {
        display: none; /* Скрыть десктопное меню */
    }
    
    .mobile-menu {
        display: flex; /* Показать мобильное меню при активации */
    }
}

/* конец шапки*/
  /* Новый блок под хэдером (hero) */
  .hero {
    background-image: url('../img/bg.png'); /* Фон из указанного пути */
    background-size: cover; /* Масштабирование для адаптивности */
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 791px; /* Высота фона */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Левое выравнивание контента */
    padding-left: 50px; /* Отступ слева для текста */
    box-sizing: border-box;
}
.hero-content {
    max-width: 764px; /* Максимальная ширина текста */
    margin-left: -490px;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 74px;
    font-weight: 400;
    line-height: 90px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 20px;
    width: 757px; /* Ширина заголовка */
    height: 180px; /* Высота заголовка */
}
.hero-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: left;
    color: rgba(255, 255, 255, 1);
    width: 764px; /* Ширина текста */
    height: 160px; /* Высота текста */
}

/* Адаптивность для hero */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Автоматическая высота на мобильных */
        padding: 20px;
        justify-content: center; /* Центрирование на мобильных */
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 36px; /* Уменьшенный шрифт */
        line-height: 45px;
        width: 100%;
        height: auto;
        text-align: left;
    }
    .hero-text {
        font-size: 16px; /* Уменьшенный шрифт */
        line-height: 30px;
        width: 100%;
        height: auto;
        text-align: left;
    }
    .hero-content {
        max-width: 764px; /* Максимальная ширина текста */
        margin-left: 0px;
    }
}
/* Контейнер для товаров */
.store_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Карточка товара */
.item_store {
    border-radius: 8px;
    padding: 15px;
    width: calc(50% - 10px); /* 2 товара в строку */
   /* box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    box-sizing: border-box;
}

/* Слайдер Swiper */
.slider {
    position: relative;
    width: 100%;
    height: 405px;
    margin-bottom: 15px;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-prev,
.swiper-button-next {
    color: #fff; /* Цвет стрелок */
}

/* Заголовок товара */
.item_title {
    color: rgba(255, 255, 255, 1);

    font-family: Inter;
    font-size: 32px;
    font-weight: 600;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: uppercase;
}

/* Описание товара */
.item_description {
    color: rgba(194, 194, 194, 1);

font-family: Inter;
font-size: 14px;
font-weight: 400;
line-height: 21px;
letter-spacing: 0px;
text-align: left;
}
.item_description ul {
    margin: 0;
    padding-left: 20px;
}
.item_description li {
    margin-bottom: 5px;
    list-style: disc;
}
.item_description p {
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Цена */
.item_price {
    color: rgba(255, 255, 255, 1);

    font-family: Inter;
    font-size: 24px;
    font-weight: 600;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: uppercase;
}

/* Кнопка "КУПИТЬ" */
.buy_button {
    border-radius: 3px;
background: rgba(70, 161, 40, 1);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    /* Rectangle 98 */
width: 184px;
height: 52px;
    transition: background 0.3s;
}
.buy_button:hover {
    background: #218838;
}

/* Адаптивность */
@media (max-width: 768px) {
    .item_store {
        width: 100%; /* 1 товар в строку на мобильных */
    }
    h2 {
        color: rgba(255, 255, 255, 1);
/* Настенные светильники */
width: 244px;
height: 80px;
font-family: Oswald;
font-size: 32px;
font-weight: 400;
line-height: 40px;
letter-spacing: 0px;
text-align: center;
text-transform: uppercase;
margin: 0 auto;
    }
    h2::after {
        /* Hover Line */
width: 154.5px!important;
height: 0;
left: 18%!important;

    }
    .store_container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
        margin-top: 50px;
    }
    .swiper-slide img {
        width: 328px;
        height: 273px;
    }
    .slider {
        height: auto;
    }
    .item_title {
        color: rgba(255, 255, 255, 1);

font-family: Inter;
font-size: 20px;
font-weight: 600;
line-height: 30px;
letter-spacing: 0px;
text-align: left;
text-transform: uppercase;
    }
    
  .item_description  {
        color: rgba(194, 194, 194, 1);

font-family: Inter;
font-size: 12px;
font-weight: 400;
line-height: 21px;
letter-spacing: 0px;
text-align: left;
    }
    .item_price {
        color: rgba(255, 255, 255, 1);

font-family: Inter;
font-size: 24px;
font-weight: 600;
line-height: 80px;
letter-spacing: 0px;
text-align: left;
text-transform: uppercase;
    }
    .buy_button {
        /* Rectangle 98 */
width: 327px;
height: 52px;
    }
}

/* Подвал */
.footer {
    background-color: #000; /* Черный фон */
    padding: 40px 0;
}
.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.contact_block {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: baseline;
    margin-top: 40px;
}
.contact_left {
    width: 40%; /* Левый блок 40% */
    display: flex;
    flex-direction: column;
}
.contact_right {
    width: 60%; /* Правый блок 60% */
    display: flex;
    align-items: flex-start;
}
.phone_block {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.phone_number {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    font-size: 29px;
    font-weight: 600;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: left;
    text-transform: uppercase;
    position: relative;
    padding-left: 69px; /* Отступ для иконки (54px ширина + 15px gap) */
}
.phone_number::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background-image: url('../img/icon_call.svg');
    background-size: cover;
    background-repeat: no-repeat;
}
.email_address {
    color: rgba(255, 255, 255, 1);
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: left;
    margin-left: 69px; /* Выравнивание по номеру телефона (с учетом иконки) */
    margin-top: -40px;
}
.call_button {
    width: 230px;
    margin-left: 69px;
}
.call_button:hover {
    background: #218838;
}
.address_block {
    display: flex;
    align-items: flex-start;
}
.address_icon {
    width: 54px;
    height: 54px;
    margin-right: 15px;
    margin-top: 5px; /* Выравнивание с текстом */
}
.address {
    color: rgba(194, 194, 194, 1);
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0px;
    text-align: left;
    position: relative; /* Добавлено для позиционирования ::before */
    padding-left: 69px; /* Отступ для иконки (54px ширина + 15px gap) */
}
.address::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background-image: url('../img/icon_location.svg');
    background-size: cover;
    background-repeat: no-repeat;
}
.copyright_block {
    width: 100%;
    margin-top: 80px;
    color: rgba(129, 129, 129, 1); /* Серый цвет */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0px;
    text-align: left;
    border-top: 0.5px solid rgba(129, 129, 129, 1); /* Вертикальная черта (border-top для разделения) */
    padding-top: 50px; /* Отступ сверху для черты */
}
.copyright_block a {
    color: rgba(70, 161, 40, 1);
}
footer h2 {
    margin: 0 auto;
}
footer h2::after {
    left: -40%!important;
}
/* Адаптивность для подвала */
@media (max-width: 768px) {
    .footer__container {
        flex-direction: column;
    }
    .contact_block {
        flex-direction: column;
        gap: 20px;
    }
    h2::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 18%;
        width: 358px;
        height: 0;
        border: 5px solid rgba(70, 161, 40, 1);
        border-radius: 0;
    }
    footer h2::after {
        bottom: 0px;
        left: 18%!important;
    }
    footer h2 {
        color: rgba(255, 255, 255, 1);
    width: 244px;
    height: 80px;
    font-family: Oswald;
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: center;
    text-transform: uppercase;
    margin: 0 auto;
        margin-bottom: 42px;
    }
    .contact_left,
    .contact_right {
        width: 100%;
    }
    .phone_number {
        font-size: 20px; /* Уменьшенный шрифт на мобильных */
        padding-left: 69px;
    }
    .email_address {
        margin-left: 69px;
        font-size: 14px;
    }
    .address {
        color: rgba(194, 194, 194, 1);

font-family: Inter;
font-size: 14px;
font-weight: 400;
line-height: 21px;
letter-spacing: 0px;
text-align: left;
    }
    .call_button {
        width: 328px;
        height: 52px;
        margin: 0 auto;
    }
    .contact_block {
        margin-top: 0px;
    }
   .copyright_block {
        font-family: Inter;
font-size: 10px;
font-weight: 400;
line-height: 22px;
letter-spacing: 0px;
text-align: left;
    }
}


/* Модалка */
.modal-overlay {
    display: none; /* Скрыта по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px; /* Для мобильной версии */
    width: 90%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Крестик закрытия */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16.97px;
    height: 16.97px;
    background: none;
    border: 0;
    color: rgba(0, 0, 0, 1);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    /*transform: rotate(45deg);*/
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Заголовок */
.modal-title {
    width: auto;
    height: 80px;
    color: rgba(16, 16, 17, 1);
    font-family: Oswald, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    margin: 0 auto;
}

/* Форма */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Инпуты */
.form-input {
    width: auto;
    height: 52px;
    border: 1px solid rgba(70, 161, 40, 1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 1);
    padding: 0 10px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 80px;
    letter-spacing: 0px;
    text-align: left;
    color: rgba(0, 0, 0, 1);
}

.form-input::placeholder {
    color: rgba(144, 144, 144, 1);
}

/* Чекбокс */
.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 10px;
    letter-spacing: 0px;
    text-align: left;
    color: rgba(144, 144, 144, 1);
}

.checkbox-input {
    display: none; /* Скрываем стандартный чекбокс */
}

.checkbox-custom {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(194, 194, 194, 1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 1);
    margin-right: 10px;
    position: relative;
    display: inline-block;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 10px;
    border: 3px solid rgba(194, 194, 194, 1);
    border-top: none;
    border-right: none;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.checkbox-text {
    width: 160px;
    height: 20px;
}

/* Кнопка отправки */
.form-submit {
    width: auto;
    height: 52px;
    border-radius: 3px;
    background: rgba(70, 161, 40, 1);
    color: #fff;
    border: none;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background: rgba(56, 128, 32, 1);
}

/* Адаптивность для десктопа */
@media (min-width: 769px) {
    .modal-content {
        max-width: 400px;
    }
    .form-input,
    .form-submit {
        width: 100%;
    }
    .form-input, .form-submit {
        width: 95%;
    }
    .modal-content {
        max-width: 500px;
    }
    .form-submit {
        width: 200px;
        text-align: center;
        margin: 0 auto;
    }
    .checkbox-text {
        width: 2160px;
        height: 20px;
    }
}