/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — палитра Violet / Orange / Lavender / Grass
   (референс интерфейса — Kraken)
   ===================================================================== */
:root {
    --crypto-violet: #472549;
    --crypto-violet-deep: #2c1530;
    --crypto-orange: #f0820b;
    --crypto-orange-dark: #d26f05;
    --crypto-lavender: #b49cdb;
    --crypto-grass: #b9a00f;

    --crypto-bg: #ffffff;
    --crypto-bg-alt: #f7f3fc;
    --crypto-surface: #ffffff;
    --crypto-text: #2a1630;
    --crypto-text-muted: #6d5a74;
    --crypto-border: #e7ddf3;

    --crypto-accent: #f0820b;
    --crypto-accent-soft: rgba(240, 130, 11, 0.14);
    --crypto-lavender-soft: rgba(180, 156, 219, 0.22);
    --crypto-grass-soft: rgba(185, 160, 15, 0.16);

    --crypto-radius: 18px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(71, 37, 73, 0.08);
    --crypto-shadow-hover: 0 20px 44px rgba(71, 37, 73, 0.18);
    --crypto-section-y: 24px;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --crypto-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

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

h1,
h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--crypto-violet);
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

h3 {
    font-size: 18px;
}

p {
    margin: 0 0 14px;
}

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

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

p a {
    color: var(--crypto-orange-dark);
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 3px;
}

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

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

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

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

.coin--sm {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.coin--overlap {
    margin-left: -16px;
    box-shadow: 0 0 0 2px #fff;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crypto-orange) 0%, #f59a35 100%);
    color: #fff;
    font: 700 16px/1 var(--crypto-font);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(240, 130, 11, 0.32);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, background 0.3s ease;
}

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

.button:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(240, 130, 11, 0.42);
}

.button:hover::after {
    left: 130%;
}

.button:active {
    transform: translateY(-1px);
}

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

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

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

.site-header--scrolled {
    border-color: var(--crypto-border);
    box-shadow: 0 6px 24px rgba(71, 37, 73, 0.08);
}

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

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--crypto-violet);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    transition: transform 0.3s var(--crypto-ease);
}

.logo:hover {
    transform: scale(1.03);
}

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

.logo:hover .logo__mark {
    transform: rotate(-8deg);
}

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

.logo--light,
.logo--light .logo__mark {
    color: #fff;
}

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

/* Навигация */
.header-nav__list,
.header-nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.header-nav__item {
    position: relative;
}

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

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

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

.header-nav__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.3s var(--crypto-ease), visibility 0.25s;
}

.header-nav__submenu .header-nav__link {
    padding: 9px 12px;
    font-size: 14px;
}

.header-nav__submenu .header-nav__link:hover {
    background: var(--crypto-accent-soft);
    color: var(--crypto-orange-dark);
    transform: translateX(3px);
}

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

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

/* Бургер */
.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: #fff;
    cursor: pointer;
    transition: background 0.25s ease;
}

.burger:hover {
    background: var(--crypto-lavender-soft);
}

.burger__line {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-violet);
    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;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 26px 26px,
        linear-gradient(135deg, var(--crypto-violet-deep) 0%, var(--crypto-violet) 55%, #5d3361 100%);
    color: #fff;
}

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

.hero__glow--one {
    width: 420px;
    height: 420px;
    top: -140px;
    right: 8%;
    background: rgba(240, 130, 11, 0.35);
}

.hero__glow--two {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -60px;
    background: rgba(180, 156, 219, 0.4);
    animation-delay: -6s;
}

@keyframes glow-float {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(40px, 30px) scale(1.15);
    }
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--crypto-lavender);
}

.hero__badge .coin--sm {
    margin: 0;
}

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

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

.hero__text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.hero__widget {
    display: flex;
    justify-content: flex-end;
}

.exchange-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 10px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(20, 6, 22, 0.45);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.exchange-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--crypto-orange), var(--crypto-lavender));
}

.exchange-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(20, 6, 22, 0.5);
}

.exchange-widget,
.exchange-widget__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 16px;
}

