/* Students — Capabilities: список возможностей и mobile-focus состояния. */

/* Каркас секции */
.page-students #features-list {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: clamp(6.5rem, 10vw, 8rem);
}

.page-students #features-list .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 1.5rem;
}

/* Заголовок */
.page-students #features-list .features-centered-header {
    width: 100%;
    max-width: 760px;
    margin: 0 auto clamp(3.5rem, 5vw, 4.5rem);
    text-align: center;
}

.page-students #features-list .features-centered-header h2 {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: clamp(2rem, 3.5vw, 2.3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.page-students #features-list .features-centered-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Сетка возможностей */
.page-students #features-list .features-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem 3.5rem;
    box-sizing: border-box;
    width: 100%;
}

/* Карточка возможности */
.page-students #features-list .feature-line-item {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.page-students #features-list .feature-line-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.page-students #features-list .feature-line-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-students #features-list .feature-line-item:hover {
    border-color: var(--accent);
}

.page-students #features-list .feature-line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
}

.page-students #features-list .feature-line-num {
    color: var(--text-muted);
    font-family: monospace, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

/* Hover-состояния */
.page-students #features-list .feature-line-item:hover .feature-line-num {
    color: var(--accent);
}

.page-students #features-list .feature-line-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.page-students #features-list .feature-line-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.page-students #features-list .feature-line-item:hover .feature-line-icon {
    color: var(--text-primary);
    transform: scale(1.05);
}

.page-students #features-list .feature-line-item h3 {
    margin: 0 0 0.85rem;
    color: var(--text-primary);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-students #features-list .feature-line-item p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    text-wrap: pretty;
}

/* Содержание и действие */
.page-students #features-list .feature-line-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 2.25rem;
    padding: 0;
    list-style: none;
}

.page-students #features-list .feature-line-bullets li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.page-students #features-list .feature-line-bullets li::before {
    content: '';
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.page-students #features-list .feature-line-item:hover .feature-line-bullets li {
    color: var(--text-primary);
}

.page-students #features-list .feature-line-item:hover .feature-line-bullets li::before {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

.page-students #features-list .feature-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: auto;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-students #features-list .feature-line-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-students #features-list .feature-line-item:hover .feature-line-btn {
    color: var(--accent);
}

.page-students #features-list .feature-line-item:hover .feature-line-btn svg {
    transform: translateX(4px);
}

/* Фокус карточки на touch-устройствах */
.page-students #features-list .feature-line-item.mobile-focus {
    border-color: var(--accent) !important;
}

.page-students #features-list .feature-line-item.mobile-focus .feature-line-num {
    color: var(--accent) !important;
}

.page-students #features-list .feature-line-item.mobile-focus .feature-line-icon {
    color: var(--text-primary) !important;
    transform: scale(1.05);
}

.page-students #features-list .feature-line-item.mobile-focus .feature-line-bullets li {
    color: var(--text-primary) !important;
}

.page-students #features-list .feature-line-item.mobile-focus .feature-line-bullets li::before {
    background: var(--accent) !important;
    box-shadow: 0 0 6px var(--accent-glow) !important;
}

.page-students #features-list .feature-line-item.mobile-focus .feature-line-btn {
    color: var(--accent) !important;
}

.page-students #features-list .feature-line-item.mobile-focus .feature-line-btn svg {
    transform: translateX(4px);
}

/* Адаптивная сетка */
@media (max-width: 820px) {
    .page-students #features-list .features-clean-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}
