/*
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 — Royal Purple & Rich Gold palette
   ===================================================================== */
:root {
    --crypto-purple: #501f6f;
    --crypto-purple-dark: #3b1652;
    --crypto-purple-deep: #22092f;
    --crypto-purple-night: #160620;
    --crypto-purple-soft: #f1e8f7;
    --crypto-gold: #d4b356;
    --crypto-gold-light: #ecd690;
    --crypto-gold-dark: #9c7c2c;
    --crypto-bg: #fbf8fd;
    --crypto-bg-alt: #f4edf9;
    --crypto-surface: #ffffff;
    --crypto-text: #1f1029;
    --crypto-text-muted: #6a5a7b;
    --crypto-text-light: #e9def2;
    --crypto-border: #e6daf0;
    --crypto-accent: #501f6f;
    --crypto-accent-soft: rgba(80, 31, 111, 0.12);
    --crypto-up: #17885a;
    --crypto-down: #c2413b;
    --crypto-radius: 20px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(43, 14, 64, 0.08);
    --crypto-shadow-hover: 0 24px 50px rgba(43, 14, 64, 0.18);
    --crypto-glow: 0 0 0 1px rgba(212, 179, 86, 0.55), 0 18px 40px rgba(212, 179, 86, 0.25);
    --crypto-section-y: 24px;
    --crypto-header-h: 76px;
    --crypto-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --crypto-font-title: "Playfair Display", Georgia, serif;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--crypto-font);
    font-size: 16px;
    line-height: 1.7;
    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 {
    font-family: var(--crypto-font-title);
    line-height: 1.2;
    margin: 0 0 14px;
    color: inherit;
}

h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 14px;
}

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

p a,
li a,
td a {
    color: var(--crypto-purple);
    text-decoration: underline;
    text-decoration-color: var(--crypto-gold);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

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

b {
    font-weight: 700;
}

figure {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1220px;
    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: 24px;
    height: 24px;
    flex-shrink: 0;
}

main {
    display: block;
    min-height: 60vh;
}

/* =====================================================================
   ANIMATIONS — reveal, parallax, keyframes
   ===================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--crypto-ease), transform 0.8s var(--crypto-ease);
}

.js .reveal--right {
    transform: translateX(40px);
}

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

.reveal--d2 {
    transition-delay: 0.1s !important;
}

.reveal--d3 {
    transition-delay: 0.2s !important;
}

.reveal--d4 {
    transition-delay: 0.3s !important;
}

[data-parallax] {
    --parallax: 0px;
    --zoom: 1.12;
    transform: translateY(var(--parallax)) scale(var(--zoom));
    transition: transform 0.6s var(--crypto-ease), filter 0.5s ease;
    will-change: transform;
}

@keyframes crypto-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -24px) scale(1.08);
    }
}

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

@keyframes crypto-shimmer {
    from {
        background-position: -400px 0;
    }
    to {
        background-position: 400px 0;
    }
}

@keyframes crypto-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 179, 86, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 179, 86, 0);
    }
}

@keyframes crypto-pop {
    from {
        transform: scale(0.94);
        color: var(--crypto-gold-dark);
    }
    to {
        transform: scale(1);
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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

/* =====================================================================
   BUTTON-LIKE LINKS (стили через родителя: ссылка содержит только href)
   ===================================================================== */
.cta__action a,
.error404__actions a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--crypto-purple-deep);
    text-decoration: none;
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold) 55%, var(--crypto-gold-dark));
    box-shadow: 0 12px 28px rgba(212, 179, 86, 0.35);
    overflow: hidden;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
}

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

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

.cta__action a:hover,
.error404__actions a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 38px rgba(212, 179, 86, 0.5);
}

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

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(22, 6, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 179, 86, 0.18);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header--scrolled {
    background: rgba(22, 6, 32, 0.98);
    box-shadow: 0 10px 30px rgba(10, 2, 16, 0.4);
}

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

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

.site-header__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--crypto-purple-deep);
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold));
    box-shadow: 0 6px 18px rgba(212, 179, 86, 0.35);
    transition: transform 0.4s var(--crypto-ease);
}

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

.site-header__logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-header__brand > a {
    font-family: var(--crypto-font-title);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
}

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

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

.site-nav__item {
    position: relative;
}

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

