/*
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 — White / Orange #EF5F18 / Scarlet Bikini #261A66
   Reference: Kraken (indigo surfaces, white cards, bright accent CTA)
   ===================================================================== */
:root {
    --crypto-white: #ffffff;
    --crypto-bg: #ffffff;
    --crypto-bg-alt: #f6f4fd;
    --crypto-primary: #261a66;
    --crypto-primary-dark: #180f47;
    --crypto-primary-light: #3b2b94;
    --crypto-primary-soft: rgba(38, 26, 102, 0.08);
    --crypto-accent: #ef5f18;
    --crypto-accent-dark: #d24c0b;
    --crypto-accent-soft: rgba(239, 95, 24, 0.14);
    --crypto-text: #1c1446;
    --crypto-text-muted: #66628a;
    --crypto-border: #e6e2f5;
    --crypto-success: #12a067;
    --crypto-danger: #d93a3a;
    --crypto-radius: 20px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(38, 26, 102, 0.08);
    --crypto-shadow-hover: 0 22px 48px rgba(38, 26, 102, 0.16);
    --crypto-section-y: 25px;
    --crypto-header-h: 76px;
    --crypto-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --crypto-font-head: "Manrope", "Inter", Arial, sans-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.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1,
h2,
h3 {
    margin: 0 0 14px;
    color: var(--crypto-primary);
    font-family: var(--crypto-font-head);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(32px, 4.4vw, 52px);
}

h2 {
    font-size: clamp(26px, 3vw, 38px);
}

h3 {
    font-size: 19px;
    font-weight: 700;
}

p {
    margin: 0 0 14px;
}

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

p a,
li a:not([class]),
td a {
    color: var(--crypto-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

p a:hover,
li a:not([class]):hover,
td a:hover {
    color: var(--crypto-accent-dark);
}

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

code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--crypto-primary-soft);
    color: var(--crypto-primary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.86em;
    font-weight: 600;
}

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

.anchor {
    position: relative;
    top: calc(-1 * var(--crypto-header-h));
}

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

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    font-family: var(--crypto-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn:hover::after {
    left: 130%;
}

.btn--primary {
    background: var(--crypto-accent);
    color: var(--crypto-white);
    box-shadow: 0 10px 24px rgba(239, 95, 24, 0.32);
}

.btn--primary:hover {
    background: var(--crypto-accent-dark);
    color: var(--crypto-white);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(239, 95, 24, 0.42);
}

.btn--lg {
    min-height: 56px;
    padding: 16px 34px;
    font-size: 16px;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--crypto-accent);
    outline-offset: 3px;
}

/* =====================================================================
   REVEAL ANIMATIONS (Intersection Observer in index.js)
   ===================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--crypto-ease), transform 0.8s var(--crypto-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

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

.js .reveal.reveal--done {
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.3s ease, opacity 0.3s ease;
    transition-delay: 0ms;
}

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

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

.site-header--scrolled {
    border-bottom-color: var(--crypto-border);
    box-shadow: 0 8px 28px rgba(38, 26, 102, 0.08);
}

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

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

.site-header__brand .custom-logo {
    max-height: 44px;
    width: auto;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--crypto-primary);
    text-decoration: none;
    font-family: var(--crypto-font-head);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--crypto-primary), var(--crypto-primary-light));
    box-shadow: 0 8px 18px rgba(38, 26, 102, 0.25);
    transition: transform 0.4s var(--crypto-ease);
}

.site-logo:hover .site-logo__mark {
    transform: rotate(-10deg) scale(1.06);
}

.site-logo__icon {
    width: 26px;
    height: 26px;
}

.site-logo--light {
    color: var(--crypto-white);
}

/* --- desktop nav --- */
.header-nav__list,
.header-nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav__item {
    position: relative;
}

.header-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--crypto-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.header-nav__link--level-1:hover,
.header-nav__item--level-1.current-menu-item > .header-nav__link {
    background: var(--crypto-primary-soft);
    color: var(--crypto-primary);
}

.header-nav__item--level-1.header-nav__item--parent > .header-nav__link::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;
}

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

.header-nav__submenu--level-2 {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    width: max-content;
    padding: 22px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
}

.header-nav__submenu--level-2::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.header-nav__item--level-1:hover > .header-nav__submenu--level-2,
.header-nav__item--level-1:focus-within > .header-nav__submenu--level-2 {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.header-nav__link--level-2 {
    display: block;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--crypto-bg-alt);
    color: var(--crypto-primary);
    font-family: var(--crypto-font-head);
    font-size: 15px;
    font-weight: 800;
}

.header-nav__submenu--level-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}

