/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Визуальный референс итерации: Binance (тёмная панель, акцентные CTA, чёткие границы). */

:root {
    --bg: #0b1220;
    --panel: #111a2d;
    --panel-2: #16233c;
    --text: #ecf2ff;
    --muted: #9fb1d1;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #6ea8fe;
    --accent-2: #7ef0c2;
    --warning: #ffc96b;
    --danger: #ff8585;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 22px;
    --container: 1180px;
    --crypto-section-y: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

option {
    color: rgba(8, 16, 29, 0.76);
}

a.custom-logo-link {
    background: #ecf2ff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(110, 168, 254, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(126, 240, 194, 0.12), transparent 22%),
        linear-gradient(180deg, #08101d 0%, #0b1220 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: var(--crypto-section-y) 0;
}

.section-lg {
    padding: 70px 0 34px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(8, 16, 29, 0.76);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(110, 168, 254, 0.6);
}

.brand__logo {
    display: inline-flex;
    align-items: center;
}

.brand__logo img {
    display: block;
    max-height: 40px;
    width: auto;
}

.brand__name {
    white-space: nowrap;
}

.nav .nav__list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
    color: var(--text);
}

.hero {
    padding: 64px 0 26px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1 {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 840px;
}

.lead {
    margin-top: 18px;
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--muted);
    max-width: 760px;
}

.lead--tight {
    margin-top: 14px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.button--primary {
    background: linear-gradient(135deg, var(--accent), #4c8ef9);
    color: #08101d;
}

.button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(76, 142, 249, 0.25);
}

.button--ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button--ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(110, 168, 254, 0.35);
}

.hero__note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.panel--pad {
    padding: 24px;
}

.hero-card {
    display: grid;
    gap: 14px;
}

.hero-card__title {
    font-size: 28px;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.hero-card p {
    color: var(--muted);
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.mini-item:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 168, 254, 0.22);
}

.mini-item__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(110, 168, 254, 0.12);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--accent-2);
}

.mini-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.mini-item p {
    color: var(--muted);
    font-size: 14px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head--flat {
    margin-bottom: 0;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.section-head p {
    max-width: 780px;
    color: var(--muted);
}

.section-head__muted {
    margin-top: 12px;
    color: var(--muted);
    max-width: 780px;
}

.section-title {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.section-text {
    color: var(--muted);
    margin-bottom: 12px;
    max-width: 900px;
}

.section-text--last {
    margin-bottom: 16px;
}

.controls {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.controls--yields {
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
}

.controls--calc {
    grid-template-columns: 1fr;
}

.field,
.select,
.toggle {
    min-height: 48px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    font: inherit;
}

.field:focus,
.select:focus {
    border-color: rgba(110, 168, 254, 0.45);
    box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.12);
}

.toggle-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toggle {
    width: auto;
    padding: 0 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.toggle.active {
    background: rgba(110, 168, 254, 0.16);
    color: var(--text);
    border-color: rgba(110, 168, 254, 0.35);
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
}

/* Кнопка подгрузки строк таблицы yield */
.yields-table-more {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.yields-table-more__btn {
    min-width: 200px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.yields-table-more__btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.yields-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.yields-table th,
.yields-table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.yields-table th {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.yields-table td {
    font-size: 14px;
}

.yields-table__loading {
    text-align: center;
    color: var(--muted);
}

.yields-status {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    min-height: 1.2em;
}

.yields-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.yields-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.yields-table tbody tr.is-active td {
    background: rgba(110, 168, 254, 0.08);
}

.token {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.token small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 3px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.badge--green {
    color: #b7f9dc;
    border-color: rgba(126, 240, 194, 0.28);
    background: rgba(126, 240, 194, 0.08);
}

.badge--amber {
    color: #ffe2aa;
    border-color: rgba(255, 201, 107, 0.28);
    background: rgba(255, 201, 107, 0.08);
}

.badge--red {
    color: #ffc0c0;
    border-color: rgba(255, 133, 133, 0.24);
    background: rgba(255, 133, 133, 0.08);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
}

.grid-2--calc {
    align-items: start;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.info-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.info-card__label {
    color: var(--muted);
    font-size: 13px;
}

.info-card__value {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.info-card__value--sm {
    font-size: 20px;
}

.info-card__hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.pool-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.pool-head h3 {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.pool-sub {
    margin-top: 6px;
    color: var(--muted);
}

.pool-tags {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pool-risk-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.chart-box {
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.chart-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.chart-box__lead {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.chart-svg-wrap {
    position: relative;
    height: 290px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        repeating-linear-gradient(to top, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 56px),
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 72px);
    overflow: hidden;
    border: 1px solid var(--line);
}

.chart-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.chart-fallback {
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 201, 107, 0.35);
    background: rgba(255, 201, 107, 0.06);
    color: #ffe2aa;
    font-size: 14px;
    margin-bottom: 12px;
}

.chart-legend {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.chart-legend span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: -1px;
}

.legend-apy::before {
    background: var(--accent);
}

.legend-tvl::before {
    background: var(--accent-2);
}

.chart-summary {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.chart-summary__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.chart-summary__row dd {
    margin: 0;
    color: var(--text);
}

.chart-summary__row--full {
    grid-template-columns: 1fr;
}

.calc {
    display: grid;
    gap: 16px;
}

.calc__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.calc__hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.field-label {
    display: grid;
    gap: 8px;
}

.field-label__text {
    font-size: 13px;
    color: var(--muted);
}

.field-inline {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
}

.select--inline {
    min-height: 48px;
}

.copy-block {
    display: grid;
    gap: 14px;
}

.copy-block p {
    color: var(--muted);
}

.stable-summary {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 14px;
}

.faq {
    display: grid;
    gap: 12px;
}

details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 18px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

details:hover {
    border-color: rgba(110, 168, 254, 0.22);
}

summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 24px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -1px;
    font-size: 22px;
    color: var(--muted);
}

details[open] summary::after {
    content: "−";
}

details p {
    margin-top: 12px;
    color: var(--muted);
}

.cta {
    text-align: center;
    padding: 30px;
}

.cta h2 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.cta p {
    margin: 12px auto 0;
    max-width: 740px;
    color: var(--muted);
}

.cta .button {
    margin-top: 22px;
}

.footer {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding: 18px 0 34px;
    color: var(--muted);
    font-size: 14px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1080px) {

    .hero__grid,
    .grid-2,
    .controls--yields,
    .snapshot-grid,
    .calc__grid {
        grid-template-columns: 1fr;
    }

    .field-inline {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .chart-summary__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar__inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: start;
    }

    .nav .nav__list {
        gap: 12px;
    }

    .hero {
        padding-top: 42px;
    }

    .panel--pad {
        padding: 18px;
    }

    .cta {
        padding: 22px;
    }
}