*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: #0b5aa8; }

.site-header { border-bottom: 1px solid #eee; padding: 20px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 600; font-size: 1.25rem; text-decoration: none; color: inherit; }
.site-header nav a { margin-left: 20px; color: inherit; text-decoration: none; }

.hero { padding: 60px 0 40px; }
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 20px; max-width: 820px; }
.lead { font-size: 1.15rem; color: #444; max-width: 720px; }

.section { padding: 50px 0; border-top: 1px solid #f0f0f0; }
.section h2 { font-size: 1.6rem; margin-top: 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.card {
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: #555; font-size: 0.95rem; }

.site-footer { padding: 30px 0; border-top: 1px solid #eee; color: #666; font-size: 0.9rem; }
.site-footer p { margin: 0; }


/* ссылка-карточка */
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover { border-color: #0b5aa8; }

/* хлебные крошки */
.breadcrumbs { padding: 20px 0 0; font-size: 0.9rem; color: #666; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #bbb; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.filters a {
    padding: 8px 14px; border: 1px solid #ddd; border-radius: 20px;
    text-decoration: none; color: #333; font-size: 0.9rem;
}
.filters a:hover { border-color: #0b5aa8; color: #0b5aa8; }
.filters a.is-active { background: #0b5aa8; color: #fff; border-color: #0b5aa8; }

/* сетка и карточка товара */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0 40px;
}
.product-card {
    border: 1px solid #eee; border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column; background: #fff;
    transition: box-shadow .15s ease;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.product-card__link { text-decoration: none; color: inherit; display: block; }
.product-card img,
.product-card__placeholder {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f5f5f5;
}
.product-card__title { font-size: 1rem; margin: 12px 14px 4px; }
.product-card__desc  { font-size: 0.85rem; color: #666; margin: 0 14px 8px; }
.product-card__price { margin: auto 14px 14px; font-weight: 600; }

/* пагинация */
.pagination {
    display: flex; align-items: center; gap: 16px; justify-content: center;
    margin: 20px 0 60px; font-size: 0.95rem;
}
.pagination a { color: #0b5aa8; text-decoration: none; }
.pagination a:hover { text-decoration: underline; }

/* карточка товара */
.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; padding-top: 20px; }
.product__media img,
.product__placeholder {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    background: #f5f5f5; border-radius: 12px;
}
.product__info h1 { margin-top: 0; }
.product__price { font-size: 1.4rem; font-weight: 600; margin: 16px 0; }
.product__stock { font-size: 0.9rem; margin: 8px 0 20px; }
.product__stock--in  { color: #2e7d32; }
.product__stock--out { color: #b26a00; }
.product__cta { margin: 20px 0; }
.btn {
    display: inline-block; padding: 12px 22px; border-radius: 8px;
    background: #0b5aa8; color: #fff; text-decoration: none; font-weight: 600;
}
.btn:hover { background: #084a8a; }
.product__description { margin-top: 30px; color: #333; line-height: 1.7; }

@media (max-width: 720px) {
    .product { grid-template-columns: 1fr; gap: 20px; }
}

/* сетка статей */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0 40px;
}
.article-card {
    border: 1px solid #eee; border-radius: 10px; padding: 20px;
    display: flex; flex-direction: column; background: #fff;
    transition: box-shadow .15s ease;
}
.article-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.article-card__link { text-decoration: none; color: inherit; }
.article-card__link img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: 6px; margin-bottom: 12px; background: #f5f5f5;
}
.article-card__title { font-size: 1.05rem; margin: 0 0 8px; }
.article-card__excerpt { color: #555; font-size: 0.92rem; margin: 0 0 12px; flex: 1; }
.article-card__date { font-size: 0.82rem; color: #999; }

/* статья */
.article { max-width: 760px; }
.article h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 12px; }
.article__date { font-size: 0.9rem; color: #888; }
.article__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-block; padding: 4px 10px; border-radius: 16px;
    background: #eef4fb; color: #0b5aa8; font-size: 0.82rem; text-decoration: none;
}
.tag:hover { background: #dceaf8; }
.article__body { font-size: 1.05rem; line-height: 1.75; color: #222; margin-top: 24px; }
.article__body h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.article__body h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.article__body ul { padding-left: 22px; }
.article__body a { color: #0b5aa8; }

/* FAQ */
.article__faq { margin-top: 40px; }
.faq-item {
    border: 1px solid #eee; border-radius: 8px; padding: 14px 18px; margin-bottom: 10px;
    background: #fafafa;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 10px 0 0; color: #444; line-height: 1.65; }

.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: #fff; border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0,0,0,.06);
    padding: 12px 20px;
}
.cookie-banner__inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: #444; }

.product__main-image { display: block; }
.product__thumbs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.product__thumbs a { display: block; }
.product__thumbs img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 6px;
    border: 1px solid #eee;
}