/* =====================================================================
   PAGE HERO (служебные страницы — с фоновой картинкой)
   ===================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    color: #fff;
    background: var(--crypto-violet-deep);
}

.page-hero__bg {
    position: absolute;
    inset: -12% 0;
    width: 100%;
    height: 124%;
    object-fit: cover;
    transform: translateY(var(--parallax, 0)) scale(1.05);
    will-change: transform;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(44, 21, 48, 0.94) 0%, rgba(71, 37, 73, 0.82) 50%, rgba(71, 37, 73, 0.45) 100%);
}

.page-hero__inner {
    position: relative;
    max-width: 1200px;
}

.page-hero__icon {
    display: inline-flex;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--crypto-orange);
    color: #fff;
    box-shadow: 0 12px 26px rgba(240, 130, 11, 0.4);
    animation: icon-pulse 3s ease-in-out infinite;
}

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

.page-hero__title {
    color: #fff;
}

.page-hero__text {
    max-width: 760px;
}

.page-hero__text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
}

.page-hero__text p a {
    color: #ffb15c;
}

.page-hero__text p a:hover {
    color: #fff;
}

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

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

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

.section-head__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--crypto-violet), #6b3b6f);
    color: #fff;
    box-shadow: 0 10px 22px rgba(71, 37, 73, 0.25);
    transition: transform 0.4s var(--crypto-ease), background 0.3s ease;
}

.section-head:hover .section-head__icon {
    transform: rotate(-10deg) scale(1.08);
    background: linear-gradient(135deg, var(--crypto-orange), #f59a35);
}

.section-head__title {
    margin: 0;
}

.section__lead {
    max-width: 860px;
    margin-bottom: 26px;
    color: var(--crypto-text-muted);
    font-size: 17px;
}

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

/* Медиа-блок: текст + картинка */
.media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

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

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

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

.media__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, transparent 55%, rgba(71, 37, 73, 0.35));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.media__img {
    position: absolute;
    top: -9%;
    left: 0;
    width: 100%;
    height: 118%;
    object-fit: cover;
    transform: translateY(var(--parallax, 0)) scale(1.04);
    transition: transform 0.8s var(--crypto-ease), filter 0.5s ease;
    will-change: transform;
}

.media__figure:hover .media__img {
    transform: translateY(var(--parallax, 0)) scale(1.12);
    filter: saturate(1.15);
}

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

/* Панель-карточка */
.panel {
    padding: 36px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

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

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

.panel .table-wrap,
.panel .button {
    margin-top: 22px;
}

/* Две карточки рядом */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

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

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

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

.tile__icon {
    display: inline-flex;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-orange-dark);
    transition: transform 0.4s var(--crypto-ease);
}

.tile:hover .tile__icon {
    transform: scale(1.12) rotate(6deg);
}

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

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: #fff;
    box-shadow: var(--crypto-shadow);
}

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

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

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

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

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

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

.data-table td:first-child {
    font-weight: 700;
    color: var(--crypto-violet);
    white-space: nowrap;
}

.data-table td a {
    color: var(--crypto-orange-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================================
   STEPS
   ===================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.steps__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-orange);
}

.steps__num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--crypto-lavender-soft);
    transition: color 0.3s ease;
}

.steps__item:hover .steps__num {
    color: var(--crypto-accent-soft);
}

.steps__icon {
    display: inline-flex;
    align-self: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: var(--crypto-grass-soft);
    color: #7f6e08;
    transition: transform 0.4s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

.steps__item:hover .steps__icon {
    background: var(--crypto-orange);
    color: #fff;
    transform: rotate(-8deg);
}

.steps__text {
    font-weight: 600;
    color: var(--crypto-violet);
}

/* =====================================================================
   NOTICE (One-Way Exchange Only)
   ===================================================================== */
.notice {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 30px 34px;
    border-radius: var(--crypto-radius);
    background: linear-gradient(120deg, var(--crypto-violet) 0%, #5d3361 100%);
    color: #fff;
    box-shadow: var(--crypto-shadow-hover);
    transition: transform 0.4s var(--crypto-ease);
}

.notice:hover {
    transform: scale(1.01);
}

.notice__icon {
    display: inline-flex;
    padding: 14px;
    border-radius: 14px;
    background: var(--crypto-orange);
    color: #fff;
    animation: icon-pulse 3s ease-in-out infinite;
}

.notice__title {
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
}

.notice p {
    color: rgba(255, 255, 255, 0.85);
}

/* =====================================================================
   FEATURES (Why Use XMR Exchange)
   ===================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.features__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-lavender);
}

.features__icon {
    display: inline-flex;
    align-self: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: var(--crypto-lavender-soft);
    color: var(--crypto-violet);
    transition: transform 0.4s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

.features__item:hover .features__icon {
    background: var(--crypto-violet);
    color: #fff;
    transform: scale(1.1);
}

.features__text {
    font-weight: 600;
    color: var(--crypto-violet);
}

/* =====================================================================
   CHART (общая секция стилей графика)
   ===================================================================== */
.chart-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease;
}

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

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

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

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

.pair-chart__tab:hover {
    color: var(--crypto-violet);
}

.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: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) {
    background: var(--crypto-violet);
    color: #fff;
}

