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

/* =====================================================================
   ROOT VARIABLES — Emerald & Black palette (Pantone 19-4007 Black + 17-5641 Emerald, gold accents)
   ===================================================================== */
:root {
    --crypto-black: #111111;
    --crypto-bg: #0b0c0c;
    --crypto-bg-alt: #111111;
    --crypto-surface: #151917;
    --crypto-surface-2: #1b211e;
    --crypto-emerald: #006644;
    --crypto-emerald-light: #0b8a5e;
    --crypto-accent: #1fb882;
    --crypto-accent-soft: rgba(31, 184, 130, 0.16);
    --crypto-gold: #d4af37;
    --crypto-gold-light: #f0d78c;
    --crypto-gold-dark: #a8862a;
    --crypto-text: #f3efe6;
    --crypto-text-muted: #a5aba5;
    --crypto-border: rgba(212, 175, 55, 0.16);
    --crypto-border-strong: rgba(212, 175, 55, 0.42);
    --crypto-up: #2fd394;
    --crypto-down: #ff6b6b;
    --crypto-radius: 20px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --crypto-shadow-gold: 0 18px 46px rgba(212, 175, 55, 0.18);
    --crypto-section-y: 24px;
    --crypto-header-h: 76px;
    --crypto-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --crypto-font-heading: "Playfair Display", Georgia, serif;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   BASE
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--crypto-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: var(--crypto-font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--crypto-gold-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--crypto-gold);
}

/* Ссылки внутри абзацев — акцентный цвет, подчёркивание, жирность */
p a {
    color: var(--crypto-gold);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.5);
    text-underline-offset: 3px;
    font-weight: 600;
}

p a:hover {
    color: var(--crypto-gold-light);
    text-decoration-color: currentColor;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    line-height: 1.2;
    color: var(--crypto-text);
}

h1,
h2 {
    font-family: var(--crypto-font-heading);
    font-weight: 700;
    letter-spacing: 0.2px;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    margin: 0 0 14px;
    color: var(--crypto-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

span[id] {
    display: block;
    scroll-margin-top: calc(var(--crypto-header-h) + 16px);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 1040px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

::selection {
    background: var(--crypto-emerald);
    color: #fff;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
/* Кнопки-ссылки стилизуются через родителя: в <a> только href и текст */
.section__actions a,
.cta-band__action a,
.site-header__cta a,
.error404__actions a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--crypto-font);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease), background-color 0.3s ease, color 0.3s ease;
}

.section__actions a::after,
.cta-band__action a::after,
.site-header__cta a::after,
.error404__actions a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--crypto-ease);
    z-index: -1;
}

.section__actions a:hover::after,
.cta-band__action a:hover::after,
.site-header__cta a:hover::after,
.error404__actions a:hover::after {
    left: 140%;
}

.section__actions a:hover,
.cta-band__action a:hover,
.site-header__cta a:hover,
.error404__actions a:hover {
    transform: translateY(-3px);
}

/* Изумрудная кнопка */
.section__actions a,
.site-header__cta a,
.error404__actions a {
    background: linear-gradient(135deg, var(--crypto-emerald-light), var(--crypto-emerald));
    border-color: rgba(31, 184, 130, 0.5);
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 102, 68, 0.45);
}

.section__actions a:hover,
.site-header__cta a:hover,
.error404__actions a:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 102, 68, 0.65), 0 0 0 4px rgba(31, 184, 130, 0.15);
}

/* Золотая кнопка */
.cta-band__action a {
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold) 55%, var(--crypto-gold-dark));
    color: var(--crypto-black);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.cta-band__action a:hover {
    color: var(--crypto-black);
    box-shadow: 0 16px 38px rgba(212, 175, 55, 0.5), 0 0 0 4px rgba(212, 175, 55, 0.16);
}

/* Крупный размер */
.section__actions a,
.cta-band__action a {
    padding: 16px 32px;
    font-size: 1rem;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 12, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header--scrolled {
    background: rgba(11, 12, 12, 0.94);
    border-bottom-color: var(--crypto-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--crypto-header-h);
}

.site-header__brand {
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--crypto-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.logo > a {
    color: var(--crypto-text);
}

.logo > a:hover {
    color: var(--crypto-gold-light);
}

.logo__img--custom {
    width: auto;
    max-height: 44px;
    border-radius: 0;
    box-shadow: none;
}

.logo__img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35), 0 0 22px rgba(212, 175, 55, 0.35);
    transition: transform 0.6s var(--crypto-ease);
}

.logo:hover .logo__img {
    transform: rotate(360deg) scale(1.08);
}

