/*
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 — палитра «Graphite + Fuchsia»
   ===================================================================== */
:root {
    --crypto-graphite: #2b2d32;
    --crypto-graphite-2: #36393f;
    --crypto-graphite-3: #4a4d55;
    --crypto-accent: #b0156c;
    --crypto-accent-strong: #8c0f55;
    --crypto-accent-bright: #e2449f;
    --crypto-accent-soft: rgba(176, 21, 108, 0.12);
    --crypto-bg: #ffffff;
    --crypto-bg-alt: #f4f3f6;
    --crypto-text: #1d1f23;
    --crypto-text-muted: #62656d;
    --crypto-text-on-dark: #f3f2f5;
    --crypto-text-on-dark-muted: #b8bac2;
    --crypto-border: #e4e1e8;
    --crypto-up: #13845e;
    --crypto-down: #cf3b3b;
    --crypto-radius: 20px;
    --crypto-radius-sm: 14px;
    --crypto-shadow: 0 10px 30px rgba(29, 31, 35, 0.07);
    --crypto-shadow-hover: 0 22px 48px rgba(176, 21, 108, 0.18);
    --crypto-section-y: 24px;
    --crypto-header-h: 72px;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --crypto-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =====================================================================
   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.65;
    color: var(--crypto-text);
    background: var(--crypto-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    color: var(--crypto-graphite);
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 14px;
}

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

/* Ссылки внутри абзацев отличаются от текста */
p a {
    color: var(--crypto-accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.25s ease;
}

p a:hover {
    color: var(--crypto-accent-strong);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
    border-radius: 6px;
    padding: 2px 6px;
    word-break: break-all;
}

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

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

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

.coin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

/* =====================================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ===================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--crypto-ease), transform 0.8s var(--crypto-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes crypto-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes crypto-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate(40px, -30px) scale(1.15); opacity: 0.8; }
}

@keyframes crypto-pulse {
    0% { box-shadow: 0 0 0 0 rgba(19, 132, 94, 0.45); }
    100% { box-shadow: 0 0 0 9px rgba(19, 132, 94, 0); }
}

@keyframes crypto-shine {
    0% { transform: translateX(-120%) skewX(-20deg); }
    100% { transform: translateX(220%) skewX(-20deg); }
}

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

@keyframes chart-dot {
    0%, 100% { r: 4.5; }
    50% { r: 7; }
}

/* =====================================================================
   HEADER + МЕНЮ
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(36, 38, 43, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header--scrolled {
    background: rgba(30, 32, 36, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--crypto-header-h);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.site-header__mark,
.site-footer__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--crypto-accent-bright), var(--crypto-accent-strong));
    box-shadow: 0 8px 20px rgba(176, 21, 108, 0.4);
    transition: transform 0.4s var(--crypto-ease);
}

.site-header__brand:hover .site-header__mark {
    transform: rotate(-12deg) scale(1.08);
}

.site-header__mark .icon,
.site-footer__mark .icon {
    width: 20px;
    height: 20px;
}

.site-header__brand > a {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

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

.main-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav__item > a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #e8e7ec;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.main-nav__item > a:hover,
.main-nav__item.current-menu-item > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.main-nav__item.current-menu-item > a {
    box-shadow: inset 0 -2px 0 var(--crypto-accent-bright);
}

.main-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #e8e7ec;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.25s ease;
}

.main-nav__toggle svg {
    width: 16px;
    height: 16px;
}

.main-nav__item--expanded > .main-nav__toggle {
    transform: rotate(180deg);
}

.main-nav__submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 2px;
    min-width: 400px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(20, 21, 25, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.3s var(--crypto-ease), visibility 0.25s;
}

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

.main-nav__item--parent:hover > .main-nav__submenu,
.main-nav__item--parent:focus-within > .main-nav__submenu,
.main-nav__item--expanded > .main-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.main-nav__subitem > a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--crypto-text);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.main-nav__subitem > a:hover {
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transform: translateX(4px);
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    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;
    color: var(--crypto-text-on-dark);
    background-color: var(--crypto-graphite);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, rgba(34, 36, 40, 0.96) 0%, rgba(43, 45, 50, 0.88) 55%, rgba(140, 15, 85, 0.72) 100%);
}

.hero--exchange::before {
    background:
        radial-gradient(circle at 85% 20%, rgba(226, 68, 159, 0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(176, 21, 108, 0.25), transparent 40%),
        linear-gradient(135deg, #25272c 0%, #34373d 100%);
}

.hero__glow {
    position: absolute;
    top: -120px;
    right: 10%;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 68, 159, 0.55), transparent 65%);
    filter: blur(20px);
    animation: crypto-glow 12s ease-in-out infinite;
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 60px;
}

.hero__inner--single {
    grid-template-columns: minmax(0, 860px);
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hero__text {
    color: var(--crypto-text-on-dark-muted);
    font-size: 1.08rem;
}

.hero__text a,
.hero p a {
    color: var(--crypto-accent-bright);
}

.hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--crypto-accent-bright), var(--crypto-accent-strong));
    box-shadow: 0 12px 30px rgba(176, 21, 108, 0.45);
    animation: crypto-float 5s ease-in-out infinite;
}

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

.hero__coin {
    width: 46px;
    height: 46px;
    margin-right: -10px;
    border: 3px solid var(--crypto-graphite);
    border-radius: 50%;
    background: #fff;
    animation: crypto-float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero__coin:nth-child(2) { animation-delay: 0.3s; }
.hero__coin:nth-child(3) { animation-delay: 0.6s; }
.hero__coin:nth-child(4) { animation-delay: 0.9s; }
.hero__coin:nth-child(5) { animation-delay: 1.2s; }
.hero__coin:nth-child(6) { animation-delay: 1.5s; }
.hero__coin:nth-child(7) { animation-delay: 1.8s; }

.hero__coin:hover {
    transform: scale(1.2);
    z-index: 2;
}

.hero__pair {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.hero__pair-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    animation: crypto-float 4s ease-in-out infinite;
}

.hero__pair-logo:last-child {
    animation-delay: 0.8s;
}

.hero__pair-arrow {
    display: inline-flex;
    color: var(--crypto-accent-bright);
}

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

.hero__toc-item > a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero__toc-item > a:hover {
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
    transform: translateY(-2px);
}

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

/* Виджет обменника */
.exchange-widget {
    position: relative;
    min-height: 420px;
    padding: 10px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.exchange-widget::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    background: linear-gradient(110deg, var(--crypto-bg-alt) 30%, #fff 50%, var(--crypto-bg-alt) 70%);
    background-size: 200% 100%;
    animation: widget-skeleton 1.4s linear infinite;
}

.exchange-widget--loaded::before {
    display: none;
}

@keyframes widget-skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.exchange-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 80px rgba(176, 21, 108, 0.35);
}

.exchange-widget__frame {
    position: relative;
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* =====================================================================
   СЕКЦИИ
   ===================================================================== */
.section {
    padding-top: var(--crypto-section-y);
    padding-bottom: var(--crypto-section-y);
}

.site-main > .section:first-of-type,
.hero + .section,
.hero + div + .section {
    padding-top: calc(var(--crypto-section-y) * 2);
}

.site-main > .section:last-child {
    padding-bottom: calc(var(--crypto-section-y) * 2.5);
}

.section__inner {
    padding: clamp(24px, 4vw, 48px);
    border-radius: 28px;
    background: var(--crypto-bg-alt);
}

.section__head {
    max-width: 780px;
    margin-bottom: 26px;
}

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 15px;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transition: transform 0.4s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

.section__head:hover .section__icon,
.split__content:hover .section__icon {
    transform: rotate(-8deg) scale(1.08);
    color: #fff;
    background: var(--crypto-accent);
}

.section__title {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 800;
}

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

.section__note {
    margin-top: 18px;
    color: var(--crypto-text-muted);
}

/* Текст + картинка */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.split + .table-wrap,
.split + .reveal {
    margin-top: 28px;
}

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

.split__content p {
    color: #3d4047;
}

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

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

.split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, transparent 50%, rgba(176, 21, 108, 0.35) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.split__img,
.article__cover-img,
.article__figure-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--img-scale, 1.14));
    transition: transform 0.6s var(--crypto-ease), filter 0.4s ease;
    will-change: transform;
}

