/* ===== ОБЩИЕ СТИЛИ СТРАНИЦ ===== */
.page-title {
    font-size: 2.5rem;
    color: #5D4037;
    margin-bottom: 15px;
    text-align: center;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ===== СТРАНИЦА СТАТЕЙ ===== */
.articles-page {
    padding: 40px 0;
}

.articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    background: #F5F5F5;
    border: none;
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: #E0E0E0;
}

.filter-btn.active {
    background: #5D4037;
    color: white;
}

.articles-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 0 25px;
    background: #5D4037;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #3E2723;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 1;
    transition: opacity 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(93, 64, 55, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 25px;
}

.article-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.read-more {
    color: #5D4037;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #3E2723;
}

.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    border-color: #5D4037;
}

.pagination-btn.active {
    background: #5D4037;
    color: white;
    border-color: #5D4037;
}

.pagination-dots {
    padding: 0 10px;
}

.pagination-next {
    padding: 10px 20px;
    background: #5D4037;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-section {
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #FF8C42;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* ===== СТРАНИЦА ЗАКАЗА ===== */
.order-page {
    padding: 40px 0;
}

.order-steps {
    display: flex;
    justify-content: center;
    margin: 40px 0 50px;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% + 10px);
    width: 50px;
    height: 2px;
    background: #E0E0E0;
}

.step:last-child::after {
    display: none;
}

.step.active .step-number {
    background: #5D4037;
    color: white;
    border-color: #5D4037;
}

.step.active .step-text {
    color: #5D4037;
    font-weight: 500;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.order-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.order-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    color: #5D4037;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5D4037;
}

.product-selection {
    margin: 25px 0;
}

.product-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.product-option {
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.product-option:hover {
    border-color: #BDBDBD;
}

.product-option.active {
    border-color: #5D4037;
    background: rgba(93, 64, 55, 0.05);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: #5D4037;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-content h4 {
    margin-bottom: 5px;
    color: #333;
}

.option-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.option-price {
    font-weight: 600;
    color: #5D4037;
    font-size: 1.1rem;
}

.photo-upload {
    margin: 25px 0;
}

.upload-area {
    border: 2px dashed #BDBDBD;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.highlight {
    border-color: #5D4037;
    background: rgba(93, 64, 55, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: #BDBDBD;
    margin-bottom: 15px;
}

.upload-btn {
    display: inline-block;
    background: #5D4037;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    margin: 15px 0;
}

.upload-hint {
    color: #888;
    font-size: 0.9rem;
}

.uploaded-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.uploaded-photo {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.uploaded-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.order-summary {
    background: #F5F5F5;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5D4037;
}

.order-agreement {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    background: #5D4037;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #3E2723;
}

.btn-outline {
    background: white;
    color: #5D4037;
    border: 2px solid #5D4037;
}

.btn-outline:hover {
    background: #5D4037;
    color: white;
}

/* Боковая панель заказа */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-card h4 {
    color: #5D4037;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-list,
.guarantees-list {
    padding-left: 20px;
}

.process-list li,
.guarantees-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.guarantees-list i {
    color: #4CAF50;
    margin-right: 10px;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.support-contacts a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #F5F5F5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.support-contacts a:hover {
    background: #E0E0E0;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #333;
    margin-bottom: 15px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .order-container {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .product-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-steps {
        flex-wrap: wrap;
    }
    
    .step::after {
        display: none;
    }
    
    .articles-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .articles-search {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-input {
        padding: 15px;
    }
    
    .search-btn {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
}