.site-header__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.site-header__cta a {
    padding: 10px 20px 10px 44px;
}

/* Иконка рядом со ссылкой, визуально внутри кнопки */
.site-header__cta .icon {
    position: absolute;
    left: 18px;
    z-index: 1;
    color: #fff;
    font-size: 18px;
    pointer-events: none;
    transition: transform 0.5s var(--crypto-ease);
}

.site-header__cta:hover .icon {
    transform: translateY(-3px) rotate(180deg);
}

/* Десктопное меню */
.site-nav {
    margin-left: auto;
}

.site-nav + .site-header__cta {
    margin-left: 0;
}

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

.site-nav__item {
    position: relative;
}

.site-nav__item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--crypto-text);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav__item--parent > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
}

.site-nav__item:hover > a,
.site-nav__item:focus-within > a,
.site-nav__item--current > a {
    color: var(--crypto-gold-light);
    background: rgba(212, 175, 55, 0.08);
}

.site-nav__item--parent:hover > a::after {
    transform: translateY(1px) rotate(225deg);
}

.site-nav__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: rgba(21, 25, 23, 0.98);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
}

.site-nav__submenu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.site-nav__item:hover > .site-nav__submenu,
.site-nav__item:focus-within > .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__item--sub > a {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--crypto-text-muted);
}

.site-nav__item--sub > a:hover {
    padding-left: 18px;
    color: var(--crypto-gold-light);
}

/* Бургер */
.burger {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--crypto-border-strong);
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.06);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.burger:hover {
    background: rgba(212, 175, 55, 0.14);
    transform: scale(1.05);
}

.burger__line {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-gold-light);
    transition: transform 0.35s var(--crypto-ease), opacity 0.25s ease, top 0.35s var(--crypto-ease);
}

.burger__line:nth-child(1) {
    top: 15px;
}

.burger__line:nth-child(2) {
    top: 21px;
}

.burger__line:nth-child(3) {
    top: 27px;
}

.burger--active .burger__line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger--active .burger__line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Мобильное меню (выпадающее) */
.mobile-nav {
    display: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(11, 12, 12, 0.98);
    border-top: 1px solid transparent;
    transition: max-height 0.45s var(--crypto-ease), opacity 0.3s ease, border-color 0.3s ease;
}

.mobile-nav--open {
    max-height: calc(100vh - var(--crypto-header-h));
    overflow-y: auto;
    opacity: 1;
    border-top-color: var(--crypto-border);
}

.mobile-nav__list {
    margin: 0;
    padding: 12px 0 24px;
    list-style: none;
}

.mobile-nav__item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateX(-12px);
    opacity: 0;
    transition: transform 0.4s var(--crypto-ease), opacity 0.4s ease;
}

.mobile-nav--open .mobile-nav__item {
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav__item > a {
    display: block;
    padding: 14px 52px 14px 4px;
    color: var(--crypto-text);
    font-weight: 600;
}

.mobile-nav__item--sub > a {
    padding: 10px 4px 10px 18px;
    font-weight: 500;
    color: var(--crypto-text-muted);
}

.mobile-nav__toggle {
    position: absolute;
    top: 6px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--crypto-border);
    border-radius: 10px;
    background: transparent;
    color: var(--crypto-gold-light);
    cursor: pointer;
}

.mobile-nav__toggle::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 15px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease, top 0.3s ease;
}

.mobile-nav__item--expanded > .mobile-nav__toggle::before {
    top: 17px;
    transform: rotate(225deg);
}

.mobile-nav__submenu {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: max-height 0.4s var(--crypto-ease);
}

.mobile-nav__item--expanded > .mobile-nav__submenu {
    max-height: 700px;
}

.mobile-nav__item--sub {
    border-bottom: 0;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 64px 0;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: -12% 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 102, 68, 0.45), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.14), transparent 45%),
        linear-gradient(100deg, rgba(11, 12, 12, 0.97) 0%, rgba(11, 12, 12, 0.88) 50%, rgba(11, 12, 12, 0.7) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--crypto-gold), transparent);
    opacity: 0.6;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
}

.hero__coins {
    display: flex;
    margin-bottom: 20px;
}

.hero__coin {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--crypto-bg), 0 0 28px rgba(212, 175, 55, 0.4);
    animation: crypto-float 5s ease-in-out infinite;
}

.hero__coin + .hero__coin {
    margin-left: -14px;
    animation-delay: -2.5s;
}

