/*
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.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — палитра из макета пользователя (Milano Red + Lemon Chiffon),
   референс интерфейса: Binance (светлая тема)
   ===================================================================== */
:root {
    --crypto-bg: #ffffff;
    --crypto-bg-alt: #fffceF;
    --crypto-surface: #ffffff;
    --crypto-surface-2: #fffdf2;
    --crypto-border: #ece6d1;
    --crypto-accent: #b81104;
    --crypto-accent-soft: rgba(184, 17, 4, .08);
    --crypto-accent-dark: #8c0d03;
    --crypto-highlight: #fffacd;
    --crypto-text: #111827;
    --crypto-text-muted: #6b7280;
    --crypto-white: #ffffff;
    --crypto-success: #15803d;
    --crypto-danger: #c2410c;
    --crypto-radius: 14px;
    --crypto-radius-sm: 8px;
    --crypto-shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --crypto-section-y: 22px;
    --crypto-container: 1240px;
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0; padding: 0; margin: -1px;
}
.container {
    max-width: var(--crypto-container);
    margin: 0 auto;
    padding: 0 24px;
}
main { display: block; overflow: hidden; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--crypto-border); }
.section__head { max-width: 760px; margin: 0 0 36px; }
.section__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--crypto-highlight);
    color: var(--crypto-accent-dark);
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 6px 12px; border-radius: 999px;
    margin-bottom: 10px;
}
.section__title { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; color: var(--crypto-text); }
.section__lead { color: var(--crypto-text-muted); font-size: 16px; margin: 0; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* =====================================================================
   TYPOGRAPHY / CONTENT PROSE (для текста, перенесённого из ТЗ)
   ===================================================================== */
.content { max-width: 820px; margin: 0 auto; padding: var(--crypto-section-y) 0; }
.content--wide { max-width: var(--crypto-container); }
.content h1 { font-size: clamp(28px, 4vw, 42px); color: var(--crypto-text); margin: 0 0 18px; line-height: 1.2; }
.content h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--crypto-text); margin: 40px 0 16px; }
.content h3 { font-size: 19px; color: var(--crypto-text); margin: 26px 0 10px; }
.content p { color: var(--crypto-text-muted); margin: 0 0 var(--crypto-section-y); }
.content ul, .content ol { margin: 0 0 var(--crypto-section-y); padding-left: 22px; color: var(--crypto-text-muted); }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 8px; }
.content strong, .content b { color: var(--crypto-text); }
.content code { background: var(--crypto-surface-2); border: 1px solid var(--crypto-border); border-radius: 6px; padding: 2px 6px; font-size: .92em; }
 p a,
 li a,
tr td a {
    color: var(--crypto-accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color .2s ease;
}
.content p a:hover, tr td a:hover, .content li a:hover{ color: var(--crypto-accent-dark); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px;
    border-radius: var(--crypto-radius-sm);
    font-weight: 700; font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--crypto-accent);
    color: #ffffff;
}
.btn--primary:hover {
    background: var(--crypto-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(184, 17, 4, .25);
}
.btn--secondary {
    background: transparent;
    color: var(--crypto-text);
    border-color: var(--crypto-border);
}
.btn--secondary:hover {
    border-color: var(--crypto-accent);
    color: var(--crypto-accent);
    transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--crypto-border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    max-width: var(--crypto-container);
    margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--crypto-text); }
.site-header__logo img { height: 34px; width: auto; }
.site-header__logo-mark { color: var(--crypto-accent); }
.site-header__logo--text { gap: 0; }
.site-header__logo--text::before { width: 26px; height: 26px; margin-right: 10px; color: var(--crypto-accent); }
.site-header__logo--text::after { content: ".org"; color: var(--crypto-accent); }

