/*
Theme Name: Vodmat Custom Theme
Author: Vodmat
Description: Кастомная тема для завода ВОДМАТ
Version: 1.0
*/

:root {
    --primary: #00AEEF;
    --primary-hover: #008CC2;
    --dark: #2C3E50;
    --light: #f8fafc;
    --muted: #64748b;
}
body {
    margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--dark); background: #ffffff; line-height: 1.6;
}
.container { max-width: 100%; margin: 0 auto; padding: 0 20px; }

.section-title{display: none;}

/* ШАПКА */
.custom-header { background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 1; left: 0; z-index: 9999; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-area { font-size: 24px; font-weight: 800; color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 45px; width: auto; }
.logo-area span { color: var(--primary); }
//.custom-nav { display: flex; gap: 25px; }
.custom-nav {display: flex;align-items: center;}
/* Жестко выстраиваем список в строку */
.custom-nav ul {
    display: flex !important; 
    flex-direction: row !important;
    gap: 25px;
    list-style: none !important; /* Убираем точки */
    margin: 0 !important;
    padding: 0 !important;
}

.custom-nav li{
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
}

.custom-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
    padding-bottom: 5px; /* Отступ для красивой полоски снизу */
    border-bottom: 2px solid transparent; /* Прозрачная полоска по умолчанию */
}

/* Эффект при наведении */
.custom-nav a:hover { 
    color: var(--primary); 
}

/* Подсветка текущей страницы (когда клиент находится на этой странице) */
.custom-nav .current-menu-item > a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.custom-nav a { color: var(--dark); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.3s; }
.custom-nav a:hover { color: var(--primary); }
.header-contacts { text-align: right; }
.header-phone { font-weight: 700; color: var(--dark); text-decoration: none; font-size: 16px; }
.header-subtext { font-size: 12px; color: var(--muted); margin: 0; }

/* ОБЩИЕ КНОПКИ */
.btn { padding: 15px 30px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e2e8f0; color: var(--dark); }
.btn-secondary:hover { background: #cbd5e1; }

/* ЗАГОЛОВКИ */
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 50px; margin-top: 0; }