.hero__title {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fffaf0 0%, var(--crypto-gold-light) 45%, var(--crypto-gold) 70%, #fffaf0 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: crypto-shine 8s linear infinite;
}

.hero__text {
    font-size: 1.08rem;
    color: #cfd3cd;
    max-width: 620px;
}

.hero__anchors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 26px;
    color: var(--crypto-gold);
}

.hero__anchors a {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid var(--crypto-border-strong);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.06);
    color: var(--crypto-gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s var(--crypto-ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero__anchors a:hover {
    transform: translateY(-3px);
    background: var(--crypto-gold);
    color: var(--crypto-black);
    box-shadow: var(--crypto-shadow-gold);
    text-decoration: none;
}

.hero__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero__media {
    position: relative;
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    border: 1px solid var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow), 0 0 60px rgba(0, 102, 68, 0.35);
    transition: transform 0.6s var(--crypto-ease), box-shadow 0.6s var(--crypto-ease);
}

.hero__media:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: var(--crypto-shadow), 0 0 80px rgba(212, 175, 55, 0.3);
}

.hero__img {
    width: 100%;
    height: 116%;
    object-fit: cover;
    transition: transform 0.8s var(--crypto-ease);
}

.hero__media:hover .hero__img {
    scale: 1.06;
}

.hero__float-coin {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(11, 12, 12, 0.8), 0 0 34px rgba(212, 175, 55, 0.55);
    animation: crypto-float 4.5s ease-in-out infinite;
}

/* Виджет обменника (на первом экране — справа, без картинки рядом) */
.exchange-widget {
    width: 100%;
    max-width: 540px;
    padding: 18px;
    border-radius: var(--crypto-radius);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.18), rgba(0, 102, 68, 0.25) 60%, rgba(17, 17, 17, 0.9));
    border: 1px solid var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow), 0 0 60px rgba(0, 102, 68, 0.3);
    transition: transform 0.5s var(--crypto-ease), box-shadow 0.5s var(--crypto-ease);
}

.exchange-widget:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow), 0 0 80px rgba(212, 175, 55, 0.28);
}

.exchange-widget__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--crypto-gold-light);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.exchange-widget__logos {
    display: flex;
}

.exchange-widget__logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--crypto-black);
}

.exchange-widget__logo + .exchange-widget__logo {
    margin-left: -8px;
}

.exchange-widget__frame {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
    border: 0;
    border-radius: 14px;
    background: #fff;
}

/* Отложенная загрузка виджета: заглушка до события load */
.exchange-widget__holder {
    position: relative;
    max-width: 500px;
    min-height: 400px;
    margin: 0 auto;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.exchange-widget__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    border: 3px solid rgba(0, 102, 68, 0.15);
    border-top-color: var(--crypto-emerald);
    border-right-color: var(--crypto-gold);
    animation: crypto-spin 0.9s linear infinite;
    transition: opacity 0.4s ease;
}

.exchange-widget__holder--loaded .exchange-widget__loader {
    opacity: 0;
    pointer-events: none;
}

.exchange-widget__holder .exchange-widget__frame {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.exchange-widget__holder--loaded .exchange-widget__frame,
.exchange-widget__holder noscript .exchange-widget__frame {
    opacity: 1;
}

/* Без JS: прячем отложенный iframe и заглушку, работает iframe из <noscript> */
html:not(.has-reveal) .exchange-widget__frame[data-src],
html:not(.has-reveal) .exchange-widget__loader {
    display: none;
}

@keyframes crypto-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================================
   SECTIONS — общий ритм и панели
   ===================================================================== */
.section {
    position: relative;
    padding: calc(var(--crypto-section-y) / 2) 0;
}

.hero + .section {
    padding-top: calc(var(--crypto-section-y) * 2);
}

.section:last-of-type {
    padding-bottom: calc(var(--crypto-section-y) * 2);
}

.section__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section__head--center {
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(212, 175, 55, 0.22), rgba(0, 102, 68, 0.4));
    border: 1px solid var(--crypto-border-strong);
    color: var(--crypto-gold-light);
    font-size: 26px;
    box-shadow: 0 0 24px rgba(0, 102, 68, 0.35);
    transition: transform 0.5s var(--crypto-ease);
}

.section__panel:hover .section__icon,
.split:hover .section__icon,
.section__intro:hover .section__icon {
    transform: rotate(-8deg) scale(1.08);
}

.section__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}

.section__intro {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.section__body > * + * {
    margin-top: 16px;
}

.section__body > p + p {
    margin-top: 12px;
}

.section__subtitle {
    margin-top: 22px;
    color: var(--crypto-gold-light);
}

.section__actions {
    margin-top: 22px;
}

.section__panel,
.split {
    position: relative;
    padding: 40px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--crypto-ease);
}

