/*
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 — палитра VIO: мята (#C6F0E4, #A7E8D7), слива (#64165D, #8A176E), графит (#171317)
   ===================================================================== */
:root {
    --crypto-bg: #f3fbf8;
    --crypto-surface: #ffffff;
    --crypto-surface-2: #e2f6ef;
    --crypto-text: #171317;
    --crypto-text-muted: #56505a;
    --crypto-accent: #8a176e;
    --crypto-accent-hover: #64165d;
    --crypto-accent-soft: rgba(138, 23, 110, 0.1);
    --crypto-deep: #64165d;
    --crypto-deep-hover: #4b0f46;
    --crypto-deep-soft: #c6f0e4;
    --crypto-mint: #a7e8d7;
    --crypto-mint-light: #c6f0e4;
    --crypto-dark: #171317;
    --crypto-dark-deep: #0f0b10;
    --crypto-grey: #56505a;
    --crypto-border: #d2ebe3;
    --crypto-white: #ffffff;
    --crypto-radius: 20px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(23, 19, 23, 0.08);
    --crypto-shadow-hover: 0 20px 46px rgba(23, 19, 23, 0.16);
    --crypto-section-y: 24px;
    --crypto-header-h: 72px;
    --crypto-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --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);
}

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

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

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

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

p {
    margin: 0 0 14px;
}

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

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

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.2;
    font-weight: 800;
    color: inherit;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(32px, 4.6vw, 54px);
}

h2 {
    font-size: clamp(24px, 2.8vw, 34px);
}

h3 {
    font-size: 19px;
    letter-spacing: -0.01em;
}

ul,
ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

li {
    margin-bottom: 6px;
}

b,
strong {
    font-weight: 800;
}

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

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

.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
   ===================================================================== */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--crypto-accent);
    color: var(--crypto-white);
    font: 700 16px/1.2 var(--crypto-font);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 24px rgba(138, 23, 110, 0.32);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s var(--crypto-ease), background 0.3s ease;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--crypto-ease);
}

.button:hover,
.button:focus-visible {
    color: var(--crypto-white);
    background: var(--crypto-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(138, 23, 110, 0.42);
}

.button:hover::before {
    transform: translateX(120%);
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button--small {
    padding: 11px 20px;
    font-size: 14px;
}

.button--deep {
    background: var(--crypto-deep);
    box-shadow: 0 10px 24px rgba(100, 22, 93, 0.32);
}

.button--deep:hover,
.button--deep:focus-visible {
    background: var(--crypto-deep-hover);
    box-shadow: 0 16px 34px rgba(100, 22, 93, 0.42);
}

.cta .button {
    background: var(--crypto-deep);
    box-shadow: 0 10px 24px rgba(100, 22, 93, 0.38);
}

.cta .button:hover {
    background: var(--crypto-deep-hover);
}

/* =====================================================================
   LOGO
   ===================================================================== */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--crypto-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.logo:hover {
    color: var(--crypto-text);
}

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

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

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

.logo--light,
.logo--light:hover {
    color: var(--crypto-white);
}

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

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

.site-header--scrolled {
    box-shadow: 0 8px 26px rgba(23, 19, 23, 0.1);
}

.site-header__progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-deep));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

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

.site-header__logo {
    flex-shrink: 0;
}

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

.header-nav {
    margin-left: auto;
}

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

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

.header-nav__item {
    position: relative;
    margin: 0;
}

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

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

.header-nav__item--depth-0.header-nav__item--parent > .header-nav__link::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Мега-меню Exchange: колонки групп (level-1), ссылки (level-2) */
.header-nav__submenu--level-1 {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 8px 24px;
    padding: 22px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.25s ease, transform 0.25s var(--crypto-ease), visibility 0.25s;
}

.header-nav__submenu--level-1::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

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

.header-nav__item--depth-0:hover > .header-nav__link::after {
    transform: rotate(-135deg);
}

.header-nav__link--depth-1 {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--crypto-deep);
    pointer-events: none;
}

