/*
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 — Plum & Butter palette (moodboard)
   Референс раскладки: Kraken (скруглённые карточки, pill-кнопки, крупная типографика)
   ===================================================================== */
:root {
    --crypto-plum: #4a1737;
    --crypto-plum-dark: #2c0c20;
    --crypto-plum-mid: #6b2a52;
    --crypto-butter: #f2dc74;
    --crypto-butter-dark: #e0c24e;
    --crypto-butter-soft: #fbf3c8;
    --crypto-gold: #c9a13b;
    --crypto-bg: #fbf8f1;
    --crypto-bg-alt: #f3ede1;
    --crypto-surface: #ffffff;
    --crypto-text: #2a1422;
    --crypto-text-muted: #6f5d67;
    --crypto-text-light: #f7efe6;
    --crypto-border: #e8dccd;
    --crypto-accent: var(--crypto-plum);
    --crypto-accent-soft: rgba(74, 23, 55, 0.14);
    --crypto-up: #2f8a5b;
    --crypto-down: #b3364c;
    --crypto-radius: 22px;
    --crypto-radius-sm: 14px;
    --crypto-shadow: 0 10px 30px rgba(74, 23, 55, 0.08);
    --crypto-shadow-hover: 0 22px 48px rgba(74, 23, 55, 0.18);
    --crypto-section-y: 25px;
    --crypto-container: 1200px;
    --crypto-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --crypto-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

h1 { font-size: clamp(32px, 4.4vw, 54px); }
h2 { font-size: clamp(24px, 2.8vw, 36px); }
h3 { font-size: clamp(19px, 1.8vw, 22px); }

p {
    margin: 0 0 16px;
}

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

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

p a,
li a,
td a {
    color: var(--crypto-plum-mid);
    text-decoration: underline;
    text-decoration-color: var(--crypto-butter-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
}

p a:hover,
li a:hover,
td a:hover {
    color: var(--crypto-plum-dark);
    text-decoration-color: var(--crypto-plum);
}

b {
    font-weight: 700;
    color: var(--crypto-plum-dark);
}

code {
    font-family: ui-monospace, Consolas, monospace;
    background: var(--crypto-butter-soft);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.92em;
}

.main {
    display: block;
}

.container {
    width: 100%;
    max-width: var(--crypto-container);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 0;
    font: 700 15px/1 var(--crypto-font);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, background 0.3s ease;
}

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

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

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

.btn--butter {
    background: var(--crypto-butter);
    color: var(--crypto-plum-dark);
    box-shadow: 0 8px 20px rgba(242, 220, 116, 0.45);
}

.btn--butter:hover {
    background: var(--crypto-butter-dark);
    box-shadow: 0 14px 28px rgba(224, 194, 78, 0.55);
}

.btn--primary {
    background: var(--crypto-plum);
    color: var(--crypto-text-light);
    box-shadow: 0 8px 22px rgba(74, 23, 55, 0.3);
}

.btn--primary:hover {
    background: var(--crypto-plum-dark);
    box-shadow: 0 14px 30px rgba(74, 23, 55, 0.4);
}

/* =====================================================================
   HEADER & NAV
   ===================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 241, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.header--scrolled {
    background: rgba(251, 248, 241, 0.97);
    border-bottom-color: var(--crypto-border);
    box-shadow: 0 8px 24px rgba(44, 12, 32, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform 0.6s var(--crypto-ease);
}

.header__logo:hover .header__logo-mark {
    transform: rotate(360deg) scale(1.08);
}

.header__logo-img {
    max-height: 44px;
    width: auto;
}

.header__logo-text {
    font-family: var(--crypto-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--crypto-plum-dark);
}

.header__logo-text b {
    color: var(--crypto-gold);
}

.header__cta {
    margin-left: 12px;
    flex-shrink: 0;
}

.nav {
    margin-left: auto;
}

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

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

.nav__item {
    position: relative;
}

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

.nav__item--level-0 > .nav__link:hover,
.nav__item--level-0.nav__item--current > .nav__link {
    background: var(--crypto-butter-soft);
    color: var(--crypto-plum);
}

.nav__item--level-0.nav__item--parent > .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;
}

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

.nav__sub--level-1 {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 240px;
    padding: 12px;
    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: translate(-50%, 10px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
}

.nav__sub--level-1::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav__sub--level-1:has(.nav__sub--level-2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 8px;
}

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

.nav__sub .nav__link {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.nav__sub .nav__link:hover {
    background: var(--crypto-bg-alt);
    color: var(--crypto-plum);
    transform: translateX(3px);
}

.nav__item--level-1.nav__item--parent > .nav__link {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crypto-gold);
}

.nav__sub--level-2 {
    padding-left: 4px;
}

.nav__toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: 8px;
    padding: 0 11px;
    border: 1px solid var(--crypto-border);
    border-radius: 14px;
    background: var(--crypto-surface);
    cursor: pointer;
    transition: background 0.3s ease;
}

.burger__line {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-plum);
    transition: transform 0.35s var(--crypto-ease), opacity 0.25s ease;
}

.burger--active .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--active .burger__line:nth-child(2) { opacity: 0; }
.burger--active .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(242, 220, 116, 0.22), transparent 42%),
        radial-gradient(circle at 88% 85%, rgba(201, 161, 59, 0.2), transparent 40%),
        linear-gradient(135deg, var(--crypto-plum-dark) 0%, var(--crypto-plum) 55%, var(--crypto-plum-mid) 100%);
    color: var(--crypto-text-light);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: hero-float 12s ease-in-out infinite;
}

.hero::before {
    width: 380px;
    height: 380px;
    top: -140px;
    right: 30%;
    border: 1px solid rgba(242, 220, 116, 0.2);
}

.hero::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: 8%;
    background: radial-gradient(circle, rgba(242, 220, 116, 0.25), transparent 70%);
    animation-delay: -6s;
}

@keyframes hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.06); }
}

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

.hero__title {
    color: #fff;
    margin-bottom: 20px;
}

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

.hero__text {
    color: rgba(247, 239, 230, 0.8);
}

.hero a {
    color: var(--crypto-butter);
    text-decoration-color: var(--crypto-butter);
}

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

.hero__coin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(242, 220, 116, 0.25);
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.3s var(--crypto-ease), background 0.3s ease;
    animation: coin-bob 4s ease-in-out infinite;
}

.hero__coin:nth-child(2n) { animation-delay: -1s; }
.hero__coin:nth-child(3n) { animation-delay: -2s; }

.hero__coin:hover {
    background: rgba(242, 220, 116, 0.2);
    transform: translateY(-4px) scale(1.05);
}

@keyframes coin-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -4px; }
}

.hero__coin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
}

.hero__widget {
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

.hero__media {
    margin: 0;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(242, 220, 116, 0.3);
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--py, 0)) scale(var(--ps, 1.12));
    transition: transform 0.6s var(--crypto-ease), filter 0.4s ease;
}

.hero__media:hover .hero__img {
    --ps: 1.18;
    filter: saturate(1.15);
}

.hero__panel {
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

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

.hero--post .hero__title {
    font-size: clamp(30px, 3.6vw, 46px);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.breadcrumbs a {
    color: var(--crypto-butter);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    opacity: 0.5;
}

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

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

.section--plum {
    background:
        radial-gradient(circle at 90% 10%, rgba(242, 220, 116, 0.16), transparent 40%),
        var(--crypto-plum-dark);
    color: var(--crypto-text-light);
}

.section--plum .section__title,
.section--plum h3,
.section--plum b {
    color: #fff;
}

.section--plum a {
    color: var(--crypto-butter);
    text-decoration-color: var(--crypto-butter);
}

.section--plum a:hover {
    color: #fff;
}

.section--cta {
    background: linear-gradient(180deg, var(--crypto-bg) 0%, var(--crypto-butter-soft) 100%);
}

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

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--crypto-butter);
    color: var(--crypto-plum-dark);
    box-shadow: 0 8px 18px rgba(224, 194, 78, 0.4);
    transition: transform 0.4s var(--crypto-ease);
}

.section__head:hover .section__icon {
    transform: rotate(-8deg) scale(1.08);
}

.section__title {
    margin: 0;
}

.section__body {
    max-width: 860px;
    margin-bottom: 22px;
}

.section__body:last-child {
    margin-bottom: 0;
}

.cards + .section__body,
.table-wrap + .section__body,
.rate-chart + .section__body,
.reveal + .section__body,
.steps + .section__body {
    margin-top: 22px;
}

/* =====================================================================
   SPLIT (text + image)
   ===================================================================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
}

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

.split--top {
    align-items: start;
}

.split--wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
}

.split + .cards,
.split + .table-wrap {
    margin-top: 25px;
}

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

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

.split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(242, 220, 116, 0.35);
    background: linear-gradient(180deg, transparent 60%, rgba(44, 12, 32, 0.35));
    pointer-events: none;
}

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

.split__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--py, 0)) scale(var(--ps, 1.12));
    transition: transform 0.7s var(--crypto-ease), filter 0.4s ease;
}

.split__media:hover .split__img {
    --ps: 1.2;
    filter: saturate(1.2) contrast(1.05);
}

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

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

.card {
    position: relative;
    padding: 28px;
    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.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

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

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

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

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--crypto-plum);
    color: var(--crypto-butter);
    transition: transform 0.5s var(--crypto-ease), background 0.3s ease;
}

.card:hover .card__icon {
    transform: rotate(-10deg) scale(1.1);
    background: var(--crypto-plum-mid);
}

.card__title {
    font-size: 20px;
}

.card p + p,
.card p + ul,
.card ul + p {
    margin-top: 12px;
}

.section--plum .card,
.card--dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(242, 220, 116, 0.2);
    color: var(--crypto-text-light);
}

.section--plum .card__icon,
.card--dark .card__icon {
    background: var(--crypto-butter);
    color: var(--crypto-plum-dark);
}

.card--contact .card__title {
    font-size: 22px;
}

/* =====================================================================
   NOTE
   ===================================================================== */
.note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-butter-soft);
    border-left: 4px solid var(--crypto-butter-dark);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

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

.note__icon {
    color: var(--crypto-plum);
    flex-shrink: 0;
    padding-top: 3px;
}

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--crypto-radius-sm);
    border: 1px solid var(--crypto-border);
    background: var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
    -webkit-overflow-scrolling: touch;
}

