/*
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.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — Delft palette (Delft Blue / Porcelain White / Tulip Orange / Stem Green)
   ===================================================================== */
:root {
    --crypto-accent: #0033a0;
    --crypto-accent-hover: #00287f;
    --crypto-accent-soft: rgba(0, 51, 160, 0.1);
    --crypto-accent-light: #e8eefb;
    --crypto-orange: #ff8200;
    --crypto-orange-hover: #e67500;
    --crypto-orange-soft: rgba(255, 130, 0, 0.12);
    --crypto-green: #4b6f44;
    --crypto-green-soft: rgba(75, 111, 68, 0.12);
    --crypto-red: #c2410c;
    --crypto-bg: #fafafa;
    --crypto-surface: #ffffff;
    --crypto-text: #111827;
    --crypto-text-muted: #5b6474;
    --crypto-border: #e3e7ef;
    --crypto-dark: #0a1d4d;
    --crypto-radius: 20px;
    --crypto-radius-sm: 14px;
    --crypto-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(0, 51, 160, 0.06);
    --crypto-shadow-hover: 0 4px 10px rgba(17, 24, 39, 0.06), 0 18px 40px rgba(0, 51, 160, 0.14);
    --crypto-section-y: 22px;
    --crypto-header-h: 72px;
    --crypto-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--crypto-text);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p {
    margin: 0 0 14px;
}

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

a {
    color: var(--crypto-accent);
    transition: color 0.2s ease;
}

/* Ссылки внутри текста визуально отличаются */
p a,
li a,
td a {
    color: var(--crypto-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
}

p a:hover,
li a:hover,
td a:hover {
    color: var(--crypto-orange);
}

b {
    font-weight: 700;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

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

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--crypto-ease), box-shadow 0.25s var(--crypto-ease), background-color 0.25s ease, color 0.25s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: translateX(120%);
}

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

.btn--primary {
    background: var(--crypto-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.25);
}

.btn--primary:hover {
    background: var(--crypto-accent-hover);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 51, 160, 0.35);
}

.btn--orange {
    background: var(--crypto-orange);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 130, 0, 0.3);
}

.btn--orange:hover {
    background: var(--crypto-orange-hover);
    color: #fff;
    box-shadow: 0 14px 30px rgba(255, 130, 0, 0.4);
}

.btn .icon {
    transition: transform 0.25s var(--crypto-ease);
}

.btn:hover .icon {
    transform: translateX(4px);
}

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

.site-header--scrolled {
    box-shadow: 0 6px 24px rgba(10, 29, 77, 0.08);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--crypto-accent);
}

.logo__mark {
    display: inline-flex;
    transition: transform 0.4s var(--crypto-ease);
}

.logo:hover .logo__mark {
    transform: rotate(-12deg) scale(1.08);
}

.logo__text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--crypto-text);
}

.logo__accent {
    color: var(--crypto-orange);
}

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

.logo--light .logo__text {
    color: #fff;
}

/* Навигация */
.site-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__item {
    position: relative;
}

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

.site-nav__link:hover,
.site-nav__item--current > .site-nav__link {
    background: var(--crypto-accent-light);
    color: var(--crypto-accent);
}

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

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

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

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

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

.site-nav__link--sub {
    border-radius: 10px;
    font-weight: 500;
    padding: 9px 12px;
}

.site-nav__link--sub:hover {
    transform: translateX(3px);
}

.site-nav__toggle {
    display: none;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    background: var(--crypto-surface);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.burger:hover {
    border-color: var(--crypto-accent);
    box-shadow: 0 0 0 4px var(--crypto-accent-soft);
}

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

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

/* =====================================================================
   HERO (главный экран с виджетом справа)
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 130, 0, 0.14), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(0, 51, 160, 0.12), transparent 45%),
        var(--crypto-surface);
    border-bottom: 1px solid var(--crypto-border);
}

/* Делфтский узор плитки в фоне */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 9px, rgba(0, 51, 160, 0.06) 10px, rgba(0, 51, 160, 0.06) 11px, transparent 12px),
        linear-gradient(45deg, transparent 47%, rgba(0, 51, 160, 0.05) 48%, rgba(0, 51, 160, 0.05) 52%, transparent 53%);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 70%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 70%);
    animation: hero-pattern 40s linear infinite;
    pointer-events: none;
}

