/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4944;
    --secondary-color: #606467;
    --dark-bg: #1C1D22;
    --light-bg: #AAA8AD;
    --text-dark: #1C1D22;
    --text-light: #3a3a3a;
    --white: #FFFFFF;
    --accent: #E62815;
}

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #e1e0df;
    font-size: 17px;
}

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

/* Навигация */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 1.1rem;
}

.btn-contact:hover {
    background-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* Герой секция */
.hero {
    background-color: #313B44;
    color: var(--white);
    padding: 40px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch;
    min-height: 500px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-text {
    background-color: #8B4944;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 2rem;
}

.hero-text-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.hero-label {
    display: inline-block;
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-transform: uppercase;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 1;
    margin-bottom: 1.5rem;
}

.hero-benefits {
    margin-top: auto;
    padding-top: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.benefit-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.benefit-title {
    font-weight: 600;
    font-size: 1rem;
}

.benefit-desc {
    font-size: 0.95rem;
    opacity: 0.95;
}

.benefit-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.hero-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px;
}

.stat-card h2 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #8B4944;
}

.stat-card p {
    font-size: 1rem;
    color: #2a2a2a;
    line-height: 1.5;
    font-weight: 500;
}

.stat-button {
    background-color: #606467;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
    height: 60px;
    width: 100%;
}

.stat-button:hover {
    background-color: #8B4944;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.stat-rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.star {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-image {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 200px;
    width: 100%;
    flex: 1;
}

.stat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    object-position: center;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 1.5rem;
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-details {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-details:hover {
    background-color: var(--primary-color);
}

/* Секции */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    font-weight: 500;
}

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

/* Фичи */
.features {
    background-color: #1C1D22;
    color: var(--white);
    text-align: center;
    padding: 50px 0;
}

.features .section-title {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.features .section-subtitle {
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Товары */
.products-preview {
    background-color: #e1e0df;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.product-card {
    background-color: var(--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;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

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

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    flex-shrink: 0;
    font-weight: 600;
}

.product-description {
    color: #2a2a2a;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    font-size: 1.15rem;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* Почему мы */
.why-us {
    background-color: var(--light-bg);
}

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

.feature-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.feature-item h3 {
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.feature-item p {
    color: #2a2a2a;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Футер */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-size: 1.05rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.95;
    transition: opacity 0.3s;
    font-size: 1.05rem;
}

.footer-section ul li a:hover {
    opacity: 1;
}

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

/* Плавающая кнопка */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 999;
}

.contact-float:hover {
    transform: scale(1.1);
}

/* Алерты */
.alert {
    padding: 1rem;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

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

.category-card h3 {
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Форма */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.15rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.15rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Детальная страница товара */
.product-detail {
    background-color: #e1e0df;
    padding: 60px 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
    min-height: 600px;
}

.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    margin-bottom: 2rem;
    line-height: 1.9;
    color: #2a2a2a;
    flex-grow: 1;
    font-size: 1.2rem;
}

.product-specifications {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-specifications h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

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

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.spec-value {
    color: #2a2a2a;
    font-size: 1.1rem;
}

/* Статьи */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    font-size: 1.4rem;
}

.article-date {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-excerpt {
    color: #2a2a2a;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Детальная страница статьи */
.article-detail {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-detail h1 {
    margin-bottom: 1rem;
}

.article-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.article-detail-content {
    line-height: 1.8;
    color: var(--text-dark);
}

/* О компании */
.about-content {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Дополнительные стили для категорий */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    color: var(--white);
    padding: 60px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-header .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.categories-section, .products-section, .articles-section, .about-section {
    padding: 60px 0;
    background-color: #e1e0df;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.no-products, .no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #2a2a2a;
    font-size: 1.3rem;
}

/* Стили для контактной информации */
.contact-section {
    padding: 60px 0;
    background-color: #e1e0df;
}

.contact-info {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.info-items {
    display: grid;
    gap: 20px;
}

.info-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Стили для CTA секции товара */
.product-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.product-cta .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.product-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 2rem;
}

/* Навигационное меню активное состояние */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-benefits {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .benefit-item {
        font-size: 1rem;
    }
    
    .benefit-title {
        font-size: 1rem;
    }
    
    .benefit-desc {
        font-size: 0.9rem;
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .hero-stats {
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-image {
        height: 250px;
    }

    .products-grid,
    .categories-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .product-description {
        font-size: 1.1rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
    }
    
    .btn-details {
        font-size: 1.05rem;
        padding: 0.7rem 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.05rem;
    }

    .product-actions {
        flex-direction: column;
    }
}
