/* ===== PRODUCTS PAGE STYLES ===== */

/* Hero section для продуктов */
.products-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg,
        rgba(108, 99, 255, 0.1) 0%,
        rgba(108, 99, 255, 0.05) 50%,
        transparent 100%);
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
}

.products-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.products-hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.products-hero__title-accent {
    display: block;
    background: linear-gradient(135deg, var(--color-electric-lavender) 0%, #8B85FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Фильтры */
.filters-section {
    padding: 3rem 0;
    background: var(--color-dark-slate);
    border-top: 1px solid var(--color-graphite);
    border-bottom: 1px solid var(--color-graphite);
}

.filters__header {
    text-align: center;
    margin-bottom: 2rem;
}

.filters__title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.filters__subtitle {
    color: var(--color-gray);
    font-size: 1rem;
}

.filters__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-graphite);
    border: 1px solid var(--color-gray-dark);
    border-radius: var(--border-radius-small);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.filter-select:hover {
    border-color: var(--color-electric-lavender);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-electric-lavender);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.filters__results {
    text-align: center;
}

.results-count {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.results-count span {
    color: var(--color-white);
    font-weight: 600;
}

/* Каталог продуктов */
.products-catalog {
    padding: 4rem 0;
    background: var(--color-deep-space);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-dark-slate);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-graphite);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-electric-lavender);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.product-card__header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card__number {
    color: var(--color-gray);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--color-graphite);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge--complexity {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.badge--низкий {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge--средний {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge--высокий {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge--price {
    background: rgba(108, 99, 255, 0.2);
    color: var(--color-electric-lavender);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.product-card__body {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
    line-height: 1.3;
}

.product-card__category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(108, 99, 255, 0.05);
    border-radius: var(--border-radius-small);
    border-left: 3px solid var(--color-electric-lavender);
}

.category-label {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.category-value {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.9rem;
}

.product-card__description {
    margin-bottom: 1.5rem;
}

.product-card__description p {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Стили для скрываемых ключевых функций */
.features-collapsible {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    border: 1px solid var(--color-graphite);
}

.features-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.features-toggle:hover {
    background: rgba(108, 99, 255, 0.1);
}

.features-toggle__text {
    color: var(--color-white);
}

.features-toggle__icon {
    color: var(--color-electric-lavender);
    transition: transform 0.3s ease;
}

.features-toggle.active .features-toggle__icon {
    transform: rotate(180deg);
}

.features-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(10, 10, 10, 0.5);
}

.features-content.active {
    max-height: 500px;
}

.features-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.feature-item {
    color: var(--color-gray-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-electric-lavender);
    font-weight: bold;
}

.feature-item:last-child {
    margin-bottom: 0;
}

/* Стили для секции "Подробнее" */
.details-collapsible {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    border: 1px solid var(--color-graphite);
}

.details-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.details-toggle:hover {
    background: rgba(108, 99, 255, 0.1);
}

.details-toggle__text {
    color: var(--color-white);
}

.details-toggle__icon {
    color: var(--color-gray);
    transition: transform 0.3s ease;
}

.details-toggle.active .details-toggle__icon {
    transform: rotate(180deg);
    color: var(--color-electric-lavender);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(10, 10, 10, 0.5);
}

.details-content.active {
    max-height: 500px;
}

.details-info {
    padding: 1rem;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.details-item:last-child {
    margin-bottom: 0;
}

.details-item__label {
    color: var(--color-gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.details-item__value {
    color: var(--color-gray-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.details-item--benefit {
    background: linear-gradient(135deg,
        rgba(108, 99, 255, 0.1) 0%,
        rgba(108, 99, 255, 0.05) 100%);
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    border-left: 3px solid var(--color-electric-lavender);
}

.details-item--benefit .details-item__value {
    color: var(--color-white);
    font-size: 0.95rem;
}

.product-card__footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-graphite);
    background: rgba(10, 10, 10, 0.5);
}

.product-card__cta {
    display: flex;
    gap: 1rem;
}

.btn--block {
    flex: 1;
    text-align: center;
}

/* Сравнение решений */
.comparison-section {
    padding: 4rem 0;
    background: var(--color-dark-slate);
    border-top: 1px solid var(--color-graphite);
    border-bottom: 1px solid var(--color-graphite);
}

.comparison-table__wrapper {
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px;
}

.comparison-table__content {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: var(--color-deep-space);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table__content th,
.comparison-table__content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-graphite);
}

.comparison-table__content th {
    background: var(--color-graphite);
    color: var(--color-white);
    font-weight: 600;
    position: sticky;
    left: 0;
}

.comparison-table__content th:first-child {
    width: 200px;
}

.comparison-table__content tr:hover td {
    background: rgba(108, 99, 255, 0.05);
}

.comparison-table__content td {
    color: var(--color-gray-light);
    background: var(--color-dark-slate);
}

.comparison-table__content td:first-child {
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-graphite);
    position: sticky;
    left: 0;
    z-index: 1;
}

.complexity-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.complexity-badge--низкий {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.complexity-badge--средний {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.complexity-badge--высокий {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

/* CTA секция для продуктов */
.products-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg,
        var(--color-dark-slate) 0%,
        var(--color-deep-space) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
        rgba(108, 99, 255, 0.1) 0%,
        transparent 70%);
}

.products-cta__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.products-cta__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg,
        var(--color-white) 0%,
        var(--color-gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-cta__description {
    font-size: 1.25rem;
    color: var(--color-gray-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--color-dark-slate);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-graphite);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-graphite);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background: var(--color-electric-lavender);
    transform: rotate(90deg);
}

.modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.modal__body::-webkit-scrollbar {
    width: 8px;
}

.modal__body::-webkit-scrollbar-track {
    background: var(--color-graphite);
}

.modal__body::-webkit-scrollbar-thumb {
    background: var(--color-electric-lavender);
    border-radius: 4px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
    background: var(--color-electric-lavender-hover);
}

/* Стили для модального окна продукта */
.modal-product {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-product__header {
    text-align: center;
    border-bottom: 1px solid var(--color-graphite);
    padding-bottom: 2rem;
}

.modal-product__badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-product__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.modal-product__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.modal-product__separator {
    color: var(--color-electric-lavender);
}

.modal-product__body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-product__section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-small);
    padding: 1.5rem;
    border: 1px solid var(--color-graphite);
}

.modal-product__section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-product__section-title::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--color-electric-lavender);
    border-radius: 3px;
}

/* Упрощенные карточки */
.product-card--compact {
    height: auto;
    min-height: 320px;
    transition: all 0.2s ease;
}

.product-card--compact .product-card__header {
    padding: 1rem 1rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card--compact .product-card__number {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    order: -1;
}

.product-card--compact .product-card__body {
    padding: 1rem;
}

.product-card--compact .product-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card--compact .product-card__category {
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.product-card--compact .product-card__description p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Упрощенные кнопки */
.product-card--compact .product-card__footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card--compact .product-card__cta .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Уменьшаем отступы сетки */
.products-grid--compact {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Описание агентства */
.agency-description {
    padding: 4rem 0;
    background: var(--color-deep-space);
    border-bottom: 1px solid var(--color-graphite);
}

.agency-description__content {
    max-width: 800px;
    margin: 0 auto;
}

.agency-description__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agency-description__text {
    background: rgba(108, 99, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--color-graphite);
    margin-bottom: 2rem;
}

.agency-description__lead {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.agency-description__paragraph {
    color: var(--color-gray-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.agency-description__paragraph:last-child {
    margin-bottom: 0;
}

.agency-description__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-card {
    background: var(--color-dark-slate);
    padding: 1.5rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--color-graphite);
}

.stat-card__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-electric-lavender);
    margin-bottom: 0.5rem;
}

.stat-card__label {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* Процесс внедрения */
.implementation-process {
    padding: 4rem 0;
    background: var(--color-dark-slate);
    border-bottom: 1px solid var(--color-graphite);
}

.implementation-process__subtitle {
    text-align: center;
    color: var(--color-gray-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.implementation-process .process-step__number {
    font-size: 3.5rem; /* Увеличиваем размер */
    font-weight: 800; /* Делаем жирнее */
    color: var(--color-electric-lavender-brighter); /* Основной цвет */
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}

.process-step {
    background: var(--color-graphite);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    border-color: var(--color-electric-lavender);
    transform: translateY(-5px);
}

.process-step__number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(108, 99, 255, 0.2);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.process-step__title {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.process-step__description {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Сделать карточки более плотными */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Скрыть детальную информацию по умолчанию, оставить только кнопку */
.details-collapsible {
    margin: 0.5rem 0;
}

/* Уменьшить высоту карточки */
.product-card {
    min-height: 280px;
}

/* Упростить кнопки CTA */
.product-card__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.product-card__cta .btn {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .products-hero__title {
        font-size: 2.5rem;
    }

    .products-hero__stats {
        gap: 2rem;
    }

    .filters__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card__cta {
        flex-direction: column;
    }

    .products-cta__actions {
        flex-direction: column;
    }

    .products-cta__actions .btn {
        width: 100%;
        max-width: none;
    }

    .modal__content {
        width: 95%;
        height: 95vh;
    }
}

@media (max-width: 480px) {
    .products-hero__title {
        font-size: 2rem;
    }

    .product-card__header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .product-card__number {
        align-self: flex-start;
    }

    .comparison-section {
        padding: 2rem 0;
    }

    .details-item {
        flex-direction: column;
    }
}

