/* Стили для страницы Синтаксис AI */
.ai-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    text-align: center;
}

.hero-content {
    max-width: none;
    order: 2;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-image {
    position: relative;
    order: 3;
}

.dashboard-image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Введение */
.ai-intro {
    margin: 30px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.intro-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Особенности AI */
.why-ai-section {
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Новый контейнер для заголовка и иконки */
.feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    text-align: left;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 15px;
    text-align: left;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.feature-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

.feature-list li strong {
    color: var(--text-primary);
}

.feature-example {
    background: rgba(45, 127, 249, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.example-text {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Решения */
.solutions-section {
    margin: 40px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.solution-card {
    background: var(--card-bg);
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

/* Новый контейнер для заголовка и иконки решений */
.solution-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.solution-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(45, 127, 249, 0.1);
    color: var(--primary-color);
}

.solution-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

/* Блок начала работы */
.getting-started-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.getting-started-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Новый контейнер для заголовка и иконки начала работы */
.getting-started-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.getting-started-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.getting-started-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.getting-started-section p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.getting-started-section blockquote {
    font-style: italic;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 16px;
    margin: 20px 0 0;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.getting-started-section footer {
    font-style: normal;
    font-weight: 600;
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.8;
}

/* Финальный CTA */
.final-cta-section {
    text-align: center;
    margin: 40px 0;
}

.final-cta-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.final-cta-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Адаптивность для планшетов */
@media (min-width: 768px) {
    .ai-hero {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: left;
        margin: 50px 0;
    }

    .hero-content {
        order: 1;
        max-width: 500px;
    }

    .hero-image {
        order: 2;
    }

    .hero-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        padding: 32px;
    }

    .getting-started-section {
        padding: 50px 40px;
    }
}

/* Адаптивность для десктопов */
@media (min-width: 1024px) {
    .ai-hero {
        margin: 80px 0;
        gap: 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .getting-started-section {
        padding: 60px;
    }

    .getting-started-section h2 {
        font-size: 28px;
    }
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }

    .feature-card,
    .solution-card {
        padding: 20px 16px;
    }

    .feature-icon,
    .solution-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .feature-header,
    .solution-header {
        gap: 12px;
    }

    .feature-card h3,
    .solution-card h3 {
        font-size: 16px;
    }

    .getting-started-section {
        padding: 30px 20px;
    }

    .getting-started-header {
        gap: 12px;
    }

    .getting-started-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }

    .getting-started-section h2 {
        font-size: 20px;
    }

    .feature-example {
        padding: 12px;
    }

    .example-text {
        font-size: 13px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .feature-header,
    .solution-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .feature-card h3,
    .solution-card h3 {
        font-size: 17px;
    }
}

/* Плавные анимации для мобильных */
.feature-card,
.solution-card {
    transition: transform 0.2s ease;
}

.feature-card:active,
.solution-card:active {
    transform: scale(0.98);
}

/* Улучшение читаемости на мобильных */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 16px;
    }

    .feature-list li {
        font-size: 14px;
    }

    .ai-intro {
        padding: 16px;
    }
}

/* Специфические стили для AI страницы */
.feature-example {
    background: linear-gradient(135deg, rgba(144, 97, 249, 0.1) 0%, rgba(45, 127, 249, 0.1) 100%);
    border: 1px solid rgba(144, 97, 249, 0.2);
}

.example-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* Оптимизация загрузки изображений */
.dashboard-image {
    loading: lazy;
}
