/*
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 — палитра Pantone: 4102 C, 159 C, Grape Royale,
   Gunpowder, 7770 XGC. Референс интерфейса — Bybit (тёмный UI + оранжевый акцент)
   ===================================================================== */
:root {
    --crypto-bg: #141416;
    --crypto-bg-alt: #1b1a1f;
    --crypto-surface: #211e25;
    --crypto-surface-2: #2a2330;
    --crypto-burgundy: #5c1f2e;
    --crypto-grape: #4f2d54;
    --crypto-olive: #5c5b33;
    --crypto-olive-light: #a9a66a;
    --crypto-accent: #cb6015;
    --crypto-accent-light: #ee8436;
    --crypto-accent-soft: rgba(203, 96, 21, 0.2);
    --crypto-text: #f4efe9;
    --crypto-text-muted: #b5a9b3;
    --crypto-border: rgba(255, 255, 255, 0.09);
    --crypto-border-strong: rgba(238, 132, 54, 0.45);
    --crypto-up: #a9c26a;
    --crypto-down: #e0616d;
    --crypto-gradient: linear-gradient(135deg, var(--crypto-burgundy) 0%, var(--crypto-grape) 100%);
    --crypto-gradient-accent: linear-gradient(135deg, var(--crypto-accent) 0%, var(--crypto-accent-light) 100%);
    --crypto-radius: 18px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    --crypto-shadow-hover: 0 22px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--crypto-border-strong);
    --crypto-section-y: 72px;
    --crypto-gap: 24px;
    --crypto-header-h: 76px;
    --crypto-ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--crypto-header-h) + 16px);
}

body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

p {
    margin: 0 0 16px;
}

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

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

a:hover {
    color: #ffb277;
}

/* Ссылки внутри абзацев — акцент, подчёркивание, жирность */
p a,
li a,
td a {
    color: var(--crypto-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

b {
    color: #fff;
    font-weight: 700;
}

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

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

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

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

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

::selection {
    background: var(--crypto-accent);
    color: #fff;
}

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

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

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

@keyframes crypto-glow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

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

@keyframes crypto-draw {
    from { stroke-dashoffset: 2000; }
    to { stroke-dashoffset: 0; }
}

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

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, background 0.3s ease;
}

.btn--primary {
    background: var(--crypto-gradient-accent);
    color: #fff;
    box-shadow: 0 10px 28px rgba(203, 96, 21, 0.4);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-120%) skewX(-20deg);
}

.btn--primary:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 40px rgba(203, 96, 21, 0.55);
}

.btn--primary:hover::after {
    animation: crypto-shine 0.9s ease;
}

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

.site-header--scrolled {
    background: rgba(20, 20, 22, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

.logo:hover {
    color: #fff;
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--crypto-gradient-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(203, 96, 21, 0.35);
    transition: transform 0.5s var(--crypto-ease);
}

.logo:hover .logo__mark {
    transform: rotate(180deg) scale(1.05);
}

.logo__icon {
    width: 22px;
    height: 22px;
}

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

/* Навигация (десктоп) */
.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item {
    position: relative;
}

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

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

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

.nav__sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    box-shadow: var(--crypto-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
}

.nav__sub::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

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

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

.nav__link--sub {
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--crypto-text-muted);
}

.nav__link--sub:hover {
    padding-left: 18px;
    background: var(--crypto-accent-soft);
}

.nav__toggle {
    display: none;
}

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

.burger:hover {
    border-color: var(--crypto-border-strong);
}

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

.burger--active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    padding: 80px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(79, 45, 84, 0.65), transparent 70%),
        radial-gradient(700px 420px at 5% 90%, rgba(92, 31, 46, 0.6), transparent 70%),
        var(--crypto-bg);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: crypto-glow 8s ease-in-out infinite;
}

.hero::before {
    width: 320px;
    height: 320px;
    top: -80px;
    left: 38%;
    background: rgba(203, 96, 21, 0.22);
}