.site-nav__item > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--crypto-ease);
}

.site-nav__item > a:hover,
.site-nav__item--current > a {
    color: var(--crypto-gold-light);
}

.site-nav__item > a:hover::after,
.site-nav__item--current > a::after {
    transform: scaleX(1);
}

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

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

.site-nav__sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 2px;
    min-width: 400px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 16px;
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
}

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

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

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

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

.site-nav__toggle {
    display: none;
}

.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid rgba(212, 179, 86, 0.45);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.site-header__burger-line {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-gold-light);
    transition: transform 0.35s var(--crypto-ease), opacity 0.25s ease;
}

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

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

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

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 80px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(80, 31, 111, 0.9), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(212, 179, 86, 0.16), transparent 50%),
        linear-gradient(160deg, var(--crypto-purple-night), var(--crypto-purple-deep) 55%, var(--crypto-purple-dark));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(212, 179, 86, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 179, 86, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: crypto-float 12s ease-in-out infinite;
}

.hero__glow--gold {
    width: 340px;
    height: 340px;
    top: -80px;
    right: 8%;
    background: rgba(212, 179, 86, 0.32);
}

.hero__glow--purple {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -100px;
    background: rgba(140, 66, 186, 0.45);
    animation-delay: -6s;
}

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

.hero__title {
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fff 35%, var(--crypto-gold-light) 75%, var(--crypto-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--crypto-text-light);
    max-width: 620px;
}

.hero__text a {
    color: var(--crypto-gold-light);
}

.hero__text a:hover {
    color: #fff;
}

.hero__text--tldr {
    padding: 18px 20px;
    border-left: 3px solid var(--crypto-gold);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
}

.hero__text--tldr b {
    color: var(--crypto-gold-light);
}

.hero__widget {
    justify-self: end;
    width: 100%;
    max-width: 540px;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 179, 86, 0.4);
    box-shadow: 0 30px 70px rgba(5, 0, 10, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.5s var(--crypto-ease), box-shadow 0.5s ease;
}

.hero__widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(5, 0, 10, 0.55), 0 0 0 1px rgba(212, 179, 86, 0.6);
}

.hero__note {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--crypto-text-light);
    text-align: center;
}

.hero__note a {
    color: var(--crypto-gold-light);
}

.hero__media {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(212, 179, 86, 0.45);
    box-shadow: 0 30px 70px rgba(5, 0, 10, 0.5);
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 50%, rgba(34, 9, 47, 0.55));
    pointer-events: none;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__media:hover .hero__img {
    --zoom: 1.2;
    filter: saturate(1.15);
}

.page-nav {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: rgba(233, 222, 242, 0.6);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 179, 86, 0.3);
}

.page-nav nav a {
    color: var(--crypto-text-light);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-nav nav a:hover {
    color: var(--crypto-gold-light);
}

#exchange {
    scroll-margin-top: calc(var(--crypto-header-h) + 24px);
}

/* =====================================================================
   EXCHANGE WIDGET (Quickex iframe)
   ===================================================================== */
.exchange-widget {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 400px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(90deg, #f3edf8 0, #ffffff 40%, #f3edf8 80%) 0 0 / 800px 100%;
    animation: crypto-shimmer 1.6s linear infinite;
}

.exchange-widget--loaded {
    animation: none;
    background: #fff;
}

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

/* =====================================================================
   SECTIONS — общий вертикальный ритм
   ===================================================================== */
.section {
    padding: var(--crypto-section-y) 0;
}

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

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

.section--alt > .container {
    position: relative;
}

.section__head {
    max-width: 820px;
    margin-bottom: 24px;
}

.section__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
    color: var(--crypto-gold-light);
    background: linear-gradient(140deg, var(--crypto-purple), var(--crypto-purple-deep));
    box-shadow: 0 10px 24px rgba(80, 31, 111, 0.3);
    transition: transform 0.45s var(--crypto-ease);
}

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

.section__title {
    color: var(--crypto-purple-deep);
}

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

.section__note {
    max-width: 900px;
    margin: 18px 0 0;
    padding: 14px 18px 14px 46px;
    position: relative;
    color: var(--crypto-text-muted);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
}

.section__note::before {
    content: "i";
    position: absolute;
    left: 14px;
    top: 15px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
    color: var(--crypto-purple-deep);
    border-radius: 50%;
    background: var(--crypto-gold);
}