.header-nav__item--depth-1:not(.header-nav__item--parent) > .header-nav__link--depth-1 {
    pointer-events: auto;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--crypto-text);
}

.header-nav__submenu--level-2 {
    display: grid;
    gap: 2px;
}

.header-nav__link--depth-2 {
    padding: 8px 10px;
    font-size: 14px;
}

.header-nav__link--depth-2:hover {
    transform: translateX(4px);
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 12px;
    margin-left: auto;
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    background: var(--crypto-surface);
    cursor: pointer;
}

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

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   HERO (первый экран: текст слева, виджет справа, без картинки рядом)
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    color: var(--crypto-white);
    background: var(--crypto-dark-deep);
}

.hero__bg {
    position: absolute;
    inset: -8% 0;
    width: 100%;
    height: 116%;
    object-fit: cover;
    opacity: 0.55;
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.05);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(138, 23, 110, 0.55), transparent 45%),
        radial-gradient(circle at 8% 92%, rgba(167, 232, 215, 0.22), transparent 42%),
        linear-gradient(100deg, rgba(23, 19, 23, 0.95) 0%, rgba(100, 22, 93, 0.82) 58%, rgba(100, 22, 93, 0.6) 100%);
}

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

.hero__inner--single {
    grid-template-columns: minmax(0, 820px);
}

.hero__pair {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 16px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero__pair .coin {
    width: 32px;
    height: 32px;
    animation: coin-float 4s ease-in-out infinite;
}

.hero__pair .coin + .icon + .coin {
    animation-delay: -2s;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: var(--crypto-white);
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-accent-hover));
    box-shadow: 0 14px 30px rgba(138, 23, 110, 0.35);
    animation: coin-float 5s ease-in-out infinite;
}

.hero__badge .icon {
    width: 30px;
    height: 30px;
}

.hero__title {
    margin-bottom: 18px;
}

.hero__text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
}

.hero__text p {
    margin-bottom: 12px;
}

.hero__text b {
    color: var(--crypto-white);
}

.hero p a {
    color: #a7e8d7;
}

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

/* Виджет обменника */
.exchange-widget {
    position: relative;
    width: 100%;
    max-width: 500px;
    justify-self: end;
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s var(--crypto-ease);
}

.exchange-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 38px 70px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--crypto-accent);
}

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

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

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

.section--alt {
    background: var(--crypto-surface);
    padding: calc(var(--crypto-section-y) * 2) 0;
    margin: var(--crypto-section-y) 0;
}

.section--last {
    padding-bottom: calc(var(--crypto-section-y) * 2);
}

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

.section__head .section__title {
    margin: 0;
}

.section__head--center {
    justify-content: center;
    text-align: center;
}

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

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

.section__icon--deep {
    color: var(--crypto-deep);
    background: var(--crypto-deep-soft);
}

.section__head:hover .section__icon--deep {
    background: var(--crypto-deep);
}

.section__body {
    max-width: 860px;
    color: var(--crypto-text-muted);
}

.section__body--wide {
    max-width: none;
}

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

.section__note {
    margin-top: 16px;
    padding: 14px 18px;
    border-left: 4px solid var(--crypto-accent);
    border-radius: 0 var(--crypto-radius-sm) var(--crypto-radius-sm) 0;
    background: var(--crypto-accent-soft);
    color: var(--crypto-text);
}

.section__note--deep {
    border-left-color: var(--crypto-deep);
    background: var(--crypto-deep-soft);
}