/*HERO section*/
.hero-section {
        background: linear-gradient(135deg, #ffffff 0%, var(--light) 100%);
        padding: 160px 0 80px 0;
    }
    .hero-wrap {
        display: flex;
        align-items: center;
        gap: 50px;
    }
    .hero-content { flex: 1.2; }
    
    .hero-image-wrap { flex: 1; } 
    .hero-image-wrap img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

    .badge {
        background: rgba(0, 174, 239, 0.1);
        color: var(--primary);
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 20px;
    }
    .hero-content h1 {
        font-size: 44px;
        line-height: 1.2;
        margin: 0 0 20px 0;
        font-weight: 800;
    }
    .hero-content p {
        font-size: 18px;
        color: var(--muted);
        margin-bottom: 35px;
    }
    .hero-actions { display: flex; gap: 15px; margin-bottom: 40px; }

    .hero-features {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 25px;
        flex-wrap: wrap;
    }
    .hero-features li { font-weight: 500; font-size: 15px; }

/* 3. КАТАЛОГ ПРОДУКЦИИ */
    .section-title {
        text-align: center;
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 50px;
    }
    .catalog-section { padding: 80px 0; background: #ffffff; }
    .catalog-grid {
        display: flex;
        gap: 30px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .catalog-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 30px;
        flex: 1;
        min-width: 300px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.3s, box-shadow 0.3s;
    }
    .catalog-card:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    .card-img-container {
        width: 100%;
        height: 220px;
        background: #f1f5f9;
        border-radius: 8px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .card-img-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
        box-sizing: border-box;
    }
    .card-title { font-size: 22px; font-weight: 700; margin: 0 0 10px 0; }
    .card-tag { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
    .card-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
    .card-price { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: var(--dark); }
    
    /* 4. БЛОК КАЛЬКУЛЯТОРА */
    .calc-section { padding: 80px 0; background: var(--light); }
    .calc-container {
        background: #ffffff;
        border-radius: 16px;
        padding: 40px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        max-width: 800px;
        margin: 0 auto;
    }
    .calc-row { margin-bottom: 30px; }
    .calc-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
    .calc-slider {
        width: 100%;
        height: 6px;
        background: #e2e8f0;
        border-radius: 5px;
        outline: none;
        -webkit-appearance: none;
    }
    .calc-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: var(--primary);
        border-radius: 5px;
        cursor: pointer;
    }
    .calc-result-box {
        background: rgba(0, 174, 239, 0.05);
        border: 1px dashed var(--primary);
        border-radius: 8px;
        padding: 25px;
        text-align: center;
        margin-top: 30px;
    }
    .result-title { font-size: 16px; font-weight: 600; color: var(--muted); }
    .result-value { font-size: 36px; font-weight: 800; color: var(--primary); margin: 5px 0; }
/* 5. БЛОК ОТЗЫВОВ */
    .reviews-section { padding: 80px 0; background: #ffffff; }
        .reviews-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    .review-card {
        background: var(--light);
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .production-section { padding: 80px 0; background: var(--light); }
    .production-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 250px; /* Фиксируем высоту строк для ровной сетки */
        gap: 20px;
    }
    .production-img-large {
        grid-row: span 2; /* Большое фото занимает 2 строки в высоту */
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .production-img-small {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .production-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Фото заполняет блок без искажений */
        transition: transform 0.4s ease;
    }
    .production-grid img:hover {
        transform: scale(1.05); /* Легкий зум при наведении */
    }



/* ПОДВАЛ */
.custom-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 30px 0; font-size: 14px; margin-top: 60px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; border-bottom: 1px solid #334155; padding-bottom: 40px; margin-bottom: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.footer-col p { line-height: 1.6; color: #94a3b8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: #64748b; font-size: 13px; }
.footer-legal a { color: #64748b; text-decoration: underline; margin-left: 20px; }

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); display: none; justify-content: center; align-items: center; z-index: 10000; }
.modal-content { background: #fff; padding: 40px; border-radius: 12px; width: 100%; max-width: 400px; position: relative; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); box-sizing: border-box; margin: 0 20px; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: var(--muted); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.form-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.form-submit { width: 100%; margin-top: 10px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 12px 15px; border-bottom: 1px solid #e2e8f0; font-size: 14px; color: #334155; }
.specs-table td:first-child { font-weight: 600; color: #64748b; width: 50%; }

/* === СТИЛИ ДЛЯ СТРАНИЦ ТОВАРОВ === */
.product-page {
    padding: 120px 0 60px 0; /* Отступ сверху из-за фиксированной шапки */
}
.product-hero {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.product-hero-img {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}
.product-hero-content {
    flex: 1;
}
.product-hero-content h1 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}
.product-hero-content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 30px;
}

/* Таблица характеристик на странице */
.product-specs-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}
.product-specs-table tr:nth-child(even) {
    background-color: var(--light);
}
.product-specs-table td {
    padding: 16px 25px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}
.product-specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 40%;
}
.product-specs-table td:last-child {
    color: var(--muted);
}

/* Блок с формой */
.product-cta {
    background: var(--light);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.product-cta h3 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 15px;
}
.product-cta p {
    color: var(--muted);
    margin-bottom: 30px;
}
.product-form-wrap {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.product-form-wrap input {
    flex: 1;
    min-width: 200px;
}


/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .header-wrap { height: 60px; }
    //.custom-nav { display: none; } 
    .custom-nav, .custom-nav ul {display: none !important;  }
    .header-contacts { display: block; text-align: right; }
    .header-phone { font-size: 14px; }
    .header-subtext { display: none; }
    .logo-area { font-size: 18px; gap: 5px; }
    .logo-area img { height: 30px; }
    .section-title { font-size: 24px; margin-bottom: 30px; }
    .footer-grid { flex-direction: column; gap: 30px; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .footer-legal a { margin: 0 10px; display: inline-block; }
    .modal-content { padding: 25px 20px; width: calc(100% - 30px); margin: 15px auto; max-height: 90vh; overflow-y: auto; }
    .product-hero {        flex-direction: column;    }
    .product-hero-content h1 {        font-size: 28px;    }
    .product-specs-table td {        padding: 12px 15px;        font-size: 14px;    }
    .product-cta {        padding: 30px 20px;    }
}