/* =====================================================================
   CARDS (feature cards)
   ===================================================================== */
.cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.cards--many {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

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

.card:hover,
.route-card:hover,
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: rgba(212, 179, 86, 0.6);
}

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

.card__icon,
.route-card__icon,
.info-card__icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
    color: var(--crypto-purple);
    background: linear-gradient(140deg, #fbf3dc, #f3e2ad);
    border: 1px solid rgba(212, 179, 86, 0.5);
    transition: transform 0.45s var(--crypto-ease), background 0.45s ease, color 0.45s ease;
}

.card:hover .card__icon,
.route-card:hover .route-card__icon,
.info-card:hover .info-card__icon {
    transform: translateY(-4px) rotate(-8deg);
    color: var(--crypto-gold-light);
    background: linear-gradient(140deg, var(--crypto-purple), var(--crypto-purple-deep));
}

.card__title,
.route-card__title {
    color: var(--crypto-purple-deep);
}

.card__text,
.route-card__text,
.info-card__text {
    color: var(--crypto-text-muted);
}

/* Route cards: списки направлений обмена */
.routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

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

.route-card__item > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--crypto-purple-deep);
    text-decoration: none;
    border-radius: 12px;
    background: var(--crypto-bg-alt);
    border: 1px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--crypto-ease);
}

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

.route-card__item > a:hover {
    color: #fff;
    background: var(--crypto-purple);
    border-color: var(--crypto-gold);
    transform: translateY(-2px);
}

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

/* Info cards: страницы политик и сервиса */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.info-card__title {
    font-size: 1.45rem;
    color: var(--crypto-purple-deep);
}

/* =====================================================================
   LISTS
   ===================================================================== */
.check-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.check-list__item {
    position: relative;
    padding: 6px 0 6px 32px;
}

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

/* =====================================================================
   SPLIT (текст + картинка)
   ===================================================================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 30px;
    border-radius: 28px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

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

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

.split__media,
.steps-intro__media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 11;
    box-shadow: var(--crypto-shadow-hover);
}

.split__media::after,
.steps-intro__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(212, 179, 86, 0.5);
    background: linear-gradient(180deg, transparent 55%, rgba(34, 9, 47, 0.45));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.split__img,
.steps-intro__img,
.post-figure__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split__media:hover .split__img,
.steps-intro__media:hover .steps-intro__img,
.post-figure:hover .post-figure__img {
    --zoom: 1.2;
    filter: saturate(1.2) brightness(1.05);
}

.split__media:hover::after,
.steps-intro__media:hover::after {
    opacity: 0.4;
}

/* =====================================================================
   STEPS
   ===================================================================== */
.steps-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 26px;
}

.steps-intro__head {
    margin-bottom: 0;
}

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

.steps__item {
    counter-increment: crypto-step;
    position: relative;
    padding: 30px 24px 26px;
    border-radius: var(--crypto-radius);
    color: var(--crypto-text-light);
    background: linear-gradient(155deg, var(--crypto-purple), var(--crypto-purple-deep));
    box-shadow: 0 16px 36px rgba(34, 9, 47, 0.25);
    overflow: hidden;
    transition: transform 0.45s var(--crypto-ease), box-shadow 0.45s ease;
}

.steps__item::after {
    content: "0" counter(crypto-step);
    position: absolute;
    right: 18px;
    top: 8px;
    font-family: var(--crypto-font-title);
    font-size: 3.6rem;
    font-weight: 800;
    color: rgba(212, 179, 86, 0.18);
    transition: color 0.4s ease, transform 0.4s ease;
}

.steps__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(34, 9, 47, 0.4), 0 0 0 1px rgba(212, 179, 86, 0.6);
}

.steps__item:hover::after {
    color: rgba(212, 179, 86, 0.45);
    transform: scale(1.1);
}

.steps__icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: var(--crypto-purple-deep);
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold));
    animation: crypto-pulse 3s ease-in-out infinite;
}

.steps__text b {
    display: block;
    margin-bottom: 4px;
    font-size: 1.08rem;
    color: #fff;
}

.steps--compact {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0;
}

.steps--compact .steps__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 70px 18px 18px;
}

.steps--compact .steps__item::after {
    font-size: 2.4rem;
}

