/* Capabilities: интерактивный список возможностей на главной. */

/* Каркас секции */
        .page-home #features-list .features {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            padding: 0;
        }

/* Сетка вариантов */
        .page-home #features-list .container {
            max-width: 1460px;
        }

        .page-home #features-list .features-interactive {
            width: 100%;
        }

        .page-home #features-list .features-grid {
            display: grid;
            grid-template-columns: minmax(390px, 1.1fr) repeat(2, minmax(250px, 1fr));
            grid-template-rows: repeat(2, 278px);
            gap: 1.1rem;
            min-width: 0;
        }

        .page-home #features-list .features-grid::before {
            content: '';
            grid-column: 1;
            grid-row: 1 / 3;
            z-index: 0;
            background: transparent;
            border: 2px solid var(--accent);
            border-radius: 18px;
            box-shadow: 0 12px 24px var(--shadow);
        }

        .page-home #features-list .feature-option {
            display: contents;
        }

        .page-home #features-list .feature-option:nth-child(1) .feature-card {
            grid-column: 2;
            grid-row: 1;
        }

        .page-home #features-list .feature-option:nth-child(2) .feature-card {
            grid-column: 3;
            grid-row: 1;
        }

        .page-home #features-list .feature-option:nth-child(3) .feature-card {
            grid-column: 2;
            grid-row: 2;
        }

        .page-home #features-list .feature-option:nth-child(4) .feature-card {
            grid-column: 3;
            grid-row: 2;
        }

/* Карточки возможностей */
.page-home #features-list .feature-card {
            width: 100%;
            min-width: 0;
            min-height: 278px;
            padding: 1.35rem 1.1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 0.95rem;
            color: var(--text-primary);
            font: inherit;
            text-align: center;
            appearance: none;
            cursor: pointer;
            background: transparent;
            border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent) 22%);
            border-radius: 18px;
            opacity: 0;
            transform: translateY(30px);
            transition-property: opacity, transform, border-color, box-shadow, background-color;
            transition-duration: 0.45s, 0.35s, 0.3s, 0.35s, 0.3s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        }

/* Состояния карточек */
.page-home #features-list .feature-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .page-home #features-list .feature-card:hover {
            transform: translateY(-8px);
            border-color: color-mix(in srgb, var(--accent) 70%, var(--border) 30%);
            box-shadow: 0 20px 40px var(--shadow);
        }

        .page-home #features-list .feature-card.active,
        .page-home #features-list .feature-card.active:hover {
            transform: translateY(0);
            border-color: color-mix(in srgb, var(--accent) 80%, var(--border) 20%);
            background: color-mix(in srgb, var(--bg-card) 25%, var(--bg-primary) 18%);
            box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 14px 26px var(--shadow);
        }

        .page-home #features-list .feature-card:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
        }

        .page-home #features-list .feature-icon {
            width: 56px;
            height: 56px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 12px;
            transition-property: color, background-color, border-color, box-shadow, transform;
            transition-duration: 0.35s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        }

        .page-home #features-list .feature-icon svg {
            width: 24px;
            height: 24px;
            display: block;
        }

        .page-home #features-list .feature-card:hover .feature-icon,
        .page-home #features-list .feature-card.active .feature-icon {
            color: #ffffff;
            background: var(--gradient-1);
            border-color: transparent;
            box-shadow: 0 8px 18px var(--accent-glow);
        }

        .page-home #features-list .feature-card:hover .feature-icon {
            transform: none;
        }

        .page-home #features-list .feature-card-copy {
            display: grid;
            justify-items: center;
            gap: 0.75rem;
        }

        .page-home #features-list .feature-card-title {
            color: var(--text-primary);
            font-size: 1.08rem;
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: -0.015em;
            text-wrap: balance;
        }

        .page-home #features-list .feature-card-summary {
            max-width: 30ch;
            color: var(--text-secondary);
            font-size: 0.88rem;
            line-height: 1.45;
            text-wrap: pretty;
        }

