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

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

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

/* ШАПКА */
.header {
    background: #0b3b2c;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo i {
    color: #ffb347;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: #ffb347;
    color: #0b3b2c;
}

/* КНОПКИ */
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #0d4e3a;
}

.btn-secondary {
    background: #ffb347;
    color: #0b3b2c;
}

.btn-secondary:hover {
    background: #ffa01e;
}

.btn-danger {
    background: #c0392b;
    color: white;
    padding: 5px 15px;
}

.cart-btn {
    background: #ffb347;
    border: none;
    color: #0b3b2c;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cart-count {
    background: #0b3b2c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ГЛАВНАЯ СТРАНИЦА */
.hero {
    background: linear-gradient(135deg, #0b3b2c, #1a6d50);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
}

.hero h1 span {
    color: #ffb347;
    display: block;
    font-size: 32px;
}

.hero p {
    font-size: 18px;
    margin: 20px 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat .number {
    font-size: 36px;
    font-weight: bold;
    color: #ffb347;
    display: block;
}

/* СТРАНИЦЫ (ПЕРЕКЛЮЧЕНИЕ) */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #0b3b2c;
    margin: 40px 0;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ffb347;
}

/* КАТАЛОГ И ФИЛЬТРЫ */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #0b3b2c;
    color: white;
    border-color: #0b3b2c;
}

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

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffb347;
    color: #0b3b2c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #f0f0f0;
    border-radius: 10px;
}

.product-title {
    font-size: 18px;
    color: #0b3b2c;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #0b3b2c;
    margin-bottom: 10px;
}

.product-min {
    background: #f0f7f4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #0b3b2c;
    margin-bottom: 15px;
    display: inline-block;
}

/* ЭТАПЫ ПРОИЗВОДСТВА */
.steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 60px 0;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid #ffb347;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step h3 {
    color: #0b3b2c;
    font-size: 26px;
    margin-bottom: 10px;
}

.step p {
    font-size: 16px;
    color: #334155;
    margin-bottom: 20px;
}

.step-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-photos img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #ffb347;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.step-photos img:hover {
    transform: scale(1.03);
}

/* КОРЗИНА */
.cart-items {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    text-align: right;
    padding: 30px;
    background: white;
    border-radius: 20px;
}

/* ЛИЧНЫЙ КАБИНЕТ */
.account-info {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.account-info p {
    margin: 10px 0;
    font-size: 18px;
}

.orders-history {
    background: white;
    border-radius: 20px;
    padding: 30px;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: bold;
    font-size: 18px;
    color: #0b3b2c;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-new {
    background: #ffb347;
    color: #0b3b2c;
}

.status-processing {
    background: #2196F3;
    color: white;
}

.status-completed {
    background: #4CAF50;
    color: white;
}

.status-declined {
    background: #f44336;
    color: white;
}

.order-date {
    color: #666;
    font-size: 14px;
}

/* МОДАЛЬНЫЕ ОКНА*/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* ФОРМЫ */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #ffb347;
}

/* ПОДВАЛ */
footer {
    background: #0b3b2c;
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: #ffb347;
    margin-bottom: 20px;
}

.footer-section i {
    width: 20px;
    margin-right: 10px;
    color: #ffb347;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ */
.loader {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.empty, .error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

.error {
    color: #c0392b;
}

.user-name {
    color: white;
    margin-right: 10px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0b3b2c;
        flex-direction: column;
        padding: 20px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .step-photos {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}