@keyframes hero-pattern {
    to { background-position: 480px 480px; }
}

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

.hero__title {
    margin-bottom: 18px;
}

.hero__text {
    font-size: 1.12rem;
    color: var(--crypto-text-muted);
    max-width: 580px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.25s var(--crypto-ease), box-shadow 0.25s ease;
}

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

.hero__badge .coin-icon {
    width: 28px;
    height: 28px;
}

.hero__badges .coin-icon {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 3px var(--crypto-surface), var(--crypto-shadow);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
    animation: coin-float 4s ease-in-out infinite;
}

.hero__badges .coin-icon:nth-child(2n) {
    animation-delay: -2s;
}

.hero__badges .coin-icon:hover {
    transform: translateY(-6px) scale(1.12);
    box-shadow: 0 0 0 3px var(--crypto-orange), var(--crypto-shadow-hover);
}

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

.hero__badges--pair {
    align-items: center;
    gap: 14px;
}

.hero__badges--pair .coin-icon {
    width: 56px;
    height: 56px;
}

.hero__arrow {
    display: inline-flex;
    color: var(--crypto-orange);
    animation: arrow-move 1.8s ease-in-out infinite;
}

@keyframes arrow-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

.page-hero .hero__badges {
    margin-top: 20px;
}

.hero__widget {
    justify-self: end;
    width: 100%;
    max-width: 540px;
    padding: 18px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 24px;
    box-shadow: var(--crypto-shadow-hover);
    animation: float-in 0.9s var(--crypto-ease) both;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease;
}

.hero__widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 51, 160, 0.2);
}

@keyframes float-in {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.exchange-widget {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

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

/* =====================================================================
   PAGE HERO (информационные страницы и статьи — фон-картинка)
   ===================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background-color: var(--crypto-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 29, 77, 0.96) 0%, rgba(0, 51, 160, 0.86) 55%, rgba(0, 51, 160, 0.55) 100%);
}

.page-hero__inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    max-width: 880px;
    animation: float-in 0.8s var(--crypto-ease) both;
}

.page-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--crypto-orange);
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 130, 0, 0.35);
    transition: transform 0.4s var(--crypto-ease);
}

.page-hero__icon:hover {
    transform: rotate(-8deg) scale(1.06);
}

.page-hero__icon .icon {
    width: 32px;
    height: 32px;
}

.page-hero__title {
    color: #fff;
}

.page-hero__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
}

.page-hero__text a {
    color: #ffd2a3;
}

/* =====================================================================
   SECTIONS (панели-карточки с ритмом ~22px)
   ===================================================================== */
.site-main {
    padding-bottom: var(--crypto-section-y);
}

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

.section__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 28px;
    box-shadow: var(--crypto-shadow);
}

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

.section__head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--crypto-accent-light);
    color: var(--crypto-accent);
    transition: transform 0.35s var(--crypto-ease), background-color 0.3s ease, color 0.3s ease;
}

.section:hover .section__head-icon {
    transform: rotate(-6deg) scale(1.05);
    background: var(--crypto-accent);
    color: #fff;
}

.section__title {
    margin-bottom: 10px;
}

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

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

.section__body p {
    color: #2a3242;
}

.section__subtitle {
    margin-top: 26px;
}

.section__note,
.section__more {
    margin-top: 22px;
}

.split + .section__body,
.split + .feature-grid,
.split + .direction-grid {
    margin-top: 28px;
}

.split .note {
    margin-top: 18px;
}

.bullets-reset {
    padding-left: 0;
    list-style: none;
}

