/* ===================================
   CSS Variables & Reset
=================================== */
:root {
    --primary: #0A2463;
    --secondary: #1E4D8C;
    --accent: #FF6B35;
    --light: #F5F7FA;
    --dark: #1A1A2E;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===================================
   Header
=================================== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.logo-text span {
    color: var(--secondary);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary);
}

nav a:hover::after {
    width: 100%;
}

.header-contact .contact-btn {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.header-contact .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* ===================================
   Hero Section
=================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    margin-top: 88px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background: #e55a2b;
}

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

.btn-secondary:hover {
    background: var(--light);
}

/* ===================================
   Stats Section
=================================== */
.stats {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 15px;
}

/* ===================================
   Section Styles
=================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* ===================================
   Products Section
=================================== */
.products {
    background: var(--light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-img {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 64px;
}

.product-content {
    padding: 28px;
}

.product-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
}

.product-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.spec-tag {
    background: var(--light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--secondary);
    font-weight: 500;
}

.product-link {
    color: var(--accent);
    font-weight: 500;
    transition: var(--transition);
}

.product-link:hover {
    color: #e55a2b;
}

/* ===================================
   Advantages Section
=================================== */
.advantages {
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 40px 32px;
    border-radius: 16px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--light);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
    font-size: 36px;
}

.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
}

.advantage-item p {
    color: var(--text-light);
}

/* ===================================
   News Section
=================================== */
.news {
    background: var(--light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-date {
    background: var(--accent);
    color: var(--white);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

.news-content {
    padding: 24px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.news-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

/* ===================================
   Contact Section
=================================== */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.contact .section-header h2,
.contact .section-header p {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item p {
    opacity: 0.85;
    font-size: 15px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #e55a2b;
}

/* ===================================
   Footer
=================================== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 24px;
}

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

.footer-brand p {
    opacity: 0.7;
    margin-top: 16px;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* ===================================
   Page Header (for sub-pages)
=================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
    margin-top: 88px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===================================
   Products Page
=================================== */
.products-page {
    padding: 60px 0;
}

.products-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-detail-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-img {
    height: 300px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.product-detail-content {
    padding: 32px;
}

.product-detail-content h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 16px;
}

.product-detail-content p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--light);
}

.specs-table td {
    padding: 12px 0;
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--dark);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-light);
}

/* ===================================
   About Page
=================================== */
.about-page {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 16px;
}

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

.about-stat-card {
    background: var(--light);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.about-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
}

.about-stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   News Page
=================================== */
.news-page {
    padding: 60px 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-list-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 200px 1fr;
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-list-img {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    min-height: 200px;
}

.news-list-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-content h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 12px;
}

.news-list-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ===================================
   Contact Page
=================================== */
.contact-page {
    padding: 60px 0;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-page-info {
    background: var(--light);
    padding: 40px;
    border-radius: 16px;
    height: fit-content;
}

.contact-page-info h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 24px;
}

.contact-page-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* ===================================
   Responsive
=================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .advantages-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-detail-grid,
    .about-content,
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-list-item {
        grid-template-columns: 1fr;
    }
    
    .news-list-img {
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .stats-grid,
    .products-grid,
    .advantages-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}
