/* === БАЗОВЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
}

/* === НАВБАР === */
.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: transparent;
}

.logo {
    font-size: 32px;
    font-weight: 700;
}

.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    color: #bbb;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.menu a:hover {
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login, .register {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.3s;
}

.login {
    color: #bbb;
}

.register {
    background: #ff9800;
    color: #000;
}

.register:hover {
    background: #ffa722;
}

/* === HERO СЕКЦИЯ === */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    gap: 40px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero-text h1 span {
    color: #ff9800;
}

.hero-text p {
    margin-top: 10px;
    font-size: 20px;
    color: #ccc;
}

/* === ФОРМА === */
.form {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.form input {
    padding: 14px;
    width: 260px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

.form button {
    padding: 14px 20px;
    background: #ff9800;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.form button:hover {
    background: #ffa722;
}

/* === ТЕКСТ СНИЗУ === */
.subtext {
    margin-top: 15px;
    font-size: 16px;
    color: #bbb;
}

.g { color: #4c8bf5; font-weight: bold; }
.apple { font-size: 18px; }
.tg { color: #2ca8e0; font-weight: bold; }

/* === КАРТИНКА КОПИЛКИ === */
.hero-img img {
    width: 480px;
    animation: sway 2.5s ease-in-out infinite;
}

/* Анимация покачивания */
@keyframes sway {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* ========================================================== */
/* === АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ === */
/* ========================================================== */

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-img img {
        width: 380px;
    }

    .form {
        justify-content: center;
    }

    .menu {
        gap: 15px;
    }
}

/* ========================================================== */
/* === МОБИЛЬНАЯ ВЕРСИЯ — МЕНЮ СТАНОВИТСЯ БУРГЕРОМ === */
/* ========================================================== */

/* ДЕСКТОП — бургер скрыт */
.burger {
    display: none;
    margin-left: auto;
}
.mobile-menu {
    display: none;
}
/* === ПЛАНШЕТНАЯ АДАПТАЦИЯ — чтобы меню не съезжало === */
@media (max-width: 1150px) and (min-width: 769px) {

    .navbar {
        padding: 20px 20px;
    }

    .menu {
        gap: 15px; /* меньше расстояние между пунктами */
    }

    .menu a {
        font-size: 14px; /* уменьшаем шрифт меню */
    }

    .auth-buttons {
        gap: 10px;
    }

    .login, .register {
        padding: 6px 14px;
        font-size: 14px; /* уменьшаем кнопки */
    }
}


/* МОБИЛЬНЫЕ */
@media (max-width: 768px) {

    .menu,
    .auth-buttons {
        display: none;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1002;
    }

    .burger span {
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: 0.3s;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #111;
        display: flex;
        flex-direction: column;
        padding: 80px 30px;
        gap: 22px;
        font-size: 22px;
        transform: translateX(-100%);
        transition: 0.35s ease;
        z-index: 1001;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }
    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
    }

    .mobile-menu a:hover {
        opacity: 0.7;
    }

    
    .close-btn:hover {
        opacity: 0.6;
        cursor: pointer;  /* палец */
    }
}
/* === НАВБАР (тёмный фон + липкий к верху) === */
.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: #0d0d0d; /* тёмно-серый, как у Bybit */
    position: sticky;     
    top: 0;
    z-index: 9999; /* поверх всего */
    border-bottom: 1px solid #222; /* лёгкая линия снизу */
}
.market-section {
    text-align: center;
    margin: 80px auto 60px;
    max-width: 1200px;
}

.market-section h2 {
    font-size: 42px;
    margin-bottom: 8px;
}

.market-section .subtitle {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
}

.market-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 22px;
}

.market-card {
    background: radial-gradient(circle at top left, #262626 0, #111 60%);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    color: #fff;
}

.market-card.big-chart {
    grid-row: span 2;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pair-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.pair-right {
    text-align: right;
}

.icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffb800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.icon-circle.small {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.price {
    font-size: 20px;
    font-weight: 700;
}

.change {
    font-size: 14px;
    margin-left: 8px;
}

.change.green {
    color: #3ecf5d;
}
.change.red {
    color: #ff4d4d;
}

/* маленькие карточки */
.pair-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 16px;
}

.pair-bottom .price {
    font-size: 18px;
}

/* кнопка снизу */
.trade-btn {
    margin-top: 40px;
    padding: 14px 30px;
    border-radius: 30px;
    background: #ffb800;
    border: none;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}


/* анимация мигания при изменении цены */
@keyframes flashUp {
    0% { background-color: rgba(0,255,0,0.2); }
    100% { background-color: transparent; }
}
@keyframes flashDown {
    0% { background-color: rgba(255,0,0,0.2); }
    100% { background-color: transparent; }
}

.flash-up {
    animation: flashUp 0.4s ease-out;
}
.flash-down {
    animation: flashDown 0.4s ease-out;
}

/* адаптивность */
@media (max-width: 992px) {
    .market-grid {
        grid-template-columns: 1fr 1fr;
    }
    .market-card.big-chart {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
    .market-card.big-chart {
        grid-column: span 1;
        grid-row: span 1;
        height: 260px;
    }
}
@media (max-width: 768px) {

    .market-section {
        padding: 0 16px;   /* отступы слева/справа */
    }

    .market-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 6px;   /* небольшой внутренний отступ */
    }

    .market-card {
        border-radius: 16px;
        padding: 20px;
    }

    .market-card.big-chart {
        height: 260px;
    }

    .chart-wrapper {
        height: 180px;
    }
}
@media (max-width: 768px) {

    .market-card.big-chart {
        height: 200px;           /* фиксируем высоту карточки */
        padding-bottom: 20px;    /* добавляем нижний внутренний отступ */
        overflow: hidden;        /* ничего не выйдет за рамку */
        margin-bottom: 60px;     /* внешний отступ как у других */
    }

    .chart-wrapper {
        height: 120px;           /* ограничиваем высоту графика */
        overflow: hidden;
        position: relative;
        margin-bottom: 40px;
    }
    
    .btc-svg {
        width: 100%;
        height: 140px;           /* график выше, чем wrapper — специально */
        transform: translateY(-15px); /* ПОДНИМАЕМ график вверх */
    }
}

.stocks-section {
    background: #e5e5e5;
    padding: 60px 20px;
    text-align: center;
}

.stocks-subtitle {
    letter-spacing: 4px;
    color: #4a4a4a;
    font-size: 14px;
    margin-bottom: 10px;
}

.stocks-title {
    font-size: 38px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.stocks-desc {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1150px;
    margin: 0 auto;
}

.stock-card {
    background: white;
    border-radius: 18px;
    padding: 26px;
    text-align: left;
    box-shadow: 0 0 25px rgba(0,0,0,0.05);
    transition: 0.25s;
}

.stock-card:hover {
    transform: translateY(-5px);
}

.stock-card h4 {
    color: #777;
    font-size: 16px;
    margin-bottom: 10px;
}

.stock-card p {
    font-size: 18px;
    margin-bottom: 20px;
}

.stock-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-bottom img {
    width: 82px;
    height: 42px;
}

.arrow {
    margin-left: auto;
    font-size: 22px;
    color: #666;
}

.stocks-btn {
    margin-top: 40px;
    padding: 14px 32px;
    background: #ff9f00;
    border: none;
    border-radius: 30px;
    color: #111;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}
@media (max-width: 900px) {
    .stocks-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .stocks-grid {
        grid-template-columns: 1fr;
    }
}

.stock-price {
    color: #22c55e; /* яркий зеленый */
    font-weight: 600;
    margin-left: 10px;
    font-size: 18px;
}

@media (max-width: 768px) {

    .navbar {
        padding: 16px 20px !important;
    }

    .hero {
        padding: 30px 20px !important;
        flex-direction: column;
        text-align: center;
    }

    .hero-img img {
        width: 100%;
        max-width: 340px;
    }
    /* Тут добавил педдинг для формы */
    .form {
        width: 100%;
        flex-direction: column;
        padding-right: 10px;
        padding-left: 10px;
    }

    .form input,
    .form button {
        width: 100%;
        max-width: 100%;
    }
}

/* === STAKING SECTION === */

.stake-section {
    background: #000;
    padding: 80px 20px;
    text-align: center;
}

.stake-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stake-title span {
    color: #ff9800;
}

.stake-subtitle {
    color: #aaa;
    font-size: 18px;
    margin-bottom: 50px;
}

.stake-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
}

.stake-card {
    background: radial-gradient(circle at top left, #262626 0, #111 70%);
    padding: 26px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stake-card.big {
    grid-row: span 2;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stake-header {
    margin-bottom: 30px;
}

.stake-icon {
    width: 46px;
    height: 46px;
    background: #ffb800;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.stake-icon.big {
    width: 60px;
    height: 60px;
    font-size: 30px;
}

.stake-desc {
    margin-top: 12px;
    font-size: 18px;
    color: #ccc;
}

.stake-rate {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.percent {
    color: #3ecf5d;
}

.stake-btn,
.stake-bottom-btn {
    margin-top: 40px;
    padding: 14px 32px;
    background: #ffb800;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
}

.stake-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stake-coin {
    font-size: 18px;
    color: #ddd;
}

.stake-apy {
    font-size: 20px;
    font-weight: 700;
}

.stake-arrow {
    font-size: 28px;
    opacity: 0.7;
}

/* === MOBILE RESPONSIVE === */

@media (max-width: 900px) {
    .stake-grid {
        grid-template-columns: 1fr;
    }

    .stake-card.big {
        order: -1;
    }
}

@media (max-width: 600px) {
    .stake-title {
        font-size: 32px;
    }

    .stake-card.big {
        padding: 30px;
    }

    .stake-rate {
        font-size: 28px;
    }

    .stake-card {
        padding: 20px;
    }
}

/* === CARDS SECTION === */

.cards-section {
    background: #e5e5e5;
    padding: 70px 20px;
    text-align: center;
}

.cards-carousel {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.cards-carousel::-webkit-scrollbar {
    display: none; 
}

.card-item {
    flex: 0 0 auto;
    width: 420px;
    transition: transform 0.4s ease;
}

.card-item img {
    width: 100%;
    border-radius: 16px;
}

/* Hover эффект */
.card-item:hover {
    transform: scale(1.05);
}

/* === TEXT BLOCK BELOW === */
.cards-info h2 {
    font-size: 40px;
    margin: 40px 0;
    color: #111;
}

.cards-btn {
    padding: 14px 26px;
    background: #ff9f00;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    color: #111;
    cursor: pointer;
    margin-top: 10px;
}

.cards-btn:hover {
    background: #ffb933;
}

/* Stats row */
.cards-stats {
    display: flex;
    justify-content: center;
    gap: 140px;
    margin-top: 60px;
}

.stat h3 {
    font-size: 26px;
    color: #000;
}

.stat p {
    color: #444;
    margin-top: 5px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .cards-stats {
        gap: 60px;
    }
}

@media (max-width: 600px) {
    .card-item {
        width: 80%;
    }
    .cards-stats {
        flex-direction: column;
        gap: 30px;
    }
}

/* ============================= */
/*      REFERRAL SECTION         */
/* ============================= */

.referral-section {
    background: #000;
    padding: 120px 20px;
    text-align: center;
}

.referral-content {
    max-width: 1000px;
    margin: 0 auto;
}

.referral-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.referral-section .subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
}

.ref-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ref-item {
    background: #0d0d0d;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255, 168, 0, 0.08);
    flex: 0 1 260px;
}

.ref-num {
    font-size: 40px;
    font-weight: 700;
    color: #ffb800;
    display: block;
    margin-bottom: 8px;
}

.ref-btn {
    padding: 16px 40px;
    background: #ffb800;
    color: #000;
    font-size: 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.ref-btn:hover {
    background: #ffc233;
}

.small-text {
    margin-top: 25px;
    color: #777;
    font-size: 16px;
}





