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

/* =====================================================================
   ROOT VARIABLES — Burgundy / Emerald / Champagne palette
   ===================================================================== */
:root {
    --crypto-burgundy: #6F1324;
    --crypto-burgundy-dark: #3E0A15;
    --crypto-burgundy-soft: rgba(111, 19, 36, 0.08);
    --crypto-emerald: #006644;
    --crypto-emerald-dark: #00472F;
    --crypto-champagne: #E7D6AB;
    --crypto-gold: #C9A55C;
    --crypto-bg: #FBF7EF;
    --crypto-bg-alt: #F3EAD6;
    --crypto-surface: #FFFFFF;
    --crypto-text: #24161A;
    --crypto-text-muted: #6B5A5E;
    --crypto-border: #E6D9BE;
    --crypto-accent: #006644;
    --crypto-accent-soft: rgba(0, 102, 68, 0.14);
    --crypto-radius: 18px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(62, 10, 21, 0.08);
    --crypto-shadow-hover: 0 18px 44px rgba(62, 10, 21, 0.16);
    --crypto-section-y: 72px;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --crypto-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    --crypto-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

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

h1,
h2,
h3 {
    font-family: var(--crypto-font-head);
    line-height: 1.2;
    color: var(--crypto-burgundy-dark);
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(32px, 4.2vw, 50px);
}

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

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 16px;
}

a {
    color: var(--crypto-emerald);
    transition: color 0.25s ease;
}

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

p a,
li a,
td a {
    color: var(--crypto-emerald);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

main {
    display: block;
    overflow-x: hidden;
}

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

.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: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--crypto-ease), transform 0.8s var(--crypto-ease);
}

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

@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: 50;
    background: rgba(62, 10, 21, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 214, 171, 0.18);
}

.admin-bar .site-header {
    top: 32px;
}

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--crypto-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--crypto-champagne);
}

.site-brand > a,
.site-brand__name {
    color: var(--crypto-champagne);
    text-decoration: none;
}

.site-brand > a:hover {
    color: #fff;
}

.site-brand__mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crypto-gold), var(--crypto-champagne));
    color: var(--crypto-burgundy-dark);
    transition: transform 0.5s var(--crypto-ease);
}

.site-brand:hover .site-brand__mark {
    transform: rotate(360deg);
}

.site-brand__logo {
    max-height: 44px;
    width: auto;
}

.main-menu,
.main-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a,
.main-menu > li > .menu-current {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--crypto-champagne);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.main-menu > li > a:hover {
    background: rgba(231, 214, 171, 0.12);
    color: #fff;
}

.main-menu > .menu-item-has-children > a::after,
.main-menu > .menu-item-has-children > .menu-current::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 270px;
    padding: 10px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s var(--crypto-ease), visibility 0.25s;
}

.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.main-menu .sub-menu a,
.main-menu .sub-menu .menu-current {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--crypto-text);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.main-menu .sub-menu a:hover {
    background: var(--crypto-burgundy-soft);
    color: var(--crypto-burgundy);
    padding-left: 16px;
}

.menu-current {
    cursor: default;
}

.main-menu > li > .menu-current {
    color: var(--crypto-gold);
    background: rgba(231, 214, 171, 0.1);
}

.main-menu .sub-menu .menu-current {
    color: var(--crypto-emerald);
    font-weight: 600;
    background: var(--crypto-accent-soft);
}

.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(231, 214, 171, 0.35);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.site-header__burger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--crypto-champagne);
    border-radius: 2px;
    transition: transform 0.3s var(--crypto-ease), opacity 0.3s ease;
}

.site-header__burger--open .site-header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__burger--open .site-header__burger-line:nth-child(2) {
    opacity: 0;
}

.site-header__burger--open .site-header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   BUTTONS (через родителя)
   ===================================================================== */
.hero__actions,
.cta__action,
.error404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__actions a,
.cta__action a,
.error404__actions a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero__actions a::after,
.cta__action a::after,
.error404__actions a::after {
    content: "→";
    transition: transform 0.3s var(--crypto-ease);
}

.hero__actions a:hover::after,
.cta__action a:hover::after,
.error404__actions a:hover::after {
    transform: translateX(4px);
}

.hero__actions--secondary a {
    color: var(--crypto-champagne);
    border: 1px solid rgba(231, 214, 171, 0.55);
    background: rgba(231, 214, 171, 0.06);
}