.hero::after {
    width: 260px;
    height: 260px;
    bottom: -90px;
    right: 8%;
    background: rgba(92, 91, 51, 0.4);
    animation-delay: -4s;
}

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

.hero__title {
    font-size: clamp(32px, 4.2vw, 52px);
    background: linear-gradient(120deg, #fff 30%, #ffc79a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 7px 16px 7px 8px;
    border: 1px solid var(--crypto-border-strong);
    border-radius: 999px;
    background: var(--crypto-accent-soft);
    color: #ffc79a;
    font-size: 14px;
    font-weight: 700;
}

.hero__badge .coin-logo {
    width: 26px;
    height: 26px;
}

.hero__badge-icon {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    background: var(--crypto-accent);
    color: #fff;
}

.hero__pair {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 18px;
    border: 1px solid var(--crypto-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

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

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

.hero__pair-arrow {
    width: 22px;
    height: 22px;
    color: var(--crypto-accent-light);
}

.hero__coins {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__coin {
    display: inline-flex;
    padding: 6px;
    border: 1px solid var(--crypto-border);
    border-radius: 50%;
    background: var(--crypto-surface);
    transition: transform 0.35s var(--crypto-ease), border-color 0.3s ease, box-shadow 0.3s ease;
    animation: crypto-float 5s ease-in-out infinite;
}

.hero__coin:nth-child(2n) {
    animation-delay: -2.5s;
}

.hero__coin:hover {
    transform: translateY(-6px) scale(1.12);
    border-color: var(--crypto-border-strong);
    box-shadow: 0 10px 24px rgba(203, 96, 21, 0.35);
}

.hero__coin .coin-logo {
    width: 34px;
    height: 34px;
}

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

.hero__media {
    justify-self: end;
    width: 100%;
    max-width: 440px;
}

/* Виджет обменника */
.widget-card {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(238, 132, 54, 0.35), 0 0 60px rgba(203, 96, 21, 0.25);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.widget-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(238, 132, 54, 0.6), 0 0 80px rgba(203, 96, 21, 0.35);
}

.widget-card__frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: 16px;
}

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

.section--alt {
    background:
        linear-gradient(180deg, rgba(79, 45, 84, 0.18), rgba(92, 31, 46, 0.12)),
        var(--crypto-bg-alt);
    border-top: 1px solid var(--crypto-border);
    border-bottom: 1px solid var(--crypto-border);
}

.section__inner > * + * {
    margin-top: var(--crypto-gap);
}

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

.section__head--sub {
    margin-top: 32px;
}

.section__head .section__title {
    margin: 0;
}

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--crypto-gradient);
    color: var(--crypto-accent-light);
    border: 1px solid rgba(238, 132, 54, 0.3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    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-gradient-accent);
    color: #fff;
}

.section__title {
    font-size: clamp(24px, 2.8vw, 36px);
}

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

/* =====================================================================
   SPLIT (текст + картинка)
   ===================================================================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
}

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

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

.split__content .section__title {
    color: var(--crypto-text);
}

/* Рамка картинки: overflow + параллакс + hover-зум */
.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--crypto-radius);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.5s var(--crypto-ease), box-shadow 0.5s ease;
}

.media-frame--tall {
    aspect-ratio: 4 / 5;
}

.media-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(79, 45, 84, 0.1) 0%, rgba(92, 31, 46, 0.45) 100%);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.media-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: 1;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--crypto-accent), transparent 40%, transparent 60%, var(--crypto-olive-light));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.media-frame__img {
    width: 100%;
    height: 118%;
    object-fit: cover;
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.02);
    transition: transform 0.9s var(--crypto-ease), filter 0.6s ease;
    will-change: transform;
}

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

.media-frame:hover::after {
    opacity: 0.35;
}

.media-frame:hover::before {
    opacity: 1;
}