.split__media:hover .split__img,
.article__cover:hover .article__cover-img,
.article__figure:hover .article__figure-img {
    --img-scale: 1.22;
    filter: saturate(1.15);
}

.split__after {
    margin-top: 28px;
}

.text-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

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

.text-columns p {
    margin: 0;
    padding: 20px 22px;
    border-left: 4px solid var(--crypto-accent);
    border-radius: 0 var(--crypto-radius-sm) var(--crypto-radius-sm) 0;
    background: #fff;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
}

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

/* Подсказка */
.callout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 18px 22px;
    border: 1px solid rgba(176, 21, 108, 0.2);
    border-left: 4px solid var(--crypto-accent);
    border-radius: var(--crypto-radius-sm);
    background: linear-gradient(90deg, rgba(176, 21, 108, 0.07), rgba(176, 21, 108, 0.02));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.callout__icon {
    display: inline-flex;
    color: var(--crypto-accent);
}

.callout p {
    margin: 0;
}

/* =====================================================================
   ТАБЛИЦЫ
   ===================================================================== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--crypto-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--crypto-shadow);
}

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

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

.data-table thead th {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--crypto-graphite);
}

.data-table thead th:first-child {
    box-shadow: inset 4px 0 0 var(--crypto-accent);
}

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

.data-table tbody tr:nth-child(even) {
    background: #faf9fb;
}

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

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

.data-table tbody th {
    font-weight: 700;
}

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

.data-table__asset {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.data-table td > a {
    color: var(--crypto-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: color 0.2s ease;
}

.data-table td > a::after {
    content: " →";
}

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

/* =====================================================================
   КАРТОЧКИ: преимущества, инфо, шаги, списки
   ===================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

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

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

.feature-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(176, 21, 108, 0.35);
    box-shadow: var(--crypto-shadow-hover);
}

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

.feature-card__icon,
.info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-graphite-3));
    box-shadow: 0 10px 22px rgba(176, 21, 108, 0.28);
    transition: transform 0.45s var(--crypto-ease);
}

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

.feature-card__title {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 700;
}

.feature-card__text,
.info-card__text {
    color: var(--crypto-text-muted);
    font-size: 0.97rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

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

.info-card__text {
    color: #43464d;
}

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

.steps__item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 18px 14px 14px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: #fff;
    counter-increment: step;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.steps__item::after {
    content: counter(step, decimal-leading-zero);
    margin-left: auto;
    padding-left: 10px;
    color: rgba(176, 21, 108, 0.35);
    font-size: 1.3rem;
    font-weight: 800;
}

.steps__item:hover {
    transform: translateX(6px);
    border-color: rgba(176, 21, 108, 0.35);
    box-shadow: var(--crypto-shadow-hover);
}

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

.steps__icon .icon,
.check-list__icon .icon {
    width: 20px;
    height: 20px;
}

/* Список с иконками */
.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list__item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: #fff;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
}

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