.section__panel::before,
.split::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--crypto-gold), transparent);
    opacity: 0.55;
}

.section__panel:hover,
.split:hover {
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow), var(--crypto-shadow-gold);
}

.section--alt .section__panel,
.section--alt .split {
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 102, 68, 0.35), transparent 50%),
        linear-gradient(160deg, #13201b, var(--crypto-surface) 70%);
}

/* Блоки с графиками/калькуляторами шире */
.section--data .container--narrow {
    max-width: 1160px;
}

/* =====================================================================
   SPLIT (текст + картинка)
   ===================================================================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 44px;
}

.split--reverse .split__content {
    order: 2;
}

.split__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--crypto-border-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--crypto-ease), box-shadow 0.6s var(--crypto-ease);
}

.split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 51, 34, 0.55));
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.split__media:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.25);
}

.split__media:hover::after {
    opacity: 0.3;
}

.split__img {
    width: 100%;
    height: 118%;
    object-fit: cover;
    will-change: transform;
    transition: scale 0.8s var(--crypto-ease), filter 0.6s ease;
}

.split__media:hover .split__img {
    scale: 1.07;
    filter: saturate(1.15);
}

/* =====================================================================
   LISTS, STEPS
   ===================================================================== */
.link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--crypto-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text);
    font-weight: 600;
    transition: transform 0.35s var(--crypto-ease), border-color 0.3s ease, background-color 0.3s ease;
}

/* Стрелка ссылки — декор через ::after */
.link-list__item > a::after {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-top: 2px solid var(--crypto-gold);
    border-right: 2px solid var(--crypto-gold);
    transform: rotate(45deg);
    transition: transform 0.35s var(--crypto-ease);
}

.link-list__item > a:hover {
    transform: translateY(-3px);
    border-color: var(--crypto-border-strong);
    background: rgba(0, 102, 68, 0.22);
    color: var(--crypto-gold-light);
}

.link-list__item > a:hover::after {
    transform: translateX(5px) rotate(45deg);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--crypto-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease;
}

.check-list__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-border-strong);
}

.check-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--crypto-emerald);
    color: var(--crypto-gold-light);
    font-size: 15px;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.steps__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    border-radius: var(--crypto-radius-sm);
    background: linear-gradient(120deg, rgba(0, 102, 68, 0.22), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--crypto-border);
    transition: transform 0.35s var(--crypto-ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.steps__item:hover {
    transform: translateY(-4px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-gold);
}

.steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold-dark));
    color: var(--crypto-black);
    font-family: var(--crypto-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.steps__text {
    margin: 0;
    padding-top: 7px;
    color: var(--crypto-text);
}

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--crypto-radius-sm);
    border: 1px solid var(--crypto-border);
    background: rgba(0, 0, 0, 0.25);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    background: linear-gradient(90deg, rgba(0, 102, 68, 0.6), rgba(0, 102, 68, 0.25));
    color: var(--crypto-gold-light);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.data-table td {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--crypto-text);
    vertical-align: top;
}

.data-table tbody tr {
    transition: background-color 0.25s ease;
}

.data-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.06);
}

.data-table td a {
    font-weight: 600;
    color: var(--crypto-gold-light);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.4);
    text-underline-offset: 3px;
}

.data-table td a:hover {
    color: var(--crypto-gold);
}

/* =====================================================================
   FEATURE CARDS
   ===================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid:has(> :nth-child(7):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid:has(> :nth-child(7):last-child) > :last-child {
    grid-column: 2;
}

.feature-card {
    position: relative;
    padding: 30px 28px;
    border-radius: var(--crypto-radius);
    background: linear-gradient(165deg, var(--crypto-surface-2), var(--crypto-surface));
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform 0.45s var(--crypto-ease), border-color 0.35s ease, box-shadow 0.45s var(--crypto-ease);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -40%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 68, 0.45), transparent 70%);
    transition: transform 0.6s var(--crypto-ease);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow), var(--crypto-shadow-gold);
}

.feature-card:hover::before {
    transform: translate(-30px, 40px) scale(1.3);
}

.feature-card__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold-dark));
    color: var(--crypto-black);
    font-size: 26px;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.3);
    transition: transform 0.5s var(--crypto-ease);
}

.feature-card:hover .feature-card__icon {
    transform: rotate(-10deg) scale(1.1);
}

.feature-card__title {
    position: relative;
    font-size: 1.15rem;
}

.feature-card p {
    position: relative;
}

/* =====================================================================
   EXPLORE (другие направления обмена)
   ===================================================================== */
