/* ================================================
   Стили страницы категории
   ================================================ */

/* Hero-блок категории */
.category-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0 4rem;
    margin-bottom: 3rem;
}

.category-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.category-hero__h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.category-hero__lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 1.5rem;
}

.category-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-badge__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
}

.category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-hero__visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #718096;
}

.breadcrumbs a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.breadcrumbs__sep {
    color: #cbd5e0;
}

/* Фильтры */
.category-filters {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.filters-bar__count {
    font-size: 0.875rem;
    color: #4a5568;
}

.filters-bar__count strong {
    color: #1a1a1a;
    font-weight: 600;
}

.filters-bar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filters-bar__label {
    font-size: 0.875rem;
    color: #4a5568;
}

.filters-bar__select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filters-bar__select:hover {
    border-color: #a0aec0;
}

.filters-bar__select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Сетка товаров */
.category-products {
    margin-bottom: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card__img {
    position: relative;
    padding-top: 100%;
    background: #f7fafc;
    overflow: hidden;
}

.product-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.product-card__body {
    padding: 1.25rem;
}

.product-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.product-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem;
}

.product-card__desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #718096;
    margin: 0;
}

.product-card__footer {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Популярные модели */
.category-popular {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 3rem;
    color: #1a1a1a;
}

.popular-grid {
    display: grid;
    gap: 3rem;
}

.popular-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.popular-card__img {
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
}

.popular-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.popular-card__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 1.5rem;
}

.popular-card__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1.5rem;
}

.popular-card__actions {
    display: flex;
    gap: 1rem;
}

/* Блоки с карточками */
.category-tasks,
.category-advantages {
    background: #f7fafc;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.tasks-grid,
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.task-card,
.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s;
}

.task-card:hover,
.advantage-card:hover {
    transform: translateY(-4px);
}

.task-card__icon,
.advantage-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.task-card__title,
.advantage-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.task-card__text,
.advantage-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Калькулятор */
.category-calculator {
    background: white;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
}

.calculator-form__row {
    display: grid;
    grid-template-columns: 1fr 150px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-form__field {
    display: flex;
    flex-direction: column;
}

.calculator-form__field label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.calculator-form__field select,
.calculator-form__field input {
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.calculator-form__field select:focus,
.calculator-form__field input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.calculator-form__result {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-form__total {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.calculator-form__total strong {
    font-weight: 700;
    color: #48bb78;
}

.calculator-form__note {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.calculator-form__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Как заказать */
.category-howto {
    margin-bottom: 4rem;
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.howto-step__num {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.howto-step__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.howto-step__text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
}

/* Доставка и оплата */
.category-delivery {
    background: #f7fafc;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.delivery-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.delivery-block__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.delivery-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-block__list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4a5568;
    line-height: 1.5;
}

.delivery-block__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: 700;
}

/* SEO-текст */
.category-seo {
    margin-bottom: 4rem;
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #1a1a1a;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 1rem;
}

.seo-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* FAQ */
.category-faq {
    background: white;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.faq-item__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 3rem 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.faq-item__q:hover {
    color: #4299e1;
}

.faq-item__icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq-item__q[aria-expanded="true"] .faq-item__icon {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item__a p {
    padding: 0 0 1.5rem 0;
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
}

/* Оптовым */
.category-wholesale {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.wholesale-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.wholesale-block__title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem;
}

.wholesale-block__text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem;
}

.wholesale-block__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Связанные категории */
.category-usecases {
    margin-bottom: 4rem;
}

.category-related {
    margin-bottom: 4rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card__img {
    padding-top: 75%;
    position: relative;
    background: #f7fafc;
}

.related-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card__title {
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Финальный CTA */
.category-cta {
    background: #f7fafc;
    padding: 4rem 0;
}

.final-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.final-cta__text {
    font-size: 1.125rem;
    color: #4a5568;
    margin: 0 0 2rem;
}

.final-cta__contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.final-cta__contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.2s;
}

.final-cta__contact:hover {
    color: #4299e1;
}

.final-cta__contact-icon {
    font-size: 1.5rem;
}

.final-cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--primary {
    background: #4299e1;
    color: white;
}

.btn--primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn--secondary {
    background: white;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.btn--secondary:hover {
    background: #4299e1;
    color: white;
}

.btn--outline {
    background: transparent;
    color: #4299e1;
    border: 1px solid #4299e1;
}

.btn--outline:hover {
    background: #4299e1;
    color: white;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .category-hero__inner {
        grid-template-columns: 1fr;
    }
    
    .popular-card {
        grid-template-columns: 1fr;
    }
    
    .howto-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-hero__h1 {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .howto-steps {
        grid-template-columns: 1fr;
    }
    
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta__contacts {
        flex-direction: column;
        gap: 1rem;
    }
    
    .final-cta__actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