.header-nav__link--level-3 {
    display: block;
    padding: 7px 12px;
    border-radius: 10px;
    color: var(--crypto-text);
    font-size: 14px;
    font-weight: 500;
}

.header-nav__link--level-3:hover {
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-dark);
    transform: translateX(3px);
}

/* --- burger --- */
.burger {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--crypto-border);
    border-radius: 14px;
    background: var(--crypto-white);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.burger:hover {
    border-color: var(--crypto-primary);
}

.burger__line {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-primary);
    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;
}

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

/* --- mobile dropdown menu --- */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--crypto-white);
    box-shadow: 0 24px 40px rgba(38, 26, 102, 0.14);
    visibility: hidden;
    transition: max-height 0.45s var(--crypto-ease), visibility 0.45s;
}

.mobile-menu--open {
    max-height: calc(100vh - var(--crypto-header-h));
    overflow-y: auto;
    visibility: visible;
}

.mobile-menu__inner {
    padding-top: 12px;
    padding-bottom: 24px;
}

.mobile-menu__cta {
    width: 100%;
    margin-top: 16px;
}

.mobile-nav__list,
.mobile-nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav__item {
    position: relative;
    border-bottom: 1px solid var(--crypto-border);
}

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

.mobile-nav__link {
    display: block;
    padding: 14px 52px 14px 4px;
    color: var(--crypto-text);
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav__link--level-2 {
    padding: 10px 4px 6px 14px;
    color: var(--crypto-primary);
    font-family: var(--crypto-font-head);
    font-weight: 800;
}

.mobile-nav__link--level-3 {
    padding: 8px 4px 8px 28px;
    font-weight: 500;
    font-size: 15px;
}

.mobile-nav__link:hover {
    color: var(--crypto-accent);
}

.mobile-nav__toggle {
    position: absolute;
    top: 6px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--crypto-bg-alt);
    cursor: pointer;
}

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

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

.mobile-nav__item--level-1 > .mobile-nav__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--crypto-ease);
}

.mobile-nav__item--level-1.mobile-nav__item--expanded > .mobile-nav__submenu {
    max-height: 1400px;
    padding-bottom: 10px;
}

.mobile-nav__item--level-2 > .mobile-nav__toggle {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(24, 15, 71, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.mobile-menu-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* =====================================================================
   HERO WITH EXCHANGE WIDGET (widget on the right, no image beside it)
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background: linear-gradient(135deg, var(--crypto-primary-dark) 0%, var(--crypto-primary) 55%, var(--crypto-primary-light) 100%);
    color: rgba(255, 255, 255, 0.86);
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    animation: hero-float 12s ease-in-out infinite;
}

.hero__orb--one {
    top: -120px;
    right: 18%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(239, 95, 24, 0.55), rgba(239, 95, 24, 0) 70%);
}

.hero__orb--two {
    bottom: -160px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(124, 104, 255, 0.45), rgba(124, 104, 255, 0) 70%);
    animation-delay: -6s;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

@keyframes hero-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 24px) scale(1.08);
    }
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    align-items: center;
    gap: 48px;
}

.hero__title {
    color: var(--crypto-white);
    margin-bottom: 20px;
}

.hero__text {
    font-size: 18px;
    line-height: 1.7;
}

.hero__widget {
    position: relative;
}

.exchange-widget {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 24px;
    background: var(--crypto-white);
    box-shadow: 0 30px 70px rgba(10, 5, 40, 0.45);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.exchange-widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(10, 5, 40, 0.5), 0 0 0 4px rgba(239, 95, 24, 0.35);
}