.section__body .steps + p,
.section__body .steps + .feature-grid,
.section__body .bullets + .feature-grid,
.section__body .table-wrap + p {
    margin-top: 22px;
}

.faq__content {
    min-width: 0;
}

/* Двухколоночный блок: картинка + текст */
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
}

.split--reverse > .media {
    order: 2;
}

/* Картинка с параллаксом и hover */
.media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 4 / 3;
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease, transform 0.4s var(--crypto-ease);
}

.media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 51, 160, 0.28));
    opacity: 0.6;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.media__img {
    width: 100%;
    height: 116%;
    margin-top: -8%;
    object-fit: cover;
    transition: scale 0.7s var(--crypto-ease), filter 0.5s ease;
    will-change: transform;
}

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

.media:hover .media__img {
    filter: saturate(1.15);
    scale: 1.06;
}

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

.media--wide {
    aspect-ratio: 16 / 7;
    margin-bottom: 24px;
}

/* =====================================================================
   FEATURE CARDS (карточки с иконками)
   ===================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

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

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

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

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--crypto-surface);
    border-color: rgba(0, 51, 160, 0.25);
    box-shadow: var(--crypto-shadow-hover);
}

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

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

.feature-card:nth-child(3n + 2) .feature-card__icon {
    background: var(--crypto-orange-soft);
    color: var(--crypto-orange-hover);
}

.feature-card:nth-child(3n + 3) .feature-card__icon {
    background: var(--crypto-green-soft);
    color: var(--crypto-green);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(-6deg);
    background: var(--crypto-accent);
    color: #fff;
}

.feature-card__title {
    margin-bottom: 10px;
}

.feature-card__text p {
    color: var(--crypto-text-muted);
}

.feature-card__text p + p {
    margin-top: 10px;
}

/* =====================================================================
   DIRECTION CARDS (направления обмена с логотипами монет)
   ===================================================================== */
.coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--crypto-surface);
    box-shadow: 0 0 0 1px var(--crypto-border);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease);
}

.coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coin-icon--xrp {
    background: #23292f;
    padding: 6px;
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.direction-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.direction-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--crypto-bg);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text-muted);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-4px);
    background: var(--crypto-surface);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow-hover);
}

.direction-card:hover .coin-icon {
    transform: rotate(360deg) scale(1.08);
}

.direction-card a {
    color: var(--crypto-text);
    font-weight: 700;
    text-decoration: none;
}

.direction-card a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.direction-card:hover a {
    color: var(--crypto-accent);
}

/* =====================================================================
   LISTS, STEPS, TABLES
   ===================================================================== */
.bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.bullets__item {
    position: relative;
    padding: 14px 16px 14px 52px;
    background: var(--crypto-bg);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.bullets__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-green);
    box-shadow: var(--crypto-shadow);
}

.steps {
    counter-reset: step;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

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

.steps__item::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--crypto-accent);
    color: #fff;
    font-weight: 800;
    transition: transform 0.35s var(--crypto-ease), background-color 0.3s ease;
}

.steps__item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 51, 160, 0.3);
    box-shadow: var(--crypto-shadow-hover);
}

.steps__item:hover::before {
    transform: scale(1.1) rotate(-8deg);
    background: var(--crypto-orange);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow);
    background: var(--crypto-surface);
}

.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: top;
    border-bottom: 1px solid var(--crypto-border);
}

.data-table thead th {
    background: var(--crypto-accent);
    color: #fff;
    font-weight: 700;
}

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

.data-table tbody tr:nth-child(even) {
    background: var(--crypto-bg);
}

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

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

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