/* =====================================================================
   CARDS / FEATURES
   ===================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

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

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

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

.feature::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-deep));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--crypto-ease);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: rgba(138, 23, 110, 0.4);
}

.feature:hover::after {
    transform: scaleX(1);
}

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

.feature:nth-child(even) .feature__icon {
    color: var(--crypto-deep);
    background: var(--crypto-deep-soft);
}

.feature:hover .feature__icon {
    transform: scale(1.1) rotate(-6deg);
    color: var(--crypto-white);
    background: var(--crypto-accent);
}

.feature:nth-child(even):hover .feature__icon {
    background: var(--crypto-deep);
}

.feature__title {
    margin-bottom: 8px;
}

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

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

/* =====================================================================
   STEPS
   ===================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 30px 24px 26px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    counter-increment: step;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease);
}

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

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--crypto-accent-soft);
    transition: color 0.3s ease;
}

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

.step:hover::before {
    color: rgba(100, 22, 93, 0.35);
}

.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--crypto-white);
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-accent-hover));
    box-shadow: 0 10px 22px rgba(138, 23, 110, 0.3);
    transition: transform 0.4s var(--crypto-ease);
}

.step:hover .step__icon {
    transform: scale(1.12) rotate(8deg);
}

.step__title {
    margin-bottom: 8px;
    padding-right: 48px;
}

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

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

/* Вертикальный таймлайн (How It Works) */
.timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(var(--crypto-accent), var(--crypto-deep));
}

.timeline__item {
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--crypto-surface);
    border: 3px solid var(--crypto-accent);
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline__item:hover::before {
    transform: scale(1.3);
    background: var(--crypto-accent);
}

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

.media--reverse .media__figure {
    order: -1;
}

.media__figure {
    position: relative;
    margin: 0;
    min-height: 340px;
    height: 100%;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow-hover);
    transition: transform 0.45s var(--crypto-ease), box-shadow 0.45s var(--crypto-ease);
}

.media__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(138, 23, 110, 0.18), transparent 45%, rgba(100, 22, 93, 0.22));
    opacity: 0;
    transition: opacity 0.45s ease;
}

.media__figure:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: 0 28px 60px rgba(23, 19, 23, 0.24);
}

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

.media__img {
    position: absolute;
    inset: -10% 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.02);
    transition: scale 0.8s var(--crypto-ease), filter 0.5s ease;
    will-change: transform;
}

.media__figure:hover .media__img {
    scale: 1.08;
    filter: saturate(1.15);
}

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

.media__content h2,
.media__content h3 {
    color: var(--crypto-text);
}

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

/* =====================================================================
   PANELS (две карточки-секции рядом)
   ===================================================================== */
.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.panel {
    padding: 30px 28px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    color: var(--crypto-text-muted);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease), border-color 0.35s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: rgba(138, 23, 110, 0.35);
}

.panel h2,
.panel h3 {
    color: var(--crypto-text);
}

.panel .section__title {
    font-size: clamp(21px, 2.2vw, 26px);
}

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

