/* Reset and Base Styles */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5db8;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo > img {
    max-width: 30px;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #6b7bd6;
}

.cart-icon {
    cursor: pointer;
    color: #4a5db8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: stroke 0.3s;
}

.cart-icon:hover svg {
    stroke: #ff6f47;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
    url('assets/hero-connectors.png') center/cover no-repeat;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #ff6f47;
    color: white;
}

.btn-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 71, 0.4);
}

.btn-cart {
    background: #6b7bd6;
    color: white;
    width: 100%;
}

.btn-cart:hover {
    background: #5a6bc5;
}

/* Section */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    color: #4a5db8;
}

/* Hits Section */
.hits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hit-card {
    border-radius: 8px;
    padding: 40px;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.hit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 93, 184, 0.3);
}

.hit-card-large {
    background: linear-gradient(135deg, #4a5db8 0%, #6b7bd6 100%);
}

.hit-card-dark {
    background: linear-gradient(135deg, #3d4db0 0%, #5a6bc5 100%);
}

.hit-card-accent {
    background: linear-gradient(135deg, #5564c9 0%, #7484e3 100%);
}

.hit-card-dark-2 {
    background: linear-gradient(135deg, #2c3a8f 0%, #4a5db8 100%);
}

.hit-card-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hit-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hit-card-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.link-arrow {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.link-arrow:hover {
    opacity: 0.8;
}

/* Catalog Categories */
.catalog-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.category-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #6b7bd6;
    color: white;
    transform: translateY(-5px);
    border-color: #4a5db8;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-item p {
    font-weight: 600;
    font-size: 0.9rem;
}

.product-image {
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 10px;
    background: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.product-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

/* Products Section */
.products-section {
    background: #f8f9fa;
}

.products-section:nth-child(even) {
    background: #fff;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(74, 93, 184, 0.2);
    border-color: #6b7bd6;
}

.product-image {
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.product-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 80px;
    color: #2c3e50;
    font-weight: 600;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a5db8;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.faq-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e8ebff;
}

.faq-item {
    padding: 20px 30px;
    border-bottom: 1px solid #e8ebff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:last-of-type {
    border-bottom: 1px solid #e8ebff;
}

.faq-item:hover {
    background: #f0f2ff;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5db8;
}

.faq-arrow {
    font-size: 1.5rem;
    color: #6b7bd6;
    transition: transform 0.3s;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #fafbff;
    padding: 0 30px;
}

.faq-content.active {
    max-height: 500px;
    padding: 20px 30px;
    border-bottom: 1px solid #e8ebff;
}

.faq-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

/* Contacts Section */
.contacts-section {
    background: white;
}

.contact-details {
    max-width: 600px;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

.contact-details p strong {
    color: #4a5db8;
}

.contact-details a {
    color: #4a5db8;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #6b7bd6;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4a5db8 0%, #3d4db0 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-content > .footer-column:last-child {
    justify-self: flex-end;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ff6f47;
}

.footer-column p {
    color: rgba(255,255,255,0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .catalog-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-menu {
        gap: 1rem;
        padding: 20px 0;
    }

    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hits-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.25em;
    }

    .faq-item {
        padding: 15px 20px;
    }

    .faq-item h3 {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column-reverse;
    }

    .footer-content > .footer-column, .footer-content > .footer-column:last-child, .footer-content > .footer-column > * {
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}