/* Global Styles */
:root {
    --primary-color: #0c4da2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-info, .btn-add-to-cart, .btn-buy-now {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #083b84;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #1a2530;
    color: white;
}

.btn-info {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-add-to-cart {
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-add-to-cart:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-buy-now:hover {
    background-color: #c0392b;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover:after, .main-nav a.active:after {
    width: 100%;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(12, 77, 162, 0.9), rgba(44, 62, 80, 0.9)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background-color: white;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.advantage-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.advantage-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 60px 0;
    padding: 40px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-text {
    font-size: 1.1rem;
}

.cta-block {
    text-align: center;
    margin-top: 40px;
}

.cta-block h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* About Products Section */
.about-products {
    padding: 80px 0;
    background-color: #f0f4f8;
}

.about-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.certifications, .history-block {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.certifications h3, .history-block h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.certifications ul {
    padding-left: 20px;
}

.certifications li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.certifications li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: -15px;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: white;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.yield {
    font-size: 1rem;
    color: var(--success-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.description {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--gray-color);
    height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.product-actions button, .product-actions a {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    background-color: var(--accent-color);
    font-size: 1rem;
}

.newsletter-form button:hover {
    background-color: #c0392b;
}

/* User Letter */
.user-letter {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.letter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.letter-content:before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url('images/logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.letter-content h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.letter-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--light-color);
}

.footer-column p, .footer-column address {
    margin-bottom: 10px;
    font-style: normal;
    color: #b3b3b3;
}

.footer-column a {
    color: #b3b3b3;
}

.footer-column a:hover {
    color: white;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.company-info {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    z-index: 9999;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-cookie {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: white;
}

.btn-cookie.customize {
    background-color: var(--light-color);
    border: 1px solid var(--gray-color);
    color: var(--dark-color);
}

.btn-cookie.decline {
    background-color: var(--danger-color);
    color: white;
}

.cookie-more {
    font-size: 0.8rem;
    text-align: right;
}

.cookie-more a {
    color: var(--gray-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .btn-info {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
