/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Главная секция */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-preview {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.chart-placeholder {
    flex: 1;
    width: 100%;
    background: transparent;
    border-radius: 0;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.animated-chart {
    width: 100%;
    height: 100%;
}

/* Анимация линии графика */
.chart-line {
    stroke-dasharray: 950;
    stroke-dashoffset: 950;
    animation: drawLine 2s ease-out forwards;
}

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

/* Анимация заливки */
.chart-fill {
    opacity: 0;
    animation: fadeInFill 1.5s ease-out 0.5s forwards;
}

@keyframes fadeInFill {
    to {
        opacity: 0.3;
    }
}

/* Анимация точек */
.chart-dot {
    opacity: 0;
    transform: scale(0);
    animation: popDot 0.4s ease-out forwards;
}

.chart-dot:nth-child(5) {
    animation-delay: 0.3s;
}

.chart-dot:nth-child(6) {
    animation-delay: 0.5s;
}

.chart-dot:nth-child(7) {
    animation-delay: 0.7s;
}

.chart-dot:nth-child(8) {
    animation-delay: 0.9s;
}

.chart-dot:nth-child(9) {
    animation-delay: 1.1s;
}

.chart-dot:nth-child(10) {
    animation-delay: 1.3s;
}

.chart-dot:nth-child(11) {
    animation-delay: 1.5s;
}

@keyframes popDot {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* О услуге */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--text-dark);
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--success-color);
    flex-shrink: 0;
}

.about-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Преимущества */
.benefits {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
}

/* Как это работает */
.how-it-works {
    background: var(--bg-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
}

/* Тарифы */
.pricing {
    background: var(--bg-light);
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price-tag {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
}

.pricing-footer {
    text-align: center;
}

.pricing-footer p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Контакты */
.contact {
    background: var(--bg-white);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: stretch;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Форма */
.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:required,
.form-group textarea:required {
    background-image: linear-gradient(to right, transparent 0%, transparent 100%);
    background-position: bottom;
    background-repeat: no-repeat;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-block {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Технологии */
.technologies {
    background: var(--bg-light);
    padding: 80px 0;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.15) translateY(-5px);
}

/* Создаём "облако" через разные размеры */
.tech-item:nth-child(1) {
    order: 2;
}

.tech-item:nth-child(2) {
    order: 5;
}

.tech-item:nth-child(3) {
    order: 1;
}

.tech-item:nth-child(4) {
    order: 7;
}

.tech-item:nth-child(5) {
    order: 3;
}

.tech-item:nth-child(6) {
    order: 9;
}

.tech-item:nth-child(7) {
    order: 4;
}

.tech-item:nth-child(8) {
    order: 6;
}

.tech-item:nth-child(9) {
    order: 8;
}

.tech-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

/* Разные размеры для эффекта "облака" */
.tech-item:nth-child(odd) .tech-logo {
    width: 80px;
    height: 80px;
}

.tech-item:nth-child(3n) .tech-logo {
    width: 90px;
    height: 90px;
}

.tech-item:hover .tech-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.tech-name {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tech-item:hover .tech-name {
    opacity: 1;
    color: var(--text-dark);
}

/* Источники данных */
.data-sources {
    background: var(--bg-white);
    padding: 80px 0 40px 0;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.source-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.source-item:hover {
    transform: scale(1.08);
}

.source-logo {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.85);
    transition: all 0.3s ease;
}

.source-item:hover .source-logo {
    filter: grayscale(0%) opacity(1);
}

/* Темный логотип на светлом фоне */
.source-logo-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

/* Увеличение для маленьких логотипов */
.source-logo-small {
    max-width: 220px !important;
    max-height: 90px !important;
    transform: scale(1.6);
}

.source-item:hover .source-logo-small {
    transform: scale(1.7);
}

.sources-note {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 3rem;
    font-style: italic;
}

/* Наши клиенты */
.clients {
    background: var(--bg-light);
    padding: 80px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.client-logo {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.9);
    transition: all 0.3s ease;
}

.client-logo-large {
    max-width: 200px !important;
    max-height: 90px !important;
    transform: scale(1.3);
}

.client-item:hover .client-logo {
    filter: grayscale(0%) opacity(1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid,
    .steps,
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .source-item {
        height: 70px;
        padding: 0.5rem;
    }

    .source-logo {
        max-width: 140px;
        max-height: 50px;
    }

    .source-logo-small {
        max-width: 160px !important;
        max-height: 70px !important;
        transform: scale(1.2);
    }

    .source-item:hover .source-logo-small {
        transform: scale(1.25);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}