:root {
    --primary-color: #6B46C1;
    --secondary-color: #805AD5;
    --accent-color: #9F7AEA;
    --text-color: #2D3748;
    --light-bg: #F7FAFC;
    --white: #ffffff;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --dark-bg: #2D3748;
    --gray-400: #718096;
    --gray-700: #4A5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.logo-text {
    color: var(--text-color);
}

.logo .accent {
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .accent {
    color: var(--primary-color);
}

.hero-description {
    font-size: 20px;
    color: #4A5568;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #4A5568;
    margin-top: 5px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.badge-content {
    text-align: center;
}

.badge-title {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.badge-text {
    font-size: 14px;
    opacity: 0.9;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-illustration svg {
    width: 100%;
    height: auto;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.hero-illustration svg:hover {
    transform: scale(1.02);
}

.hero-illustration path,
.hero-illustration circle {
    transition: all 0.3s ease;
}

.hero-illustration:hover path[stroke="#6B46C1"] {
    stroke: var(--primary-color);
}

.hero-illustration:hover circle[fill="#805AD5"] {
    fill: var(--accent-color);
}

.hero-image:hover .hero-illustration {
    transform: translateY(-5px);
}

/* Анимация для линий документа */
@keyframes drawLine {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.hero-illustration path[d*="M180"] {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation: drawLine 1.5s ease-in-out;
}

/* Анимация для весов */
@keyframes balanceScale {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

.hero-illustration path[d*="M230 120"] {
    transform-origin: center;
    animation: balanceScale 3s ease-in-out infinite;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-description {
    color: #4A5568;
    line-height: 1.4;
}

/* Benefits Section */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.benefit-item .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

/* How it works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.step-card p {
    color: #4A5568;
    font-size: 16px;
    line-height: 1.5;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-card:hover .step-icon {
    transform: rotate(5deg) scale(1.1);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-color);
}

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

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: #4A5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 25px;
}

.service-features li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: #4A5568;
}

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

.service-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-service {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.price-tag {
    font-weight: 600;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.price-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.price-header {
    margin-bottom: 24px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 12px;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-description {
    color: var(--gray-300);
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social .social-link:hover {
    color: var(--accent-color);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--gray-300);
}

.contact-list li svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

.contact-list li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--gray-400);
}

.footer-links-bottom {
    display: flex;
    gap: 24px;
}

.footer-links-bottom a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .header-buttons {
        display: none;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-action {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-service {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