.table-wrap + .note,
.table-wrap + p,
p + .table-wrap {
    margin-top: 20px;
}

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

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

.data-table th {
    background: var(--crypto-plum);
    color: var(--crypto-text-light);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}

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

.data-table tbody tr:nth-child(even) {
    background: rgba(243, 237, 225, 0.5);
}

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

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

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

.data-table__num {
    text-align: right !important;
    white-space: nowrap;
}

.data-table__logo {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
    transition: transform 0.4s var(--crypto-ease);
}

.data-table tr:hover .data-table__logo {
    transform: rotate(360deg);
}

.data-table--routes td {
    font-weight: 600;
}

.data-table--rank td:first-child {
    width: 60px;
    text-align: center;
    font-family: var(--crypto-font-head);
    font-size: 20px;
    color: var(--crypto-gold);
}

/* =====================================================================
   STEPS & CHECKLIST
   ===================================================================== */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    display: grid;
    gap: 12px;
}

.steps__item {
    position: relative;
    counter-increment: step;
    padding: 16px 20px 16px 72px;
    min-height: 60px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    display: flex;
    align-items: center;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.steps__item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--crypto-butter);
    color: var(--crypto-plum-dark);
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.4s var(--crypto-ease);
}

.steps__item:hover {
    transform: translateX(6px);
    box-shadow: var(--crypto-shadow);
    border-color: var(--crypto-butter-dark);
}