/* Панель деталей */
.page-home #features-list .feature-detail-content {
            grid-column: 1;
            grid-row: 1 / 3;
            min-width: 0;
            min-height: 574px;
            z-index: 1;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: none;
            transition-property: opacity, transform, visibility;
            transition-duration: 0.24s, 0.28s, 0s;
            transition-delay: 0s, 0s, 0.28s;
            transition-timing-function: ease, cubic-bezier(0.4, 0, 0.2, 1), linear;
        }

        .page-home #features-list .feature-detail-content.is-active {
            z-index: 2;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
            transition-delay: 0.08s, 0.08s, 0s;
        }

        .page-home #features-list .feature-detail-inner {
            width: 100%;
            height: 100%;
            min-height: 574px;
            padding: 1.35rem;
            display: flex;
            flex-direction: column;
            background: color-mix(in srgb, var(--bg-card) 25%, var(--bg-primary) 18%);
            border: 1px solid color-mix(in srgb, var(--accent) 80%, var(--border) 20%);
            border-radius: 18px;
        }

        .page-home #features-list .feature-detail-visual {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.95rem;
        }

        .page-home #features-list .feature-detail-icon {
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            color: #fff;
            background: var(--gradient-1);
            border-radius: 12px;
            box-shadow: 0 8px 18px var(--accent-glow);
        }

        .page-home #features-list .feature-detail-icon svg {
            width: 20px;
            height: 20px;
        }

        .page-home #features-list .feature-detail-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.33rem 0.7rem;
            color: var(--text-muted);
            font-size: 0.72rem;
            line-height: 1;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            border: 1px solid var(--border-light);
            border-radius: 999px;
        }

        .page-home #features-list .feature-detail-label {
            margin-bottom: 0.4rem;
            color: var(--text-muted);
            font-size: 0.7rem;
            line-height: 1.2;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .page-home #features-list .feature-detail-content h3 {
            margin-top: 1.35rem;
            margin-bottom: 1.1rem;
            color: var(--text-primary);
            font-size: 1.38rem;
            line-height: 1.25;
            letter-spacing: -0.01em;
            text-wrap: balance;
        }

        .page-home #features-list .feature-detail-content p:not(.feature-detail-label) {
            margin-bottom: 1.45rem;
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.62;
            text-wrap: pretty;
        }

        .page-home #features-list .feature-detail-content ul {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 0.45rem;
            margin: auto 0 0.9rem;
            padding: 0;
            list-style: none;
        }

        .page-home #features-list .feature-detail-content li {
            position: relative;
            padding-left: 1.15rem;
            color: var(--text-primary);
            font-size: 0.86rem;
            line-height: 1.45;
        }

        .page-home #features-list .feature-detail-content li::before {
            content: '';
            position: absolute;
            top: 0.52em;
            left: 0;
            width: 0.42rem;
            height: 0.42rem;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

/* Действие панели */
.page-home #features-list .feature-detail-link {
            width: 100%;
            min-height: 3rem;
            height: 3rem;
            margin-top: auto;
            justify-content: center;
            white-space: nowrap;
        }

/* Адаптивная компоновка */
@media (max-width: 1300px) {
    .page-home #features-list .features {
        padding: 0;
    }
}
@media (max-width: 1024px) {
            .page-home #features-list .features-grid::before {
                display: none;
            }

            .page-home #features-list .features-grid {
                grid-template-columns: 1fr;
                grid-template-rows: none;
                gap: 1rem;
                width: min(100%, 800px);
                margin-inline: auto;
                padding-inline: clamp(1rem, 4vw, 1.75rem);
            }

            .page-home #features-list .feature-option {
                display: grid;
                grid-template-rows: auto 0fr;
                min-width: 0;
                transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .page-home #features-list .feature-option.expanded {
                grid-template-rows: auto 1fr;
            }

            .page-home #features-list .features-grid .feature-option .feature-card {
                grid-column: 1;
                grid-row: 1;
                min-height: 0;
                padding: 1.15rem;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;
                gap: 0;
                text-align: left;
            }

            .page-home #features-list .feature-card-copy {
                justify-items: start;
                gap: 0.35rem;
            }

            .page-home #features-list .feature-icon {
                margin-bottom: 0.5rem;
            }

            .page-home #features-list .feature-option .feature-card.active,
            .page-home #features-list .feature-option .feature-card.active:hover {
                transform: none;
                border-bottom-color: transparent;
                border-radius: 18px 18px 0 0;
                box-shadow: none;
            }

            .page-home #features-list .feature-detail-content,
            .page-home #features-list .feature-detail-content.is-active {
                grid-column: 1;
                grid-row: 2;
                min-height: 0;
                overflow: hidden;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: none;
                transition-property: opacity, visibility;
                transition-duration: 0.22s, 0s;
                transition-delay: 0s, 0.22s;
            }

            .page-home #features-list .feature-option.expanded .feature-detail-content.is-active {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transition-delay: 0.08s, 0s;
            }

            .page-home #features-list .feature-detail-inner {
                min-height: 0;
                height: auto;
                margin-top: 0;
                padding: clamp(1.25rem, 4vw, 1.65rem);
                border-width: 1px;
                border-style: solid;
                border-color: var(--accent);
                border-top: 0;
                border-radius: 0 0 18px 18px;
                box-shadow: 0 12px 24px var(--shadow);
            }

            .page-home #features-list .feature-detail-visual,
            .page-home #features-list .feature-detail-label,
            .page-home #features-list .feature-detail-content h3 {
                display: none;
            }
}

/* Уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .page-home #features-list .feature-card,
    .page-home #features-list .feature-icon,
    .page-home #features-list .feature-option,
    .page-home #features-list .feature-detail-content,
    .page-home #features-list .feature-detail-content.is-active,
    .page-home #features-list .feature-option.expanded .feature-detail-content.is-active {
        transition: none;
    }
}