/* Иконки внутри ссылок рисуются через CSS-маску, чтобы в <a> был только текст */
.icon-inline::before {
    content: "";
    width: 20px; height: 20px; flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--icon-inline) center / contain no-repeat;
    mask: var(--icon-inline) center / contain no-repeat;
    transition: transform .25s ease;
}
.icon-inline--send { --icon-inline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h13'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }
.icon-inline--arrow { --icon-inline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E"); }
.icon-inline--gas { --icon-inline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v14'/%3E%3Cpath d='M4 11h10'/%3E%3Cpath d='M16 8.5 18.3 10a2 2 0 0 1 .7 1.5V17a1.7 1.7 0 0 1-3.4 0v-1'/%3E%3C/svg%3E"); }
.icon-inline--shield { --icon-inline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v6c0 4.6 3.2 7.9 7.5 9 4.3-1.1 7.5-4.4 7.5-9V6L12 3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.icon-inline--coins { --icon-inline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='9' cy='6' rx='6' ry='3'/%3E%3Cpath d='M3 6v6c0 1.7 2.7 3 6 3s6-1.3 6-3V6'/%3E%3Cpath d='M15 10.2c2.9.3 5 1.5 5 2.8 0 1.7-2.7 3-6 3-1.2 0-2.3-.2-3.2-.4'/%3E%3Cpath d='M14 15v3c0 1.7 2.7 3 6 3s6-1.3 6-3v-6'/%3E%3C/svg%3E"); }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; }
.nav__link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text);
    font-weight: 600; font-size: 14.5px;
    transition: color .2s ease, background .2s ease;
}
.nav__link:hover, .nav__item--active > .nav__link { color: var(--crypto-accent); background: var(--crypto-accent-soft); }
.nav__item--has-children > .nav__link::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease; }
.nav__item--has-children:hover > .nav__link::after { transform: rotate(225deg); margin-top: 3px; }

.nav__submenu {
    position: absolute; top: 100%; left: 0;
    min-width: 240px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 50;
}
.nav__submenu--grid { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav__item--has-children:hover .nav__submenu,
.nav__item--has-children:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__submenu-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text-muted);
    font-size: 14px; font-weight: 500;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.nav__submenu-link:hover { background: var(--crypto-accent-soft); color: var(--crypto-accent); padding-left: 16px; }
.nav__submenu-link img,
.nav__submenu-link .coin-logo-svg { width: 20px; height: 20px; border-radius: 50%; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    cursor: pointer;
}
.nav__burger-line { width: 20px; height: 2px; background: var(--crypto-text); margin: 0 auto; transition: transform .25s ease, opacity .25s ease; }
.nav--mobile-open .nav__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--mobile-open .nav__burger-line:nth-child(2) { opacity: 0; }
.nav--mobile-open .nav__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--crypto-bg-alt); border-top: 1px solid var(--crypto-border); padding: 56px 0 24px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer__brand { max-width: 260px; }
.footer__logo { font-weight: 800; font-size: 20px; color: var(--crypto-text); margin-bottom: 12px; display: block; }
.footer__logo::after { content: ".org"; color: var(--crypto-accent); }
.footer__about { color: var(--crypto-text-muted); font-size: 14px; margin: 0; }
.footer__title { color: var(--crypto-text); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { color: var(--crypto-text-muted); font-size: 14.5px; transition: color .2s ease, padding-left .2s ease; }
.footer__list a:hover { color: var(--crypto-accent); padding-left: 4px; }
.footer__bottom {
    margin-top: 44px; padding-top: 22px;
    border-top: 1px solid var(--crypto-border);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer__copy { color: var(--crypto-text-muted); font-size: 13.5px; margin: 0; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: var(--crypto-text-muted); font-size: 13.5px; }
.footer__legal a:hover { color: var(--crypto-accent); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: 68px 0 48px; position: relative; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute; inset: -20% -10% auto -10%; height: 480px;
    background: radial-gradient(60% 60% at 50% 0%, var(--crypto-highlight), transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 48px; }
.hero__content { flex: 1 1 480px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--crypto-highlight); color: var(--crypto-accent-dark);
    font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
    margin-bottom: 18px;
}
.hero__title { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15; margin: 0 0 18px; color: var(--crypto-text); }
.hero__text { color: var(--crypto-text-muted); font-size: 17px; margin: 0 0 16px; max-width: 560px; }
.hero__text a { color: var(--crypto-accent); text-decoration: underline; font-weight: 600; }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero__widget-col { flex: 0 0 auto; margin-left: auto; }

/* =====================================================================
   WIDGET-BLOCK (обменный виджет ± картинка)
   ===================================================================== */
.widget-block { display: flex; align-items: center; gap: 40px; }
.widget-block--reverse { flex-direction: row-reverse; }
.widget-block__media { flex: 1 1 380px; border-radius: var(--crypto-radius); overflow: hidden; box-shadow: var(--crypto-shadow); }
.widget-block__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s ease; }
.widget-block__media:hover img { transform: scale(1.05); }
.widget-block__frame,
.exchange-widget__frame {
    flex: 0 0 auto;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 14px;
    box-shadow: var(--crypto-shadow);
}
.exchange-widget__frame iframe { width: 100%; max-width: 500px; height: 400px; border: 0; border-radius: var(--crypto-radius-sm); display: block; }

/* =====================================================================
   CARDS & GRIDS
   ===================================================================== */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 26px;
    box-shadow: var(--crypto-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--crypto-accent); }
.card__icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform .3s ease;
}
.card:hover .card__icon { transform: scale(1.1) rotate(-6deg); }
.card__coin { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card__coin img,
.card__coin .coin-logo-svg { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 3px; }
.card__title { color: var(--crypto-text); font-size: 18px; margin: 0 0 10px; }
.card__text { color: var(--crypto-text-muted); font-size: 14.5px; margin: 0; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--crypto-accent); font-weight: 700; font-size: 14px; }
.card__link .icon { width: 16px; height: 16px; transition: transform .25s ease; }
.card:hover .card__link .icon,
.card:hover .card__link::before { transform: translateX(4px); }
.card__link.icon-inline::before, .gas-mini__link.icon-inline::before { width: 16px; height: 16px; }