.steps__item:hover::before {
    transform: translateY(-50%) scale(1.12) rotate(-10deg);
}

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

.section--plum .steps__item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(242, 220, 116, 0.2);
    color: var(--crypto-text-light);
}

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

.checklist__item {
    position: relative;
    padding-left: 30px;
}

.checklist__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--crypto-butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a1737' 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;
}

/* =====================================================================
   ROUTES GRID
   ===================================================================== */
.routes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.routes__item:first-child {
    grid-column: span 3;
}

.routes__link {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px 18px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.routes__item:first-child .routes__link {
    background: var(--crypto-plum);
    color: var(--crypto-text-light);
    border-color: var(--crypto-plum);
}

.routes__link:hover {
    transform: translateY(-5px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-butter-dark);
}

.routes__coins {
    display: flex;
    flex-shrink: 0;
}

.routes__logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--crypto-surface);
    background: var(--crypto-surface);
    transition: transform 0.4s var(--crypto-ease);
}

.routes__logo + .routes__logo {
    margin-left: -10px;
}

.routes__link:hover .routes__logo:first-child {
    transform: translateX(-4px) rotate(-12deg);
}

.routes__link:hover .routes__logo:last-child {
    transform: translateX(4px) rotate(12deg);
}

.routes__text {
    flex: 1;
}