.media-frame:hover .media-frame__img {
    transform: translate3d(0, var(--parallax, 0px), 0) scale(1.1);
    filter: saturate(1.15) brightness(1.05);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

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

.data-table th {
    background: var(--crypto-gradient);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.data-table th .coin-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.data-table td {
    color: var(--crypto-text-muted);
}

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

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

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

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

.data-table__icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -4px;
    color: var(--crypto-accent-light);
}

.data-table__caption {
    caption-side: bottom;
    padding: 14px 20px;
    text-align: left;
    font-size: 13px;
    color: var(--crypto-text-muted);
    border-top: 1px solid var(--crypto-border);
}

.data-table__caption-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    color: var(--crypto-olive-light);
}

.data-table--rates td {
    font-variant-numeric: tabular-nums;
    font-size: 16px;
}

.data-table--rates td:last-child {
    color: #ffc79a;
    font-weight: 700;
}

.pair-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pair-cell .coin-logo {
    transition: transform 0.4s var(--crypto-ease);
}

tr:hover .pair-cell .coin-logo {
    transform: rotate(360deg) scale(1.1);
}

/* =====================================================================
   LISTS, NOTES, STEPS
   ===================================================================== */
.icon-list {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.icon-list__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease, background 0.3s ease;
}

.icon-list__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-border-strong);
    background: var(--crypto-accent-soft);
}

.icon-list__icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--crypto-accent-light);
}

.note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px;
    border-left: 4px solid var(--crypto-accent);
    border-radius: var(--crypto-radius-sm);
    background: linear-gradient(90deg, var(--crypto-accent-soft), rgba(92, 91, 51, 0.12));
    color: var(--crypto-text);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

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

.note__icon {
    width: 26px;
    height: 26px;
    color: var(--crypto-accent-light);
    margin-top: 2px;
}

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

.steps--grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--crypto-gap);
}

.steps__item {
    position: relative;
    padding: 18px 18px 18px 72px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    color: var(--crypto-text-muted);
    counter-increment: step;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.steps--grid .steps__item {
    padding: 72px 22px 24px;
    border-radius: var(--crypto-radius);
}

.steps__item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--crypto-gradient-accent);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(203, 96, 21, 0.35);
    transition: transform 0.4s var(--crypto-ease);
}

.steps--grid .steps__item::before {
    top: 20px;
    left: 22px;
}

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

.steps__item:hover::before {
    transform: rotate(-10deg) scale(1.1);
}

/* =====================================================================
   CARDS & FEATURES
   ===================================================================== */
.cards {
    display: grid;
    gap: var(--crypto-gap);
}

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

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

.card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: linear-gradient(160deg, var(--crypto-surface-2), var(--crypto-surface));
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 96, 21, 0.3), transparent 70%);
    transition: transform 0.6s var(--crypto-ease);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-hover);
}

.card:hover::before {
    transform: scale(1.6);
}

.card__icon,
.feature-card__icon,
.wallet-card__icon,
.cta__icon,
.timeline__icon,
.contact-card__icon,
.note-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--crypto-accent-soft);
    border: 1px solid var(--crypto-border-strong);
    color: var(--crypto-accent-light);
    transition: transform 0.45s var(--crypto-ease), background 0.3s ease, color 0.3s ease;
}

.card__icon {
    margin-bottom: 18px;
}

.card:hover .card__icon,
.feature-card:hover .feature-card__icon,
.wallet-card:hover .wallet-card__icon,
.contact-card:hover .contact-card__icon,
.timeline__item:hover .timeline__icon {
    transform: rotate(-10deg) scale(1.1);
    background: var(--crypto-gradient-accent);
    color: #fff;
}

.card__title {
    font-size: 22px;
    color: var(--crypto-text);
}

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

.card .icon-list {
    margin-top: 16px;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--crypto-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
    color: var(--crypto-text-muted);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-hover);
}

/* Связанные ссылки */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.link-grid__link span {
    flex: 1;
}

.link-grid__icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 50%;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-light);
}

.link-grid__arrow {
    width: 20px;
    height: 20px;
    color: var(--crypto-accent-light);
    transition: transform 0.35s var(--crypto-ease);
}