.exchange-widget__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: 18px;
}

.page-nav {
    margin: 0 0 22px;
}

.page-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--crypto-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--crypto-ease);
}

.page-nav__link::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--crypto-accent);
    box-shadow: 0 0 0 4px rgba(239, 95, 24, 0.25);
}

.page-nav__link:hover {
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
    transform: translateY(-2px);
}

.page-nav__link:hover::before {
    background: var(--crypto-white);
}

/* =====================================================================
   PAGE HERO (inner pages, policies, blog) & ARTICLE HERO
   ===================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
    background: var(--crypto-primary);
    color: rgba(255, 255, 255, 0.88);
}

.page-hero__bg {
    position: absolute;
    top: -15%;
    left: 0;
    right: 0;
    bottom: -15%;
    background-size: cover;
    background-position: center;
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(24, 15, 71, 0.95) 0%, rgba(38, 26, 102, 0.85) 55%, rgba(239, 95, 24, 0.45) 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-hero__title {
    color: var(--crypto-white);
}

.page-hero__text {
    font-size: 18px;
}

.page-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--crypto-white);
    font-size: 14px;
    font-weight: 600;
}

.page-hero__meta svg {
    width: 16px;
    height: 16px;
    color: var(--crypto-accent);
}

.article-hero {
    padding: 56px 0 30px;
    background: linear-gradient(180deg, var(--crypto-bg-alt) 0%, var(--crypto-white) 100%);
}

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

.article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s var(--crypto-ease), background-color 0.3s ease;
}

.article-hero__back svg {
    width: 16px;
    height: 16px;
}

.article-hero__back:hover {
    background: var(--crypto-accent);
    color: var(--crypto-white);
    transform: translateX(-3px);
}

.article-hero__lead {
    color: var(--crypto-text-muted);
    font-size: 18px;
}

.article-hero__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--crypto-shadow-hover);
}

.article-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(200deg, rgba(239, 95, 24, 0.18), transparent 45%);
    pointer-events: none;
}

.article-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--parallax-y, 0)) scale(1.12);
    transition: transform 0.7s var(--crypto-ease);
}

.article-hero__media:hover .article-hero__img {
    transform: translateY(var(--parallax-y, 0)) scale(1.18);
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section {
    position: relative;
    padding: calc(var(--crypto-section-y) * 2) 0;
}

.section--alt {
    background: var(--crypto-bg-alt);
}

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

.section__title {
    position: relative;
    padding-bottom: 16px;
}

.section__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), #ff9a5c);
    transform: translateX(-50%);
}

.section__lead {
    color: var(--crypto-text-muted);
    font-size: 17px;
}

.check-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.check-list__item {
    position: relative;
    margin-bottom: 10px;
    padding-left: 32px;
}

.check-list__item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--crypto-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef5f18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.num-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    counter-reset: num-list;
}

.num-list__item {
    position: relative;
    margin-bottom: 12px;
    padding-left: 44px;
    counter-increment: num-list;
}

.num-list__item::before {
    content: counter(num-list);
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--crypto-primary);
    color: var(--crypto-white);
    font-family: var(--crypto-font-head);
    font-size: 14px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
}

/* --- media (image + text) --- */
.media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.media--reverse .media__figure {
    order: 2;
}

.media__figure {
    position: relative;
    margin: 0;
    aspect-ratio: 5 / 4;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease;
}

.media__figure:hover {
    box-shadow: var(--crypto-shadow-hover);
}

.media__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 50%, rgba(38, 26, 102, 0.45));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.media__figure:hover::after {
    opacity: 0.5;
}

.media__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--parallax-y, 0)) scale(1.14);
    transition: transform 0.8s var(--crypto-ease), filter 0.5s ease;
}

.media__figure:hover .media__img {
    transform: translateY(var(--parallax-y, 0)) scale(1.2);
    filter: saturate(1.15);
}