.routes__arrow {
    color: var(--crypto-gold);
    transition: transform 0.3s ease;
}

.routes__link:hover .routes__arrow {
    transform: translateX(5px);
}

/* =====================================================================
   CTA + EXCHANGE WIDGET
   ===================================================================== */
.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 40px;
    align-items: center;
}

.cta__media {
    margin: 22px 0 0;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.cta__media:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--crypto-shadow-hover);
}

.cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--py, 0)) scale(var(--ps, 1.12));
    transition: transform 0.7s var(--crypto-ease);
}

.cta__media:hover .cta__img {
    --ps: 1.2;
}

.exchange-widget {
    width: 100%;
    padding: 14px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: 0 24px 60px rgba(44, 12, 32, 0.28);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

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

.exchange-widget__pair {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 4px 12px;
    font-weight: 800;
    color: var(--crypto-plum-dark);
}

.exchange-widget__logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.exchange-widget__logo + .exchange-widget__logo {
    margin-left: -12px;
    margin-right: 6px;
    border: 2px solid var(--crypto-surface);
}

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

/* =====================================================================
   PAIR CONVERTER
   ===================================================================== */
.converter {
    padding: 22px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.converter:hover {
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-butter-dark);
}

.converter__rate {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 17px;
}

.converter__logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.converter__logo + .converter__logo {
    margin-left: -18px;
    border: 2px solid var(--crypto-surface);
}

.converter__logo--fiat,
.converter__logo.coin-logo--fiat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--crypto-up);
    color: #fff;
    font-weight: 800;
}

.converter__fields {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: end;
}

.converter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.converter__input,
.converter__output {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--crypto-border);
    background: var(--crypto-bg);
    font: 700 20px/1.2 var(--crypto-font);
    color: var(--crypto-plum-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow-wrap: anywhere;
}

.converter__input:focus {
    outline: none;
    border-color: var(--crypto-plum);
    box-shadow: 0 0 0 4px var(--crypto-accent-soft);
}

.converter__output {
    background: var(--crypto-butter-soft);
    border-color: var(--crypto-butter-dark);
}

.converter__output--flash {
    animation: converter-flash 0.5s ease;
}

@keyframes converter-flash {
    0% { box-shadow: 0 0 0 0 rgba(224, 194, 78, 0.8); }
    100% { box-shadow: 0 0 0 10px rgba(224, 194, 78, 0); }
}

.converter__swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 52px;
    color: var(--crypto-gold);
}

.converter__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.converter__chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--crypto-border);
    background: var(--crypto-bg);
    font: 600 13px/1 var(--crypto-font);
    color: var(--crypto-plum);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.converter__chip:hover,
.converter__chip--active {
    background: var(--crypto-butter);
    border-color: var(--crypto-butter-dark);
    transform: translateY(-2px);
}