.steps--compact .steps__icon {
    margin: 0;
    width: 42px;
    height: 42px;
}

.steps--compact .steps__text b {
    display: inline;
}

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

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

.table-card__scroll {
    overflow-x: auto;
}

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

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--crypto-gold-light);
    background: linear-gradient(120deg, var(--crypto-purple), var(--crypto-purple-deep));
    white-space: nowrap;
}

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

.data-table td:first-child {
    font-weight: 700;
    color: var(--crypto-purple-deep);
}

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

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

.data-table tbody tr:hover {
    background: #fbf3dc;
}

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

/* =====================================================================
   WIDGET CARD (графики и калькулятор)
   ===================================================================== */
.widget-card {
    padding: 26px;
    border-radius: 26px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease;
}

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

/* =====================================================================
   MARKET WIDGET + CHART (SVG рисуется на сервере)
   ===================================================================== */
.market__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.market__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}

.market__summary[hidden],
.market__panel[hidden],
.market__metrics[hidden] {
    display: none;
}

.market__pair {
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--crypto-purple);
    border-radius: 999px;
    background: var(--crypto-purple-soft);
}

.market__price {
    font-family: var(--crypto-font-title);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--crypto-purple-deep);
}

.market__changes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.market__change {
    display: inline-flex;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
    color: var(--crypto-text-muted);
    background: var(--crypto-bg-alt);
}

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

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

.market__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.market__tabs {
    display: none;
    padding: 4px;
    border-radius: 12px;
    background: var(--crypto-bg-alt);
    border: 1px solid var(--crypto-border);
}

.market--ready .market__tabs {
    display: inline-flex;
}

.market__tab {
    padding: 7px 13px;
    font: 700 0.85rem var(--crypto-font);
    color: var(--crypto-text-muted);
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.market__tab:hover {
    color: var(--crypto-purple);
    transform: translateY(-1px);
}

.market__tab--active {
    color: var(--crypto-gold-light);
    background: linear-gradient(135deg, var(--crypto-purple), var(--crypto-purple-deep));
    box-shadow: 0 6px 14px rgba(80, 31, 111, 0.3);
}

.market__tab--active:hover {
    color: #fff;
}

.market__range {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 0;
}

.market__range-item {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--crypto-bg-alt);
}

.market__range-item dt {
    color: var(--crypto-text-muted);
}

.market__range-item dd {
    margin: 0;
    font-weight: 800;
    color: var(--crypto-purple-deep);
}

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

.market__metric {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--crypto-border);
    transition: transform 0.35s var(--crypto-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

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

.market__metric-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--crypto-purple);
    background: linear-gradient(140deg, #fbf3dc, #f3e2ad);
}

.market__metric dt {
    font-size: 0.8rem;
    color: var(--crypto-text-muted);
}

.market__metric dd {
    margin: 0;
    font-weight: 800;
    color: var(--crypto-purple-deep);
}

.market__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--crypto-text-muted);
}

.market__badge {
    padding: 4px 10px;
    font-weight: 700;
    color: var(--crypto-gold-dark);
    border: 1px solid rgba(212, 179, 86, 0.6);
    border-radius: 999px;
    background: #fdf8ea;
}

/* Chart — общая секция стилей графика */
.chart {
    position: relative;
}

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

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

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

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

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

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

.js .reveal .chart__line {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 2.2s var(--crypto-ease) 0.2s;
}

.js .reveal.is-visible .chart__line {
    stroke-dashoffset: 0;
}

.chart__dot {
    fill: var(--crypto-gold);
    stroke: var(--crypto-purple-deep);
    stroke-width: 2;
}

.chart__hit {
    fill: var(--crypto-gold);
    fill-opacity: 0;
    stroke: var(--crypto-purple);
    stroke-opacity: 0;
    cursor: crosshair;
    transition: fill-opacity 0.2s ease, stroke-opacity 0.2s ease;
}

.chart__hit:hover {
    fill-opacity: 1;
    stroke-opacity: 1;
}

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

/* =====================================================================
   STAKING CALCULATOR
   ===================================================================== */
.staking-calc__fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.staking-calc__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staking-calc__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--crypto-purple-deep);
}

.staking-calc__label .icon {
    width: 20px;
    height: 20px;
    color: var(--crypto-gold-dark);
}