.coin-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 18px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-bg-alt);
}

.coin-strip__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease);
}

.coin-strip__logo:hover {
    transform: translateY(-6px) rotate(12deg) scale(1.08);
}

/* =====================================================================
   МАРШРУТЫ ОБМЕНА
   ===================================================================== */
.routes__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.route-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 24px;
    color: var(--crypto-text-on-dark);
    background: linear-gradient(150deg, var(--crypto-graphite) 0%, var(--crypto-graphite-2) 70%, #4b1d38 100%);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.route-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 68, 159, 0.45), transparent 70%);
    transition: transform 0.6s var(--crypto-ease);
}

.route-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px rgba(43, 45, 50, 0.35);
}

.route-card:hover::after {
    transform: scale(1.4);
}

.route-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 15px;
    color: #fff;
    background: var(--crypto-accent);
}

.route-card__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.25rem;
}

.route-card__text {
    color: var(--crypto-text-on-dark-muted);
}

.route-card__list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.route-card__item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}

.route-card__item:hover {
    background: rgba(226, 68, 159, 0.16);
    border-color: rgba(226, 68, 159, 0.4);
    transform: translateX(4px);
}

.route-card__item > a {
    flex: 1;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.route-card__item > a::after {
    content: "→";
    float: right;
    color: var(--crypto-accent-bright);
    transition: transform 0.3s ease;
}

.route-card__item:hover > a::after {
    transform: translateX(4px);
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px);
    border-radius: 30px;
    text-align: center;
    color: var(--crypto-text-on-dark);
    background-color: var(--crypto-graphite);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(36, 38, 43, 0.93) 0%, rgba(43, 45, 50, 0.85) 50%, rgba(140, 15, 85, 0.85) 100%);
}

.cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: crypto-float 4s ease-in-out infinite;
}

.cta__title {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
}

.cta__text {
    max-width: 680px;
    margin: 0 auto 26px;
    color: var(--crypto-text-on-dark-muted);
    font-size: 1.05rem;
}