.hero__actions--secondary a:hover {
    background: var(--crypto-champagne);
    color: var(--crypto-burgundy-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.cta__action a,
.error404__actions a {
    color: var(--crypto-burgundy-dark);
    background: linear-gradient(135deg, var(--crypto-champagne), var(--crypto-gold));
    box-shadow: 0 10px 26px rgba(201, 165, 92, 0.35);
}

.cta__action a:hover,
.error404__actions a:hover {
    color: var(--crypto-burgundy-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(201, 165, 92, 0.5);
}

/* =====================================================================
   HERO (с виджетом обменника)
   ===================================================================== */
.hero {
    position: relative;
    padding: 72px 0;
    color: #F6EEDC;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 165, 92, 0.22), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 102, 68, 0.45), transparent 50%),
        linear-gradient(135deg, var(--crypto-burgundy-dark) 0%, var(--crypto-burgundy) 55%, var(--crypto-emerald-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(231, 214, 171, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 214, 171, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000, transparent);
    animation: hero-grid 24s linear infinite;
    pointer-events: none;
}

@keyframes hero-grid {
    to {
        background-position: 48px 48px, 48px 48px;
    }
}

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

.hero__title {
    color: #fff;
}

.hero__text {
    font-size: 18px;
    color: rgba(246, 238, 220, 0.9);
}

.hero__facts {
    list-style: none;
    margin: 24px 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hero__fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--crypto-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 214, 171, 0.18);
    transition: transform 0.3s var(--crypto-ease), background 0.3s ease, border-color 0.3s ease;
}

.hero__fact:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(231, 214, 171, 0.45);
}

.hero__fact b {
    color: var(--crypto-champagne);
}

.hero__fact-icon {
    display: inline-flex;
    padding: 6px;
    border-radius: 10px;
    background: rgba(231, 214, 171, 0.15);
    color: var(--crypto-champagne);
}

.hero__widget {
    display: flex;
    justify-content: flex-end;
}

.exchange-widget {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(231, 214, 171, 0.6);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.exchange-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.exchange-widget__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: var(--crypto-radius-sm);
}

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

.page-nav__item > a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(231, 214, 171, 0.4);
    color: var(--crypto-champagne);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.page-nav__item > a:hover {
    background: var(--crypto-champagne);
    color: var(--crypto-burgundy-dark);
    transform: translateY(-2px);
}

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

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

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

.section__head .section__icon {
    margin: 0 auto 14px;
}

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
    color: var(--crypto-champagne);
    background: linear-gradient(135deg, var(--crypto-burgundy), var(--crypto-emerald));
    box-shadow: 0 10px 24px rgba(111, 19, 36, 0.25);
}

.section__head .section__icon {
    display: flex;
}

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

.prose--center {
    max-width: 860px;
    margin: 28px auto 0;
    text-align: center;
}

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

.split + .prose,
.container + .container {
    margin-top: 32px;
}

.table-wrap + .split {
    margin-top: 40px;
}

.split--reverse .split__media {
    order: -1;
}

.split__media {
    margin: 0;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow-hover);
    border: 1px solid var(--crypto-border);
}

.split__media img,
.article-hero__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transform: translateY(var(--parallax-y, 0)) scale(1.08);
    transition: transform 0.6s var(--crypto-ease), filter 0.6s ease;
}

.split__media:hover img,
.article-hero__media:hover img {
    transform: translateY(var(--parallax-y, 0)) scale(1.14);
    filter: saturate(1.15);
}

/* Cards */
.cards {
    display: grid;
    gap: 22px;
}

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

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

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

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--crypto-burgundy), var(--crypto-gold), var(--crypto-emerald));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--crypto-ease);
}

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

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

.card__icon {
    display: inline-flex;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: var(--crypto-burgundy);
    background: var(--crypto-burgundy-soft);
    transition: transform 0.4s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

.card:hover .card__icon {
    transform: rotate(-8deg) scale(1.1);
    background: var(--crypto-burgundy);
    color: var(--crypto-champagne);
}

.card__title {
    font-size: 19px;
}

.card__text {
    margin: 0;
    color: var(--crypto-text-muted);
}

.card--rate .card__title {
    color: var(--crypto-emerald);
}

.cards--flat {
    margin: 24px 0;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--crypto-radius);
    border: 1px solid var(--crypto-border);
    background: var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
    margin-bottom: 20px;
}

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

