:root {
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --accent: #3b82f6;
    --accent-soft: #a855f7;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.7);
    --container: 1200px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(12px);
    background: var(--glass);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 24px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-alt);
    padding: 100px 0 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-links,
.footer-contacts {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile */
@media (max-width: 992px) {

    .nav-list,
    .nav .btn {
        display: none;
    }

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* Hero Section Styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #fdfdff 0%, #f3f7ff 100%);
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Чтобы 3D не мешало кликать на кнопки, если оно перекрывает их */
}

@media (max-width: 992px) {
    .hero-canvas-container {
        position: relative;
        width: 100%;
        height: 400px;
        right: 0;
        margin-top: -50px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
    }
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

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

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-text {
    font-size: 14px;
    color: var(--text-muted);
}
.hero-canvas-container {
    position: absolute;
    top: 0;
    right: -10%;
    width: 65%;
    height: 100%;
    z-index: 1;
    /* Резервный мягкий свет на случай ошибки загрузки */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

spline-viewer {
    width: 100%;
    height: 100%;
}
.features {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
}

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

.feature-card {
    padding: 40px;
    background: var(--bg-alt);
    border-radius: 24px;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: default;
}

.feature-card:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-card:hover .card-icon {
    background: var(--accent);
    color: white;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 22px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}
.hero-canvas-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* Теперь на весь экран для глубины */
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    /* Мягкое присутствие */
}

#hero-canvas {
    width: 100%;
    height: 100%;
}
.steps {
    padding: 100px 0;
    background: var(--bg-alt);
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.step-item::before {
    content: attr(data-step);
    font-family: 'Syne', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.1);
    line-height: 1;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

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

@media (max-width: 576px) {
    .step-item {
        flex-direction: column;
        text-align: center;
    }
}
.benefits {
    padding: 120px 0;
    background: white;
}

.benefits-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin: 32px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-main);
}

.benefits-list i {
    color: #10b981;
    /* Зеленый для галочек */
}

/* Growth Card & Micro-chart */
.growth-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    max-width: 400px;
}

.growth-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 700;
}

.growth-percent {
    color: var(--accent);
}

.growth-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.bar {
    flex: 1;
    background: var(--accent);
    border-radius: 4px;
    height: 0%;
    /* Анимируется через GSAP */
    opacity: 0.3;
}

/* Visual boxes */
.benefits-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-box {
    padding: 30px;
    border-radius: 24px;
    background: var(--bg-alt);
    transition: var(--transition);
}

.feature-box.main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--text-main), #333);
    color: white;
}

.feature-box.main p {
    color: rgba(255, 255, 255, 0.7);
}

.feature-box i {
    color: var(--accent);
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.faq {
    padding: 100px 0;
    background: var(--bg-alt);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.faq-question {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-main);
}

.faq-question i {
    transition: transform 0.4s ease;
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

/* Active State */
.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 200px;
    /* Достаточно для текста */
}
.contact {
    padding: 100px 0;
    background: white;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--bg-alt);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, var(--text-main), #333);
    color: white;
}

.contact-info .section-title {
    color: white;
    margin-bottom: 20px;
}

.contact-meta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.contact-form {
    padding: 60px;
    background: white;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"] {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: var(--bg-alt);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

.captcha-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-wrapper label {
    font-weight: 600;
    font-size: 14px;
}

.captcha-wrapper input {
    width: 80px !important;
    padding: 8px !important;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Сообщения */
.form-message {
    position: absolute;
    inset: 0;
    background: white;
    display: none;
    /* Скрыто по умолчанию */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    border-radius: 40px;
}

.form-message.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.form-message i {
    color: #10b981;
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px;
    }

    .contact-form {
        padding: 40px;
    }
}
/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 24px;
    right: 24px;
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 500px;
}

.cookie-popup.active {
    transform: translateY(-130px);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Mobile Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1050;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        right: 0;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        z-index: 1040;
        transition: 0.3s;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        transform: rotate(-45deg);
    }
}
/* Фикс отображения бургера */
@media (max-width: 992px) {
    .burger {
        display: flex;
        position: relative;
        z-index: 1100;
        width: 30px;
        height: 24px;
        flex-direction: column;
        justify-content: space-between;
    }

    .burger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        transition: 0.3s;
    }

    .nav-list {
        display: flex;
        /* Перебиваем display: none */
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        gap: 20px;
        z-index: 1050;
        transition: 0.4s ease-in-out;
    }

    .nav-list.active {
        right: 0;
    }
}
@media (max-width: 992px) {
    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        position: relative;
    }

    .burger span {
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    /* Анимация бургера в крестик */
    .burger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        /* Полностью скрыто */
        width: 280px;
        /* Фиксированная ширина без оверлея смотрится лучше */
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        /* Выравнивание по левому краю */
        justify-content: center;
        gap: 25px;
        padding: 40px;
        z-index: 1050;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }
}
/* Стили для юридических страниц */
main section.pages {
    padding: 150px 0 100px;
    background: var(--bg-light);
}

.pages .container {
    max-width: 800px;
    /* Узкая колонка для удобства чтения */
}

.pages h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 40px;
    color: var(--text-main);
}

.pages h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.pages p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pages ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.pages ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    list-style-type: square;
}

@media (max-width: 768px) {
    main section.pages {
        padding: 120px 0 60px;
    }
}
/* Дополнительные стили для страницы контактов */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-card {
    background: var(--bg-alt);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
    font-size: 20px;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
}

.contact-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
}

.contact-address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 15px;
}

.contact-extra {
    text-align: center;
    padding: 30px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 20px;
    border: 1px dashed var(--accent);
}

.contact-extra a {
    color: var(--accent);
    font-weight: 600;
}