.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-orange);
    outline-offset: 2px;
}

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

.pair-chart__pair {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--crypto-violet);
}

.pair-chart__rate {
    font-size: 24px;
    font-weight: 800;
    color: var(--crypto-violet);
}

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

.pair-chart__change--up {
    background: var(--crypto-grass-soft);
    color: #6f6006;
}

.pair-chart__change--down {
    background: rgba(214, 69, 65, 0.12);
    color: #b3302c;
}

.chart {
    position: relative;
}

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

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

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

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

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

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 3000;
    stroke-dashoffset: 0;
}

.js .reveal:not(.is-visible) .chart__line {
    stroke-dashoffset: 3000;
}

.reveal.is-visible .chart__line {
    transition: stroke-dashoffset 2s ease-out;
}

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

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

.chart-empty {
    padding: 22px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-bg-alt);
    color: var(--crypto-text-muted);
    text-align: center;
}

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.reviews__intro {
    position: sticky;
    top: 100px;
}

.reviews__figure {
    margin: 10px 0 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--crypto-shadow-hover);
}

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

.reviews__figure:hover .reviews__img {
    transform: scale(1.08);
}

.reviews__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

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

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

.review__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crypto-violet), var(--crypto-lavender));
    color: #fff;
    font-weight: 800;
}

.review__name {
    margin: 0;
    color: var(--crypto-violet);
}

.review__stars {
    display: inline-flex;
    gap: 2px;
    width: 100%;
    color: var(--crypto-orange);
}

.review__stars .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

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

/* =====================================================================
   CTA
   ===================================================================== */
.cta__box {
    position: relative;
    overflow: hidden;
    padding: 64px 56px;
    border-radius: 28px;
    background: var(--crypto-violet);
    box-shadow: var(--crypto-shadow-hover);
}

.cta__bg {
    position: absolute;
    inset: -15% 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    transform: translateY(var(--parallax, 0)) scale(1.05);
    transition: transform 1s var(--crypto-ease);
    will-change: transform;
}

.cta__box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(44, 21, 48, 0.95) 0%, rgba(71, 37, 73, 0.85) 55%, rgba(71, 37, 73, 0.35) 100%);
}

.cta__box:hover .cta__bg {
    transform: translateY(var(--parallax, 0)) scale(1.12);
}

.cta__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    color: #fff;
}

.cta__icon {
    display: inline-flex;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--crypto-orange);
    animation: icon-pulse 3s ease-in-out infinite;
}

.cta__title {
    color: #fff;
}

.cta__text {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 24px;
}

.cta__text a {
    color: #ffb15c;
}

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

/* =====================================================================
   POLICY
   ===================================================================== */
.policy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.policy__card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.policy__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: var(--crypto-lavender);
}

.policy__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.policy__card .section-head__title {
    font-size: clamp(20px, 2.2vw, 24px);
}

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

/* =====================================================================
   CONTACT FORM
   ===================================================================== */
.form-card {
    position: relative;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: 24px;
    box-shadow: var(--crypto-shadow-hover);
}