.panel--media {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.panel--media .media__figure {
    min-height: 240px;
}

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

.panel--dark {
    background: var(--crypto-dark);
    border-color: var(--crypto-dark);
    color: rgba(255, 255, 255, 0.78);
}

.panel--dark h2,
.panel--dark h3 {
    color: var(--crypto-white);
}

.panel--dark .section__icon {
    background: rgba(138, 23, 110, 0.22);
    color: #a7e8d7;
}

.panel--dark p a {
    color: #a7e8d7;
}

/* =====================================================================
   LISTS
   ===================================================================== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 10px;
}

.checklist li {
    position: relative;
    margin: 0;
    padding: 12px 16px 12px 50px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.section--alt .checklist li,
.panel .checklist li {
    background: var(--crypto-bg);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: var(--crypto-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.checklist li:hover {
    transform: translateX(6px);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow);
}

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

.checklist--warn li::before {
    background: var(--crypto-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='7' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.checklist--warn li:hover {
    border-color: var(--crypto-deep);
}

.checklist--ban li::before {
    background: var(--crypto-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='17' y1='7' x2='7' y2='17'/%3E%3Cline x1='7' y1='7' x2='17' y2='17'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.numbered {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 10px;
    counter-reset: num;
}

.numbered li {
    position: relative;
    margin: 0;
    padding: 12px 16px 12px 58px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    color: var(--crypto-text);
    counter-increment: num;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.numbered li::before {
    content: counter(num);
    position: absolute;
    left: 12px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--crypto-white);
    background: var(--crypto-deep);
}

.numbered li:hover {
    transform: translateX(6px);
    box-shadow: var(--crypto-shadow);
}

/* Карточки-ссылки */
.link-cards {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.link-cards li {
    margin: 0;
}

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

.link-cards a .icon {
    color: var(--crypto-accent);
    transition: transform 0.3s var(--crypto-ease);
}

.link-cards a:hover {
    color: var(--crypto-accent);
    border-color: var(--crypto-accent);
    transform: translateY(-4px);
    box-shadow: var(--crypto-shadow-hover);
}

.link-cards a:hover .icon {
    transform: scale(1.15);
}

.link-cards__desc {
    display: block;
    color: var(--crypto-text-muted);
    font-weight: 500;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: var(--crypto-text);
}

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

.data-table th {
    background: var(--crypto-dark);
    color: var(--crypto-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

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

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

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

.data-table td:first-child {
    font-weight: 700;
}

.data-table .text-right {
    text-align: right;
}

.data-table td .coin,
.data-table td .icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.data-table td .icon {
    width: 20px;
    height: 20px;
    color: var(--crypto-accent);
}

.data-table td a {
    white-space: nowrap;
}

/* Логотипы монет */
.coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s var(--crypto-ease);
}

.coin--sm {
    width: 22px;
    height: 22px;
}

.coin--overlap {
    margin-left: -8px;
}

tr:hover .coin,
.pair-chart__pair:hover .coin {
    transform: rotate(-12deg) scale(1.12);
}

/* =====================================================================
   STATS (XExchange in Numbers)
   ===================================================================== */
.stats {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
}

/* =====================================================================
   REVIEWS
   ===================================================================== */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 0 0 20px;
    border-radius: 999px;
    background: var(--crypto-deep-soft);
    color: var(--crypto-text);
}

.rating-badge .icon {
    color: var(--crypto-deep);
    fill: var(--crypto-deep);
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease);
}

.review::before {
    content: "\201C";
    position: absolute;
    right: 20px;
    top: 6px;
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    color: var(--crypto-accent-soft);
    transition: color 0.3s ease, transform 0.4s var(--crypto-ease);
}

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

.review:hover::before {
    color: rgba(100, 22, 93, 0.3);
    transform: scale(1.15);
}

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

.review__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--crypto-white);
    font-weight: 800;
    font-size: 19px;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-dark));
}

.review:nth-child(3n + 2) .review__avatar {
    background: linear-gradient(135deg, var(--crypto-deep), var(--crypto-dark));
}

.review:nth-child(3n) .review__avatar {
    background: linear-gradient(135deg, var(--crypto-grey), var(--crypto-dark));
}

.review__title {
    margin: 0;
}

.review__stars {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.review__stars .icon {
    width: 16px;
    height: 16px;
    color: var(--crypto-deep);
    fill: var(--crypto-deep);
}

.review__stars .icon--empty {
    color: var(--crypto-border);
    fill: var(--crypto-border);
}

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

/* Форма отзыва */
.review-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
}

.review-form__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.review-form__field {
    display: grid;
    gap: 6px;
}

.review-form__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--crypto-text);
}

.review-form__input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font: 500 15px/1.4 var(--crypto-font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.review-form__input:focus {
    outline: none;
    border-color: var(--crypto-accent);
    background: var(--crypto-surface);
    box-shadow: 0 0 0 4px var(--crypto-accent-soft);
}

.review-form__textarea {
    resize: vertical;
    min-height: 130px;
}

.review-form__hp {
    position: absolute;
    left: -9999px;
}

.review-form__submit {
    justify-self: start;
}

.review-form__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--crypto-radius-sm);
    font-weight: 600;
}

.review-form__notice--ok {
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-hover);
}

.review-form__notice--error {
    background: var(--crypto-deep-soft);
    color: var(--crypto-deep-hover);
}