.cta__action a,
.error404__actions a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 15px 30px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--crypto-accent-bright), var(--crypto-accent));
    box-shadow: 0 14px 32px rgba(176, 21, 108, 0.45);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
}

.cta__action a::after,
.error404__actions a::after {
    content: "→";
    transition: transform 0.3s ease;
}

.cta__action a::before,
.error404__actions a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-20deg);
}

.cta__action a:hover,
.error404__actions a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 44px rgba(176, 21, 108, 0.55);
}

.cta__action a:hover::before,
.error404__actions a:hover::before {
    animation: crypto-shine 0.9s ease;
}

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

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

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

.faq__item:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 21, 108, 0.35);
    box-shadow: var(--crypto-shadow-hover);
}

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

.faq__item:hover .faq__icon {
    color: #fff;
    background: var(--crypto-accent);
    transform: rotate(12deg);
}

.faq__question {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
}

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

/* =====================================================================
   РЫНОЧНЫЕ БЛОКИ: карточка, статистика, переключатель периодов
   ===================================================================== */
.market-card {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--crypto-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease;
}

.market-card:hover {
    box-shadow: 0 18px 44px rgba(29, 31, 35, 0.1);
}

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

.market-card__pair {
    display: flex;
    align-items: center;
}

.market-card__pair .coin-logo {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.market-card__pair .coin-logo + .coin-logo {
    margin-left: -10px;
}

.market-card__name {
    margin-left: 12px;
    color: var(--crypto-graphite);
    font-size: 1.1rem;
    font-weight: 800;
}

.market-card .table-wrap {
    box-shadow: none;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.market-stats--supply {
    margin: 18px 0 0;
}

.market-stats__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg-alt);
    transition: transform 0.3s var(--crypto-ease), background 0.3s ease;
}

.market-stats__item:hover {
    transform: translateY(-3px);
    background: var(--crypto-accent-soft);
}

.market-stats__icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--crypto-accent);
    background: #fff;
}

.market-stats__icon .icon {
    width: 20px;
    height: 20px;
}

.market-stats__label {
    color: var(--crypto-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.market-stats__value {
    color: var(--crypto-graphite);
    font-size: 1.02rem;
    font-weight: 800;
    word-break: break-word;
}

.market-change {
    font-weight: 700;
    white-space: nowrap;
}

.market-change--up {
    color: var(--crypto-up);
}

.market-change--up::before {
    content: "▲ ";
    font-size: 0.75em;
}

.market-change--down {
    color: var(--crypto-down);
}

.market-change--down::before {
    content: "▼ ";
    font-size: 0.75em;
}

.market-range {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.market-range__item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--crypto-bg-alt);
    font-size: 0.9rem;
    font-weight: 600;
}

.market-range__item .icon {
    width: 16px;
    height: 16px;
}

.market-range__item--high .icon {
    color: var(--crypto-up);
}

.market-range__item--low .icon {
    color: var(--crypto-down);
}

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

.market-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.market-meta__item--live::before,
.market-meta__item--cached::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crypto-up);
    animation: crypto-pulse 1.8s ease-out infinite;
}

.market-meta__item--cached::before {
    background: #d99a1e;
    animation: none;
}

/* Переключатель периодов без JS (radio + label) */
.period-switch__tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 999px;
    background: var(--crypto-bg-alt);
}

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

.period-switch__tab:hover {
    color: var(--crypto-accent);
}

.period-switch__panel {
    display: none;
}

.period-switch__radio--24h:checked ~ .period-switch__panels .period-switch__panel--24h,
.period-switch__radio--7d:checked ~ .period-switch__panels .period-switch__panel--7d,
.period-switch__radio--30d:checked ~ .period-switch__panels .period-switch__panel--30d,
.period-switch__radio--90d:checked ~ .period-switch__panels .period-switch__panel--90d,
.period-switch__radio--1y:checked ~ .period-switch__panels .period-switch__panel--1y {
    display: block;
}

.period-switch__radio--24h:checked ~ .period-switch__tabs .period-switch__tab--24h,
.period-switch__radio--7d:checked ~ .period-switch__tabs .period-switch__tab--7d,
.period-switch__radio--30d:checked ~ .period-switch__tabs .period-switch__tab--30d,
.period-switch__radio--90d:checked ~ .period-switch__tabs .period-switch__tab--90d,
.period-switch__radio--1y:checked ~ .period-switch__tabs .period-switch__tab--1y {
    color: #fff;
    background: var(--crypto-accent);
    box-shadow: 0 6px 16px rgba(176, 21, 108, 0.35);
}