/* Акцентная заметка с иконкой */
.note {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    background: var(--crypto-orange-soft);
    border: 1px solid rgba(255, 130, 0, 0.3);
    border-radius: var(--crypto-radius-sm);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

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

.note__icon {
    color: var(--crypto-orange-hover);
}

.note--blue {
    background: var(--crypto-accent-light);
    border-color: rgba(0, 51, 160, 0.2);
}

.note--blue .note__icon {
    color: var(--crypto-accent);
}

.note--green {
    background: var(--crypto-green-soft);
    border-color: rgba(75, 111, 68, 0.3);
}

.note--green .note__icon {
    color: var(--crypto-green);
}

/* =====================================================================
   CTA (фоновая картинка)
   ===================================================================== */
.cta__inner {
    position: relative;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 48px;
    overflow: hidden;
    border-radius: 28px;
    background-color: var(--crypto-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    box-shadow: var(--crypto-shadow-hover);
}

.cta__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(10, 29, 77, 0.95) 10%, rgba(0, 51, 160, 0.82) 60%, rgba(255, 130, 0, 0.55));
}

.cta__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta__text-wrap {
    display: flex;
    gap: 20px;
    max-width: 760px;
}

.cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 130, 0, 0.45); }
    50% { box-shadow: 0 0 0 14px rgba(255, 130, 0, 0); }
}

.cta__title {
    color: #fff;
}

.cta__text {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.cta__content .btn {
    flex-shrink: 0;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

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

.faq__item:hover {
    transform: translateY(-5px);
    background: var(--crypto-surface);
    border-color: rgba(255, 130, 0, 0.45);
    box-shadow: var(--crypto-shadow-hover);
}

.faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--crypto-orange-soft);
    color: var(--crypto-orange-hover);
    transition: transform 0.35s var(--crypto-ease);
}

.faq__item:hover .faq__icon {
    transform: rotate(14deg) scale(1.08);
}

.faq__question {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

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

/* =====================================================================
   PAIR CHART + CHART (SVG, отрисован на сервере)
   ===================================================================== */
.pair-chart {
    position: relative;
    margin-top: 22px;
    padding: 24px;
    background: var(--crypto-bg);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.pair-chart:hover {
    border-color: rgba(0, 51, 160, 0.25);
    box-shadow: var(--crypto-shadow-hover);
}

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

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

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

.pair-chart__pair {
    color: var(--crypto-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.pair-chart__value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pair-chart__tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 999px;
}

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

.pair-chart__tab:hover {
    color: var(--crypto-accent);
    transform: translateY(-1px);
}

.pair-chart__radio--24h:checked ~ .pair-chart__head .pair-chart__tab--24h,
.pair-chart__radio--7d:checked ~ .pair-chart__head .pair-chart__tab--7d,
.pair-chart__radio--30d:checked ~ .pair-chart__head .pair-chart__tab--30d,
.pair-chart__radio--90d:checked ~ .pair-chart__head .pair-chart__tab--90d,
.pair-chart__radio--1y:checked ~ .pair-chart__head .pair-chart__tab--1y {
    background: var(--crypto-accent);
    color: #fff;
}

.pair-chart__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.pair-chart__stat {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    transition: transform 0.25s var(--crypto-ease), box-shadow 0.25s ease;
}

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

.pair-chart__stat-label {
    font-size: 0.82rem;
    color: var(--crypto-text-muted);
}

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

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

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

.pair-chart__panels {
    margin-top: 18px;
}

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

@keyframes chart-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.pair-chart__radio--24h:checked ~ .pair-chart__panels .pair-chart__panel--24h,
.pair-chart__radio--7d:checked ~ .pair-chart__panels .pair-chart__panel--7d,
.pair-chart__radio--30d:checked ~ .pair-chart__panels .pair-chart__panel--30d,
.pair-chart__radio--90d:checked ~ .pair-chart__panels .pair-chart__panel--90d,
.pair-chart__radio--1y:checked ~ .pair-chart__panels .pair-chart__panel--1y {
    display: block;
}

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

.chart {
    padding: 10px 6px 4px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 14px;
}

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

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

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

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

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

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 2400;
    stroke-dashoffset: 0;
    animation: chart-line 1.6s var(--crypto-ease);
}

@keyframes chart-line {
    from { stroke-dashoffset: 2400; }
    to { stroke-dashoffset: 0; }
}

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

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

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

/* Данные о предложении токена */
.token-data {
    margin: 20px 0;
}

.token-data__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.token-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

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

.token-stat__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--crypto-accent-light);
    color: var(--crypto-accent);
}