/* =====================================================================
   CONTACT CARDS
   ===================================================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

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

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-accent);
}

.contact-card .feature__icon {
    margin-bottom: 4px;
}

.contact-card:hover .feature__icon {
    transform: scale(1.1) rotate(-6deg);
    background: var(--crypto-accent);
    color: var(--crypto-white);
}

.contact-card__purpose {
    color: var(--crypto-text-muted);
    font-size: 14px;
}

.contact-card__mail {
    font-weight: 800;
    word-break: break-all;
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
    position: relative;
    margin: var(--crypto-section-y) 0;
}

.cta__box {
    position: relative;
    overflow: hidden;
    padding: 56px 48px;
    border-radius: 28px;
    color: var(--crypto-white);
    background: var(--crypto-dark-deep);
    box-shadow: var(--crypto-shadow-hover);
    text-align: center;
}

.cta__bg {
    position: absolute;
    inset: -12% 0;
    width: 100%;
    height: 124%;
    object-fit: cover;
    opacity: 0.45;
    transform: translate3d(0, var(--parallax, 0px), 0);
    transition: scale 1.2s var(--crypto-ease);
    will-change: transform;
}

.cta__box:hover .cta__bg {
    scale: 1.06;
}

.cta__box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(138, 23, 110, 0.45), transparent 50%),
        linear-gradient(180deg, rgba(23, 19, 23, 0.7), rgba(23, 19, 23, 0.88));
}

.cta__content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--crypto-white);
    background: var(--crypto-deep);
    box-shadow: 0 0 0 10px rgba(100, 22, 93, 0.22);
    animation: pulse-ring 2.4s ease-out infinite;
}

.cta__text {
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    margin-bottom: 22px;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(100, 22, 93, 0.5); }
    100% { box-shadow: 0 0 0 22px rgba(100, 22, 93, 0); }
}

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

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

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

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

.faq__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

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

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

.faq__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transition: transform 0.35s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

.faq__toggle .icon {
    width: 18px;
    height: 18px;
}

.faq__item[open] .faq__toggle {
    transform: rotate(45deg);
    color: var(--crypto-white);
    background: var(--crypto-deep);
}

.faq__answer {
    padding: 0 22px 18px;
    color: var(--crypto-text-muted);
    animation: faq-open 0.35s var(--crypto-ease);
}

.faq__answer p {
    margin: 0;
}

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

/* =====================================================================
   PAIR TOOLS: CHART (общая секция стилей графика), CONVERTER
   ===================================================================== */
.pair-chart {
    padding: 22px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    margin-bottom: 16px;
    transition: box-shadow 0.35s ease;
}

.pair-chart:hover {
    box-shadow: var(--crypto-shadow-hover);
}

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

.pair-chart__tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--crypto-surface-2);
}

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

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

.pair-chart__panel {
    display: none;
    animation: faq-open 0.4s var(--crypto-ease);
}

.pair-chart__radio:nth-of-type(1):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(1),
.pair-chart__radio:nth-of-type(2):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(2),
.pair-chart__radio:nth-of-type(3):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(3),
.pair-chart__radio:nth-of-type(4):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(4),
.pair-chart__radio:nth-of-type(5):checked ~ .pair-chart__tabs .pair-chart__tab:nth-child(5) {
    color: var(--crypto-white);
    background: var(--crypto-accent);
    box-shadow: 0 6px 14px rgba(138, 23, 110, 0.3);
}

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

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

.pair-chart__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 10px;
}

.pair-chart__pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.pair-chart__pair .coin + .coin {
    margin-right: 4px;
}