.converter__table {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.converter__row {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--crypto-bg-alt);
    font-size: 13px;
    color: var(--crypto-text-muted);
    transition: background 0.25s ease, transform 0.25s ease;
}

.converter__row:hover {
    background: var(--crypto-butter-soft);
    transform: translateY(-2px);
}

.converter__row b {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.converter__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px !important;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.converter__note .icon {
    width: 16px;
    height: 16px;
}

/* =====================================================================
   RATE CHART (CSS-only tabs) + SVG CHART
   ===================================================================== */
.rate-chart {
    padding: 24px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.rate-chart__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.rate-chart__pair {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    color: var(--crypto-plum-dark);
}

.rate-chart__logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.rate-chart__logo + .rate-chart__logo {
    margin-left: -14px;
    margin-right: 6px;
    border: 2px solid var(--crypto-surface);
}

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

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

.rate-chart__tab:hover {
    color: var(--crypto-plum);
}

.rate-chart__panel {
    display: none;
    animation: panel-in 0.5s var(--crypto-ease);
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rate-chart__input:nth-of-type(1):checked ~ .rate-chart__panels .rate-chart__panel:nth-child(1),
.rate-chart__input:nth-of-type(2):checked ~ .rate-chart__panels .rate-chart__panel:nth-child(2),
.rate-chart__input:nth-of-type(3):checked ~ .rate-chart__panels .rate-chart__panel:nth-child(3),
.rate-chart__input:nth-of-type(4):checked ~ .rate-chart__panels .rate-chart__panel:nth-child(4),
.rate-chart__input:nth-of-type(5):checked ~ .rate-chart__panels .rate-chart__panel:nth-child(5),
.rate-chart__input:nth-of-type(6):checked ~ .rate-chart__panels .rate-chart__panel:nth-child(6) {
    display: block;
}

.rate-chart__input:nth-of-type(1):checked ~ .rate-chart__top .rate-chart__tab:nth-child(1),
.rate-chart__input:nth-of-type(2):checked ~ .rate-chart__top .rate-chart__tab:nth-child(2),
.rate-chart__input:nth-of-type(3):checked ~ .rate-chart__top .rate-chart__tab:nth-child(3),
.rate-chart__input:nth-of-type(4):checked ~ .rate-chart__top .rate-chart__tab:nth-child(4),
.rate-chart__input:nth-of-type(5):checked ~ .rate-chart__top .rate-chart__tab:nth-child(5),
.rate-chart__input:nth-of-type(6):checked ~ .rate-chart__top .rate-chart__tab:nth-child(6) {
    background: var(--crypto-plum);
    color: var(--crypto-butter);
}

.rate-chart__input:nth-of-type(1):focus-visible ~ .rate-chart__top .rate-chart__tab:nth-child(1),
.rate-chart__input:nth-of-type(2):focus-visible ~ .rate-chart__top .rate-chart__tab:nth-child(2),
.rate-chart__input:nth-of-type(3):focus-visible ~ .rate-chart__top .rate-chart__tab:nth-child(3),
.rate-chart__input:nth-of-type(4):focus-visible ~ .rate-chart__top .rate-chart__tab:nth-child(4),
.rate-chart__input:nth-of-type(5):focus-visible ~ .rate-chart__top .rate-chart__tab:nth-child(5),
.rate-chart__input:nth-of-type(6):focus-visible ~ .rate-chart__top .rate-chart__tab:nth-child(6) {
    outline: 2px solid var(--crypto-butter-dark);
    outline-offset: 2px;
}

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

.rate-chart__stat {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--crypto-bg-alt);
    font-size: 12px;
    color: var(--crypto-text-muted);
    transition: transform 0.3s var(--crypto-ease), background 0.3s ease;
}

.rate-chart__stat:hover {
    transform: translateY(-3px);
    background: var(--crypto-butter-soft);
}

.rate-chart__stat b {
    font-size: 14px;
    overflow-wrap: anywhere;
}

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

.chart {
    position: relative;
}

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

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

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

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

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

.rate-chart__panel .chart__line {
    stroke-dasharray: 3000;
    stroke-dashoffset: 0;
    animation: chart-draw 1.8s var(--crypto-ease);
}

@keyframes chart-draw {
    from { stroke-dashoffset: 3000; }
    to { stroke-dashoffset: 0; }
}

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

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

.chart-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg-alt);
    border: 1px dashed var(--crypto-border);
    color: var(--crypto-text-muted);
    font-weight: 600;
}