.staking-calc__input {
    width: 100%;
    padding: 13px 14px;
    font: 600 1rem var(--crypto-font);
    color: var(--crypto-text);
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    background: var(--crypto-bg);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.staking-calc__input:focus {
    outline: none;
    border-color: var(--crypto-gold);
    box-shadow: 0 0 0 4px rgba(212, 179, 86, 0.25);
}

.staking-calc__switch {
    grid-column: span 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--crypto-purple-deep);
    cursor: pointer;
}

.staking-calc__switch input {
    position: absolute;
    opacity: 0;
}

.staking-calc__switch-track {
    position: relative;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: var(--crypto-border);
    transition: background 0.3s ease;
}

.staking-calc__switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--crypto-ease);
}

.staking-calc__switch input:checked + .staking-calc__switch-track {
    background: var(--crypto-purple);
}

.staking-calc__switch input:checked + .staking-calc__switch-track::after {
    transform: translateX(22px);
    background: var(--crypto-gold);
}

.staking-calc__switch input:focus-visible + .staking-calc__switch-track {
    box-shadow: 0 0 0 4px rgba(212, 179, 86, 0.35);
}

.staking-calc__submit {
    grid-column: span 2;
    justify-self: end;
    padding: 14px 32px;
    font: 800 1rem var(--crypto-font);
    color: var(--crypto-purple-deep);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold));
    box-shadow: 0 10px 24px rgba(212, 179, 86, 0.35);
    cursor: pointer;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.staking-calc__submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(212, 179, 86, 0.5);
}

.staking-calc__errors {
    margin-top: 14px;
}

.staking-calc__error {
    margin: 0 0 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--crypto-down);
    border-radius: 10px;
    background: #fdf0ef;
}

.staking-calc__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.staking-calc__result {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--crypto-border);
    background: var(--crypto-bg);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

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

.staking-calc__result--main {
    color: var(--crypto-text-light);
    background: linear-gradient(140deg, var(--crypto-purple), var(--crypto-purple-deep));
    border-color: transparent;
}

.staking-calc__result-label {
    display: block;
    font-size: 0.82rem;
    color: var(--crypto-text-muted);
}

.staking-calc__result--main .staking-calc__result-label {
    color: var(--crypto-gold-light);
}

.staking-calc__result-value {
    display: inline-block;
    font-family: var(--crypto-font-title);
    font-size: 1.35rem;
    color: var(--crypto-purple-deep);
}

.staking-calc__result--main .staking-calc__result-value {
    color: #fff;
}

.is-updated {
    animation: crypto-pop 0.45s var(--crypto-ease);
}

.staking-calc__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    margin: 18px 0 0;
    padding: 16px 18px;
    list-style: none;
    border-radius: 14px;
    background: var(--crypto-bg-alt);
}

.staking-calc__details li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.staking-calc__details span {
    color: var(--crypto-text-muted);
}

.staking-calc__details b {
    text-align: right;
    color: var(--crypto-purple-deep);
}

.staking-calc__notes {
    margin: 16px 0 0;
    padding: 0 0 0 20px;
    font-size: 0.86rem;
    color: var(--crypto-text-muted);
}

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

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

.faq__item:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 179, 86, 0.6);
    box-shadow: var(--crypto-shadow-hover);
}

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

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

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

.faq__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--crypto-gold-light);
    background: linear-gradient(140deg, var(--crypto-purple), var(--crypto-purple-deep));
}

.faq__title {
    flex: 1;
    margin: 0;
    font-size: 1.12rem;
    color: var(--crypto-purple-deep);
}

.faq__toggle {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--crypto-purple-soft);
    transition: transform 0.35s var(--crypto-ease), background 0.3s ease;
}

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

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

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

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

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

.faq__item[open] .faq__answer {
    animation: crypto-faq-open 0.45s var(--crypto-ease);
}

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

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
    padding: var(--crypto-section-y) 0 calc(var(--crypto-section-y) * 2);
}

.cta__box {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    border-radius: 30px;
    background: var(--crypto-purple-deep);
    box-shadow: 0 30px 70px rgba(34, 9, 47, 0.35);
}

.cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.cta__box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(22, 6, 32, 0.96) 25%, rgba(80, 31, 111, 0.55) 70%, rgba(212, 179, 86, 0.2));
    pointer-events: none;
}