.pair-chart__rate {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pair-chart__change {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.pair-chart__change--up {
    color: var(--crypto-accent-hover);
    background: var(--crypto-accent-soft);
}

.pair-chart__change--down {
    color: var(--crypto-deep-hover);
    background: var(--crypto-deep-soft);
}

.chart {
    position: relative;
    width: 100%;
}

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

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

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

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

.chart__area {
    fill: var(--crypto-accent-soft);
    stroke: none;
    animation: chart-fade 1.2s ease both;
}

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

.chart__dot {
    fill: var(--crypto-deep);
    stroke: var(--crypto-white);
    stroke-width: 2.5;
    animation: chart-dot 1.8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

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

@keyframes chart-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Конвертер */
.converter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
    padding: 22px;
    margin-bottom: 14px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
}

.converter__field {
    display: grid;
    gap: 6px;
}

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

.converter__control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.converter__control:focus-within {
    border-color: var(--crypto-accent);
    box-shadow: 0 0 0 4px var(--crypto-accent-soft);
}

.converter__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: 800 20px/1.3 var(--crypto-font);
    color: var(--crypto-text);
    outline: none;
}

.converter__ticker {
    font-weight: 800;
    color: var(--crypto-text-muted);
}

.converter__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
    border-radius: 50%;
    color: var(--crypto-white);
    background: var(--crypto-deep);
    transition: transform 0.5s var(--crypto-ease);
}

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

.converter__rate {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--crypto-text-muted);
}

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    margin-top: calc(var(--crypto-section-y) * 2);
    padding: 56px 0 0;
    color: rgba(255, 255, 255, 0.72);
    background: var(--crypto-dark);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-deep), var(--crypto-grey));
}

.site-footer__top {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__mail .icon {
    color: var(--crypto-accent);
}

.site-footer__mail:hover {
    color: var(--crypto-white);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 28px;
}

.site-footer__title {
    margin: 0 0 12px;
    color: var(--crypto-white);
    font-weight: 800;
    font-size: 15px;
}

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

.footer-nav__item {
    margin-bottom: 8px;
}

.footer-nav__link {
    position: relative;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, padding 0.25s var(--crypto-ease);
}

.footer-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--crypto-deep);
    transition: width 0.25s var(--crypto-ease);
}

.footer-nav__link:hover {
    color: var(--crypto-white);
    padding-left: 16px;
}

.footer-nav__link:hover::before {
    width: 10px;
}

.site-footer__bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.site-footer__copy {
    margin: 0;
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--crypto-white);
    background: var(--crypto-accent);
    box-shadow: 0 10px 24px rgba(138, 23, 110, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s, background 0.3s ease;
}

.to-top .icon {
    transform: rotate(180deg);
}

.to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--crypto-deep);
    transform: translateY(-4px);
}

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

.error404__inner {
    max-width: 640px;
}

.error404__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
}

.error404__icon .icon {
    width: 34px;
    height: 34px;
}

.error404__code {
    font-size: clamp(110px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* =====================================================================
   SCROLL ANIMATIONS (Intersection Observer в index.js)
   ===================================================================== */
/* translate/scale — отдельные свойства, чтобы не конфликтовать с hover-transform */
.js .reveal {
    opacity: 0;
    translate: 0 32px;
}

.js .reveal--left {
    translate: -40px 0;
}

.js .reveal--right {
    translate: 40px 0;
}

.js .reveal--zoom {
    translate: none;
    scale: 0.92;
}

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

.js .reveal.is-visible,
.js .reveal {
    transition: opacity 0.8s var(--crypto-ease) var(--delay, 0ms),
        translate 0.8s var(--crypto-ease) var(--delay, 0ms),
        scale 0.8s var(--crypto-ease) var(--delay, 0ms),
        transform 0.35s var(--crypto-ease),
        box-shadow 0.35s var(--crypto-ease),
        border-color 0.35s ease;
}

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

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

    .js .reveal {
        opacity: 1;
        translate: none;
        scale: none;
    }
}

/* =====================================================================
   BNBSWAP: мятные акценты на тёмном фоне, форма поддержки, инструменты
   ===================================================================== */
code {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--crypto-mint-light);
    color: var(--crypto-deep);
    font: 600 0.88em/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
    word-break: break-all;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 16px 8px 8px;
    border: 1px solid rgba(167, 232, 215, 0.35);
    border-radius: 999px;
    background: rgba(167, 232, 215, 0.1);
    color: var(--crypto-mint);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero__eyebrow .icon {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 50%;
    color: var(--crypto-dark);
    background: var(--crypto-mint);
}

.hero__pair .icon,
.hero p a {
    color: var(--crypto-mint);
}

.hero__badge {
    color: var(--crypto-dark);
    background: linear-gradient(135deg, var(--crypto-mint-light), var(--crypto-mint));
    box-shadow: 0 14px 30px rgba(167, 232, 215, 0.3);
}

.hero__side {
    width: 100%;
    max-width: 500px;
    justify-self: end;
}

.exchange-widget:hover {
    box-shadow: 0 38px 70px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--crypto-mint);
}

