/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- Сброс и переменные --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-orange: #F37A1F;
    --primary-orange-hover: #FF8C33;
    --dark-text: #222222;
    --bg-grey: #F9F9F9;
    --footer-dark: #333333;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Хедер --- */
header {
    display: flex;
    margin-top: 30px;
    margin-bottom: 60px;
    position: relative;
}

.header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 60px;
    min-width: 300px;
    z-index: 2;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Заглушка, если SVG не подгрузится локально */
.logo-icon img {
    width: 21rem;
    height: auto;
}

/* Если используем текст логотипа (на всякий случай) */
.logo-text {
    font-size: 64px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -2px;
    color: #000;
}
.logo-text span { font-weight: 700; }

.header-right {
    flex: 1.4;
    color: var(--white);
    padding: 15px 40px 15px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    min-width: 320px;
    position: relative;
}

.header-right-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 75vw;
    background-color: var(--primary-orange);
    z-index: -1;
    clip-path: polygon(60px 0, 100% 0, 100% 100%, 0% 100%);
}

.header-email {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    align-self: flex-end;
    position: relative;
}

.header-email:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
}

.header-desc {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.warranty {
    font-weight: 700;
    font-size: 20px;
    margin-top: 10px;
}

/* --- СЕТКА ТОВАРОВ (3 колонки) --- */
.products-grid {
    display: grid;
    /* 3 элемента в строку */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 2.5rem 0;
    /* Центрируем карточки в ячейках, если экран очень широкий */
    justify-items: center;
}

@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* --- УНИВЕРСАЛЬНАЯ КАРТОЧКА (CMS Ready) --- */
.product-card {
    background-color: var(--bg-grey);
    /* Фиксированные размеры по ТЗ */
    width: 335px;
    height: 324px;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Заголовок вверху, картинка внизу */

    /* Отступ только сверху для заголовка */
    padding: 25px 0 0 0;

    position: relative;
    transition: all 0.5s ease;
    /*cursor: pointer;*/
    overflow: visible; /* Чтобы тень при hover не обрезалась */
    text-decoration: none;
}

/* Заголовок */
.product-title {
    font-size: 24px; /* Чуть крупнее для соответствия макету */
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
    padding: 0 25px; /* Отступы по бокам для текста */
    z-index: 3;
}

/* Обертка для фото (нижняя часть карточки) */
.image-wrapper {
    width: 100%;
    height: 215px; /* Фиксированная высота по ТЗ */
    position: relative;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 212px;
    height: 128px;
    background-color: var(--primary-orange);
    z-index: 1;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover .image-wrapper::before {
    background-color: var(--primary-orange-hover);
}

.product-card:hover .image-wrapper::after {
    background-image: var(--bg-hover);
}



/* Специфические твики для разных типов картинок, если нужно,
   но в целом они теперь центрируются автоматически */
.img-lamp { margin-top: -20px; transform: scale(1.1); }
.img-linear { transform: rotate(-15deg); }

/* --- HOVER ЭФФЕКТЫ --- */
.product-card:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 15px 30px rgba(0,0,0,0.08);*/
    background-color: #fff; /* Опционально: белеет при наведении */
    scale: 1.1;
}
.product-card:hover .image-wrapper::before {
    background-color: var(--primary-orange-hover);
}
/* Сохраняем поворот для линейных при зуме */
.product-card:hover .img-linear {
    transform: rotate(-15deg) scale(1.1);
}

/* Добавляем свечение (как в прошлом варианте) */
.product-card:hover .image-wrapper::after {
    /*filter: brightness(1.1) drop-shadow(0 0 20px rgba(255,255,255,0.5));*/
}


/* --- РАЗДЕЛИТЕЛЬНАЯ ЛИНИЯ --- */
.line_bottom {
    width: 100%;
    height: 10px;
    background-color: var(--primary-orange);
    border: none;
    display: block;
}

/* --- ФУТЕР --- */
.footer-wrapper {
    width: 100%;
    background-color: #fff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    padding: 0 20px;
}

.contacts-block {
    flex: 1;
    position: relative;
    color: var(--white);
    padding: 50px 80px 50px 50px;
    min-width: 350px;
    z-index: 1;
}

.contacts-bg {
    position: absolute;
    width: 200vw;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    background-color: var(--footer-dark);
    z-index: -1;
    clip-path: polygon(0px 0px, 100% 0px, 97.77% 100.00%, 0% 100%);
}

.contacts-block h2 { font-size: 32px; margin-bottom: 40px; font-weight: 700; }
.contact-row { margin-bottom: 15px; font-size: 18px; }
.contact-row a { color: #fff; text-decoration: none; font-weight: 600; position: relative; }

.contact-row a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
}

.brands-block {
    flex: 1.5;
    background-color: var(--white);
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    min-width: 350px;
    justify-content: center;
}

.brands-block h2 { font-size: 32px; font-weight: 700; margin-bottom: 40px; }
.brands-logos { display: flex; gap: 50px; align-items: center; }
.brand-img { height: 100%; width: auto; opacity: 0.6; filter: grayscale(100%); transition: 0.3s; }
.brand-img:hover { opacity: 1; filter: grayscale(0%); }

.copyright-bar {
    background-color: var(--primary-orange);
    color: #000;
    text-align: right;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
}

.copyright-inner {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
}

/* Адаптив */
@media (max-width: 768px) {
    header { flex-direction: column; }
    .header-left { padding-right: 0; text-align: center; margin-bottom: 20px; }
    .header-right { text-align: center; padding: 40px 20px; }
    .header-right-bg { width: 100%; clip-path: none; left: 0; }
    .container {
        padding: 0;
    }
    .footer-inner { flex-direction: column; padding: 0; }
    .contacts-block { width: 100%; padding: 40px 20px; text-align: center; }
    .contacts-bg { width: 100%; clip-path: none; right: auto; left: 0; }

    .brands-block { padding: 40px 20px; text-align: center; }
    .brands-logos { justify-content: center; flex-wrap: wrap; }
    .copyright-bar { text-align: center; }
    .
}