/* Dealpartner — СМЛ панели
   Цветовая гамма на основе логотипа: серо-стальной, бронза, синий
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* Основные цвета из логотипа */
    --steel: #5a6978;
    /* Серо-стальной основной */
    --steel-light: #8494a5;
    /* Светлый стальной */
    --steel-dark: #3d4a56;
    /* Тёмный стальной */
    --bronze: #b08d57;
    /* Бронзовый акцент */
    --bronze-light: #c9a46d;
    --blue: #2563eb;
    /* Синий для кнопок */
    --blue-dark: #1d4ed8;
    --teal: #1a4a5e;
    /* Сине-зелёный из логотипа */

    /* UI цвета */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;

    /* Семантические */
    --primary: var(--blue);
    --primary-dark: var(--blue-dark);
    --secondary: var(--steel);
    --accent: var(--bronze);
    --dark: var(--steel-dark);
    --text: var(--gray-700);
    --text-light: var(--gray-500);

    /* Тени и радиусы */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    height: 80px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 40px;
}

.logo img {
    height: 60px;
    width: auto;
}

.menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--primary);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-steel {
    background: var(--steel);
    color: white;
}

.btn-steel:hover {
    background: var(--steel-dark);
}

/* ========== HERO ========== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/sml_warehouse.png') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--steel-dark);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-steel {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--teal) 100%);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--steel-dark);
    margin-bottom: 16px;
}

.section-steel .section-title h2 {
    color: white;
}

.section-title p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-steel .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bronze);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card-content {
    padding: 24px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--steel-dark);
    margin-bottom: 8px;
}

.product-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-400);
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--steel-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== ADVANTAGES ========== */
.advantage-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.advantage-row:last-child {
    margin-bottom: 0;
}

.advantage-row.reverse {
    direction: rtl;
}

.advantage-row.reverse>* {
    direction: ltr;
}

.advantage-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.advantage-image img {
    width: 100%;
    height: auto;
    display: block;
}

.advantage-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--steel-dark);
    margin-bottom: 16px;
}

.advantage-content p {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.advantage-list {
    list-style: none;
}

.advantage-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--gray-700);
}

.advantage-list li i {
    color: #10b981;
    margin-top: 4px;
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--bronze);
    margin-bottom: 8px;
}

.section-steel .stat-item h3 {
    color: var(--bronze-light);
}

.stat-item p {
    font-size: 16px;
    color: var(--gray-500);
}

.section-steel .stat-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--teal) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
    background: var(--gray-50);
    padding: 60px 0 30px;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo img {
    height: 50px;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--steel-dark);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col>a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    margin-bottom: 12px;
}

.footer-col ul li a:hover,
.footer-col>a:hover {
    color: var(--primary);
}

.footer-col ul li i,
.footer-col>a i {
    margin-right: 10px;
    color: var(--steel-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-row {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 0;
    }

    .menu {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 16px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .advantage-row {
        grid-template-columns: 1fr;
    }

    .advantage-row.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 24px;
    }
}

/* ========== CATALOG PAGE ========== */
.catalog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.catalog-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== TABLE ========== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table th,
.specs-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.specs-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--steel-dark);
    font-size: 14px;
}

.specs-table td {
    color: var(--gray-600);
    font-size: 15px;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: var(--gray-50);
}

/* ========== CATALOG TABLE (COMPARISON) ========== */
.catalog-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.catalog-table th,
.catalog-table td {
    padding: 16px 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.catalog-table th:first-child,
.catalog-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.catalog-table thead th {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-table thead th:first-child {
    background: var(--gray-100);
    color: var(--steel-dark);
}

.catalog-table tbody td {
    color: var(--gray-700);
    font-size: 15px;
}

.catalog-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.catalog-table tbody tr:hover {
    background: #f0f9ff;
}