:root {
    --gradient-primary: linear-gradient(135deg, #5b3af3 0%, #3e54f1 100%);
    --gradient-light: linear-gradient(135deg, #F8F9FF 0%, #E8ECFF 100%);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

/* Стили для подменю индустрий */
.industries-submenu {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 90px; /* Высота основного меню */
    z-index: 900;
    transition: transform 0.3s ease;
}

.industries-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.industries-nav li {
    flex: 0 0 auto;
}

.industries-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.industries-nav a i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.industries-nav a span {
    font-size: 0.9rem;
}

.industries-nav a:hover,
.industries-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.industries-nav a:hover i,
.industries-nav a.active i {
    color: var(--primary-color);
}

.industries-container {
    width: 100%;
    max-width: 100%;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .industries-nav {
        padding: 0.5rem;
        justify-content: normal;
    }
    
    .industries-nav a {
        padding: 0.75rem 1rem;
    }
}

.it-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0A1930 0%, #1A2942 100%);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    max-width: 100%
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.hero-stats .stat-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.hero-stats .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.hero-stats .stat-label {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-stack span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.tech-icons {
    display: flex;
    gap: 16px;
}

.tech-icons i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.tech-icons i:hover {
    color: var(--primary-color);
}

.code-window {
    background: #1E293B;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.window-title {
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.code-content {
    padding: 24px;
    font-family: monospace;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .it-hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-visual {
        display: none;
    }
}

/* Стили для доступности */
.focus-visible {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* Улучшаем контрастность */
.hero-content p {
    color: rgba(255, 255, 255, 0.9); /* Увеличили контрастность */
}

.tech-stack span {
    color: rgba(255, 255, 255, 0.8); /* Увеличили контрастность */
}

/* Обеспечиваем достаточный размер кликабельных элементов */
.tech-icons i {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Улучшаем читаемость кода */
.code-content {
    color: #E4E4E7;
    font-size: 1rem;
    line-height: 1.6;
}

/* Обеспечиваем видимость фокуса на всех интерактивных элементах */
a:focus, 
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Добавляем поддержку reduced motion */
@media (prefers-reduced-motion: reduce) {
    .code-content {
        animation: none;
    }
    
    .tech-icons i {
        transition: none;
    }
}

/* Секция проблем */
.it-problems {
    padding: 100px 0;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.problem-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.problem-card:hover,
.problem-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.problem-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.problem-card p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.problem-stats {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Анимированная визуализация */
.problems-visualization {
    height: 200px;
    position: relative;
    margin-top: 64px;
}

.visualization-wrapper {
    position: relative;
    height: 100%;
}

@media (max-width: 992px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .problem-card {
        transition: none;
    }
}

/* Улучшения доступности */
.problem-card {
    position: relative;
}

.problem-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.problem-card:focus-within::before {
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Высокий контраст */
@media (forced-colors: active) {
    .problem-card {
        border: 1px solid CanvasText;
    }
    
    .problem-icon {
        border: 1px solid CanvasText;
    }
}

.it-solutions {
    padding: 100px 0;
    background: var(--background-color);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.solution-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.solution-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.solution-card p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #555;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.widget-note {
    background: rgba(91, 58, 243, 0.05);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.widget-note i {
    font-size: 24px;
    color: var(--primary-color);
}

.widget-note p {
    margin: 0;
    color: #555;
}

.widget-hint {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        padding: 24px;
    }
}

/* Доступность */
.solution-card {
    position: relative;
}

.solution-features li::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

@media (forced-colors: active) {
    .solution-card {
        border: 1px solid CanvasText;
    }
    
    .solution-icon {
        border: 1px solid CanvasText;
    }
    
    .solution-features li::before {
        color: CanvasText;
    }
}

.it-cases {
    padding: 100px 0;
    background: var(--gradient-light);
}

.it-cases__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.it-cases__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.it-case {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.it-case__logo {
    background: var(--gradient-primary);
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.it-case__logo i {
    font-size: 24px;
}

.it-case__logo span {
    font-size: 1.2rem;
    font-weight: 500;
}

.it-case__content {
    padding: 32px;
}

.it-case__content h3 {
    margin-bottom: 24px;
    color: var(--text-color);
}

.it-case__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.metric {
    text-align: center;
}

.metric__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.metric__label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.it-case__features {
    list-style: none;
    padding: 0;
}

.it-case__features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #555;
}

.it-case__features li:last-child {
    border-bottom: none;
}

@media (max-width: 992px) {
    .it-cases__wrapper {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .it-case {
        transition: none;
    }
}

@media (forced-colors: active) {
    .it-case {
        border: 1px solid CanvasText;
    }
    
    .it-case__logo {
        border-bottom: 1px solid CanvasText;
    }
    
    .metric__value {
        color: CanvasText;
    }
}

/* Заголовки секций */
.it-cases__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.it-cases__header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.it-cases__header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.it-benefits {
    padding: 100px 0;
    background: white;
}

.it-benefits__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.it-benefits__header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.it-benefits__header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.it-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.it-benefit {
    padding: 32px;
    background: var(--gradient-light);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.it-benefit:hover {
    transform: translateY(-4px);
}

.it-benefit__icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.it-benefit__icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.it-benefit__content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.it-benefit__content p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.it-benefit__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.it-benefit__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #555;
}

.it-benefit__list li:last-child {
    margin-bottom: 0;
}

.benefit-metric {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .it-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .it-benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .it-benefit {
        transition: none;
    }
}

@media (forced-colors: active) {
    .it-benefit {
        border: 1px solid CanvasText;
    }
    
    .it-benefit__icon {
        border: 1px solid CanvasText;
    }
    
    .benefit-metric {
        color: CanvasText;
    }
}

.it-implementation {
    padding: 100px 0;
    background: var(--gradient-light);
}

.it-implementation__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.it-implementation__header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.it-implementation__header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.implementation-timeline {
    max-width: 1000px;
    margin: 0 auto 64px;
    position: relative;
}

.timeline-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -48px;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.2;
}

.timeline-step:last-child::before {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.step-content p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.step-details li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: #555;
}

.step-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.step-duration {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(91, 58, 243, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.implementation-docs {
    max-width: 1000px;
    margin: 0 auto;
}

.implementation-docs h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--text-color);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.doc-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.doc-card:hover {
    transform: translateY(-4px);
}

.doc-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.doc-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.doc-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@media (max-width: 992px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timeline-step {
        grid-template-columns: 40px 1fr;
        gap: 24px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-step::before {
        left: 19px;
    }

    .step-content {
        padding: 24px;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doc-card {
        transition: none;
    }
}

@media (forced-colors: active) {
    .timeline-step::before {
        background: CanvasText;
    }

    .step-number {
        border: 1px solid CanvasText;
    }

    .step-content,
    .doc-card {
        border: 1px solid CanvasText;
    }

    .step-icon {
        border: 1px solid CanvasText;
    }

    .step-details li::before {
        color: CanvasText;
    }

    .doc-card i {
        color: CanvasText;
    }
}

.it-cta {
    padding: 100px 0;
    background: white;
}

.it-cta__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.it-cta__text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.it-cta__text p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.it-cta__features {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    flex-direction: row;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.it-cta__offer {
    background: var(--gradient-light);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.offer-badge i {
    font-size: 16px;
}

.it-cta__offer p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.it-cta__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

@media (max-width: 992px) {
    .it-cta__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .it-cta__features {
        justify-content: center;
    }

    .it-cta__image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .it-cta__features {
        flex-direction: column;
        align-items: center;
    }

    .it-cta__text h2 {
        font-size: 2rem;
    }
}

@media (forced-colors: active) {
    .it-cta__offer {
        border: 1px solid CanvasText;
    }

    .offer-badge {
        border: 1px solid CanvasText;
    }
}
