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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Header */
header {
    background: #000;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Auth Section */
#auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vk-login-btn button {
    background: #4C75A3;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.vk-login-btn button:hover {
    background: #f39c12;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

#user-name {
    font-weight: 500;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Main Content */
main {
    padding: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(137, 101, 33, 0.7), rgba(248, 195, 93, 0.7)), url('IMG_1448.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

/* Hero section font sizing */
.hero-main-title {
    font-size: 3rem !important;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

.hero-description {
    font-size: 0.9rem;
    color: #bdc3c7;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Products Section */
.products {
    padding: 4rem 2rem;
    background: white;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: #f39c12;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.15);
    transform: translateY(-2px);
}

.product-card.featured {
    border-color: #f39c12;
    position: relative;
}

.product-card.featured:hover {
    border-color: #e67e22;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-header {
    position: relative;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-features li {
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.product-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-block {
    text-align: left;
}

.price {
    font-size: 1.4rem;
    color: #2c3e50;
    display: block;
}

.price-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

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

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-premium {
    background: #f39c12;
    color: white;
}

.btn-premium:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f39c12;
    color: white;
}

.btn-secondary:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
}

.step-icon {
    margin-bottom: 1.5rem;
}

.step-number {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-item p {
    color: #7f8c8d;
    line-height: 1.5;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.5;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
}

.notification-success { background: #27ae60; }
.notification-error { background: #e74c3c; }
.notification-info { background: #f39c12; }
.notification-warning { background: #f39c12; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-main-title {
        font-size: 2.2rem !important;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .products {
        padding: 3rem 1rem;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .how-it-works, .features {
        padding: 3rem 1rem;
    }
    
    .steps-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        margin: 0 -1rem;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .hero-main-title {
        font-size: 1.9rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
}