.link-grid__link:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: var(--crypto-border-strong);
    background: linear-gradient(135deg, rgba(92, 31, 46, 0.6), rgba(79, 45, 84, 0.6));
    box-shadow: var(--crypto-shadow);
}

.link-grid__link:hover .link-grid__arrow {
    transform: translateX(6px);
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
    position: relative;
    padding: 96px 0;
    background-color: var(--crypto-bg-alt);
    background-size: cover;
    background-position: center var(--parallax-bg, 50%);
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 31, 46, 0.9), rgba(20, 20, 22, 0.85) 55%, rgba(79, 45, 84, 0.9));
}

.cta__inner {
    position: relative;
    max-width: 860px;
}

.cta__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
    background: var(--crypto-gradient-accent);
    color: #fff;
    border: 0;
    animation: crypto-float 4s ease-in-out infinite;
}

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

.cta__title {
    font-size: clamp(26px, 3.2vw, 40px);
}

.cta__text {
    margin-bottom: 30px;
    color: #e2d6dc;
    font-size: 17px;
}

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

.faq__item {
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    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-border-strong);
    box-shadow: var(--crypto-shadow);
    transform: translateY(-2px);
}

.faq__item--open {
    border-color: var(--crypto-border-strong);
    background: linear-gradient(160deg, var(--crypto-surface-2), var(--crypto-surface));
}

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

.faq__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 22px;
    border: 0;
    background: transparent;
    color: var(--crypto-text);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.faq__icon {
    width: 24px;
    height: 24px;
    color: var(--crypto-accent-light);
}

.faq__text {
    flex: 1;
}

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

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

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

.faq__item--open .faq__marker {
    transform: rotate(180deg);
    background: var(--crypto-accent);
}

.faq__item--open .faq__marker::before,
.faq__item--open .faq__marker::after {
    background: #fff;
}

.faq__item--open .faq__marker::after {
    transform: rotate(0);
}

.faq__answer {
    padding: 0 22px 20px 60px;
    color: var(--crypto-text-muted);
    overflow: hidden;
    transition: max-height 0.45s var(--crypto-ease), padding 0.45s var(--crypto-ease), opacity 0.35s ease;
}

.faq__answer--collapsed {
    max-height: 0 !important;
    padding-bottom: 0;
    opacity: 0;
}

/* =====================================================================
   CONVERTER
   ===================================================================== */
.converter {
    padding: 28px;
    border: 1px solid var(--crypto-border-strong);
    border-radius: var(--crypto-radius);
    background: linear-gradient(145deg, rgba(92, 31, 46, 0.55), rgba(79, 45, 84, 0.55)), var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease, transform 0.4s var(--crypto-ease);
}

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

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

.converter__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--crypto-gradient-accent);
    color: #fff;
}

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

.converter__rate strong {
    color: #ffc79a;
    font-size: 22px;
}

.converter__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 16px;
}

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

.converter__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.converter__input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: rgba(20, 20, 22, 0.75);
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.converter__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-light);
    transition: transform 0.5s var(--crypto-ease);
}

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

.converter__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.converter__note-icon {
    width: 16px;
    height: 16px;
    color: var(--crypto-olive-light);
}

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

.rate-chart:hover {
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-hover);
}

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

.rate-chart__pair {
    display: flex;
    align-items: center;
}

.rate-chart__pair .coin-logo {
    width: 34px;
    height: 34px;
    border: 2px solid var(--crypto-surface);
}

.rate-chart__pair .coin-logo + .coin-logo {
    margin-left: -10px;
}

.rate-chart__name {
    margin-left: 12px;
    font-weight: 800;
    font-size: 18px;
}

.rate-chart__value {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rate-chart__change {
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.rate-chart__change--up {
    background: rgba(169, 194, 106, 0.16);
    color: var(--crypto-up);
}

.rate-chart__change--down {
    background: rgba(224, 97, 109, 0.16);
    color: var(--crypto-down);
}

.rate-chart__tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--crypto-border);
}

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

.rate-chart__tab:hover {
    color: #fff;
}