.media__badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--crypto-accent);
    color: var(--crypto-white);
    box-shadow: 0 12px 28px rgba(239, 95, 24, 0.45);
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%,
    100% {
        transform: translateY(0);
    }

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

.media__title {
    margin-bottom: 18px;
}

.media__subtitle {
    margin-top: 20px;
}

.media__body {
    color: var(--crypto-text);
}

/* --- tables --- */
.table-card {
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s var(--crypto-ease);
}

.table-card:hover {
    box-shadow: var(--crypto-shadow-hover);
}

.table-card__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.data-table thead th {
    padding: 16px 20px;
    background: var(--crypto-primary);
    color: var(--crypto-white);
    font-family: var(--crypto-font-head);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.data-table tbody th,
.data-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--crypto-border);
    text-align: left;
    vertical-align: middle;
}

.data-table tbody th {
    color: var(--crypto-primary);
    font-weight: 700;
}

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

.data-table tbody tr:hover {
    background: var(--crypto-bg-alt);
}

.data-table--assets td a {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.data-table--assets td a:hover {
    background: var(--crypto-accent);
    color: var(--crypto-white);
    transform: translateY(-2px);
}

.coin-cell,
.net-cell {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.coin-cell__logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.4s var(--crypto-ease);
}

.data-table tr:hover .coin-cell__logo {
    transform: rotate(-12deg) scale(1.15);
}

.net-cell__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--crypto-primary), var(--crypto-primary-light));
    color: var(--crypto-white);
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.3s var(--crypto-ease), background 0.3s ease;
}

.data-table tr:hover .net-cell__badge {
    background: var(--crypto-accent);
    transform: scale(1.1);
}

/* --- note --- */
.note {
    display: flex;
    gap: 16px;
    max-width: 920px;
    margin: 28px auto 0;
    padding: 20px 24px;
    border: 1px solid var(--crypto-border);
    border-left: 4px solid var(--crypto-accent);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
}

.note__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
}

/* --- feature cards --- */
.features {
    display: grid;
    gap: 22px;
}

.features--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.feature-card {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--crypto-ease);
}

.js .feature-card.reveal--visible:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--crypto-primary-soft);
    color: var(--crypto-primary);
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s var(--crypto-ease);
}

.feature-card:hover .feature-card__icon {
    background: var(--crypto-accent);
    color: var(--crypto-white);
    transform: rotate(-8deg) scale(1.08);
}

.feature-card__title {
    font-size: 18px;
}

.feature-card__text {
    color: var(--crypto-text-muted);
    font-size: 15px;
}

/* --- steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.step-card {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.js .step-card.reveal--visible:hover,
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
}

.step-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step-card__num {
    font-family: var(--crypto-font-head);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--crypto-primary);
    color: var(--crypto-white);
    transition: transform 0.5s var(--crypto-ease), background-color 0.4s ease;
}

.step-card:hover .step-card__icon {
    background: var(--crypto-accent);
    transform: rotate(360deg);
}

.step-card__text {
    color: var(--crypto-text);
    font-size: 15px;
}

/* --- routes (more ways to exchange) --- */
.routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.route-card {
    padding: 28px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease, transform 0.4s var(--crypto-ease);
}

.route-card:hover {
    box-shadow: var(--crypto-shadow-hover);
}

.route-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.route-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
}

.route-card__title {
    margin: 0;
}

.route-card__text {
    color: var(--crypto-text-muted);
    margin-bottom: 18px;
}

.route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.route-list__link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid var(--crypto-border);
    border-radius: 14px;
    color: var(--crypto-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.route-list__link:hover {
    border-color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 95, 24, 0.15);
}

.route-list__logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.5s var(--crypto-ease);
}

.route-list__link:hover .route-list__logo {
    transform: rotate(360deg);
}

/* --- CTA --- */
.cta {
    position: relative;
    overflow: hidden;
    padding: 64px 40px;
    border-radius: 28px;
    background: var(--crypto-primary);
    text-align: center;
    box-shadow: var(--crypto-shadow-hover);
}

.cta__bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    transform: translateY(var(--parallax-y, 0)) scale(1.05);
    transition: transform 1s var(--crypto-ease);
}