.cta .button,
.hero .button {
    color: var(--crypto-dark);
    background: var(--crypto-mint);
    box-shadow: 0 10px 24px rgba(167, 232, 215, 0.35);
}

.cta .button:hover,
.hero .button:hover {
    color: var(--crypto-dark);
    background: var(--crypto-mint-light);
    box-shadow: 0 16px 34px rgba(167, 232, 215, 0.45);
}

.cta__icon {
    color: var(--crypto-dark);
    background: var(--crypto-mint);
}

.cta__box::before {
    background:
        radial-gradient(circle at 15% 20%, rgba(138, 23, 110, 0.6), transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(167, 232, 215, 0.2), transparent 45%),
        linear-gradient(180deg, rgba(23, 19, 23, 0.72), rgba(23, 19, 23, 0.9));
}

.cta__content > p:not(.cta__text) {
    color: rgba(255, 255, 255, 0.84);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(167, 232, 215, 0.55); }
    100% { box-shadow: 0 0 0 22px rgba(167, 232, 215, 0); }
}

.section--alt {
    background: linear-gradient(180deg, var(--crypto-surface), var(--crypto-bg));
}

.section__icon--deep,
.feature:nth-child(even) .feature__icon {
    color: var(--crypto-deep);
    background: var(--crypto-mint-light);
}

.section__head:hover .section__icon--deep,
.feature:nth-child(even):hover .feature__icon {
    color: var(--crypto-white);
    background: var(--crypto-deep);
}

.feature__text ul,
.feature__text ol,
.panel ul,
.panel ol {
    color: var(--crypto-text);
}

.feature--wide {
    grid-column: 1 / -1;
}

.feature .checklist li,
.feature .numbered li,
.media__content .checklist li {
    background: var(--crypto-bg);
}

.feature .table-wrap {
    box-shadow: none;
}

.panel--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.panel--wide p {
    max-width: 900px;
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--crypto-dark);
    background: var(--crypto-mint);
    font-size: 15px;
}

.hero__note b {
    color: var(--crypto-dark);
}

.hero__note .icon {
    width: 18px;
    height: 18px;
}

.step__text p {
    margin: 0;
}

.step__text b {
    display: block;
    margin-bottom: 6px;
    padding-right: 48px;
    color: var(--crypto-text);
    font-size: 18px;
}

/* Карточки подразделов (h3) с длинным текстом */
.subsections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subsections--single {
    grid-template-columns: minmax(0, 1fr);
}

.subsections .feature__text p,
.subsections .feature__text li {
    color: var(--crypto-text-muted);
}

/* Обёртка шорткода-инструмента */
.tool {
    margin: 18px 0 14px;
}

/* Форма поддержки [contact-form] */
.contact-form {
    display: grid;
    gap: 14px;
    padding: 26px;
    color: var(--crypto-text);
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s var(--crypto-ease);
}

.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 38px 70px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--crypto-mint);
}

.contact-form__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.contact-form__title .icon {
    color: var(--crypto-accent);
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Карточки записей блога (category-blog.php) */
.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-mint);
}

.post-card__media {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}

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

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

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

.post-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -44px;
    border-radius: 12px;
    color: var(--crypto-deep);
    background: var(--crypto-mint);
    box-shadow: var(--crypto-shadow);
    position: relative;
}

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

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

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

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

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 800;
    text-decoration: none;
}

.post-card__link .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--crypto-ease);
}

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

