/* Base Styles */
:root {
    --primary: #4361EE;
    --primary-dark: #3A56E5;
    --secondary: #4CC9F0;
    --accent: #7209B7;
    --dark: #14213D;
    --light: #F8F9FA;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(67, 97, 238, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-text {
    font-size: 18px;
    color: var(--gray);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--light-gray);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--dark);
    text-decoration: none;
}

.logo span:first-child {
    color: var(--primary);
    font-weight: 800;
}

.logo-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--light-gray);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F5FF 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-partners p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.partners-grid {
    display: flex;
    align-items: center;
    gap: 24px;
}

.partners-grid img {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.partners-grid img:hover {
    opacity: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image .main-image {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero-image .element-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    z-index: -1;
    animation: float 8s ease-in-out infinite 1s;
}

.hero-image .element-2 {
    position: absolute;
    bottom: -50px;
    right: -50px;
    z-index: -1;
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Solutions Section */
.solutions {
    background-color: var(--white);
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.15);
    border-color: transparent;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover .card-icon img {
    filter: brightness(0) invert(1);
}

.solution-card:hover h3,
.solution-card:hover p,
.solution-card:hover .card-link {
    color: var(--white);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s;
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    transition: color 0.3s;
}

.solution-card p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 24px;
    transition: color 0.3s;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s;
    gap: 6px;
}

.card-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* AML Section */
.aml-section {
    background-color: #F9FAFF;
    position: relative;
    overflow: hidden;
}

.aml-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.aml-text {
    flex: 1;
}

.aml-image {
    flex: 1;
    position: relative;
}

.aml-image .main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 280px;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.aml-features {
    margin-top: 40px;
}

.aml-feature {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.aml-feature:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary);
    font-size: 18px;
}

.feature-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.feature-text p {
    font-size: 14px;
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-logo span:first-child {
    color: var(--primary);
    font-weight: 800;
    margin-right: 8px;
}

.footer-logo span:last-child {
    font-size: 14px;
    opacity: 0.7;
}

.footer-about-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contacts i {
    margin-right: 12px;
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .aml-content {
        flex-direction: column;
    }
    
    .aml-text {
        margin-bottom: 60px;
    }
    
    .stats-card {
        right: 0;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 0 0 20px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Добавьте этот стиль в раздел кнопок */
    .btn {
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .stats-card {
        position: static;
        width: 100%;
        margin-top: 30px;
    }
}