.data-table th {
    padding: 16px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--crypto-champagne);
    background: var(--crypto-burgundy-dark);
}

.data-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--crypto-border);
    vertical-align: top;
}

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

.data-table tbody tr:hover {
    background: rgba(231, 214, 171, 0.25);
}

.data-table td:first-child {
    font-weight: 600;
    color: var(--crypto-burgundy-dark);
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 20px 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.steps__item {
    position: relative;
    counter-increment: step;
    padding: 16px 18px 16px 66px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease;
}

.steps__item::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 700;
    color: var(--crypto-champagne);
    background: linear-gradient(135deg, var(--crypto-burgundy), var(--crypto-emerald));
}

.steps__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-gold);
}

/* Check list */
.check-list {
    list-style: none;
    margin: 16px 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.check-list__item {
    position: relative;
    padding: 12px 16px 12px 48px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.check-list__item::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--crypto-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7D6AB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

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

/* Info box */
.info-box {
    display: flex;
    gap: 24px;
    padding: 36px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-left: 5px solid var(--crypto-emerald);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s var(--crypto-ease);
}

.info-box:hover {
    box-shadow: var(--crypto-shadow-hover);
    transform: translateY(-4px);
}

.info-box__icon {
    display: inline-flex;
    align-self: flex-start;
    padding: 14px;
    border-radius: 16px;
    color: var(--crypto-champagne);
    background: var(--crypto-emerald);
}

.info-box__body > :last-child {
    margin-bottom: 0;
}

/* CTA */
.cta {
    position: relative;
    padding: 90px 0;
    text-align: center;
    color: #F6EEDC;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(62, 10, 21, 0.92), rgba(0, 71, 47, 0.85));
}

.cta__inner {
    position: relative;
    max-width: 780px;
}

.cta__icon {
    display: inline-flex;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--crypto-burgundy-dark);
    background: var(--crypto-champagne);
    animation: cta-pulse 2.6s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(231, 214, 171, 0.5);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(231, 214, 171, 0);
    }
}

.cta__title {
    color: #fff;
}

.cta__text {
    font-size: 18px;
    color: rgba(246, 238, 220, 0.9);
}

.cta__action {
    justify-content: center;
    margin-top: 10px;
}