.cta:hover .cta__bg {
    transform: translateY(var(--parallax-y, 0)) scale(1.12);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(24, 15, 71, 0.94), rgba(38, 26, 102, 0.82) 60%, rgba(239, 95, 24, 0.6));
}

.cta__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
}

.cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--crypto-accent);
    animation: badge-pulse 3s ease-in-out infinite;
}

.cta__title {
    color: var(--crypto-white);
}

.cta__text {
    font-size: 17px;
}

.cta__btn {
    margin-top: 22px;
}

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

.faq-layout__head {
    position: sticky;
    top: calc(var(--crypto-header-h) + 24px);
    margin: 0;
    text-align: left;
}

.faq-layout__head .section__title::after {
    left: 0;
    transform: none;
}

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

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

.faq__item:hover {
    border-color: rgba(239, 95, 24, 0.5);
    box-shadow: var(--crypto-shadow-hover);
}

.faq__item[open] {
    border-color: var(--crypto-accent);
}

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

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

.faq__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--crypto-primary-soft);
    color: var(--crypto-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq__item[open] .faq__badge,
.faq__item:hover .faq__badge {
    background: var(--crypto-accent);
    color: var(--crypto-white);
}

.faq__title {
    flex: 1;
    margin: 0;
    font-size: 17px;
}

.faq__toggle {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.faq__toggle::before,
.faq__toggle::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 3px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-primary);
    transition: transform 0.35s var(--crypto-ease);
}

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

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

.faq__answer {
    padding: 0 20px 20px 74px;
    color: var(--crypto-text-muted);
    animation: faq-open 0.4s var(--crypto-ease);
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* --- guide cards (blog) --- */
.guides {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.guide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.js .guide-card.reveal--visible:hover,
.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
}

.guide-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.guide-card:hover .guide-card__img {
    transform: scale(1.1);
}

.guide-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 26px;
}

.guide-card__title {
    font-size: 19px;
}

.guide-card__link {
    color: var(--crypto-primary);
    text-decoration: none;
}

.guide-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.guide-card__text {
    color: var(--crypto-text-muted);
    font-size: 15px;
}

.guide-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: auto;
    border-radius: 50%;
    background: var(--crypto-primary-soft);
    color: var(--crypto-primary);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--crypto-ease);
}

.guide-card__text + .guide-card__arrow {
    margin-top: 18px;
}

.guide-card:hover .guide-card__arrow {
    background: var(--crypto-accent);
    color: var(--crypto-white);
    transform: translateX(6px);
}

/* --- article (blog post) --- */
.article {
    padding: calc(var(--crypto-section-y) * 2) 0;
}

.article__inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.article__aside {
    position: sticky;
    top: calc(var(--crypto-header-h) + 24px);
}

.toc {
    padding: 22px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-bg-alt);
}

.toc__title {
    margin-bottom: 12px;
    color: var(--crypto-primary);
    font-family: var(--crypto-font-head);
    font-weight: 800;
}

.toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc__link {
    display: block;
    padding: 8px 10px;
    border-left: 2px solid var(--crypto-border);
    color: var(--crypto-text-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease, background-color 0.25s ease;
}

.toc__link:hover {
    padding-left: 16px;
    border-color: var(--crypto-accent);
    background: var(--crypto-white);
    color: var(--crypto-accent-dark);
}

.article__main {
    max-width: 820px;
}

.article__section {
    margin-bottom: 40px;
    font-size: 17px;
}

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

.article__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
    transition: transform 0.4s var(--crypto-ease);
}

.article__section:hover .article__icon {
    transform: rotate(-10deg) scale(1.08);
}

.article__subtitle {
    margin-top: 26px;
}

.article__section .table-card {
    margin: 22px 0;
}

.article__section .data-table td,
.article__section .data-table tbody th {
    white-space: normal;
}

.article__figure {
    margin: 0 0 40px;
    aspect-ratio: 16 / 8;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
}

.article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--parallax-y, 0)) scale(1.14);
    transition: transform 0.8s var(--crypto-ease);
}