/* Карточка-статья: ссылка только с текстом заголовка, растянута на всю карточку */
.card--post { position: relative; }
.card__title-link { color: inherit; text-decoration: none; font-weight: inherit; }
.card__title-link::after { content: ""; position: absolute; inset: 0; }

.route-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 16px 18px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.route-card:hover { transform: translateY(-4px); border-color: var(--crypto-accent); box-shadow: var(--crypto-shadow); }
.route-card img,
.route-card .coin-logo-svg { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 3px; flex-shrink: 0; }
.route-card__body { flex: 1; min-width: 0; }
.route-card { position: relative; }
.route-card__title { color: var(--crypto-text); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.route-card__link { color: inherit; text-decoration: none; font-weight: inherit; }
.route-card__link::after { content: ""; position: absolute; inset: 0; }
.route-card__note { color: var(--crypto-text-muted); font-size: 13px; margin: 0; }
.route-card .icon { color: var(--crypto-accent); flex-shrink: 0; transition: transform .25s ease; }
.route-card:hover .icon { transform: translateX(4px); }

.coin-logo-svg { display: inline-flex; overflow: hidden; flex-shrink: 0; }
.coin-logo-svg svg { width: 100%; height: 100%; display: block; }

/* =====================================================================
   TABLES
   ===================================================================== */
.table-scroll { overflow-x: auto; margin: 0 0 var(--crypto-section-y); border-radius: var(--crypto-radius); border: 1px solid var(--crypto-border); }
table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--crypto-surface); }
table th, table td { padding: 13px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--crypto-border); }
table th { background: var(--crypto-surface-2); color: var(--crypto-accent-dark); font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
table td { color: var(--crypto-text-muted); }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--crypto-accent-soft); color: var(--crypto-text); }

/* Таблица «Other Ethereum Swap Pairs»: hover на ячейке, вся ячейка — ссылка */
.table--pairs tr:hover td { background: transparent; color: var(--crypto-text-muted); }
.table--pairs td { padding: 0; transition: background .2s ease; }
.table--pairs td:hover { background: var(--crypto-accent-soft); }
.table--pairs td a { display: block; padding: 13px 16px; }

/* =====================================================================
   STEPS (нумерованный процесс)
   ===================================================================== */
.steps { display: grid; gap: 18px; counter-reset: step; }
.steps__item {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 20px 22px;
    transition: transform .25s ease, border-color .25s ease;
}
.steps__item:hover { transform: translateX(6px); border-color: var(--crypto-accent); }
.steps__num {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--crypto-accent); color: #ffffff;
    border-radius: 50%; font-weight: 800;
}
.steps__body p { margin: 0; color: var(--crypto-text-muted); }
.steps__body strong { color: var(--crypto-text); }

/* =====================================================================
   STATS / BADGES / PAIR RATE
   ===================================================================== */
.pair-rate { background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 20px 24px; margin-bottom: var(--crypto-section-y); box-shadow: var(--crypto-shadow); }
.pair-rate__value { font-size: 24px; font-weight: 800; color: var(--crypto-text); }
.pair-rate__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--crypto-text-muted); }
.pair-rate__change--up { color: var(--crypto-success); font-weight: 700; }
.pair-rate__change--down { color: var(--crypto-danger); font-weight: 700; }

.spec-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--crypto-border); }
.spec-row:last-child { border-bottom: none; }
.spec-row .icon { color: var(--crypto-accent); }
.spec-row__label { color: var(--crypto-text-muted); flex: 1; }
.spec-row__value { color: var(--crypto-text); font-weight: 700; text-align: right; }

/* =====================================================================
   CHART — серверный SVG (без canvas/JS)
   ===================================================================== */
