/* --- Global Styles & Variables --- */
:root {
    --dark-bg: #05070D;
    --card-bg: #10121B;
    --gold: #FBBF24;
    --text-primary: #E5E7EB;
    --text-secondary: #8b949e;
    --glow-color: rgba(251, 191, 36, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Class to prevent scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Background Glow Effect --- */
.glow-bg {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 15% 30%, var(--glow-color) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    filter: blur(120px);
}

/* --- Typography & Global Elements --- */
h1,
h2,
h3,
h4 {
    color: #FFFFFF;
    line-height: 1.2;
    font-weight: 800;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.25rem;
}

section {
    padding: 100px 0;
}

.text-gold {
    color: var(--gold);
}

.no-wrap {
    white-space: nowrap;
}


/* --- Header & Navigation --- */
.main-header {
    padding: 25px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.main-header .container,
.main-nav {
    display: flex;
    align-items: center;
}

.main-header .container {
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav .btn {
    margin-left: 20px;
}

/* --- Language Switcher --- */
.lang-switcher {
    margin-left: 25px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--text-primary);
}

.lang-switcher span {
    color: rgba(255, 255, 255, 0.2);
}

/* Mobile language switcher specific styles */
.lang-switcher-mobile {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 5px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--gold), #ffda75);
    color: #111;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 60px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1.5rem 0 2.5rem;
}

.hero-text .hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 450px;
    height: auto;
    animation: float-anim 4s ease-in-out infinite;
}

@keyframes float-anim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- Scroll Down Arrow --- */
.scroll-down {
    position: absolute;
    bottom: 10px;
    /* Even lower */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-down:hover {
    color: var(--gold);
}

.scroll-down span {
    font-size: 1.25rem;
    /* Even larger */
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.scroll-down svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* --- CTA Section (Уникальное предложение) - СКРЫТО --- */
.cta-section {
    display: none;
}

.cta-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-description {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
}


/* === STATISTICS SECTION === */
.statistics-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.chart-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.year-switcher {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.year-btn {
    background-color: transparent;
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.year-btn:hover {
    color: var(--gold);
    background-color: rgba(251, 191, 36, 0.1);
    border-color: var(--gold);
}

.year-btn.active {
    background-color: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
    font-weight: bold;
}

.chart-canvas-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

p.no-data {
    color: var(--text-secondary);
    padding: 5rem 0;
}


/* --- Features Section --- */
.features-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.features-new-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.25rem 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.07);
}

.feature-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-card .feature-number {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-text {
    text-align: left;
}

.features-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.features-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}


/* --- HOW IT WORKS SECTION --- */
.how-it-works-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.how-it-works-steps h2 {
    text-align: left;
    margin-bottom: 20px;
}

.step-card-new {
    position: relative;
    padding: 30px;
    padding-top: 45px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(25, 28, 41, 0.7) 0%, rgba(25, 28, 41, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.step-card-new:hover {
    transform: translateY(-5px);
}

.step-badge {
    position: absolute;
    top: -18px;
    left: 30px;
    background-color: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-card-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-top: 5px;
}

.step-divider {
    width: 1px;
    align-self: stretch;
    background-color: rgba(255, 255, 255, 0.1);
}

.step-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.step-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.how-it-works-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-it-works-visual img {
    width: 100%;
    max-width: 400px;
}

/* --- MANAGED TRADING SECTION --- */
.managed-trading-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.managed-trading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.managed-trading-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Grid Layout for desktop icon alignment */
    display: grid;
    grid-template-columns: min-content 1fr;
    column-gap: 20px;
    align-items: center;
}

.managed-trading-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.managed-trading-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
    line-height: 1;
}

.managed-trading-card h3 {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    grid-column: 2;
    grid-row: 1;
}

/* Push all content after the header (icon + h3) to the next row and span full width */
.managed-trading-card> :nth-child(n+3) {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.managed-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-secondary);
}

.managed-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.managed-list li::before {
    content: '✓';
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.code-inline {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--gold);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

.security-card {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.05), rgba(251, 191, 36, 0.01));
    border-color: rgba(251, 191, 36, 0.2);
}

.security-text {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.investor-password-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

.price-highlight {
    text-align: center;
    margin-bottom: 20px;
}

.price-highlight .percentage {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.price-highlight .prepayment {
    font-size: 1rem;
    color: var(--text-secondary);
}

.example {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.example-title {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.final-cta {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
}

.final-cta h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.final-cta p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}


/* --- TELEGRAM PROMO SECTION --- */
.telegram-promo-section {
    background-color: transparent;
    padding: 20px 0;
}

.telegram-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.telegram-promo-text .section-subtitle {
    text-align: left;
    margin: 1.5rem 0 2.5rem 0;
    max-width: 100%;
}

.telegram-promo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.telegram-promo-visual img {
    max-width: 700px;
    width: 100%;
}


/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Floating Telegram Button --- */
.floating-telegram-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
    /* Initial shadow for animation */
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    /* Applying the new pulse animation */
}

.floating-telegram-btn:hover {
    animation: none;
    /* Pause animation on hover */
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

/* Fine-tune SVG alignment for optical centering */
.floating-telegram-btn svg {
    transform: translate(-1px, -1px);
}

/* Keyframes for the new, better pulsing animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(251, 191, 36, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}


/* --- Mobile Navigation & Hamburger --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px;
}

.mobile-nav-panel.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--gold);
}

.mobile-nav .btn {
    font-size: 1.5rem;
    padding: 12px 28px;
}

/* === НАЧАЛО БЛОКА АДАПТИВНОСТИ === */

/* --- Responsive Design --- */

/* Планшеты и ноутбуки (до 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .features-new-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-text {
        order: -1;
        text-align: center;
    }

    .features-text h2 {
        text-align: center;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-visual {
        display: none;
    }

    .how-it-works-steps h2 {
        text-align: center;
    }

    .telegram-promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .telegram-promo-text {
        order: 2;
    }

    .telegram-promo-text h2 {
        text-align: center;
    }

    .telegram-promo-text .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .telegram-promo-visual {
        order: 1;
        margin-bottom: 40px;
    }
}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {

    .main-header {
        position: relative;
        padding: 5px 0 !important;
    }

    /* Hide desktop nav and show hamburger */
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    /* Show mobile language switcher */
    .lang-switcher-mobile {
        display: flex;
        margin: 0 15px;
        /* Adjust spacing */
    }

    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding-top: 0 !important;
        padding-bottom: 0;
        min-height: auto;
        display: block;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        order: 1;
        margin-top: -20px;
    }

    .hero-visual {
        order: 2;
        margin-top: 40px;
        margin-bottom: 0;
        width: 100%;
    }

    .hero-visual img {
        max-width: 90%;
    }

    /* Reduce gap between hero and statistics on mobile */
    .hero-section {
        padding-bottom: 0 !important;
    }

    .statistics-section {
        padding-top: 10px !important;
    }

    .hero-text .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-price {
        font-size: 1.6rem;
    }

    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .statistics-section {
        padding-top: 0 !important;
        margin-top: -30px !important;
        /* Force pull up */
        padding-bottom: 40px;
    }

    .chart-container {
        padding: 0;
    }

    .chart-canvas-wrapper {
        height: 300px;
    }

    .year-switcher {
        margin-bottom: 15px;
    }

    .year-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .how-it-works-grid {
        gap: 40px;
    }

    .how-it-works-visual img {
        max-width: 280px;
    }

    .step-card-new {
        padding: 20px;
        padding-top: 35px;
    }

    .step-badge {
        left: 20px;
    }

    .step-text h3 {
        font-size: 1.3rem;
    }

    .step-text p {
        font-size: 0.9rem;
    }

    .managed-trading-grid {
        grid-template-columns: 1fr;
    }

    .managed-trading-card {
        display: block;
    }

    .managed-trading-card-icon {
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
        margin-bottom: 0;
        font-size: 1.5rem;
    }

    .managed-trading-card h3 {
        display: inline;
        vertical-align: middle;
    }

    .floating-telegram-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-telegram-btn svg {
        width: 28px;
        height: 28px;
    }

    .scroll-down {
        display: none !important;
    }
}

/* Маленькие мобильные телефоны (до 576px) */
@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 16px;
    }

    .feature-card h3 {
        font-size: 0.9rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .feature-number {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2.0rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Унифицированные размеры шрифтов для всех описательных текстов */
    .step-text p,
    .managed-trading-card p,
    .managed-trading-card li,
    .managed-list li,
    .security-text,
    .investor-password-info,
    .example p,
    .section-subtitle,
    .final-cta p,
    .telegram-promo-text p {
        font-size: 0.8rem;
    }
}

/* === КОНЕЦ БЛОКА АДАПТИВНОСТИ === */

/* Стили для иконки Telegram в навигации */
.telegram-icon-link {
    margin-left: 20px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.telegram-icon-link:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .telegram-icon-link {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Стили для кнопки закрытия мобильного меню */
.close-menu-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-menu-btn:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* --- Custom Chart Legend --- */
.chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    /* Minimal gap between legend and chart */
    margin-top: 0;
    /* Pull it up closer to buttons if needed */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Manrope', sans-serif;
}

.legend-color-box {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Mobile legend font size */
@media (max-width: 768px) {
    .chart-legend {
        font-size: 0.75rem;
        gap: 12px;
    }

    .legend-item {
        font-size: 0.75rem;
        gap: 5px;
    }

    .legend-color-box {
        width: 10px;
        height: 10px;
    }
}

/* ========================================
   CALCULATOR SECTION
======================================== */
.calculator-section {
    padding: 80px 0;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.calculator-inputs {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculator-input-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

.calculator-input-group input,
.calculator-input-group select {
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calculator-input-group input:focus,
.calculator-input-group select:focus {
    outline: none;
    border-color: #FBBF24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.calculator-input-group input:hover,
.calculator-input-group select:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(40, 40, 60, 0.6));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15);
}

.result-card.main-result {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 2px solid #FBBF24;
}

.result-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-value {
    color: #FBBF24;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
}

.result-value.small {
    font-size: 1.5rem;
}

.result-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.result-card.profit {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.4);
}

.result-card.profit .result-value {
    color: #22C55E;
}

.result-percentage {
    color: rgba(34, 197, 94, 0.8);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Все карточки в сетке 2x2 */
    .calculator-results {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* main-result занимает 1 ячейку */
    .result-card.main-result {
        padding: 16px;
    }

    /* result-breakdown также в той же сетке */
    .result-breakdown {
        display: contents;
    }

    .result-card {
        padding: 16px;
    }

    .result-value {
        font-size: 1.3rem;
    }

    .result-value.small {
        font-size: 1.3rem;
    }

    .result-label {
        font-size: 0.75rem;
    }

    .result-percentage {
        font-size: 0.8rem;
    }

    /* Блоки сценария и дисклеймера на полную ширину */
    .calculator-info {
        grid-column: span 2;
    }
}

/* Calculator info and disclaimer */
.calculator-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scenario-info {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #FBBF24;
    padding: 16px 20px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.scenario-info strong {
    color: #FBBF24;
}

.scenario-info #avg-return {
    color: #22C55E;
    font-weight: 700;
}

.calculator-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid rgba(239, 68, 68, 0.6);
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .calculator-info {
        margin-top: 30px;
        gap: 12px;
    }

    .scenario-info,
    .calculator-disclaimer {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}

/* Center calculator header text */
.calculator-section .section-header {
    text-align: center;
}

/* Reduce section spacing globally */
section {
    padding: 50px 0 !important;
}

/* Specific adjustments for sections that need less space */
.statistics-section,
.calculator-section,
.features-section,
.managed-trading-section,
.how-it-works-section {
    padding: 40px 0 !important;
}

/* Hero section can keep more space */
.hero-section {
    min-height: 100vh !important;
    /* Force full screen height */
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    display: flex !important;
    align-items: center !important;
}

/* Telegram promo section styling - boxed CTA style */
.telegram-promo {
    padding: 40px 0;
}

.telegram-promo-content {
    max-width: 900px;
    margin: 0 auto;
}

/* CTA subtitle styling */
.cta-subtitle {
    font-size: 1.3rem;
    color: #FBBF24;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* CTA subtitle styling */
.cta-subtitle {
    font-size: 1.3rem;
    color: #FBBF24;
    font-weight: 600;
    margin-bottom: 1rem;
}