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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f0f4f8;
}

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

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

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #047857;
    white-space: nowrap;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

.auth-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn a {
    color: inherit;
    text-decoration: none;
}

.login-btn {
    background: #fff;
    color: #047857;
    border: 1.5px solid #047857;
}

.login-btn:hover {
    background: #ecfdf5;
}

.register-btn {
    background: #047857;
    color: #fff;
}

.register-btn:hover {
    background: #065f46;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 22px;
    height: 2.5px;
    background: #2d3748;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
    padding: 40px 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-main {
    padding: 14px 32px;
    background: #047857;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(4,120,87,0.3);
}

.btn-main:hover {
    background: #065f46;
    transform: translateY(-2px);
}

.btn-outline {
    padding: 14px 32px;
    background: #fff;
    color: #047857;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #047857;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #ecfdf5;
}


/* ===== CATALOG ===== */
.catalog {
    padding: 50px 0;
    background: #fff;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: #1a202c;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 32px;
    font-size: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #047857;
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f7fafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #047857;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.new {
    background: #3b82f6;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-desc {
    font-size: 13px;
    color: #718096;
    margin-bottom: 14px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #047857;
}

.btn-buy {
    padding: 8px 20px;
    background: #047857;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy:hover {
    background: #065f46;
}

.catalog-footer {
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #047857;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #047857;
    transition: all 0.2s;
}

.btn-more:hover {
    background: #ecfdf5;
}

/* ===== FEATURES ===== */
.features {
    padding: 50px 0;
    background: #f7fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

/* ===== REVIEWS PAGE ===== */
.reviews-page {
    padding: 60px 0;
    min-height: 80vh;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: #1a202c;
    margin-bottom: 12px;
}

.page-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
    font-size: 16px;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #fff;
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(4,120,87,0.2);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 20px;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 14px;
    opacity: 0.9;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.review-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #047857;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 14px;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #047857, #065f46);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    color: #1a202c;
    font-size: 16px;
}

.review-date {
    font-size: 13px;
    color: #a0aec0;
}

.review-rating {
    color: #fbbf24;
    font-size: 18px;
}

.review-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.review-form-section {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 24px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #047857;
}

.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: #047857;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-review-btn:hover {
    background: #065f46;
}

.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 16px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 2000;
    transition: bottom 0.3s;
}

.notification.show {
    bottom: 30px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 40px 0 24px;
}

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

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    color: #9ca3af;
}

.footer-links h4,
.footer-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

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

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-info p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.footer-info a {
    color: #10b981;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 60px auto;
    padding: 32px;
    border-radius: 12px;
    width: 92%;
    max-width: 420px;
    position: relative;
}

.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #2d3748;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 24px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #047857;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #065f46;
}

/* ===== PAGES COMMON STYLES ===== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 17px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 30px;
    font-weight: 500;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 32px 0 16px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 16px;
}

.page-content p b {
    color: #2d3748;
    font-weight: 600;
}

/* ===== RESPONSIVE (DESKTOP) ===== */
@media (min-width: 769px) {
    .burger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .hero-text {
        max-width: 600px;
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    
    .section-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile menu active state */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 16px;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