.chart { background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 18px; }
.chart__svg { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--crypto-border); stroke-width: 1; }
.chart__grid--v { stroke-dasharray: 4 5; }
.chart__label { fill: var(--crypto-text-muted); font-size: 11px; font-family: inherit; }
.chart__area { fill: var(--crypto-accent-soft); stroke: none; }
.chart__line { fill: none; stroke: var(--crypto-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--crypto-accent); stroke: var(--crypto-surface); stroke-width: 2; }
.chart-empty { background: var(--crypto-surface); border: 1px dashed var(--crypto-border); border-radius: var(--crypto-radius); padding: 30px; text-align: center; color: var(--crypto-text-muted); }

.chart-tabs { margin-bottom: var(--crypto-section-y); }
.chart-tabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.chart-tabs__label {
    display: inline-block; padding: 8px 16px; margin: 0 6px 14px 0;
    border: 1px solid var(--crypto-border); border-radius: 999px;
    color: var(--crypto-text-muted); font-size: 13.5px; font-weight: 700;
    cursor: pointer; transition: all .2s ease;
}
.chart-tabs__radio:checked + .chart-tabs__label { background: var(--crypto-accent); border-color: var(--crypto-accent); color: #ffffff; }
.chart-tabs__label:hover { border-color: var(--crypto-accent); color: var(--crypto-accent); }
.chart-tabs__panel { display: none; }
.chart-tabs__radio:nth-of-type(1):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(1),
.chart-tabs__radio:nth-of-type(2):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(2),
.chart-tabs__radio:nth-of-type(3):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(3),
.chart-tabs__radio:nth-of-type(4):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(4),
.chart-tabs__radio:nth-of-type(5):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(5),
.chart-tabs__radio:nth-of-type(6):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(6) {
    display: block;
}

/* =====================================================================
   ETHEREUM GAS TRACKER
   ===================================================================== */
.gas-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.gas-card {
    background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius);
    padding: 20px; display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--crypto-shadow); transition: transform .25s ease, border-color .25s ease;
}
.gas-card:hover { transform: translateY(-5px); border-color: var(--crypto-accent); }
.gas-card--standard { border-color: var(--crypto-accent); background: var(--crypto-accent-soft); }
.gas-card__label { display: flex; align-items: center; gap: 6px; color: var(--crypto-text-muted); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.gas-card__label .icon { width: 16px; height: 16px; color: var(--crypto-accent); }
.gas-card__gwei { font-size: 26px; font-weight: 800; color: var(--crypto-text); }
.gas-card__gwei small { font-size: 13px; font-weight: 600; color: var(--crypto-text-muted); }
.gas-card__fee { font-size: 13.5px; color: var(--crypto-text-muted); }
.gas-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--crypto-text-muted); font-size: 13.5px; margin-bottom: var(--crypto-section-y); }
.gas-meta span { display: flex; align-items: center; gap: 6px; }
.gas-meta .icon { width: 16px; height: 16px; color: var(--crypto-accent); }

.gas-utilization { margin-bottom: var(--crypto-section-y); }
.gas-utilization__label { display: block; color: var(--crypto-text-muted); font-size: 13px; margin-bottom: 8px; }
.gas-utilization__bars { display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.gas-utilization__bar { width: 14px; background: var(--crypto-accent); border-radius: 3px 3px 0 0; opacity: .75; }

.gas-calculator {
    background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius);
    padding: 24px; margin-bottom: var(--crypto-section-y); box-shadow: var(--crypto-shadow);
}
.gas-calculator__row { margin-bottom: 16px; }
.gas-calculator__result { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 15px; color: var(--crypto-text); }
.gas-calculator__result span:last-child { color: var(--crypto-text-muted); }

.gas-history__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13.5px; color: var(--crypto-text-muted); }

.gas-preview { background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 22px; box-shadow: var(--crypto-shadow); }
.gas-preview__levels { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
.gas-preview__levels span { display: flex; align-items: center; gap: 6px; color: var(--crypto-text-muted); font-size: 14px; }
.gas-preview__levels .icon { width: 16px; height: 16px; color: var(--crypto-accent); }
.gas-preview__levels b { color: var(--crypto-text); }
.gas-preview__meta { color: var(--crypto-text-muted); font-size: 13.5px; margin: 0 0 12px; }

.gas-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 16px 20px; margin-bottom: var(--crypto-section-y); }
.gas-mini__value { display: flex; align-items: center; gap: 6px; color: var(--crypto-text-muted); font-size: 14px; }
.gas-mini__value .icon { width: 16px; height: 16px; color: var(--crypto-accent); }
.gas-mini__value b { color: var(--crypto-text); }
.gas-mini__link { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--crypto-accent); font-weight: 700; font-size: 14px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: 14px; }
.faq__item {
    background: var(--crypto-surface); border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius); padding: 20px 24px;
    transition: border-color .25s ease, transform .25s ease;
}
.faq__item:hover { border-color: var(--crypto-accent); transform: translateY(-3px); box-shadow: var(--crypto-shadow); }
.faq__q { display: flex; align-items: center; gap: 10px; color: var(--crypto-text); font-size: 16.5px; margin: 0 0 8px; }
.faq__q .icon { color: var(--crypto-accent); width: 18px; height: 18px; }
.faq__a { color: var(--crypto-text-muted); margin: 0; }