.rate-chart__tab--active {
    background: var(--crypto-gradient-accent);
    color: #fff;
}

.rate-chart__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.rate-chart__note-icon {
    width: 16px;
    height: 16px;
    color: var(--crypto-olive-light);
}

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

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

.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: 2000;
    stroke-dashoffset: 0;
}

.rate-chart--drawn .chart__line {
    animation: crypto-draw 2.2s var(--crypto-ease) both;
}

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

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

.chart-empty__icon {
    width: 22px;
    height: 22px;
    color: var(--crypto-accent-light);
}

/* =====================================================================
   WALLETS, TIMELINE, COIN STRIP
   ===================================================================== */
.wallets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--crypto-gap);
}

.wallet-card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: linear-gradient(160deg, var(--crypto-surface-2), var(--crypto-surface));
    box-shadow: var(--crypto-shadow);
    color: var(--crypto-text-muted);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.wallet-card:first-child {
    grid-column: 1 / -1;
    border-color: var(--crypto-border-strong);
}

.wallet-card:hover {
    transform: translateY(-8px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-hover);
}

.wallet-card__icon {
    margin-bottom: 18px;
}

.wallet-card__title {
    font-size: 22px;
    color: var(--crypto-text);
}

.timeline {
    position: relative;
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 27px;
    width: 2px;
    background: linear-gradient(180deg, var(--crypto-accent), var(--crypto-grape), var(--crypto-olive));
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 28px;
}

.timeline__icon {
    position: relative;
    z-index: 1;
    background: var(--crypto-surface-2);
}

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

.timeline__item:hover .timeline__body {
    transform: translateX(8px);
    border-color: var(--crypto-border-strong);
    box-shadow: var(--crypto-shadow-hover);
}

.timeline__title {
    font-size: clamp(22px, 2.4vw, 28px);
    color: var(--crypto-text);
}

.coin-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.coin-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--crypto-border);
    border-radius: 999px;
    background: var(--crypto-surface);
    transition: transform 0.35s var(--crypto-ease), border-color 0.3s ease;
}

.coin-strip__item:hover {
    transform: translateY(-4px);
    border-color: var(--crypto-border-strong);
}

.coin-strip__icon {
    width: 18px;
    height: 18px;
    color: var(--crypto-accent-light);
}

/* =====================================================================
   CONTACTS
   ===================================================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--crypto-gap);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: linear-gradient(160deg, var(--crypto-surface-2), var(--crypto-surface));
    box-shadow: var(--crypto-shadow);
    text-decoration: none;
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

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

.contact-card__label {
    margin-top: 8px;
    color: var(--crypto-text-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-card__value {
    color: var(--crypto-text);
    font-size: 18px;
    font-weight: 800;
    word-break: break-all;
}

.support-form {
    padding: 32px;
    border: 1px solid var(--crypto-border-strong);
    border-radius: var(--crypto-radius);
    background: linear-gradient(145deg, rgba(92, 31, 46, 0.45), rgba(79, 45, 84, 0.45)), var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
}

.support-form__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.support-form__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.support-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.support-form__field {
    display: grid;
    gap: 8px;
}

.support-form__field--wide {
    grid-column: 1 / -1;
}

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

.support-form__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: rgba(20, 20, 22, 0.75);
    color: #fff;
    font: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.support-form__input--area {
    resize: vertical;
    min-height: 130px;
}

.note-card {
    display: flex;
    gap: 22px;
    padding: 32px;
    border: 1px solid var(--crypto-border-strong);
    border-radius: var(--crypto-radius);
    background: linear-gradient(135deg, rgba(92, 91, 51, 0.35), rgba(79, 45, 84, 0.35)), var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
    color: var(--crypto-text-muted);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

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

.note-card__title {
    font-size: 26px;
    color: var(--crypto-text);
}

/* =====================================================================
   POLICY PAGES
   ===================================================================== */
.policy {
    display: grid;
    gap: var(--crypto-gap);
}

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

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