.form-card__icon {
    position: absolute;
    top: -26px;
    right: 36px;
    display: inline-flex;
    padding: 14px;
    border-radius: 16px;
    background: var(--crypto-orange);
    color: #fff;
    box-shadow: 0 12px 26px rgba(240, 130, 11, 0.4);
    animation: icon-pulse 3s ease-in-out infinite;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

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

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

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

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

.contact-form__textarea {
    resize: vertical;
    min-height: 140px;
}

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

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

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

.contact-form__notice--ok {
    background: var(--crypto-grass-soft);
    color: #6f6006;
}

.contact-form__notice--error {
    background: rgba(214, 69, 65, 0.12);
    color: #b3302c;
}

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

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

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

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

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

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

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

.faq__toggle {
    display: inline-flex;
    padding: 6px;
    border-radius: 10px;
    background: var(--crypto-lavender-soft);
    color: var(--crypto-violet);
    transition: transform 0.35s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

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

.faq__answer {
    padding: 0 24px 22px;
    color: var(--crypto-text-muted);
    animation: chart-in 0.4s var(--crypto-ease);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    padding: 64px 0 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(240, 130, 11, 0.18), transparent 40%),
        var(--crypto-violet-deep);
    color: rgba(255, 255, 255, 0.75);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.3fr 1.6fr 0.8fr 0.8fr 1.3fr;
    gap: 32px;
}

.site-footer__about {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__title {
    margin-bottom: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.footer-nav__list--columns {
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}

.footer-nav__link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

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

.footer-contacts__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.footer-contacts__item .icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--crypto-lavender);
}

.footer-contacts__item a {
    color: #fff;
    word-break: break-all;
}

.footer-contacts__item a:hover {
    color: var(--crypto-orange);
}

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

/* Кнопка «наверх» */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: inline-flex;
    padding: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--crypto-orange);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(240, 130, 11, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) rotate(180deg);
    transition: opacity 0.3s ease, transform 0.4s var(--crypto-ease), visibility 0.3s;
}

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

.to-top:hover {
    transform: translateY(-4px) rotate(180deg);
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 100px 0;
    background:
        radial-gradient(circle at 20% 20%, var(--crypto-lavender-soft), transparent 45%),
        radial-gradient(circle at 80% 70%, var(--crypto-accent-soft), transparent 45%);
}

.error404__inner {
    text-align: center;
}

.error404__code {
    font-size: clamp(110px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-violet), var(--crypto-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: icon-pulse 4s ease-in-out infinite;
}

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

.btn {
    display: inline-flex;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--crypto-orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(240, 130, 11, 0.4);
}

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

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

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

.js .reveal--zoom {
    transform: scale(0.94);
}

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

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) 460px;
        gap: 32px;
    }

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

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

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

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

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

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        padding: 12px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--crypto-border);
        box-shadow: 0 20px 40px rgba(71, 37, 73, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.35s var(--crypto-ease), visibility 0.3s;
    }

    .header-nav--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

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

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

    .header-nav__submenu {
        position: static;
        min-width: 0;
        padding: 0 0 0 12px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .header-nav__item--open > .header-nav__submenu {
        display: block;
    }

    .header-nav__item--open > .header-nav__link::after {
        transform: translateY(1px) rotate(225deg);
    }

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

    .hero__widget {
        justify-content: center;
    }

    .exchange-card {
        margin: 0 auto;
    }

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

    .reviews__intro {
        position: static;
    }

    .reviews__figure {
        aspect-ratio: 16 / 9;
    }
}

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

    .container {
        padding: 0 20px;
    }

    .site-header__cta {
        display: none;
    }

    .burger {
        margin-left: auto;
    }

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

    .page-hero {
        padding: 64px 0;
    }

    .duo,
    .policy,
    .reviews__list,
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .panel,
    .policy__card,
    .form-card {
        padding: 26px;
    }

    .cta__box {
        padding: 44px 28px;
    }

    .notice {
        flex-direction: column;
        padding: 26px;
    }

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

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

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 44px 0;
    }

    .features,
    .site-footer__top,
    .footer-nav__list--columns {
        grid-template-columns: 1fr;
    }

    .section-head__icon {
        width: 42px;
        height: 42px;
    }

    .exchange-card {
        padding: 6px;
    }

    .chart-card {
        padding: 16px;
    }

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

    .button {
        width: 100%;
        justify-content: center;
    }

    .header-nav {
        padding: 10px 16px 20px;
    }
}