/* =====================================================================
   CONTACT FORM
   ===================================================================== */
.contact-form { background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 28px; margin: var(--crypto-section-y) 0; box-shadow: var(--crypto-shadow); }
.contact-form__row { margin-bottom: 16px; }
.contact-form__label { display: flex; align-items: center; gap: 6px; color: var(--crypto-text-muted); font-size: 13.5px; margin-bottom: 6px; }
.contact-form__label .icon { width: 16px; height: 16px; color: var(--crypto-accent); }
.contact-form__input {
    width: 100%; background: var(--crypto-surface-2); border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm); padding: 12px 14px; color: var(--crypto-text);
    font-family: inherit; font-size: 14.5px; transition: border-color .2s ease;
}
.contact-form__input:focus { outline: none; border-color: var(--crypto-accent); }
.contact-form__textarea { resize: vertical; }
.contact-form__submit { margin-top: 6px; }
.contact-form__notice { padding: 12px 16px; border-radius: var(--crypto-radius-sm); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.contact-form__notice--success { background: rgba(21, 128, 61, .1); color: var(--crypto-success); }
.contact-form__notice--error { background: rgba(194, 65, 12, .1); color: var(--crypto-danger); }
.contact-form__notice .icon { width: 18px; height: 18px; }

.contact-channels { display: grid; gap: 14px; margin: var(--crypto-section-y) 0; }
.contact-channel { display: flex; align-items: center; gap: 14px; background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 16px 20px; transition: border-color .2s ease, transform .2s ease; }
.contact-channel:hover { border-color: var(--crypto-accent); transform: translateY(-3px); box-shadow: var(--crypto-shadow); }
.contact-channel .icon { color: var(--crypto-accent); }
.contact-channel__label { display: block; color: var(--crypto-text-muted); font-size: 13px; }
.contact-channel__value { display: block; color: var(--crypto-text); font-weight: 700; }

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper { padding: 120px 0; text-align: center; }
.error404__code { font-size: clamp(80px, 16vw, 160px); font-weight: 900; color: var(--crypto-accent); line-height: 1; }
.error404__title { color: var(--crypto-text); font-size: 28px; margin: 10px 0 12px; }
.error404__text { color: var(--crypto-text-muted); margin: 0 0 28px; }

/* =====================================================================
   SCROLL REVEAL & PARALLAX ANIMATIONS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--left { transform: translateX(-32px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(32px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--scale { transform: scale(.92); }
.reveal--scale.is-visible { transform: scale(1); }
.parallax { will-change: transform; }
.widget-block#widget .widget-block__media {
    display: none;
}
.widget-block#widget {
    display: flex;
    justify-content: center;
}
.widget-block#widget .exchange-widget__frame {
    width: 100%;
    max-width: 500px;
}

/* =====================================================================
   RESPONSIVE — 992px / 768px / 480px
   ===================================================================== */
@media (max-width: 992px) {
    .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .gas-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 44px 0; }
    .container { padding: 0 18px; }
    :root { --crypto-section-y: 18px; }

    .nav__burger { display: flex; }

    .nav {
        position: fixed; top: 67px; left: 0; right: 0; bottom: 0;
        background: var(--crypto-bg);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
        z-index: 150;
        padding: 20px;
    }
    .nav.nav--mobile-open { transform: translateX(0); }
    .nav .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav .nav__submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; box-shadow: none; border: none; background: var(--crypto-bg-alt);
        margin-top: 4px;
    }
    .nav .nav__submenu--grid { grid-template-columns: 1fr; min-width: 0; }
    .nav .nav__item--open .nav__submenu { display: block; }

    .hero__inner { flex-direction: column; }
    .hero__widget-col { order: -1; width: 100%; margin-left: 0; }
    .widget-block, .widget-block--reverse { flex-direction: column; }
    .exchange-widget__frame iframe { max-width: 100%; }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .gas-mini__link { margin-left: 0; }
}

@media (max-width: 480px) {
    .hero { padding: 44px 0 32px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .site-header__inner { padding: 12px 16px; }
    table th, table td { padding: 10px 12px; font-size: 13.5px; }
    .card, .steps__item, .faq__item, .contact-form, .gas-calculator { padding: 18px; }
}