.posts__pagination {
    margin-top: 28px;
}

.posts__pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.posts__pagination .page-numbers {
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    text-decoration: none;
    font-weight: 700;
}

.posts__pagination .page-numbers.current {
    color: var(--crypto-white);
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
}

/* Футер: контакты и описание сервиса */
.site-footer__about {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

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

.site-footer__contacts li {
    margin: 0;
    font-size: 14px;
}

.site-footer__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__contacts a .icon {
    width: 18px;
    height: 18px;
    color: var(--crypto-mint);
}

.site-footer__contacts a:hover {
    color: var(--crypto-mint);
}

.site-footer__label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-nav__link::before {
    background: var(--crypto-mint);
}

.site-footer::before {
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-mint), var(--crypto-deep));
}

.site-header__progress {
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-mint));
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1120px) {
    .hero__side {
        justify-self: start;
    }

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

@media (max-width: 768px) {
    .subsections,
    .contact-form__row,
    .posts {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__side {
        max-width: 100%;
    }

    .contact-form {
        padding: 18px;
    }
}
@media (max-width: 1120px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .exchange-widget {
        justify-self: start;
    }

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

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

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

    .site-header__cta {
        margin-left: auto;
    }

    .burger {
        margin-left: 0;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-surface);
        box-shadow: 0 24px 40px rgba(23, 19, 23, 0.16);
        transition: max-height 0.45s var(--crypto-ease);
    }

    .header-nav--open {
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
        border-top: 1px solid var(--crypto-border);
    }

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

    .header-nav__item--depth-0 {
        border-bottom: 1px solid var(--crypto-border);
    }

    .header-nav__link {
        padding: 14px 6px;
        font-size: 16px;
        justify-content: space-between;
    }

    .header-nav__submenu--level-1 {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 0 0 0 12px;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--crypto-ease), padding 0.3s ease;
    }

    .header-nav__item--depth-0:hover > .header-nav__submenu,
    .header-nav__item--depth-0:focus-within > .header-nav__submenu {
        transform: none;
    }

    .header-nav__item--open > .header-nav__submenu--level-1 {
        max-height: 1400px;
        padding-bottom: 14px;
    }

    .header-nav__item--open > .header-nav__link::after {
        transform: rotate(-135deg);
    }

    .header-nav__item--depth-0:hover > .header-nav__link::after {
        transform: rotate(45deg);
    }

    .header-nav__item--open.header-nav__item--depth-0:hover > .header-nav__link::after {
        transform: rotate(-135deg);
    }

    .header-nav__link--depth-2 {
        padding: 10px 6px;
    }

    .media {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .media--reverse .media__figure {
        order: 0;
    }

    .media__figure {
        min-height: 280px;
    }

    .stats,
    .panel--media {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    body {
        font-size: 15.5px;
    }

    .site-header__cta {
        display: none;
    }

    .burger {
        margin-left: auto;
    }

    .hero {
        padding: 44px 0 52px;
    }

    .hero__text {
        font-size: 16.5px;
    }

    .exchange-widget {
        max-width: 100%;
    }

    .duo,
    .features--2,
    .features--3,
    .checklist--grid,
    .review-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .converter__arrow {
        justify-self: center;
        transform: rotate(90deg);
        margin: 0;
    }

    .converter:hover .converter__arrow {
        transform: rotate(270deg);
    }

    .cta__box {
        padding: 44px 24px;
    }

    .panel {
        padding: 24px 20px;
    }

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

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

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

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

    .section__icon {
        width: 44px;
        height: 44px;
    }

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

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

    .button {
        width: 100%;
    }

    .header-nav .button,
    .review-form__submit {
        width: auto;
    }

    .media__figure {
        min-height: 220px;
    }

    .pair-chart,
    .converter,
    .review-form {
        padding: 16px;
    }

    .pair-chart__tab {
        padding: 6px 12px;
    }

    .exchange-widget__frame {
        height: 430px;
    }

    .faq__summary {
        padding: 16px;
    }

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