.explore {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.explore__card {
    padding: 32px;
    border-radius: var(--crypto-radius);
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
        linear-gradient(165deg, #13201b, var(--crypto-surface));
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.45s var(--crypto-ease), border-color 0.35s ease;
}

.explore__card:hover {
    transform: translateY(-6px);
    border-color: var(--crypto-border-strong);
}

.explore__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--crypto-emerald);
    color: var(--crypto-gold-light);
    font-size: 24px;
}

.explore__title {
    font-size: 1.3rem;
}

.coin-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.coin-chips__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--crypto-border);
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.35s var(--crypto-ease), border-color 0.3s ease, background-color 0.3s ease;
}

.coin-chips__item > a {
    color: var(--crypto-text);
    transition: color 0.3s ease;
}

/* Вся «таблетка» кликабельна: растягиваем область ссылки через ::after */
.coin-chips__item > a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.coin-chips__item:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--crypto-gold);
    background: rgba(212, 175, 55, 0.12);
}

.coin-chips__item:hover > a {
    color: var(--crypto-gold-light);
}

.coin-chips__logos {
    display: inline-flex;
}

.coin-chips__logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--crypto-black);
}

.coin-chips__logo + .coin-chips__logo {
    margin-left: -8px;
    transition: transform 0.35s var(--crypto-ease);
}

.coin-chips__item:hover .coin-chips__logo + .coin-chips__logo {
    transform: translateX(4px);
}

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band__box {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding: 44px 48px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.3), transparent 45%),
        linear-gradient(130deg, #004a32, var(--crypto-emerald) 45%, #0c2b20);
    border: 1px solid var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow), 0 0 70px rgba(0, 102, 68, 0.35);
    overflow: hidden;
}

.cta-band__box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 22px);
    pointer-events: none;
}

.cta-band__coins {
    position: relative;
    width: 120px;
    height: 110px;
}

.cta-band__coin {
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 0 30px rgba(212, 175, 55, 0.5);
    animation: crypto-float 5s ease-in-out infinite;
}

.cta-band__coin--from {
    top: 0;
    left: 0;
}

.cta-band__coin--to {
    right: 0;
    bottom: 0;
    animation-delay: -2.5s;
}

.cta-band__title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.cta-band__content p {
    color: #d7e6de;
}

.cta-band__action {
    position: relative;
    z-index: 1;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.faq__intro {
    position: sticky;
    top: calc(var(--crypto-header-h) + 24px);
    padding: 36px;
    border-radius: var(--crypto-radius);
    background:
        radial-gradient(circle at 100% 100%, rgba(0, 102, 68, 0.45), transparent 55%),
        var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    overflow: hidden;
}

.faq__coin {
    width: 110px;
    height: 110px;
    margin-top: 26px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 175, 55, 0.45);
    animation: crypto-float 6s ease-in-out infinite;
}

.faq__list {
    display: grid;
    gap: 14px;
}

.faq__item {
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s var(--crypto-ease);
}

.faq__item:hover {
    transform: translateY(-3px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-gold);
}

.faq__item[open] {
    border-color: var(--crypto-border-strong);
    background: linear-gradient(160deg, #13201b, var(--crypto-surface));
}

.faq__question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 102, 68, 0.5);
    color: var(--crypto-gold-light);
    font-size: 20px;
}

.faq__title {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

.faq__toggle {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--crypto-border-strong);
    transition: transform 0.4s var(--crypto-ease), background-color 0.3s ease;
}

.faq__toggle::before,
.faq__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    background: var(--crypto-gold-light);
    border-radius: 2px;
    transition: transform 0.4s var(--crypto-ease);
}

.faq__toggle::after {
    transform: rotate(90deg);
}

.faq__item[open] .faq__toggle {
    transform: rotate(180deg);
    background: var(--crypto-gold);
}

.faq__item[open] .faq__toggle::before,
.faq__item[open] .faq__toggle::after {
    background: var(--crypto-black);
}

.faq__item[open] .faq__toggle::after {
    transform: rotate(0deg);
}

.faq__answer {
    padding: 0 22px 20px 74px;
    animation: crypto-fade-down 0.45s var(--crypto-ease);
}

/* =====================================================================
   DATA WIDGETS: панели, мета, конвертер, таблица курсов
   ===================================================================== */
.data-panel {
    padding: 24px;
    border-radius: var(--crypto-radius);
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--crypto-border);
}