.period-switch__radio--24h:focus-visible ~ .period-switch__tabs .period-switch__tab--24h,
.period-switch__radio--7d:focus-visible ~ .period-switch__tabs .period-switch__tab--7d,
.period-switch__radio--30d:focus-visible ~ .period-switch__tabs .period-switch__tab--30d,
.period-switch__radio--90d:focus-visible ~ .period-switch__tabs .period-switch__tab--90d,
.period-switch__radio--1y:focus-visible ~ .period-switch__tabs .period-switch__tab--1y {
    outline: 2px solid var(--crypto-accent);
    outline-offset: 2px;
}

/* =====================================================================
   ГРАФИК (серверный SVG)
   ===================================================================== */
.chart {
    position: relative;
    padding: 10px 6px 0;
    border-radius: var(--crypto-radius-sm);
    background: linear-gradient(180deg, #fff 0%, #fcfafc 100%);
}

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

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

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

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

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

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    animation: chart-draw 1.8s var(--crypto-ease);
}

.chart__dot {
    fill: var(--crypto-accent);
    stroke: #fff;
    stroke-width: 2;
    animation: chart-dot 1.6s ease-in-out infinite;
}

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

/* =====================================================================
   КОНВЕРТЕР
   ===================================================================== */
.converter__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1.2fr;
    gap: 14px;
    align-items: end;
}

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

.converter__label {
    color: var(--crypto-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.converter__input,
.converter__select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    color: var(--crypto-text);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.converter__swap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background: var(--crypto-accent);
    transition: transform 0.4s var(--crypto-ease);
}

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

.converter__output {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 16px;
    border-radius: 12px;
    color: var(--crypto-accent);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--crypto-accent-soft);
}

.converter__rate {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 16px 0 0;
    color: var(--crypto-text-muted);
    font-size: 0.92rem;
}

.converter__rate .icon {
    width: 18px;
    height: 18px;
    color: var(--crypto-accent);
}

/* =====================================================================
   БЛОГ: карточки записей
   ===================================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--crypto-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--crypto-shadow);
    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 {
    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.15);
}

.post-card__body {
    padding: 22px 24px 26px;
}

.post-card__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--crypto-text-muted);
    font-size: 0.85rem;
}

.post-card__meta-icon .icon {
    width: 16px;
    height: 16px;
    color: var(--crypto-accent);
}

.post-card__title {
    margin: 8px 0 10px;
    font-size: 1.2rem;
}

.post-card__title > a {
    color: var(--crypto-graphite);
    text-decoration: none;
    background-image: linear-gradient(var(--crypto-accent), var(--crypto-accent));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease, color 0.25s ease;
}

.post-card__title > a:hover {
    color: var(--crypto-accent);
    background-size: 100% 2px;
}

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

/* =====================================================================
   СТАТЬЯ
   ===================================================================== */