.token-stat__label {
    font-size: 0.85rem;
    color: var(--crypto-text-muted);
}

.token-stat__value {
    font-size: 1.15rem;
    font-weight: 800;
}

.token-data__updated {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--crypto-text-muted);
}

/* =====================================================================
   BLOG (категория и статьи)
   ===================================================================== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

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

.guide-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 51, 160, 0.25);
    box-shadow: var(--crypto-shadow-hover);
}

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

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

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

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

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

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

.guide-card:hover .guide-card__title a {
    color: var(--crypto-accent);
}

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

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

.prose p {
    color: #2a3242;
}

.prose h3 {
    margin-top: 28px;
}

.prose .table-wrap,
.prose .bullets,
.prose .steps,
.prose .note {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    margin-top: var(--crypto-section-y);
    background: var(--crypto-dark);
    color: rgba(255, 255, 255, 0.78);
}

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

.site-footer__about {
    margin-top: 14px;
}

.site-footer__mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s var(--crypto-ease);
}

.site-footer__mail:hover {
    background: var(--crypto-orange);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer__title {
    margin-bottom: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

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

.footer-nav__link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav__link:hover {
    color: var(--crypto-orange);
    transform: translateX(4px);
}

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

.site-footer__bottom-inner {
    padding: 20px 0;
}

.site-footer__copy {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 80px 0;
    text-align: center;
}

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

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

.error404__actions {
    margin-top: 24px;
}

/* =====================================================================
   SCROLL ANIMATIONS (Intersection Observer в index.js)
   ===================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--crypto-ease), transform 0.7s var(--crypto-ease);
    transition-delay: var(--reveal-delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

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

    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
}

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

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
        padding: 12px 20px 24px;
        background: var(--crypto-surface);
        border-bottom: 1px solid var(--crypto-border);
        box-shadow: 0 20px 40px rgba(10, 29, 77, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
    }

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

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

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

    .site-nav__item--parent > .site-nav__link {
        flex: 1;
    }

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

    .site-nav__link {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .site-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--crypto-border);
        border-radius: 12px;
        background: var(--crypto-bg);
        color: var(--crypto-text);
        cursor: pointer;
    }

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

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

    .site-nav__submenu {
        position: static;
        flex-basis: 100%;
        grid-template-columns: 1fr;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 12px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s var(--crypto-ease);
    }

    .site-nav__item--expanded > .site-nav__submenu {
        max-height: 900px;
    }

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

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

    .split--reverse > .media {
        order: 0;
    }

    .cta__inner {
        background-attachment: scroll;
    }
}

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

    .hero {
        padding: 36px 0 32px;
    }

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

    .page-hero__inner {
        flex-direction: column;
    }

    .section__inner {
        width: calc(100% - 32px);
        padding: 28px 22px;
        border-radius: 22px;
    }

    .container {
        width: calc(100% - 32px);
    }

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

    .feature-grid--2,
    .faq__list {
        grid-template-columns: 1fr;
    }

    .cta__inner {
        width: calc(100% - 32px);
        padding: 40px 24px;
    }

    .cta__content,
    .cta__text-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .pair-chart {
        padding: 16px;
    }

    .pair-chart__stats {
        grid-template-columns: 1fr;
    }

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

    .media--wide {
        aspect-ratio: 16 / 9;
    }
}

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

    .section__inner {
        padding: 24px 18px;
    }

    .feature-card,
    .faq__item {
        padding: 20px;
    }

    .faq__item {
        flex-direction: column;
    }

    .steps__item {
        padding: 66px 18px 18px;
    }

    .direction-grid,
    .direction-grid--compact {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

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

    .pair-chart__tab {
        padding: 7px 10px;
    }

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

    .exchange-widget__frame {
        height: 440px;
    }
}