.article__figure:hover .article__img {
    transform: translateY(var(--parallax-y, 0)) scale(1.2);
}

.article__section--faq .faq {
    margin-top: 20px;
}

/* --- policy cards --- */
.policy {
    display: grid;
    gap: 22px;
    max-width: 920px;
}

.info-card {
    display: flex;
    gap: 22px;
    padding: 30px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.js .info-card.reveal--visible:hover,
.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 95, 24, 0.4);
    box-shadow: var(--crypto-shadow-hover);
}

.info-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--crypto-primary), var(--crypto-primary-light));
    color: var(--crypto-white);
    transition: background 0.4s ease, transform 0.5s var(--crypto-ease);
}

.info-card:hover .info-card__icon {
    background: var(--crypto-accent);
    transform: rotate(-8deg);
}

.info-card__title {
    font-size: 24px;
}

.info-card__subtitle {
    margin-top: 20px;
    font-size: 18px;
}

/* =====================================================================
   PAIR CHART (server-rendered SVG, period tabs without JS)
   ===================================================================== */
.chart-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 26px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-white);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease;
}

.chart-card:hover {
    box-shadow: var(--crypto-shadow-hover);
}

.pair-chart {
    position: relative;
}

.pair-chart__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pair-chart__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pair-chart__rate {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pair-chart__pair {
    color: var(--crypto-text-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pair-chart__value {
    color: var(--crypto-primary);
    font-family: var(--crypto-font-head);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.pair-chart__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pair-chart__stat {
    display: flex;
    flex-direction: column;
    min-width: 86px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--crypto-bg-alt);
    transition: transform 0.3s var(--crypto-ease);
}

.pair-chart__stat:hover {
    transform: translateY(-3px);
}

.pair-chart__stat-label {
    color: var(--crypto-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pair-chart__stat-value {
    font-weight: 800;
}

.pair-chart__stat-value--up {
    color: var(--crypto-success);
}

.pair-chart__stat-value--down {
    color: var(--crypto-danger);
}

.pair-chart__tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 999px;
    background: var(--crypto-bg-alt);
}

.pair-chart__tab {
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--crypto-text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.pair-chart__tab:hover {
    color: var(--crypto-primary);
}

.pair-chart__panel {
    display: none;
}

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

.pair-chart__radio--p1:checked ~ .pair-chart__panels .pair-chart__panel--p1,
.pair-chart__radio--p2:checked ~ .pair-chart__panels .pair-chart__panel--p2,
.pair-chart__radio--p3:checked ~ .pair-chart__panels .pair-chart__panel--p3,
.pair-chart__radio--p4:checked ~ .pair-chart__panels .pair-chart__panel--p4,
.pair-chart__radio--p5:checked ~ .pair-chart__panels .pair-chart__panel--p5 {
    display: block;
    animation: faq-open 0.5s var(--crypto-ease);
}

.pair-chart__radio--p1:checked ~ .pair-chart__tabs .pair-chart__tab--p1,
.pair-chart__radio--p2:checked ~ .pair-chart__tabs .pair-chart__tab--p2,
.pair-chart__radio--p3:checked ~ .pair-chart__tabs .pair-chart__tab--p3,
.pair-chart__radio--p4:checked ~ .pair-chart__tabs .pair-chart__tab--p4,
.pair-chart__radio--p5:checked ~ .pair-chart__tabs .pair-chart__tab--p5 {
    background: var(--crypto-primary);
    color: var(--crypto-white);
}

.pair-chart__radio--p1:focus-visible ~ .pair-chart__tabs .pair-chart__tab--p1,
.pair-chart__radio--p2:focus-visible ~ .pair-chart__tabs .pair-chart__tab--p2,
.pair-chart__radio--p3:focus-visible ~ .pair-chart__tabs .pair-chart__tab--p3,
.pair-chart__radio--p4:focus-visible ~ .pair-chart__tabs .pair-chart__tab--p4,
.pair-chart__radio--p5:focus-visible ~ .pair-chart__tabs .pair-chart__tab--p5 {
    outline: 3px solid var(--crypto-accent);
    outline-offset: 2px;
}

.pair-chart__updated {
    margin-top: 12px;
    color: var(--crypto-text-muted);
    font-size: 13px;
}

.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 4;
}

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

.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;
    stroke-dasharray: 2400;
    stroke-dashoffset: 0;
    animation: chart-draw 1.6s var(--crypto-ease);
}

@keyframes chart-draw {
    from {
        stroke-dashoffset: 2400;
    }

    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes dot-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }
}

.chart-empty {
    padding: 28px;
    border: 1px dashed var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg-alt);
    color: var(--crypto-text-muted);
    text-align: center;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 0%, var(--crypto-accent-soft), transparent 60%), var(--crypto-bg-alt);
    text-align: center;
}