.chart-empty::before {
    content: "";
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--crypto-butter-dark);
    animation: chart-dot 1.6s ease-in-out infinite;
}

/* =====================================================================
   PRICE PANEL & STAT CARDS
   ===================================================================== */
.price-panel {
    padding: 26px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    color: var(--crypto-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--crypto-ease);
}

.price-panel:hover {
    transform: translateY(-4px);
}

.price-panel__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.price-panel__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    animation: coin-spin 8s linear infinite;
}

@keyframes coin-spin {
    0%, 80% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

.price-panel__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--crypto-text-muted);
}

.price-panel__price {
    font-size: 34px;
    line-height: 1.1;
}

.price-panel__change {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.price-panel__change--up { background: rgba(47, 138, 91, 0.12); color: var(--crypto-up); }
.price-panel__change--down { background: rgba(179, 54, 76, 0.12); color: var(--crypto-down); }

.price-panel__range {
    margin-top: 22px;
}

.price-panel__range-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--crypto-text-muted);
}

.price-panel__bar {
    position: relative;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--crypto-down), var(--crypto-butter), var(--crypto-up));
}

.price-panel__marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--crypto-plum);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

.price-panel__updated {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px !important;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.price-panel__updated .icon {
    width: 16px;
    height: 16px;
}

.stat-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.stat-cards__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-radius: var(--crypto-radius-sm);
    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;
}

.stat-cards--two .stat-cards__item {
    background: var(--crypto-bg);
    box-shadow: none;
}

.stat-cards__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
}

.stat-cards__icon {
    color: var(--crypto-gold);
    margin-bottom: 4px;
}

.stat-cards__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--crypto-text-muted);
}

.stat-cards__value {
    font-size: 22px;
}

.stat-cards__note {
    font-size: 12px;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__list {
    display: grid;
    gap: 12px;
}

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

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

.faq__item--open {
    border-color: var(--crypto-butter-dark);
    box-shadow: var(--crypto-shadow);
}

.faq__question {
    margin: 0;
    font-size: 18px;
}

.faq__toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.faq__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--crypto-plum);
    color: var(--crypto-butter);
    font: 800 14px var(--crypto-font);
}

.faq__text {
    flex: 1;
}

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

.faq__plus::before,
.faq__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--crypto-plum);
    transform: translate(-50%, -50%);
    transition: transform 0.35s var(--crypto-ease);
}

.faq__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item--open .faq__plus::after {
    transform: translate(-50%, -50%) rotate(0);
}

.faq__answer {
    padding: 0 22px 20px 78px;
    color: var(--crypto-text-muted);
}

.js .faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    padding-bottom: 0;
    transition: grid-template-rows 0.4s var(--crypto-ease), padding 0.4s ease;
}

.js .faq__answer > p {
    overflow: hidden;
}

.js .faq__item--open .faq__answer {
    grid-template-rows: 1fr;
    padding-bottom: 20px;
}

/* =====================================================================
   DOC (policy pages) & ARTICLE (guides)
   ===================================================================== */
.doc {
    display: grid;
    gap: 22px;
}

.doc__block,
.article__block {
    padding: 30px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

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

.doc__block p + p,
.article__block p + p {
    margin-top: 14px;
}

.article__block {
    margin-bottom: 22px;
}

.article__block:last-child {
    margin-bottom: 0;
}

.article__block--narrow {
    max-width: 920px;
    margin: 22px auto;
}

.section--plum .article__block {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 220, 116, 0.2);
}