.chart-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 18px 20px;
    border-radius: var(--crypto-radius-sm);
    border: 1px dashed var(--crypto-border-strong);
    color: var(--crypto-text-muted);
    background: rgba(212, 175, 55, 0.04);
}

.data-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: var(--crypto-text-muted);
}

.data-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.data-meta__item .icon {
    color: var(--crypto-gold);
}

.data-meta__stale {
    color: var(--crypto-gold-light);
}

.pair-logos {
    display: inline-flex;
}

.pair-logos-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--crypto-black);
}

.pair-logos-img + .pair-logos-img {
    margin-left: -10px;
}

.rate-table__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rate-table__pair {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--crypto-gold-light);
    letter-spacing: 0.5px;
}

/* Конвертер */
.converter__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 16px;
}

.converter__field {
    display: grid;
    gap: 8px;
}

.converter__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--crypto-text-muted);
}

.converter__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--crypto-black);
    border: 1px solid var(--crypto-border-strong);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.converter__control:focus-within {
    border-color: var(--crypto-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.converter__control--result {
    background: linear-gradient(120deg, rgba(0, 102, 68, 0.45), rgba(0, 102, 68, 0.15));
}

.converter__input {
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--crypto-text);
    font-family: var(--crypto-font);
    font-size: 1.3rem;
    font-weight: 700;
}

.converter__output {
    flex: 1;
    min-width: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--crypto-gold-light);
    overflow-wrap: anywhere;
}

.converter__unit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--crypto-text);
}

.converter__unit-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.converter__swap,
.converter__equals {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
    border-radius: 50%;
    border: 1px solid var(--crypto-border-strong);
    background: rgba(212, 175, 55, 0.1);
    color: var(--crypto-gold-light);
    font-size: 22px;
}

.converter__swap {
    cursor: pointer;
    transition: transform 0.5s var(--crypto-ease), background-color 0.3s ease, color 0.3s ease;
}

.converter__swap:hover {
    transform: rotate(180deg) scale(1.08);
    background: var(--crypto-gold);
    color: var(--crypto-black);
}

.converter__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.converter__preset {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--crypto-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--crypto-text);
    font-family: var(--crypto-font);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease, background-color 0.3s ease;
}

.converter__preset:hover {
    transform: translateY(-2px);
    border-color: var(--crypto-border-strong);
}

.converter__preset--active {
    background: var(--crypto-emerald);
    border-color: var(--crypto-accent);
    color: #fff;
}

.converter__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.converter__meta-item {
    padding: 12px 16px;
    border-radius: var(--crypto-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--crypto-border);
}

.converter__meta-item dt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--crypto-text-muted);
}

.converter__meta-item dd {
    margin: 4px 0 0;
    font-weight: 700;
    color: var(--crypto-text);
}

/* Калькулятор газа */
.gas-calc__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.gas-calc__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    animation: crypto-float 5s ease-in-out infinite;
}

.gas-calc__title {
    font-weight: 800;
    color: var(--crypto-gold-light);
}

.gas-calc__fields,
.gas-calc__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gas-calc__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.gas-calc__field {
    display: grid;
    gap: 8px;
}

.gas-calc__input,
.gas-calc__select {
    min-height: 56px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--crypto-black);
    border: 1px solid var(--crypto-border-strong);
    color: var(--crypto-text);
    font-family: var(--crypto-font);
    font-size: 1.05rem;
    font-weight: 700;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gas-calc__input:focus,
.gas-calc__select:focus {
    outline: 0;
    border-color: var(--crypto-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.gas-calc__input[readonly] {
    color: var(--crypto-gold-light);
    background: rgba(0, 102, 68, 0.25);
}

.gas-calc__result {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(0, 102, 68, 0.5), rgba(0, 102, 68, 0.15));
    border: 1px solid var(--crypto-border);
    transition: transform 0.35s var(--crypto-ease);
}

.gas-calc__result:hover {
    transform: translateY(-3px);
}

.gas-calc__value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--crypto-gold-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    animation: crypto-pulse 1.8s ease-in-out infinite;
}

.status-badge--up {
    color: var(--crypto-up);
}

.status-badge--down {
    color: var(--crypto-down);
}

.status-badge--stale {
    color: var(--crypto-gold-light);
}

/* =====================================================================
   CHART — общая секция стилей графика
   ===================================================================== */
.rate-chart__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-bottom: 18px;
}

.rate-chart__pair {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-chart__pair-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--crypto-gold-light);
}

.rate-chart__price {
    display: grid;
}

