:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --bg: #0a0a0f;
    --bg-card: #14141f;
    --bg-elevated: #1e1e2e;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --border: #27273f;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: rgba(99, 102, 241, 0.3);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #14141f 0%, #1e1e2e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ===== HEADER ===== */
header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover:after {
    width: 100%;
}

.btn-cta-small {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 100px 0 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    padding: 24px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.platform-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow);
}

.platform-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.platform-btn div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-btn span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.platform-btn small {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.platform-btn.windows:hover { border-color: #0078d4; }
.platform-btn.macos:hover { border-color: #000; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.platform-btn.android:hover { border-color: #3ddc84; }
.platform-btn.ios:hover { border-color: #555; background: linear-gradient(135deg, #434343 0%, #000000 100%); }

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
}

.floating-card {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    animation: float-card 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: -10%;
}

.card-2 {
    bottom: 15%;
    left: -10%;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    font-size: 24px;
}

.card-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-light);
}

/* ===== SOCIAL SHARE ===== */
.social-share {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin: 60px 0;
}

.social-share .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-share span {
    font-weight: 600;
    color: var(--text-muted);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.fb { background: #1877f2; }
.tw { background: #1da1f2; }
.li { background: #0a66c2; }
.rd { background: #ff4500; }

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 80px;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Platforms Section */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.platform-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-elevated);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.macos-color { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.android-color { background: linear-gradient(135deg, #3ddc84 0%, #07c160 100%); color: white; }
.ios-color { background: linear-gradient(135deg, #434343 0%, #000000 100%); color: white; }

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.platform-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list-mini {
    list-style: none;
    padding-left: 0;
}

.feature-list-mini li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
}

.feature-list-mini li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.showcase-container {
    text-align: center;
    margin-top: 60px;
}

.showcase-img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

/* Requirements Section */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.req-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.req-table {
    width: 100%;
    border-collapse: collapse;
}

.req-table tr {
    border-bottom: 1px solid var(--border);
}

.req-table tr:last-child {
    border-bottom: none;
}

.req-table td {
    padding: 12px 0;
    font-size: 14px;
}

.req-table td:first-child {
    color: var(--text-muted);
    font-weight: 600;
    width: 35%;
}

.req-table td:last-child {
    color: var(--text);
}

.req-table a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.req-table a:hover {
    color: var(--primary-light);
}

.dependency-notice {
    background: var(--bg-elevated);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 20px;
}

.dependency-notice svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.dependency-notice h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.dependency-notice p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.dependency-notice ul {
    list-style: none;
    padding-left: 0;
}

.dependency-notice li {
    padding: 8px 0;
    color: var(--text-muted);
}

.dependency-notice a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Changelog Timeline */
.changelog-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.changelog-timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.changelog-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 48px;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.changelog-item.current .timeline-marker {
    background: var(--success);
    box-shadow: 0 0 20px var(--success);
}

.changelog-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.changelog-item.current .changelog-content {
    border-color: var(--primary);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.version-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.badge {
    display: inline-block;
    background: var(--success);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.date {
    color: var(--text-muted);
    font-size: 14px;
}

.changelog-content ul {
    list-style: none;
    padding-left: 0;
}

.changelog-content li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}

.changelog-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Guide Section */
.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.guide-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.guide-step h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    margin-top: 8px;
    color: #fff;
}

.guide-step p,
.guide-step ol {
    color: var(--text-muted);
    line-height: 1.7;
}

.guide-step ol {
    padding-left: 20px;
}

.guide-step code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
    font-size: 13px;
}

.guide-visual {
    text-align: center;
    margin-top: 60px;
}

.guide-img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* API Reference */
.api-reference {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 48px;
    margin-top: 80px;
}

.api-reference h3 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: center;
    color: #fff;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.function-category h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.function-category ul {
    list-style: none;
    padding-left: 0;
}

.function-category li {
    padding: 6px 0;
}

.function-category code {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--text);
    font-size: 13px;
    display: inline-block;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.faq-answer ol {
    padding-left: 20px;
    color: var(--text-muted);
}

.faq-answer code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.trust-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
}

.trust-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.disclaimer {
    font-size: 13px !important;
    opacity: 0.7;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    header nav {
        display: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .guide-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .platform-btn {
        padding: 16px 20px;
    }
}

/* ===== HERO УЛУЧШЕНИЯ (центрированный макет) ===== */
.hero-content-centered {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stats-bar-horizontal {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 40px 0 48px;
    flex-wrap: wrap;
}

/* Компактная сетка 2x2 для кнопок загрузки */
.download-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 32px;
}

.platform-btn-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-family: inherit;
}

.platform-btn-compact:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px var(--shadow);
}

.platform-btn-compact svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.platform-btn-compact div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-btn-compact span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.platform-btn-compact small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Hover effects для каждой платформы */
.platform-btn-compact.windows:hover {
    border-color: #0078d4;
    background: rgba(0, 120, 212, 0.05);
}

.platform-btn-compact.macos:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.platform-btn-compact.android:hover {
    border-color: #3ddc84;
    background: rgba(61, 220, 132, 0.05);
}

.platform-btn-compact.ios:hover {
    border-color: #555;
    background: linear-gradient(135deg, rgba(67, 67, 67, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-visual-centered {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

/* ===== PLATFORMS SECTION - 2x2 СЕТКА ===== */
.platforms-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== API FUNCTIONS - 8 КАТЕГОРИЙ ===== */
.function-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.function-grid-8 .function-category h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary-light);
    font-weight: 700;
}

.function-grid-8 .function-category ul {
    list-style: none;
    padding-left: 0;
}

.function-grid-8 .function-category li {
    padding: 6px 0;
}

.function-grid-8 .function-category code {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--text);
    font-size: 13px;
    display: inline-block;
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1024px) {
    .download-grid-compact {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .platforms-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .function-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats-bar-horizontal {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .stats-bar-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .function-grid-8 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .download-grid-compact {
        gap: 12px;
    }

    .platform-btn-compact {
        padding: 14px 16px;
    }

    .platform-btn-compact span {
        font-size: 14px;
    }
}

/* ===== HERO УЛУЧШЕНИЯ (центрированный макет) ===== */
.hero-content-centered {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stats-bar-horizontal {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 40px 0 48px;
    flex-wrap: wrap;
}

/* Компактная сетка 2x2 для кнопок загрузки */
.download-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 32px;
}

.platform-btn-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-family: inherit;
}

.platform-btn-compact:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px var(--shadow);
}

/* ИСПРАВЛЕНИЕ: Иконки операционных систем теперь видны */
.platform-btn-compact svg {
    flex-shrink: 0;
    opacity: 0.9;
    color: var(--text); /* Явно задаём цвет */
}

.platform-btn-compact.windows svg {
    color: #0078d4;
}

.platform-btn-compact.macos svg {
    color: #667eea;
}

.platform-btn-compact.android svg {
    color: #3ddc84;
}

.platform-btn-compact.ios svg {
    color: #a1a1aa;
}

.platform-btn-compact div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-btn-compact span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.platform-btn-compact small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Hover effects для каждой платформы */
.platform-btn-compact.windows:hover {
    border-color: #0078d4;
    background: rgba(0, 120, 212, 0.05);
}

.platform-btn-compact.macos:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.platform-btn-compact.android:hover {
    border-color: #3ddc84;
    background: rgba(61, 220, 132, 0.05);
}

.platform-btn-compact.ios:hover {
    border-color: #555;
    background: linear-gradient(135deg, rgba(67, 67, 67, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* ИСПРАВЛЕНИЕ: Trust badges теперь центрированы */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

.hero-visual-centered {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

/* ===== PLATFORMS SECTION - 2x2 СЕТКА ===== */
.platforms-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== SYSTEM REQUIREMENTS - 2x2 СЕТКА ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== API FUNCTIONS - 8 КАТЕГОРИЙ ===== */
.function-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.function-grid-8 .function-category h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary-light);
    font-weight: 700;
}

.function-grid-8 .function-category ul {
    list-style: none;
    padding-left: 0;
}

.function-grid-8 .function-category li {
    padding: 6px 0;
}

.function-grid-8 .function-category code {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--text);
    font-size: 13px;
    display: inline-block;
}

/* ===== УМЕНЬШЕННЫЕ ОТСТУПЫ МЕЖДУ СЕКЦИЯМИ ===== */
section {
    padding: 60px 0; /* Было 100px, теперь 60px */
}

/* Для первой секции (hero) оставляем больший отступ */
.hero {
    padding: 100px 0 60px;
}

/* Section title с меньшим отступом сверху */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
    margin-top: 0;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px; /* Было 80px, теперь 60px */
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1024px) {
    .download-grid-compact {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .platforms-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .function-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats-bar-horizontal {
        gap: 32px;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .stats-bar-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .function-grid-8 {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-intro {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .download-grid-compact {
        gap: 12px;
    }

    .platform-btn-compact {
        padding: 14px 16px;
    }

    .platform-btn-compact span {
        font-size: 14px;
    }

    section {
        padding: 30px 0;
    }
}

.hero {
    margin-top: -70px !important;
}