.section--plum .article__block .section__title {
    color: #fff;
}

.article__block + .cards,
.article__block + .steps,
.article__block + .table-wrap {
    margin-top: 0;
}

.steps + .table-wrap,
.steps + .note,
.cards + .article__block,
.cards + .note,
.article__media + .cards {
    margin-top: 22px;
}

.doc__media,
.article__media {
    margin: 0 0 22px;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    box-shadow: var(--crypto-shadow);
}

.doc__media {
    margin: 0;
}

.doc__img,
.article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--py, 0)) scale(var(--ps, 1.15));
    transition: transform 0.7s var(--crypto-ease), filter 0.4s ease;
}

.doc__media:hover .doc__img,
.article__media:hover .article__img {
    --ps: 1.22;
    filter: saturate(1.2);
}

/* =====================================================================
   CONTACTS
   ===================================================================== */
.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero .contact-chips__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(242, 220, 116, 0.3);
    color: var(--crypto-butter);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s var(--crypto-ease);
}

.hero .contact-chips__link:hover {
    background: var(--crypto-butter);
    color: var(--crypto-plum-dark);
    transform: translateY(-3px);
}

.contact-chips__link .icon {
    width: 18px;
    height: 18px;
}

/* =====================================================================
   BLOG LIST
   ===================================================================== */
.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    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.4s var(--crypto-ease), box-shadow 0.4s ease;
}

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

.post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--crypto-ease), filter 0.4s ease;
}

.post-card:hover .post-card__img {
    transform: scale(1.08);
    filter: saturate(1.2);
}

.post-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 22px;
}

.post-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--crypto-gold);
}

.post-card__tag .icon {
    width: 16px;
    height: 16px;
}

.post-card__title {
    margin: 0;
    font-size: 21px;
}

.post-card__title a {
    color: var(--crypto-plum-dark);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--crypto-plum-mid);
}

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

.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 700;
    color: var(--crypto-plum);
    text-decoration: none;
}

.post-card__more .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.post-card__more:hover .icon {
    transform: translateX(5px);
}

.pagination {
    margin-top: 30px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-plum);
    font-weight: 700;
    text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--crypto-plum);
    color: var(--crypto-butter);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(242, 220, 116, 0.35), transparent 50%),
        var(--crypto-bg);
}

.error404__code {
    font-family: var(--crypto-font-head);
    font-size: clamp(110px, 20vw, 220px);
    line-height: 1;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crypto-plum), var(--crypto-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hero-float 8s ease-in-out infinite;
}

.error404__text {
    color: var(--crypto-text-muted);
    margin-bottom: 28px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    position: relative;
    padding: 56px 0 24px;
    background: var(--crypto-plum-dark);
    color: rgba(247, 239, 230, 0.78);
    font-size: 15px;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crypto-plum-mid), var(--crypto-butter), var(--crypto-gold));
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px 28px;
}

.footer__brand {
    grid-row: span 2;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--crypto-font-head);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.footer__logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.footer__logo b {
    color: var(--crypto-butter);
}

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

.footer__coin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.4s var(--crypto-ease);
}

.footer__coin:hover {
    transform: translateY(-4px) rotate(20deg) scale(1.1);
}

.footer__title {
    margin-bottom: 14px !important;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--crypto-butter);
}

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

.footer-menu__link,
.footer__contact a {
    color: rgba(247, 239, 230, 0.8);
    text-decoration: none;
    transition: color 0.25s ease, padding 0.25s ease;
}

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

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

.footer__contact {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer__contact .icon {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--crypto-butter);
}

.footer__contact a {
    text-decoration: underline;
    text-decoration-color: rgba(242, 220, 116, 0.5);
    overflow-wrap: anywhere;
}

.footer__contact a:hover {
    color: var(--crypto-butter);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(242, 220, 116, 0.18);
}

.footer__top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--crypto-butter);
    color: var(--crypto-plum-dark);
    cursor: pointer;
    transform: rotate(-90deg);
    transition: transform 0.35s var(--crypto-ease), background 0.3s ease;
}