.error404__code {
    font-family: var(--crypto-font-head);
    font-size: clamp(110px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: badge-pulse 4s ease-in-out infinite;
}

.error404__text {
    color: var(--crypto-text-muted);
    font-size: 18px;
}

.error404__actions {
    margin-top: 26px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--crypto-section-y) * 2);
    padding: 64px 0 0;
    background: var(--crypto-primary-dark);
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__glow {
    position: absolute;
    top: -200px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 95, 24, 0.35), transparent 70%);
    pointer-events: none;
    animation: hero-float 14s ease-in-out infinite;
}

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

.site-footer__about {
    margin-top: 18px;
    font-size: 15px;
}

.site-footer__coins {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__coin img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--crypto-white);
    transition: transform 0.4s var(--crypto-ease);
}

.site-footer__coin img:hover {
    transform: translateY(-4px) scale(1.15);
}

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

.site-footer__title {
    margin-bottom: 14px;
    color: var(--crypto-white);
    font-family: var(--crypto-font-head);
    font-size: 15px;
    font-weight: 800;
}

.site-footer__title--spaced {
    margin-top: 26px;
}

.footer-menu,
.footer-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu__item,
.footer-contacts__item {
    margin-bottom: 9px;
}

.footer-menu__link,
.footer-contacts__link {
    position: relative;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-menu__link:hover,
.footer-contacts__link:hover {
    padding-left: 6px;
    color: var(--crypto-accent);
}

.footer-contacts__label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-contacts__link {
    word-break: break-word;
}

.site-footer__bottom {
    position: relative;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .features--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1024px) {
    :root {
        --crypto-header-h: 68px;
    }

    .header-nav,
    .site-header__cta {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__content {
        text-align: center;
    }

    .page-nav__list {
        justify-content: center;
    }

    .article__inner {
        grid-template-columns: 1fr;
    }

    .article__aside {
        position: static;
    }

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

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-layout__head {
        position: static;
        text-align: center;
    }

    .faq-layout__head .section__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    :root {
        --crypto-section-y: 22px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 22px;
    }

    .hero {
        padding: 44px 0;
    }

    .hero__text,
    .page-hero__text,
    .article-hero__lead {
        font-size: 16px;
    }

    .page-hero {
        padding: 64px 0 56px;
    }

    .media,
    .article-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .media--reverse .media__figure {
        order: 0;
    }

    .features--cols-3,
    .features--cols-2,
    .routes {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 48px 24px;
    }

    .info-card {
        flex-direction: column;
        padding: 24px;
    }

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

    .data-table thead th,
    .data-table tbody th,
    .data-table td {
        padding: 12px 14px;
    }

    .article__figure {
        aspect-ratio: 16 / 10;
    }
}

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

    .site-logo {
        font-size: 18px;
    }

    .features--cols-4,
    .guides,
    .route-list,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .exchange-widget {
        padding: 4px;
        border-radius: 18px;
    }

    .exchange-widget__frame {
        height: 430px;
    }

    .chart-card {
        padding: 16px;
    }

    .pair-chart__value {
        font-size: 21px;
    }

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

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

    .faq__title {
        font-size: 16px;
    }

    .note {
        flex-direction: column;
        padding: 18px;
    }

    .btn--lg {
        width: 100%;
    }

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