:root {
    --dark: #1A1A2E;
    --gold: #C9A96E;
    --gold-hover: #b8943f;
    --gold-dark: #8B6914;
    --cream: #FAF6F0;
    --brown: #2C1810;
    --text: #2D2D2D;
    --terracotta: #C47B5A;
    --green: #6B7D5C;
    --gray: #888;
    --light-gray: #f5f1e8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--dark);
    font-weight: 700;
}

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

/* ============ ШАПКА ============ */
.header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav a:hover, .nav a.active {
    color: var(--gold);
}

/* ============ КНОПКИ ============ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #fff;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--brown) 100%);
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ СЕКЦИИ ============ */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

/* ============ КАТЕГОРИИ ============ */
.categories {
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-card h3 {
    padding: 15px 15px 15px;
    font-size: 20px;
    text-align: center;
}

/* ============ ПРЕИМУЩЕСТВА ============ */
.benefits {
    background: var(--light-gray);
}

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

.benefit {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.benefit h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 14px;
    color: #666;
}

/* ============ ТОВАРЫ ============ */
.featured {
    background: #fff;
}

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

.product-card {
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-info h3 {
    font-size: 20px;
    margin: 5px 0;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

/* ============ БЛОГ ============ */
.blog-preview {
    background: var(--light-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 13px;
    color: var(--gray);
    margin-top: 10px;
}

/* ============ ФОРМА ============ */
.lead-form {
    background: var(--dark);
    color: #fff;
}

.lead-form h2 {
    color: #fff;
}

.lead-form p {
    text-align: center;
    margin-bottom: 30px;
    color: #ccc;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2A2A3E;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form select option {
    background: var(--dark);
    color: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ccc;
}

.contact-form .checkbox input {
    width: auto;
    margin: 0;
}

/* ============ ФУТЕР ============ */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 20px;
}

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

.footer-col h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-col p {
    font-size: 14px;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ============ КАТАЛОГ ============ */
.catalog {
    background: #fff;
    padding: 40px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--text);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter:hover {
    background: var(--gold);
    color: #fff;
}

.filter.active {
    background: var(--gold);
    color: #fff;
}

/* ============ СТРАНИЦА ТОВАРА ============ */
.product-page {
    background: #fff;
    padding: 40px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumb.active {
    border-color: var(--gold);
}

.product-info h1 {
    font-size: 36px;
    margin: 10px 0;
}

.product-info .product-price {
    font-size: 32px;
    margin: 15px 0;
}

.product-description {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.product-description h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.product-specs {
    margin: 15px 0;
    font-size: 15px;
}

.product-specs strong {
    color: var(--dark);
}

.product-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 10px;
}

/* ============ SEO-СТРАНИЦЫ ============ */
.seo-page {
    background: #fff;
    padding: 40px 0;
}

.seo-page h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.seo-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin-bottom: 30px;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.seo-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.seo-links a:hover {
    background: var(--gold);
    color: #fff;
}

.seo-text {
    margin-top: 40px;
    max-width: 800px;
}

.seo-text h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    text-align: left;
}

.seo-text h3 {
    font-size: 22px;
    margin: 25px 0 10px;
}

.seo-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.seo-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.seo-text li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

/* ============ БЛОГ СТРАНИЦА ============ */
.blog-page {
    background: #fff;
    padding: 40px 0;
}

.blog-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
}

.blog-card-content {
    padding: 0 0 15px;
}

/* ============ СТАТЬЯ ============ */
.post-page {
    background: #fff;
    padding: 40px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 15px;
}

.back-link:hover {
    color: var(--gold-hover);
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content {
    max-width: 800px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.post-content p {
    margin-bottom: 15px;
}

/* ============ ОБ АВТОРЕ ============ */
.about-page {
    background: #fff;
    padding: 40px 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: 8px;
}

.about-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-subtitle {
    font-size: 18px;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-techniques {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.about-techniques h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.about-techniques ul {
    padding-left: 20px;
}

.about-techniques li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}

/* ============ КОНТАКТЫ ============ */
.contacts {
    background: #fff;
    padding: 40px 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
}

.selected-product {
    background: var(--light-gray);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contacts-info {
    margin-top: 40px;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 8px;
}

.contacts-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold-hover);
}

.faq {
    margin-top: 40px;
}

.faq h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: left;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 15px;
    color: #555;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .seo-page h1 {
        font-size: 32px;
    }
    
    .seo-links {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image img {
        height: 250px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
}