.cta__box:hover .cta__bg {
    --zoom: 1.2;
}

.cta__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 48px;
    color: var(--crypto-text-light);
}

.cta__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    color: var(--crypto-purple-deep);
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold));
    animation: crypto-pulse 2.6s ease-in-out infinite;
}

.cta__title {
    color: #fff;
}

.cta__text {
    font-size: 1.08rem;
}

.cta__action {
    margin-top: 24px;
}

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

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.45s var(--crypto-ease), box-shadow 0.45s ease, border-color 0.45s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: rgba(212, 179, 86, 0.6);
}

.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.5s ease;
}

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

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

.post-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--crypto-gold-dark);
}

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

.post-card__title {
    margin: 0;
    font-size: 1.3rem;
}

.post-card__title a {
    color: var(--crypto-purple-deep);
    text-decoration: none;
    background: linear-gradient(var(--crypto-gold), var(--crypto-gold)) 0 100% / 0 2px no-repeat;
    transition: background-size 0.4s var(--crypto-ease), color 0.3s ease;
}

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

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

.blog__empty {
    text-align: center;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   SINGLE POST
   ===================================================================== */
.post {
    padding-bottom: calc(var(--crypto-section-y) * 2);
}

.post__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.post__toc {
    position: sticky;
    top: calc(var(--crypto-header-h) + 20px);
    padding: 22px;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.post__toc-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: var(--crypto-gold-light);
    background: linear-gradient(140deg, var(--crypto-purple), var(--crypto-purple-deep));
}

.post__toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: crypto-toc;
}

.post__toc li {
    counter-increment: crypto-toc;
    position: relative;
    padding-left: 30px;
    margin: 6px 0;
    line-height: 1.4;
}

.post__toc li::before {
    content: counter(crypto-toc);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--crypto-purple-deep);
    border-radius: 6px;
    background: var(--crypto-gold-light);
}

.post__toc li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--crypto-text);
    text-decoration: none;
}

.post__toc li a:hover {
    color: var(--crypto-purple);
    text-decoration: underline;
}

.post__body {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.post-section {
    padding: 32px;
    border-radius: 24px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
}

.post-section > p,
.post-sub > p {
    color: #3d2c4b;
}

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

.post-section__head .section__icon {
    margin: 0;
}

.post-section__title {
    margin: 0;
    color: var(--crypto-purple-deep);
}

.post-section .table-card {
    margin: 18px 0;
    box-shadow: none;
}

.post-sub {
    margin-top: 22px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--crypto-bg-alt);
    border-left: 4px solid var(--crypto-gold);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
}

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

.post-sub__title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--crypto-purple-deep);
}

.post-sub__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    color: var(--crypto-purple);
    background: linear-gradient(140deg, #fbf3dc, #f3e2ad);
}

.post-sub__icon .icon {
    width: 20px;
    height: 20px;
}

.post-figure {
    overflow: hidden;
    margin-top: 22px;
    border-radius: 20px;
    aspect-ratio: 16 / 8;
    box-shadow: var(--crypto-shadow-hover);
}

.post-section.faq {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 8px 0 0;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 56px 0 24px;
    color: var(--crypto-text-light);
    background: linear-gradient(170deg, var(--crypto-purple-deep), var(--crypto-purple-night));
    border-top: 1px solid rgba(212, 179, 86, 0.3);
}

.site-footer__glow {
    position: absolute;
    width: 460px;
    height: 460px;
    right: -120px;
    top: -200px;
    border-radius: 50%;
    background: rgba(212, 179, 86, 0.12);
    filter: blur(70px);
    pointer-events: none;
    animation: crypto-float 14s ease-in-out infinite;
}

.site-footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}

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

.site-footer__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--crypto-purple-deep);
    background: linear-gradient(135deg, var(--crypto-gold-light), var(--crypto-gold));
}

.site-footer__brand > a {
    font-family: var(--crypto-font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.site-footer__text {
    font-size: 0.92rem;
    color: rgba(233, 222, 242, 0.75);
}

.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

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

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

.footer-menu__title {
    margin-bottom: 14px;
    font-family: var(--crypto-font-title);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--crypto-gold-light);
}

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

.footer-menu__item {
    margin: 0 0 8px;
}

.footer-menu__item > a {
    position: relative;
    display: inline-block;
    font-size: 0.92rem;
    color: rgba(233, 222, 242, 0.8);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-menu__item > a::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crypto-gold);
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.footer-menu__item > a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.site-footer__bottom {
    position: relative;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 179, 86, 0.2);
    text-align: center;
}