.rate-chart__caption {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--crypto-text-muted);
}

.rate-chart__value {
    font-size: 1.35rem;
    color: var(--crypto-text);
}

.rate-chart__changes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.rate-chart__change {
    display: inline-flex;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text-muted);
}

.rate-chart__change--up b {
    color: var(--crypto-up);
}

.rate-chart__change--down b {
    color: var(--crypto-down);
}

.rate-chart__periods {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 999px;
    background: var(--crypto-black);
    border: 1px solid var(--crypto-border);
}

.rate-chart__period {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--crypto-text-muted);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rate-chart__period:hover {
    color: var(--crypto-gold-light);
}

.rate-chart__panel {
    display: none;
    animation: crypto-fade-in 0.5s ease;
}

.rate-chart__panel--static {
    display: block;
}

/* Переключение периодов без JS (радио-кнопки) */
.rate-chart__radio:nth-of-type(1):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(1),
.rate-chart__radio:nth-of-type(2):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(2),
.rate-chart__radio:nth-of-type(3):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(3),
.rate-chart__radio:nth-of-type(4):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(4),
.rate-chart__radio:nth-of-type(5):checked ~ .rate-chart__panels > .rate-chart__panel:nth-child(5) {
    display: block;
}

.rate-chart__radio:nth-of-type(1):checked ~ .rate-chart__periods > .rate-chart__period:nth-child(1),
.rate-chart__radio:nth-of-type(2):checked ~ .rate-chart__periods > .rate-chart__period:nth-child(2),
.rate-chart__radio:nth-of-type(3):checked ~ .rate-chart__periods > .rate-chart__period:nth-child(3),
.rate-chart__radio:nth-of-type(4):checked ~ .rate-chart__periods > .rate-chart__period:nth-child(4),
.rate-chart__radio:nth-of-type(5):checked ~ .rate-chart__periods > .rate-chart__period:nth-child(5) {
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold));
    color: var(--crypto-black);
}

.rate-chart__radio:focus-visible ~ .rate-chart__periods {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.rate-chart__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--crypto-text-muted);
}

.rate-chart__stat b {
    color: var(--crypto-text);
}

.rate-chart__stat--high b {
    color: var(--crypto-up);
}

.rate-chart__stat--low b {
    color: var(--crypto-down);
}

.chart {
    position: relative;
}

.chart__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart__grid {
    stroke: var(--crypto-border);
    stroke-width: 1;
}

.chart__grid--v {
    stroke-dasharray: 4 5;
}

.chart__label {
    fill: var(--crypto-text-muted);
    font-family: var(--crypto-font);
    font-size: 11px;
}

.chart__stop--top {
    stop-color: var(--crypto-accent);
    stop-opacity: 0.42;
}

.chart__stop--bottom {
    stop-color: var(--crypto-accent);
    stop-opacity: 0;
}

.chart__area {
    fill: var(--crypto-accent-soft);
}

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(31, 184, 130, 0.55));
}

.chart__dot {
    fill: var(--crypto-gold);
    stroke: var(--crypto-black);
    stroke-width: 2;
    animation: crypto-pulse 1.8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.chart__hit {
    fill: transparent;
    stroke: transparent;
    cursor: crosshair;
    transition: fill 0.2s ease;
}

.chart__hit:hover {
    fill: var(--crypto-gold);
    stroke: var(--crypto-black);
    stroke-width: 2;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    margin-top: var(--crypto-section-y);
    background: linear-gradient(180deg, var(--crypto-black), #070807);
    border-top: 1px solid var(--crypto-border);
    overflow: hidden;
}

.site-footer__glow {
    position: absolute;
    top: -200px;
    left: 50%;
    width: 700px;
    height: 400px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 102, 68, 0.35), transparent 70%);
    pointer-events: none;
}

.site-footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.site-footer__coins {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.site-footer__coin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    opacity: 0.8;
    filter: grayscale(0.3);
    transition: transform 0.4s var(--crypto-ease), opacity 0.3s ease, filter 0.3s ease;
}

.site-footer__coin:hover {
    transform: translateY(-4px) rotate(12deg) scale(1.1);
    opacity: 1;
    filter: none;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
}

.footer-col__title {
    margin-bottom: 14px;
    font-family: var(--crypto-font);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--crypto-gold);
}

.footer-menu__list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu__list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}

.footer-menu__item > a {
    display: inline-block;
    color: var(--crypto-text-muted);
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.3s var(--crypto-ease);
}

.footer-menu__item > a:hover {
    color: var(--crypto-gold-light);
    transform: translateX(4px);
}

