/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные в стиле Cursor */
:root {
    --bg-white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent-black: #000000;
    --border-color: #e5e7eb;
    --hover-bg: #f4f4f5;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Совместимость со старыми переменными */
    --color-bg: var(--bg-white);
    --color-text: var(--text-main);
    --color-text-secondary: var(--text-muted);
    --color-accent: var(--accent-black);
    --color-accent-hover: #333333;
    --color-border: var(--border-color);
    --color-card-bg: #fafafa;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-shadow-hover: rgba(0, 0, 0, 0.1);
    --font-primary: var(--font-sans);
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
    --transition: all 0.2s ease;
    --border-radius: 6px;
    --container-max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    /* Скрытие scrollbar для всех браузеров */
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Скрытие scrollbar */
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.nav {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
    display: block;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-black);
    letter-spacing: -0.02em;
    margin: 0;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 12px var(--color-shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        width: 100%;
    }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-card-bg) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--accent-black);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent-black);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

    .btn-secondary {
        border: 1px solid var(--border-color);
        color: var(--text-main);
        margin-left: 0;
        margin-top: 12px;
    }

.btn-secondary:hover {
    background: var(--hover-bg);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SEO & Features */
.seo-block {
    margin-top: 60px;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fafafa;
    text-align: left;
}

.seo-block h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--accent-black);
    font-weight: 600;
}

.seo-block-text {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 24px;
}

.seo-block-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-black);
    margin-bottom: 16px;
    margin-top: 32px;
}

.seo-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-block-list li {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.8;
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.seo-block-list li:last-child {
    border-bottom: none;
}

.seo-block-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-black);
    font-weight: 600;
}

.seo-block-list li strong {
    color: var(--accent-black);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--accent-black);
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    margin: 60px 0;
}

.feature-card {
    background: white;
    padding: 40px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-black);
}

.feature-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* How To Section */
.how-to {
    padding: 100px 0;
    background-color: #fafafa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--accent-black);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-black);
}

.step-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: var(--text-main);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-black);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background-color: var(--accent-black);
    color: var(--bg-white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta .btn-primary {
    background-color: var(--bg-white);
    color: var(--accent-black);
}

.cta .btn-primary:hover {
    background-color: var(--hover-bg);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-black);
}

.footer-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-black);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .hero-subtitle {
        font-size: 18px;
    }
    
    .seo-block {
        padding: 24px;
        margin-top: 40px;
    }
    
    .seo-block-title {
        font-size: 22px;
    }
    
    .seo-block-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 40px;
    }

    .step {
        flex-direction: column;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .seo-block {
        padding: 20px;
        margin-top: 30px;
    }
    
    .seo-block-title {
        font-size: 20px;
    }
    
    .seo-block-text {
        font-size: 15px;
    }
    
    .seo-block-subtitle {
        font-size: 16px;
        margin-top: 24px;
    }
    
    .seo-block-list li {
        font-size: 15px;
        padding-left: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-black);
    outline-offset: 2px;
}