.article__hero {
    position: relative;
    overflow: hidden;
    color: var(--crypto-text-on-dark);
    background:
        radial-gradient(circle at 90% 10%, rgba(226, 68, 159, 0.3), transparent 45%),
        linear-gradient(135deg, #25272c 0%, #34373d 100%);
    isolation: isolate;
}

.article__hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

.article__title {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article__tldr {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.article__tldr:hover {
    border-color: rgba(226, 68, 159, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.article__tldr-icon {
    display: inline-flex;
    color: var(--crypto-accent-bright);
}

.article__tldr p {
    margin: 0;
    color: var(--crypto-text-on-dark);
}

.article__tldr b {
    color: var(--crypto-accent-bright);
}

.article__cover {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

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

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

.article__toc-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.article__toc-icon {
    display: inline-flex;
    color: var(--crypto-accent);
}

.article__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.article__toc-item {
    display: flex;
    gap: 10px;
    counter-increment: toc;
}

.article__toc-item::before {
    content: counter(toc);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 7px;
    border-radius: 50%;
    color: var(--crypto-accent);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    background: #fff;
}

.article__toc-item > a {
    display: block;
    padding: 6px 0;
    color: var(--crypto-text);
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.25s ease;
}

.article__toc-item > a:hover {
    color: var(--crypto-accent);
    transform: translateX(4px);
}

.article__body {
    max-width: 800px;
}

.article__section {
    margin-bottom: 36px;
}

.article__section h2 {
    position: relative;
    margin: 0 0 16px;
    padding-left: 18px;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 800;
}

.article__section h2::before {
    content: "";
    position: absolute;
    top: 0.15em;
    bottom: 0.15em;
    left: 0;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--crypto-accent-bright), var(--crypto-accent));
}

.article__section p {
    color: #383b42;
    line-height: 1.78;
}

.article__section .table-wrap {
    margin: 20px 0;
}

.article__list,
.article__steps {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.article__list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 26px;
}

.article__list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--crypto-accent);
    box-shadow: 0 0 0 4px var(--crypto-accent-soft);
}

.article__steps {
    counter-reset: article-step;
}

.article__steps li {
    position: relative;
    margin-bottom: 10px;
    padding: 12px 16px 12px 56px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: #fff;
    counter-increment: article-step;
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease;
}

.article__steps li::before {
    content: counter(article-step);
    position: absolute;
    top: 50%;
    left: 14px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
    background: var(--crypto-accent);
}

.article__steps li:hover {
    transform: translateX(6px);
    border-color: rgba(176, 21, 108, 0.35);
}

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

.article__faq h2 {
    margin-bottom: 12px;
}

.article__faq > p {
    margin-bottom: 18px;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 96px 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(176, 21, 108, 0.12), transparent 55%),
        var(--crypto-bg);
}

.error404__code {
    font-size: clamp(6rem, 20vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--crypto-accent-bright), var(--crypto-graphite));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: crypto-float 5s ease-in-out infinite;
}

.error404__title {
    margin: 10px 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.error404__actions {
    margin-top: 26px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--crypto-text-on-dark-muted);
    background: #222428;
    isolation: isolate;
}

.site-footer__glow {
    position: absolute;
    bottom: -200px;
    left: -100px;
    z-index: -1;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 21, 108, 0.35), transparent 65%);
    animation: crypto-glow 14s ease-in-out infinite;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 40px;
}

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

.site-footer__name {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

.site-footer__about {
    max-width: 280px;
}

.site-footer__mail {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-footer__mail-icon {
    display: inline-flex;
    color: var(--crypto-accent-bright);
}

.site-footer p a {
    color: var(--crypto-accent-bright);
}

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

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

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

.footer-menu__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

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

.footer-menu__item > a {
    position: relative;
    display: inline-block;
    color: var(--crypto-text-on-dark-muted);
    font-size: 0.93rem;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

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

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

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

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

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1100px) {
    .features--four {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 1024px) {
    .burger {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: #25272c;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        transition: max-height 0.45s var(--crypto-ease);
    }

    .main-nav--open {
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
    }

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

    .main-nav__item {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-nav__item > a {
        flex: 1;
        padding: 13px 12px;
    }

    .main-nav__toggle {
        width: 42px;
        height: 42px;
        margin-left: 0;
        background: rgba(255, 255, 255, 0.06);
    }

    .main-nav__submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav__item--parent:hover > .main-nav__submenu,
    .main-nav__item--parent:focus-within > .main-nav__submenu {
        display: none;
    }

    .main-nav__item--expanded > .main-nav__submenu,
    .main-nav__item--expanded:hover > .main-nav__submenu {
        display: grid;
    }

    .main-nav__subitem > a {
        color: var(--crypto-text-on-dark-muted);
    }

    .main-nav__subitem > a:hover {
        color: #fff;
        background: rgba(226, 68, 159, 0.18);
    }

    .hero__inner,
    .article__hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__widget {
        justify-self: stretch;
        max-width: 560px;
    }

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

    .article__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .article__aside {
        position: static;
    }

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

    .converter__swap {
        display: none;
    }

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

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

    .hero__inner {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .hero__inner--single {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .split,
    .split--reverse {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

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

    .features,
    .features--four,
    .info-grid,
    .info-grid--2,
    .post-grid,
    .routes__grid,
    .text-columns,
    .text-columns--two,
    .check-list {
        grid-template-columns: 1fr;
    }

    .section__inner {
        padding: 26px 20px;
        border-radius: 22px;
    }

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

    .faq__item {
        padding: 20px;
    }

    .cta {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15.5px;
    }

    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 1.85rem;
    }

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

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

    .route-card {
        padding: 22px;
    }

    .route-card__list {
        grid-template-columns: 1fr;
    }

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

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

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

    .market-stats {
        grid-template-columns: 1fr;
    }

    .article__steps li {
        padding-left: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

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