.site-footer__copy {
    font-size: 0.85rem;
    color: rgba(233, 222, 242, 0.6);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 90px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, var(--crypto-purple-soft), transparent 70%);
}

.error404__code {
    font-family: var(--crypto-font-title);
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-purple), var(--crypto-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error404__title {
    color: var(--crypto-purple-deep);
}

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

.error404__actions {
    margin-top: 26px;
}

/* =====================================================================
   RESPONSIVE — 1100px
   ===================================================================== */
@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .post__toc {
        position: static;
    }

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

    .site-nav__item > a {
        padding: 10px 9px;
        font-size: 0.9rem;
    }
}

/* =====================================================================
   RESPONSIVE — 960px: мобильное меню
   ===================================================================== */
@media (max-width: 960px) {
    .site-header__burger {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-purple-night);
        border-bottom: 1px solid rgba(212, 179, 86, 0.25);
        transition: max-height 0.5s var(--crypto-ease), box-shadow 0.3s ease;
    }

    .site-nav--open {
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(5, 0, 10, 0.5);
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
    }

    .site-nav__item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid rgba(212, 179, 86, 0.12);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.35s ease, transform 0.35s var(--crypto-ease);
    }

    .site-nav--open .site-nav__item {
        opacity: 1;
        transform: none;
    }

    .site-nav__item > a {
        flex: 1;
        padding: 14px 4px;
        font-size: 1rem;
    }

    .site-nav__item > a::after,
    .site-nav__item--parent > a::before {
        display: none;
    }

    .site-nav__toggle {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(212, 179, 86, 0.35);
        border-radius: 10px;
        background: transparent;
        cursor: pointer;
    }

    .site-nav__toggle::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--crypto-gold-light);
        border-bottom: 2px solid var(--crypto-gold-light);
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.3s ease;
    }

    .site-nav__item--expanded > .site-nav__toggle::before {
        transform: rotate(225deg);
    }

    .site-nav__sub {
        position: static;
        flex-basis: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-width: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-radius: 12px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        transition: max-height 0.45s var(--crypto-ease), padding 0.3s ease, margin 0.3s ease;
    }

    .site-nav__item--expanded > .site-nav__sub {
        max-height: 600px;
        padding: 8px;
        margin-bottom: 12px;
    }

    .site-nav__subitem > a {
        color: var(--crypto-text-light);
    }

    .site-nav__subitem > a:hover {
        color: var(--crypto-purple-deep);
        background: var(--crypto-gold-light);
    }

    .hero__inner,
    .split,
    .steps-intro {
        grid-template-columns: 1fr;
    }

    .hero__widget {
        justify-self: center;
    }

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

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

    .hero {
        padding: 46px 0 54px;
    }

    .cards--2,
    .routes,
    .info-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .split {
        padding: 22px;
        gap: 24px;
    }

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

    .staking-calc__details {
        grid-template-columns: 1fr;
    }

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

    .post-section {
        padding: 24px 20px;
    }

    .cta__content {
        padding: 34px 26px;
    }

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

    .market__controls {
        width: 100%;
    }
}

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

    .container {
        padding: 0 16px;
    }

    .site-header__brand > a {
        font-size: 1.2rem;
    }

    .hero__widget {
        padding: 10px;
        border-radius: 20px;
    }

    .page-nav {
        border-radius: 16px;
    }

    .route-card__list,
    .site-nav__sub,
    .staking-calc__fields,
    .staking-calc__results,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .staking-calc__switch,
    .staking-calc__submit {
        grid-column: auto;
        justify-self: stretch;
    }

    .card,
    .route-card,
    .info-card {
        padding: 24px 20px;
    }

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

    .faq__icon {
        width: 36px;
        height: 36px;
    }

    .faq__title {
        font-size: 1rem;
    }

    .post-sub {
        padding: 18px 16px;
    }

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

    .market__tabs {
        flex-wrap: wrap;
    }

    .steps--compact .steps__item {
        flex-direction: column;
        padding-right: 18px;
    }
}
