/* ============================================
   Cash Flow Management - Stylesheet
   ============================================ */

/* CSS Variables - Цвета из логотипа */
:root {
    --primary: #1A9B8E;        /* Бирюзовый из логотипа */
    --primary-dark: #147A70;   /* Темнее для hover */
    --primary-light: #E6F7F5;  /* Светлый для фонов */
    --secondary: #0F172A;      /* Темно-синий для текста */
    --accent: #F59E0B;         /* Акцентный оранжевый */
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #1A9B8E 0%, #147A70 100%);
}

/* Reset & Base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.highlight { 
    color: var(--primary);
    position: relative;
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--border);
}

.lang-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.lang-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 100px 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 25px;
}

.hero-visual {
    padding: 20px 0px 0px 0px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.7;
}

/* Buttons */
.cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 155, 142, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 155, 142, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Stats Preview */
.stats-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateX(5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Benefits Section */
.benefits {
    padding: 100px 20px;
    background: var(--white);
}

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

.benefit-card {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 155, 142, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 20px;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 10px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-card li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Process Section */
.process {
    padding: 100px 20px;
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(26, 155, 142, 0.25);
}

.process-step h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.process-arrow {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: var(--primary-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
    font-weight: 600;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        gap: 20px;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .lang-switcher {
        order: 2;
    }

    .logo {
        order: 1;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .benefits,
    .services,
    .process,
    .contact {
        padding: 60px 20px;
    }

    .process-arrow {
        display: none;
    }

    .cta {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .benefit-card,
    .service-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .lang-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
