:root {
    --primary-color: #6b4cc9;
    --primary-hover: #5a3eb1;
    --secondary-color: #00c2ff;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --bg-color: #ffffff;
    --section-bg: #f5f5f7;
    --footer-bg: #1d1d1f;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

nav ul {
    display: flex;
    gap: 32px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline {
    border: 1px solid #d2d2d7;
}

.btn-outline:hover {
    background: #f5f5f7;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 76, 201, 0.3);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(107, 76, 201, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(0, 194, 255, 0.05), transparent);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

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

/* Features */
.features {
    padding: 100px 0;
    background: var(--section-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(107, 76, 201, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Payment Methods Marquee */
.payments {
    padding: 100px 0;
    overflow: hidden;
}

.payment-marquee {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content img {
    height: 32px;
    opacity: 0.4;
    transition: var(--transition);
    filter: grayscale(1);
}

.marquee-content img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* CTA Section */
.cta {
    padding: 80px 0;
}

.cta-box {
    background: var(--primary-color);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 40px;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: white;
}

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

.footer-col ul li a {
    color: #a1a1a6;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a1a1a6;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .detail-visual {
        order: -1;
    }

    .check-list li {
        justify-content: center;
    }
}

@media (max-width: 767px) {

    nav,
    .auth-buttons .btn-outline {
        display: none;
    }

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

/* Product Detail Sections */
.product-detail {
    padding: 120px 0;
    scroll-margin-top: 80px;
}

.product-detail.alt {
    background: var(--section-bg);
}

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

.detail-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 24px;
}

.detail-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(107, 76, 201, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.check-list {
    margin-bottom: 40px;
}

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

.check-list li i {
    color: #34c759;
    font-size: 18px;
}

/* Visual Decorations */
.detail-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(40px);
    /* Смещение вниз для лучшего баланса */
}

.card-stack {
    position: relative;
    width: 340px;
    height: 220px;
}

.stack-card {
    position: absolute;
    width: 280px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.stack-card i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(107, 76, 201, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.stack-card.primary {
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--primary-color);
    color: white;
}

.stack-card.primary i {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stack-card.secondary {
    top: 80px;
    left: 60px;
    z-index: 1;
}

/* Payout Illustration */
.payout-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.payout-node {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(107, 76, 201, 0.3);
}

.payout-line {
    width: 2px;
    height: 40px;
    background: repeating-linear-gradient(to bottom, var(--primary-color), var(--primary-color) 4px, transparent 4px, transparent 8px);
}

.payout-targets {
    display: flex;
    gap: 16px;
}

.payout-target {
    width: 52px;
    height: 52px;
    background: #f8f8f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* SBP Illustration */
.qr-illustration {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.qr-frame {
    width: 140px;
    height: 140px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary-color);
    position: relative;
    background: #f8f8f9;
    z-index: 1;
}

.qr-scan-line {
    position: absolute;
    width: 120%;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
    top: 50%;
    left: -10%;
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 90%;
    }
}

.qr-phone {
    position: absolute;
    bottom: -20px;
    right: -40px;
    font-size: 100px;
    color: var(--text-color);
    opacity: 0.1;
    z-index: 0;
}

/* Self-employed Box */
.self-employed-box {
    width: 300px;
    background: white;
    padding: 32px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 8px;
}

.doc-line {
    height: 8px;
    background: var(--section-bg);
    border-radius: 4px;
    width: 100%;
}

.doc-line.short {
    width: 40%;
}

.doc-line.medium {
    width: 70%;
}

.status-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #e1f7e8;
    color: #34c759;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Code Window */
.code-window {
    background: #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', Courier, monospace;
}

.code-header {
    background: #333;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-body {
    padding: 24px;
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.6;
}

.code-body .key {
    color: #9cdcfe;
}

.code-body .val {
    color: #ce9178;
}

/* Tariffs Section */
.tariffs {
    padding: 120px 0;
    background: var(--section-bg);
    scroll-margin-top: 80px;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tariff-card {
    background: white;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.tariff-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.tariff-header {
    margin-bottom: 32px;
    text-align: center;
}

.tariff-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.tariff-header .price {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tariff-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.tariff-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-color);
}

.tariff-features li i {
    color: #34c759;
}

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

/* Support Section */
.support {
    padding: 120px 0;
    background: white;
    scroll-margin-top: 80px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.support-card {
    text-align: center;
    padding: 40px;
    border-radius: 32px;
    background: var(--section-bg);
    transition: var(--transition);
}

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

.support-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.support-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

@media (max-width: 991px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tariff-card.popular {
        transform: none;
    }

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

/* Company & Contacts Section */
.company {
    padding: 100px 0;
    background: #fcfcfc;
    scroll-margin-top: 80px;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.about-text {
    margin-bottom: 40px;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-item i {
    color: var(--primary-color);
    font-size: 20px;
    width: 25px;
}

.requisites-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.requisites-card h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.req-table {
    width: 100%;
}

.req-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.req-row:last-child {
    border-bottom: none;
}

.req-label {
    color: #888;
    font-size: 14px;
}

.req-value {
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    color: var(--text-color);
}

@media (max-width: 991px) {
    .company-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* FAQ Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 32px;
    position: relative;
    overflow-y: auto;
    padding: 60px;
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 18px;
    color: var(--text-color);
}

.modal-close:hover {
    background: #eee;
    transform: rotate(90deg);
}

.faq-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
}

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

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    padding: 10px 0 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 20px;
    }

    .faq-title {
        font-size: 24px;
    }
}