/* Базовые переменные и сброс стилей */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

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

/* Общие стили компонентов */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

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

/* Стили шапки */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.phone a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

/* Главный экран */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background-color: var(--white);
}

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

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #666;
}

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

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

/* Карусель товаров */
.products-slider {
    padding: 20px 0;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.advantage-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Отзывы */
.reviews-slider {
    padding: 20px 0;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.review-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* О нас */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content img {
    width: 100%;
    border-radius: 10px;
}

/* Контакты */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

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

/* Подвал */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer a {
    color: var(--white);
    text-decoration: none;
}

.footer ul {
    list-style: none;
}

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

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card .description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.filters select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-width: 200px;
}

/* Блог */
.blog-grid {
    padding: 40px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

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

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

.blog-content {
    padding: 20px;
}

.blog-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.blog-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.full-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.full-article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.full-article h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    margin: 30px 0;
}

.article-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

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

    .full-article h1 {
        font-size: 28px;
    }

    .full-article img {
        height: 250px;
    }
}