.policy__block .section__title {
    font-size: clamp(22px, 2.4vw, 28px);
    color: var(--crypto-text);
}

.policy__block--media {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 28px;
    align-items: center;
}

.policy__media {
    aspect-ratio: 1 / 1;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 120px 0;
    text-align: center;
    background:
        radial-gradient(600px 360px at 50% 30%, rgba(79, 45, 84, 0.6), transparent 70%),
        var(--crypto-bg);
}

.error404__code {
    font-size: clamp(110px, 20vw, 220px);
    font-weight: 800;
    line-height: 1;
    background: var(--crypto-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: crypto-float 5s ease-in-out infinite;
}

.error404__title {
    font-size: clamp(28px, 4vw, 44px);
}

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    padding: 72px 0 28px;
    background:
        radial-gradient(700px 300px at 10% 0%, rgba(92, 31, 46, 0.5), transparent 70%),
        radial-gradient(600px 300px at 90% 100%, rgba(92, 91, 51, 0.35), transparent 70%),
        #0f0f11;
    border-top: 1px solid var(--crypto-border);
    color: var(--crypto-text-muted);
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
    gap: 48px;
}

.site-footer__identity {
    margin: 18px 0 20px;
    font-size: 15px;
}

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

.site-footer__coin .coin-logo {
    width: 30px;
    height: 30px;
    transition: transform 0.4s var(--crypto-ease);
}

.site-footer__coin:hover .coin-logo {
    transform: translateY(-4px) rotate(360deg);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 32px 24px;
}

.site-footer__title {
    margin-bottom: 14px;
    color: var(--crypto-text);
    font-weight: 800;
    font-size: 16px;
}

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

.footer-menu__link {
    color: var(--crypto-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease, padding 0.25s ease;
}

.footer-menu__link:hover {
    color: var(--crypto-accent-light);
    padding-left: 4px;
}

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

.footer-menu--contact .footer-menu__link {
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.footer-menu__icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--crypto-accent-light);
}

.site-footer__bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--crypto-border);
    text-align: center;
    font-size: 14px;
}

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

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

    .nav__link {
        padding: 10px 10px;
        font-size: 14px;
    }
}

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

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

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

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

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

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

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

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

    .nav__link {
        padding: 14px 6px;
        font-size: 16px;
    }

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

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

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

    .nav__sub {
        position: static;
        flex-basis: 100%;
        min-width: 0;
        max-height: 0;
        padding: 0 0 0 12px;
        border: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: hidden;
        transition: max-height 0.4s var(--crypto-ease), padding 0.4s ease;
    }

    .nav__item--expanded > .nav__sub {
        max-height: 700px;
        padding-bottom: 12px;
    }

    .nav__item--sub {
        border-bottom: 0;
    }

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

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

    .hero__widget {
        justify-content: center;
    }

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

    .media-frame--tall {
        aspect-ratio: 16 / 10;
    }

    .cards--3 {
        grid-template-columns: 1fr;
    }

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

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

    .hero {
        padding: 56px 0;
    }

    .cards--2,
    .wallets,
    .contact-cards,
    .policy__block--media,
    .support-form__grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .data-table th {
        white-space: normal;
    }

    .timeline::before {
        left: 23px;
    }

    .timeline__item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 16px;
    }

    .timeline__icon {
        width: 48px;
        height: 48px;
    }

    .cta {
        padding: 72px 0;
    }
}

/* =====================================================================
   ADAPTIVE — 480px
   ===================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    body {
        font-size: 15px;
    }

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

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

    .section__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .card,
    .wallet-card,
    .policy__block,
    .timeline__body,
    .converter,
    .rate-chart,
    .support-form,
    .note-card {
        padding: 22px 18px;
    }

    .note-card {
        flex-direction: column;
    }

    .timeline::before {
        display: none;
    }

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

    .faq__answer {
        padding-left: 22px;
    }

    .faq__toggle {
        padding: 18px;
    }

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

    .btn {
        width: 100%;
    }

    .rate-chart__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        font-size: 19px;
    }
}