/* FAQ */
.faq {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

.faq__item {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.faq__icon {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px;
    border-radius: 12px;
    color: var(--crypto-emerald);
    background: var(--crypto-accent-soft);
}

.faq__question {
    font-family: var(--crypto-font);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq__answer {
    margin: 0;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   PAIR RATE CHART
   ===================================================================== */
.pair-chart {
    padding: 28px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.pair-chart__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.pair-chart__rate,
.pair-chart__change {
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg);
    border: 1px solid var(--crypto-border);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pair-chart__rate:hover,
.pair-chart__change:hover {
    transform: translateY(-3px);
    border-color: var(--crypto-gold);
}

.pair-chart__rate {
    flex: 1 1 260px;
    background: var(--crypto-burgundy-dark);
    border-color: var(--crypto-burgundy-dark);
    color: var(--crypto-champagne);
}

.pair-chart__rate strong {
    font-size: 20px;
    color: #fff;
}

.pair-chart__caption {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.pair-chart__change--up strong {
    color: var(--crypto-emerald);
}

.pair-chart__change--down strong {
    color: var(--crypto-burgundy);
}

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

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

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

.pair-chart__panel {
    display: none;
    animation: chart-fade 0.5s var(--crypto-ease);
}

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

.pair-chart__radio:nth-of-type(1):checked ~ .pair-chart__panels .pair-chart__panel:nth-child(1),
.pair-chart__radio:nth-of-type(2):checked ~ .pair-chart__panels .pair-chart__panel:nth-child(2),
.pair-chart__radio:nth-of-type(3):checked ~ .pair-chart__panels .pair-chart__panel:nth-child(3),
.pair-chart__radio:nth-of-type(4):checked ~ .pair-chart__panels .pair-chart__panel:nth-child(4) {
    display: block;
}

.pair-chart__radio:nth-of-type(1):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(1),
.pair-chart__radio:nth-of-type(2):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(2),
.pair-chart__radio:nth-of-type(3):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(3),
.pair-chart__radio:nth-of-type(4):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(4) {
    background: var(--crypto-burgundy);
    color: var(--crypto-champagne);
}

.pair-chart__radio:focus-visible ~ .pair-chart__tabs {
    outline: 2px solid var(--crypto-emerald);
    outline-offset: 2px;
}

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

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

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

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

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

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

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

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart__dot {
    fill: var(--crypto-burgundy);
    stroke: #fff;
    stroke-width: 2;
}

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

/* =====================================================================
   ARTICLE / INNER PAGES
   ===================================================================== */
.article-hero {
    padding: 64px 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 102, 68, 0.12), transparent 40%),
        linear-gradient(135deg, var(--crypto-bg-alt), var(--crypto-bg));
    border-bottom: 1px solid var(--crypto-border);
}

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

.article-hero__tldr {
    padding: 18px 20px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border-left: 4px solid var(--crypto-burgundy);
    box-shadow: var(--crypto-shadow);
}

.article-hero__tldr b {
    color: var(--crypto-burgundy);
    margin-right: 4px;
}

.article-hero__content > :last-child {
    margin-bottom: 0;
}

.article-hero__media {
    margin: 0;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow-hover);
    border: 4px solid var(--crypto-surface);
}

.article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 56px;
}

.toc {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.toc__title {
    margin-bottom: 12px;
    font-family: var(--crypto-font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--crypto-burgundy-dark);
}

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

.toc__item > a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    color: var(--crypto-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, padding 0.2s ease, color 0.2s ease;
}

.toc__item > a:hover {
    background: var(--crypto-burgundy-soft);
    border-left-color: var(--crypto-burgundy);
    color: var(--crypto-burgundy);
    padding-left: 14px;
}

.article__section {
    position: relative;
    padding: 36px;
    margin-bottom: 24px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.article__section > :last-child {
    margin-bottom: 0;
}

.article__icon,
.content-block__icon {
    display: inline-flex;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 14px;
    color: var(--crypto-champagne);
    background: linear-gradient(135deg, var(--crypto-burgundy), var(--crypto-emerald));
    transition: transform 0.4s var(--crypto-ease);
}

.article__section:hover .article__icon,
.content-block:hover .content-block__icon {
    transform: rotate(-8deg) scale(1.08);
}

.article__section h3 {
    margin-top: 24px;
}

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

.article__section .faq__item {
    box-shadow: none;
    background: var(--crypto-bg);
}

.content-blocks {
    display: grid;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.content-block {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-block:hover {
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-gold);
}

.content-block__icon {
    align-self: flex-start;
    margin-bottom: 0;
}

.content-block__body {
    min-width: 0;
    flex: 1;
}

.content-block__body > :last-child {
    margin-bottom: 0;
}

/* Blog guides list */
.guides {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.guide {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    padding: 26px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.guide:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-gold);
}

.guide__icon {
    grid-row: span 2;
    display: inline-flex;
    align-self: flex-start;
    padding: 12px;
    border-radius: 14px;
    color: var(--crypto-burgundy);
    background: var(--crypto-burgundy-soft);
    transition: background 0.3s ease, color 0.3s ease;
}

.guide:hover .guide__icon {
    background: var(--crypto-burgundy);
    color: var(--crypto-champagne);
}

.guide__title {
    margin-bottom: 6px;
    font-family: var(--crypto-font-head);
    font-size: 20px;
}

.guide__title a {
    color: var(--crypto-burgundy-dark);
    text-decoration: none;
}

.guide__title a:hover {
    color: var(--crypto-emerald);
    text-decoration: underline;
}

.guide__text {
    margin: 0;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 110px 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(201, 165, 92, 0.2), transparent 50%),
        linear-gradient(135deg, var(--crypto-burgundy-dark), var(--crypto-emerald-dark));
    color: #F6EEDC;
}

.error404__code {
    font-family: var(--crypto-font-head);
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-champagne), var(--crypto-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error404__title {
    color: #fff;
}

.error404__actions {
    justify-content: center;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    padding-top: 64px;
    color: rgba(246, 238, 220, 0.8);
    background: linear-gradient(180deg, var(--crypto-burgundy-dark), #24060D);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
}

.site-brand--footer {
    margin-bottom: 16px;
}

.site-footer__text {
    font-size: 15px;
}

.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
}

.site-footer__contact-icon {
    display: inline-flex;
    color: var(--crypto-gold);
}

.site-footer__contact a {
    color: var(--crypto-champagne);
}

.site-footer__contact a:hover {
    color: #fff;
}

.site-footer__title {
    margin-bottom: 14px;
    font-family: var(--crypto-font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--crypto-champagne);
}

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

.footer-menu .menu-item > a {
    position: relative;
    color: rgba(246, 238, 220, 0.8);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease, padding 0.2s ease;
}

.footer-menu .menu-item > a:hover {
    color: var(--crypto-champagne);
    padding-left: 6px;
}

.footer-menu .menu-current {
    color: var(--crypto-gold);
    font-size: 15px;
}

.site-footer__bottom {
    margin-top: 48px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(231, 214, 171, 0.15);
    font-size: 14px;
}

.site-footer__bottom p {
    margin: 0;
}

/* =====================================================================
   COOKIE POPUP
   ===================================================================== */
.cookie-popup {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 18px;
    width: calc(100% - 32px);
    max-width: 760px;
    padding: 18px 22px;
    border-radius: var(--crypto-radius);
    color: #F6EEDC;
    background: linear-gradient(135deg, var(--crypto-burgundy-dark), var(--crypto-burgundy));
    border: 1px solid rgba(231, 214, 171, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, 30px);
    transition: opacity 0.4s ease, transform 0.4s var(--crypto-ease);
}

.cookie-popup--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-popup[hidden] {
    display: none;
}

.cookie-popup__icon {
    display: inline-flex;
    padding: 10px;
    border-radius: 50%;
    color: var(--crypto-burgundy-dark);
    background: var(--crypto-champagne);
}

.cookie-popup__content {
    flex: 1;
}

.cookie-popup__title {
    margin: 0 0 4px;
    font-weight: 700;
    color: #fff;
}

.cookie-popup__text {
    margin: 0;
    font-size: 14px;
}

.cookie-popup__text a {
    color: var(--crypto-champagne);
}

.cookie-popup__accept {
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: var(--crypto-burgundy-dark);
    background: linear-gradient(135deg, var(--crypto-champagne), var(--crypto-gold));
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cookie-popup__accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(201, 165, 92, 0.45);
}

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

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

    .site-footer__identity {
        grid-column: 1 / -1;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 960px) {
    .hero__inner,
    .split,
    .article-hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__widget {
        justify-content: center;
    }

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

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

    .site-header__burger {
        display: flex;
    }

    .site-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-burgundy-dark);
        transition: max-height 0.4s var(--crypto-ease);
    }

    .site-header__nav--open {
        max-height: 85vh;
        overflow-y: auto;
        border-bottom: 1px solid rgba(231, 214, 171, 0.2);
    }

    .main-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px 24px;
    }

    .main-menu .sub-menu {
        position: static;
        min-width: 0;
        padding: 0 0 6px 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-menu .sub-menu a,
    .main-menu .sub-menu .menu-current {
        color: rgba(246, 238, 220, 0.85);
    }

    .main-menu .sub-menu a:hover {
        background: rgba(231, 214, 171, 0.1);
        color: #fff;
    }

    .main-menu .sub-menu .menu-current {
        color: var(--crypto-gold);
        background: transparent;
    }

    .main-menu > .menu-item-has-children > a::after,
    .main-menu > .menu-item-has-children > .menu-current::after {
        display: none;
    }

    .hero,
    .article-hero {
        padding: 48px 0;
    }

    .cards--2,
    .guides {
        grid-template-columns: 1fr;
    }

    .info-box,
    .content-block {
        flex-direction: column;
        padding: 26px;
        gap: 14px;
    }

    .article__section {
        padding: 26px;
    }

    .cta {
        padding: 64px 0;
        background-attachment: scroll;
    }

    .cookie-popup {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-popup__icon {
        align-self: center;
    }

    .cookie-popup__accept {
        width: 100%;
    }
}

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

    .cards--4,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .hero__text,
    .section__lead,
    .cta__text {
        font-size: 16px;
    }

    .hero__actions a,
    .cta__action a {
        width: 100%;
        justify-content: center;
    }

    .exchange-widget {
        padding: 6px;
    }

    .pair-chart {
        padding: 18px;
    }

    .article__section,
    .content-block,
    .info-box {
        padding: 20px;
    }

    .faq__item {
        flex-direction: column;
        gap: 10px;
    }
}