.footer-contacts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contacts__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contacts__item > a {
    color: var(--crypto-text-muted);
    font-size: 0.92rem;
    word-break: break-all;
    transition: color 0.25s ease;
}

.footer-contacts__item .icon {
    color: var(--crypto-gold);
    font-size: 18px;
    transition: transform 0.3s var(--crypto-ease);
}

.footer-contacts__item > a:hover {
    color: var(--crypto-gold-light);
}

.footer-contacts__item:hover .icon {
    transform: scale(1.2) rotate(-8deg);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__bottom-inner {
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.88rem;
    text-align: center;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(0, 102, 68, 0.35), transparent 60%);
}

.error404__code {
    font-family: var(--crypto-font-heading);
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--crypto-gold-light), var(--crypto-gold), var(--crypto-emerald-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error404__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.error404__text {
    max-width: 520px;
    margin: 0 auto 26px;
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
/* Класс has-reveal ставит index.js: без JS контент виден сразу */
.has-reveal .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--crypto-ease), transform 0.9s var(--crypto-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .reveal--right {
    transform: translateX(48px);
}

.has-reveal .reveal--zoom {
    transform: scale(0.92);
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes crypto-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(6deg);
    }
}

@keyframes crypto-shine {
    to {
        background-position: 220% center;
    }
}

@keyframes crypto-pulse {
    0%,
    100% {
        opacity: 1;
        scale: 1;
    }

    50% {
        opacity: 0.55;
        scale: 1.25;
    }
}

@keyframes crypto-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes crypto-fade-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .has-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
    .site-nav__item > a {
        padding: 10px 8px;
        font-size: 0.86rem;
    }
}

@media (max-width: 1024px) {
    .site-nav,
    .site-header__cta {
        display: none;
    }

    .burger {
        display: block;
        margin-left: auto;
    }

    .mobile-nav {
        display: block;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hero__aside {
        align-items: center;
    }

    .feature-grid--three,
    .feature-grid:has(> :nth-child(7):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid:has(> :nth-child(7):last-child) > :last-child {
        grid-column: 1 / -1;
    }

    .faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .faq__intro {
        position: static;
    }

    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .cta-band__box {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cta-band__action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --crypto-header-h: 66px;
        --crypto-section-y: 20px;
    }

    .container {
        padding: 0 18px;
    }

    .hero {
        min-height: 0;
        padding: 44px 0 52px;
    }

    .hero__text {
        font-size: 1rem;
    }

    .section__panel,
    .split {
        padding: 28px 22px;
    }

    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .split--reverse .split__content {
        order: 0;
    }

    .feature-grid,
    .feature-grid--three,
    .feature-grid:has(> :nth-child(7):last-child),
    .explore,
    .link-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-grid:has(> :nth-child(7):last-child) > :last-child {
        grid-column: auto;
    }

    .section__head {
        align-items: flex-start;
    }

    .section__icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .cta-band__box {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 32px 24px;
        text-align: center;
    }

    .cta-band__coins {
        margin: 0 auto;
    }

    .converter__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .converter__swap,
    .converter__equals {
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .converter__swap:hover {
        transform: rotate(270deg);
    }

    .gas-calc__fields,
    .gas-calc__results {
        grid-template-columns: minmax(0, 1fr);
    }

    .rate-chart__changes {
        margin-left: 0;
    }

    .data-panel {
        padding: 18px 14px;
    }

    /* Таблицы — карточками */
    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        padding: 10px 0;
        border-top: 1px solid var(--crypto-border);
    }

    .data-table tr:first-child {
        border-top: 0;
    }

    .data-table td {
        padding: 6px 16px;
        border-top: 0;
    }

    .data-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--crypto-gold);
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq__answer {
        padding: 0 20px 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 1.85rem;
    }

    .hero__coin {
        width: 46px;
        height: 46px;
    }

    .hero__anchors a {
        padding: 7px 13px;
        font-size: 0.84rem;
    }

    .exchange-widget {
        padding: 12px;
    }

    .section__panel,
    .split,
    .explore__card,
    .feature-card,
    .faq__intro {
        padding: 24px 18px;
    }

    .section__head {
        flex-direction: column;
        gap: 12px;
    }

    .section__head--center {
        align-items: center;
    }

    .faq__question {
        padding: 16px;
        gap: 10px;
    }

    .faq__icon {
        display: none;
    }

    .steps__item {
        padding: 16px;
        gap: 14px;
    }

    .site-footer__columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .rate-chart__period {
        padding: 6px 11px;
    }
}
