/* === Базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafbfc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === Хедер === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 26, 43, 0.85);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 2px solid rgba(232, 123, 45, 0.3);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: #e87b2d;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #0b1a2b;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.logo-text span {
    color: #e87b2d;
}

.logo-sub {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-weight: 500;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: #fff;
}

.header-phone {
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-phone:hover {
    background: rgba(255, 255, 255, 0.12);
}

.header-phone i {
    color: #e87b2d;
}

/* === Герой === */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 560px;
    background: #0b1a2b;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(11, 26, 43, 0.6);
    pointer-events: none;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 0 0 48%;
    max-width: 48%;
    padding-right: 20px;
    position: relative;
    z-index: 3;
}

.hero-text .label {
    display: inline-block;
    background: rgba(232, 123, 45, 0.15);
    color: #e87b2d;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(232, 123, 45, 0.15);
}

.hero-text h1 {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 440px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Кнопки */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
}

.btn-primary {
    background: #e87b2d;
    border: none;
    color: #0b1a2b;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

.btn-primary:hover {
    background: #f18f45;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 123, 45, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

.btn-outline:hover {
    border-color: #e87b2d;
    background: rgba(232, 123, 45, 0.08);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* === ВИЗУАЛИЗАЦИИ СПРАВА === */
.hero-visuals {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.visual-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.visual-card:hover {
    border-color: rgba(232, 123, 45, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.visual-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visual-badge {
    font-size: 11px;
    font-weight: 600;
    color: #44ff88;
    background: rgba(68, 255, 136, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(68, 255, 136, 0.15);
}

/* Линейный график */
.line-chart {
    width: 100%;
    height: 120px;
    position: relative;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

.line-chart .chart-line {
    fill: none;
    stroke: #4488ff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2s ease forwards;
}

.line-chart .chart-area {
    fill: rgba(68, 136, 255, 0.08);
}

.line-chart .chart-dot {
    fill: #4488ff;
    opacity: 0;
    animation: fadeDot 0.5s ease forwards;
}

.line-chart .chart-dot:nth-child(1) { animation-delay: 0.2s; }
.line-chart .chart-dot:nth-child(2) { animation-delay: 0.3s; }
.line-chart .chart-dot:nth-child(3) { animation-delay: 0.4s; }
.line-chart .chart-dot:nth-child(4) { animation-delay: 0.5s; }
.line-chart .chart-dot:nth-child(5) { animation-delay: 0.6s; }
.line-chart .chart-dot:nth-child(6) { animation-delay: 0.7s; }
.line-chart .chart-dot:nth-child(7) { animation-delay: 0.8s; }
.line-chart .chart-dot:nth-child(8) { animation-delay: 0.9s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeDot {
    to { opacity: 1; }
}

/* Метрики */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric-item {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #6cb4ee;
}

.metric-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-item:nth-child(1) .metric-value { color: #6cb4ee; }
.metric-item:nth-child(2) .metric-value { color: #44ff88; }
.metric-item:nth-child(3) .metric-value { color: #f5a05a; }
.metric-item:nth-child(4) .metric-value { color: #ff6b6b; }

/* === Секции === */
section {
    padding: 72px 0;
    position: relative;
    z-index: 5;
    background: #fafbfc;
}

section:nth-child(even) {
    background: #f8fafc;
}

.section-label {
    display: inline-block;
    color: #e87b2d;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-sub {
    color: #64748b;
    font-size: 17px;
    max-width: 580px;
    margin-bottom: 40px;
}

/* === Услуги === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid #eef2f6;
    transition: 0.3s;
    cursor: pointer;
}

.service-card:hover {
    border-color: #e87b2d;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(232, 123, 45, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #e87b2d;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* === Статистика === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 48px;
    border: 1px solid #eef2f6;
}

.stats-grid .stat-item {
    text-align: center;
}

.stats-grid .stat-number {
    font-size: 32px;
    color: #0b1a2b;
}

.stats-grid .stat-label {
    color: #64748b;
    font-size: 14px;
}

/* === Преимущества === */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.advantage-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid #eef2f6;
    transition: 0.2s;
}

.advantage-item:hover {
    border-color: #e87b2d;
}

.advantage-item .icon {
    font-size: 24px;
    color: #e87b2d;
    margin-bottom: 12px;
    display: block;
}

.advantage-item h4 {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}

.advantage-item p {
    color: #64748b;
    font-size: 14px;
}

/* === Кейсы === */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: 0.2s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.case-img {
    height: 140px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #1e293b;
}

.case-body {
    padding: 20px 24px 24px;
}

.case-body .tag {
    display: inline-block;
    background: rgba(232, 123, 45, 0.08);
    color: #e87b2d;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.case-body h4 {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}

.case-body p {
    color: #64748b;
    font-size: 14px;
}

/* === Технологии === */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s;
}

.tech-item:hover {
    background: #e87b2d;
    color: #fff;
}

/* === Контакты === */
.contact-block {
    background: #0b1a2b;
    border-radius: 12px;
    padding: 48px 40px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 40px;
}

.contact-block h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-block p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.contact-block .btn-primary {
    background: #e87b2d;
    color: #0b1a2b;
}

/* === Футер === */
footer {
    padding: 28px 0 20px;
    border-top: 1px solid #eef2f6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
    background: #fff;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0b1a2b;
}

/* === Модальное окно === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 26, 43, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFade 0.2s ease;
}

@keyframes modalFade {
    0% {
        transform: scale(0.96);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #0b1a2b;
}

.modal-icon {
    font-size: 32px;
    color: #e87b2d;
    margin-bottom: 12px;
}

.modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.modal ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.modal ul li {
    padding: 5px 0 5px 24px;
    position: relative;
    color: #1e293b;
    font-size: 14px;
}

.modal ul li::before {
    content: "—";
    color: #e87b2d;
    position: absolute;
    left: 0;
}

.modal .btn-primary {
    margin-top: 8px;
    border: none;
    font-size: 14px;
    padding: 10px 24px;
}

/* === Адаптив === */
@media (max-width: 992px) {
    .hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .hero-visuals {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        gap: 16px;
    }

    .hero {
        min-height: 480px;
        height: auto;
        padding: 100px 0 40px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-text {
        max-width: 100%;
        padding-left: 0;
    }

    .hero-visuals {
        margin-top: 16px;
        gap: 12px;
    }

    .visual-card {
        padding: 16px 18px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 20px;
        margin-top: 16px;
        padding-top: 16px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 32px 24px;
    }

    .btn-group {
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .line-chart {
        height: 80px;
    }

    .metric-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 80px 0 30px;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-visuals {
        gap: 10px;
    }

    .visual-card {
        padding: 12px 14px;
    }

    .visual-title {
        font-size: 11px;
    }

    .metrics-grid {
        gap: 8px;
    }

    .metric-value {
        font-size: 14px;
    }

    .metric-label {
        font-size: 9px;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    .btn-group .btn-primary,
    .btn-group .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}