:root {
    --primary-color: #00E676;
    --primary-dark: #00C853;
    --primary-light: #69F0AE;
    --secondary-color: #212121;
    --secondary-dark: #000000;
    --secondary-light: #484848;
    --text-light: #FFFFFF;
    --text-dark: #212121;
    --text-gray: #757575;
    --background-dark: #121212;
    --background-light: #1E1E1E;
    --accent-color: #00E676;
    --shadow-color: rgba(0, 230, 118, 0.2);
    --gradient-dark: linear-gradient(135deg, #121212 0%, #1E1E1E 100%);
    --gradient-green: linear-gradient(135deg, #00C853 0%, #00E676 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Language Toggle Styles */
.hidden {
    display: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

/* Graph Background */
#graph-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-color: var(--background-dark);
    overflow: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.nav-links a span {
    display: block;
    text-align: center;
    min-width: 80px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-toggle {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background-color: var(--primary-color);
    color: var(--secondary-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    /* Убран фон секции hero */
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 230, 118, 0.15) 0%, transparent 80%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-gray);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 5px;
    left: 0;
    background-color: rgba(0, 230, 118, 0.2);
    z-index: -1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: rgba(0, 230, 118, 0.1);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background-color: var(--secondary-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ai-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-dark);
}

.circuit-board {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, var(--secondary-dark) 21px, transparent 1%) center,
        linear-gradient(var(--secondary-dark) 21px, transparent 1%) center,
        var(--primary-color);
    background-size: 22px 22px;
    opacity: 0.1;
}

.brain-icon {
    width: 60%;
    height: 60%;
    position: relative;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-paths {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 2px dashed var(--primary-color);
    animation: rotate 20s linear infinite;
}

.brain-paths::before, .brain-paths::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.brain-paths::before {
    top: 10%;
    left: 50%;
}

.brain-paths::after {
    bottom: 10%;
    right: 50%;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background-color: var(--background-dark);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

.carousel-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    padding: 10px 0;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-control {
    background-color: rgba(0, 230, 118, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
    position: relative;
    z-index: 2;
}

.carousel-control svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.carousel-control:hover svg {
    color: var(--secondary-dark);
}

.carousel-control:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--primary-color);
    border: 1px solid var(--primary-light);
}

.carousel-dot:hover {
    background-color: var(--text-gray);
    transform: scale(1.1);
}

/* Solution Cards */
.solution-card {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    max-width: 400px;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.solution-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.solution-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.solution-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.solution-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.solution-link:hover {
    color: var(--primary-light);
}

.solution-link:hover::after {
    width: 100%;
}

.solutions-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-gray);
}

/* Contact Section */

.clients-description p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Client Cards */
.client-card {
    background-color: var(--background-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.client-logo {
    height: 120px;
    background-color: var(--secondary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
}

.placeholder-logo {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    border: 2px solid var(--primary-color);
}

.client-info {
    padding: 20px;
}

.client-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.client-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--background-dark);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-light);
}

.contact-form {
    flex: 1;
    background-color: var(--secondary-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--background-dark);
    border: 1px solid var(--secondary-light);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

button[type="submit"] {
    grid-column: span 2;
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.social-icon:hover svg {
    color: var(--secondary-dark);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Language Toggle */
.ru-content, .en-content {
    display: block;
}

.hidden {
    display: none;
}

/* Typing Animation */
.typing-text {
    position: relative;
    display: inline-block;
}

/* Graph Background Animation */
.node {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
}

.edge {
    position: absolute;
    height: 1px;
    background-color: var(--primary-color);
    opacity: 0.3;
    transform-origin: left center;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .carousel-slide {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        margin: 20px 0;
    }

    .carousel-controls {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    button[type="submit"] {
        grid-column: span 1;
    }

    .nav-links {
        display: none;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
    }

    .carousel-control svg {
        width: 15px;
        height: 15px;
    }
}