.footer__top:hover {
    transform: rotate(-90deg) translateX(4px);
    background: #fff;
}

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

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

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

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

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

/* =====================================================================
   RESPONSIVE — 1100px
   ===================================================================== */
@media (max-width: 1100px) {
    .header__cta {
        display: none;
    }

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

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

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

    .footer__brand {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* =====================================================================
   RESPONSIVE — 992px: мобильное меню
   ===================================================================== */
@media (max-width: 992px) {
    .burger {
        display: flex;
        margin-left: auto;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-bg);
        border-bottom: 1px solid var(--crypto-border);
        box-shadow: 0 20px 40px rgba(44, 12, 32, 0.15);
        opacity: 0;
        transition: max-height 0.5s var(--crypto-ease), opacity 0.35s ease;
    }

    .nav--open {
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        opacity: 1;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 20px;
    }

    .nav__item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .nav__link {
        flex: 1;
        padding: 12px 14px;
        border-radius: 12px;
        white-space: normal;
    }

    .nav__item--level-0.nav__item--parent > .nav__link::after {
        display: none;
    }

    .nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 10px;
        background: var(--crypto-bg-alt);
        color: var(--crypto-plum);
        cursor: pointer;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .nav__toggle::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    .nav__item--open > .nav__toggle {
        transform: rotate(180deg);
        background: var(--crypto-butter);
    }

    .nav__sub,
    .nav__sub--level-1,
    .nav__sub--level-1:has(.nav__sub--level-2) {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 4px 0 4px 14px;
        border: 0;
        border-left: 2px solid var(--crypto-butter);
        border-radius: 0;
        box-shadow: none;
        background: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__item--open > .nav__sub {
        display: block;
        animation: panel-in 0.35s var(--crypto-ease);
    }

    .hero__grid,
    .split,
    .split--wide,
    .cta {
        grid-template-columns: 1fr;
    }

    .hero__widget,
    .hero__panel {
        justify-self: stretch;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

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

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

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

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

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

    .routes__item:first-child {
        grid-column: span 2;
    }
}

/* =====================================================================
   RESPONSIVE — 768px
   ===================================================================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .hero,
    .hero--page,
    .hero--post {
        padding: 40px 0;
    }

    .hero__lead {
        font-size: 16px;
    }

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

    .cards--2,
    .cards--3,
    .cards--4,
    .steps--grid,
    .stat-cards,
    .stat-cards--two,
    .posts {
        grid-template-columns: 1fr;
    }

    .rate-chart {
        padding: 16px;
    }

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

    .rate-chart__tabs {
        width: 100%;
        justify-content: space-between;
    }

    .rate-chart__tab {
        flex: 1;
        text-align: center;
        padding: 7px 6px;
    }

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

    .converter__swap {
        transform: rotate(90deg);
        height: 32px;
        margin: 0 auto;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }

    .doc__block,
    .article__block,
    .card {
        padding: 22px;
    }

    .faq__answer {
        padding-left: 22px;
    }

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

/* =====================================================================
   RESPONSIVE — 480px
   ===================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header__inner {
        min-height: 66px;
    }

    .header__logo-text {
        font-size: 19px;
    }

    .nav--open {
        max-height: calc(100vh - 66px);
    }

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

    .section__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

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

    .routes__item:first-child {
        grid-column: auto;
    }

    .exchange-widget {
        padding: 8px;
    }

    .steps__item {
        padding-left: 64px;
    }

    .steps__item::before {
        left: 10px;
        width: 38px;
        height: 38px;
    }

    .faq__toggle {
        padding: 16px;
        gap: 12px;
    }

    .faq__num {
        width: 34px;
        height: 34px;
    }

    .price-panel {
        padding: 20px;
    }

    .price-panel__price {
        font-size: 28px;
    }

    .price-panel__change {
        margin-left: 0;
    }

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

    .footer__bottom {
        flex-direction: row;
    }

    .doc__media,
    .article__media {
        aspect-ratio: 16 / 10;
    }
}
