/*
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 — Oceanic Blue + Coral Dawn palette
   (структура и компоненты по мотивам Coinbase: белый фон, крупные заголовки,
   pill-кнопки, карточки с мягкой тенью)
   ===================================================================== */
:root {
    --crypto-ocean: #0e5a8a;
    --crypto-ocean-dark: #0a3f63;
    --crypto-ocean-deep: #072c46;
    --crypto-coral: #e4553f;
    --crypto-coral-light: #f4876c;
    --crypto-peach: #fde8df;

    --crypto-accent: var(--crypto-ocean);
    --crypto-accent-hover: var(--crypto-ocean-dark);
    --crypto-accent-soft: rgba(14, 90, 138, 0.1);
    --crypto-coral-soft: rgba(228, 85, 63, 0.12);

    --crypto-bg: #ffffff;
    --crypto-bg-alt: #fff7f3;
    --crypto-bg-cool: #f1f7fb;
    --crypto-text: #0f2233;
    --crypto-text-muted: #5a6b7b;
    --crypto-border: #e3e9ef;

    --crypto-radius: 20px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(15, 34, 51, 0.08);
    --crypto-shadow-hover: 0 22px 48px rgba(14, 90, 138, 0.18);
    --crypto-section-y: 72px;
    --crypto-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --crypto-header-h: 76px;
}

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

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

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

body.is-menu-open {
    overflow: hidden;
}

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

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

h1 {
    font-size: clamp(34px, 5vw, 56px);
}

h2 {
    font-size: clamp(26px, 3.2vw, 38px);
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

p {
    margin: 0 0 16px;
}

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

p a,
.list__text a,
td a,
.steps-list__item a {
    color: var(--crypto-coral);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

p a:hover,
.list__text a:hover,
td a:hover,
.steps-list__item a:hover {
    color: var(--crypto-ocean);
}

b,
strong {
    font-weight: 700;
    color: var(--crypto-ocean-dark);
}

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

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

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

/* =====================================================================
   BUTTONS
   ===================================================================== */
.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crypto-coral), var(--crypto-coral-light));
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(228, 85, 63, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--crypto-ease), box-shadow 0.35s var(--crypto-ease);
}

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

.button:hover,
.btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 38px rgba(228, 85, 63, 0.45);
}

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

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

.header--scrolled {
    border-color: var(--crypto-border);
    box-shadow: 0 8px 24px rgba(15, 34, 51, 0.06);
}

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

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

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

.logo__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--crypto-ocean), var(--crypto-coral));
    color: #fff;
    transition: transform 0.5s var(--crypto-ease);
}

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

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

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

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

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

.menu--header > .menu__item {
    position: relative;
}

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

.menu--header > .menu__item > .menu__link:hover,
.menu--header > .menu__item--current > .menu__link {
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
}

.menu--header > .menu__item--parent > .menu__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;
}

.menu--header > .menu__item--parent:hover > .menu__link::after,
.menu--header > .menu__item--parent:focus-within > .menu__link::after {
    transform: translateY(1px) rotate(225deg);
}

.menu--header .menu__sub--depth-1 {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 8px 16px;
    min-width: 440px;
    margin: 0;
    padding: 20px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: 0 24px 60px rgba(15, 34, 51, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.3s ease, transform 0.35s var(--crypto-ease), visibility 0.3s;
}

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

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

.menu--header .menu__link--group {
    padding: 6px 12px;
    color: var(--crypto-coral);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: default;
}

.menu--header .menu__sub--depth-2 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu--header .menu__sub .menu__link:not(.menu__link--group) {
    border-radius: 10px;
    font-weight: 500;
}

.menu--header .menu__sub .menu__link:not(.menu__link--group):hover {
    background: var(--crypto-bg-cool);
    color: var(--crypto-accent);
    transform: translateX(4px);
}

.menu--header .menu__sub .menu__link {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.menu__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: #fff;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.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[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: 72px 0 80px;
    background:
        radial-gradient(circle at 12% 20%, var(--crypto-peach) 0, transparent 45%),
        linear-gradient(180deg, #fff 0%, var(--crypto-bg-cool) 100%);
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
    opacity: 0.55;
}

.hero__blob--coral {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(244, 135, 108, 0.55), transparent 70%);
}

.hero__blob--ocean {
    width: 520px;
    height: 520px;
    left: -220px;
    bottom: -260px;
    background: radial-gradient(circle, rgba(14, 90, 138, 0.35), transparent 70%);
}

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

.hero__title {
    margin-bottom: 20px;
}

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

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    color: var(--crypto-ocean);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--crypto-shadow);
}

.hero__eyebrow .icon {
    width: 20px;
    height: 20px;
    color: var(--crypto-coral);
}

.hero__coins,
.hero__pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.hero__pair-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--crypto-coral-soft);
    color: var(--crypto-coral);
    animation: crypto-pulse 2.4s ease-in-out infinite;
}

.coin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(15, 34, 51, 0.06);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.coin::before {
    content: "$";
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    background: var(--coin-color, var(--crypto-ocean));
}

.coin:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 34, 51, 0.12);
}

.coin--usdt { --coin-color: #26a17b; }
.coin--usdc { --coin-color: #2775ca; }
.coin--dai { --coin-color: #f5ac37; }
.coin--usde { --coin-color: #1b1b1f; }
.coin--usdg { --coin-color: var(--crypto-coral); }

.hero__widget {
    display: flex;
    justify-content: center;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--crypto-border);
    box-shadow: 0 30px 70px rgba(14, 90, 138, 0.18);
    transition: transform 0.45s var(--crypto-ease), box-shadow 0.45s var(--crypto-ease);
}

.hero__widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(14, 90, 138, 0.24);
}

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

.hero__media {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 70px rgba(14, 90, 138, 0.2);
    position: relative;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(228, 85, 63, 0.18), transparent 50%, rgba(14, 90, 138, 0.25));
    pointer-events: none;
}

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

.hero__media:hover .hero__img {
    scale: 1.06;
}

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

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

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

.section__head .section__title {
    margin: 0;
}

.section__head--center {
    flex-direction: column;
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.section__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--crypto-ocean), var(--crypto-ocean-dark));
    color: #fff;
    box-shadow: 0 12px 26px rgba(14, 90, 138, 0.3);
    transition: transform 0.4s var(--crypto-ease), background 0.4s ease;
}

.section__head:hover .section__icon,
.doc-card:hover .section__icon {
    transform: rotate(-8deg) scale(1.08);
    background: linear-gradient(135deg, var(--crypto-coral), var(--crypto-coral-light));
}

.section__lead {
    max-width: 820px;
    margin: 0 auto 36px;
    text-align: center;
    color: var(--crypto-text-muted);
}

.section__after {
    max-width: 820px;
    margin: 32px auto 0;
    text-align: center;
}

.section__body {
    max-width: 980px;
}

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

.section__subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.section__subicon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--crypto-coral-soft);
    color: var(--crypto-coral);
}

.section__subicon .icon {
    width: 20px;
    height: 20px;
}

.section__actions {
    margin-top: 28px;
}

/* Split: текст + картинка */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
}

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

.split--tall {
    align-items: start;
}

.split--tall .split__media {
    position: sticky;
    top: calc(var(--crypto-header-h) + 24px);
}

.split--tall .split__frame {
    aspect-ratio: 3 / 4;
    max-height: 620px;
}

.split__media {
    position: relative;
    margin: 0;
}

.split__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--crypto-radius);
    aspect-ratio: 4 / 3;
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.45s var(--crypto-ease), transform 0.45s var(--crypto-ease);
}

.split__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 40%, rgba(7, 44, 70, 0.35));
    opacity: 0.6;
    transition: opacity 0.45s ease;
}

.split__img {
    width: 100%;
    height: 118%;
    object-fit: cover;
    transition: scale 0.9s var(--crypto-ease), filter 0.5s ease;
}

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

.split__media:hover .split__img {
    scale: 1.07;
    filter: saturate(1.15);
}

.split__media:hover .split__frame::after {
    opacity: 0.2;
}

.split__badge {
    position: absolute;
    left: -22px;
    bottom: 28px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--crypto-coral), var(--crypto-coral-light));
    color: #fff;
    box-shadow: 0 16px 32px rgba(228, 85, 63, 0.4);
    animation: crypto-float 5s ease-in-out infinite;
}

.split--reverse .split__badge {
    left: auto;
    right: -22px;
}

/* Список с галочками */
.list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.list__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: var(--crypto-radius-sm);
    background: #fff;
    border: 1px solid var(--crypto-border);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.list__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-coral-light);
    box-shadow: 0 10px 24px rgba(228, 85, 63, 0.12);
}

.list__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--crypto-coral-soft);
    color: var(--crypto-coral);
}

.list__icon .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.6;
}

/* Нумерованные шаги */
.steps-list {
    list-style: none;
    counter-reset: step;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.steps-list__item {
    counter-increment: step;
    position: relative;
    padding: 16px 18px 16px 70px;
    border-radius: var(--crypto-radius-sm);
    background: #fff;
    border: 1px solid var(--crypto-border);
    min-height: 58px;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease;
}

.steps-list__item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--crypto-ocean), var(--crypto-ocean-dark));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.3s ease;
}

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

.steps-list__item:hover::before {
    background: linear-gradient(135deg, var(--crypto-coral), var(--crypto-coral-light));
}

/* Карточки */
.cards {
    display: grid;
    gap: 24px;
}

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

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

.card {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: var(--crypto-radius);
    background: #fff;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s var(--crypto-ease), border-color 0.4s ease;
}

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

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

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

.card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
    transition: transform 0.4s var(--crypto-ease), background 0.4s ease, color 0.4s ease;
}

.card:hover .card__icon {
    transform: scale(1.1) rotate(-6deg);
    background: linear-gradient(135deg, var(--crypto-coral), var(--crypto-coral-light));
    color: #fff;
}

.card__step {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--crypto-accent-soft);
    -webkit-text-stroke: 1px rgba(14, 90, 138, 0.25);
    transition: color 0.4s ease;
}

.card:hover .card__step {
    color: var(--crypto-coral-soft);
}

.card__title {
    margin-bottom: 12px;
}

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

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

/* Таблицы */
.table-wrap {
    margin: 8px 0 24px;
    border-radius: var(--crypto-radius);
    border: 1px solid var(--crypto-border);
    background: #fff;
    box-shadow: var(--crypto-shadow);
    overflow-x: auto;
}

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

.data-table th {
    padding: 16px 20px;
    text-align: left;
    background: linear-gradient(135deg, var(--crypto-ocean), var(--crypto-ocean-dark));
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

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

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

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

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

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

.cta__box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 80px 56px;
    min-height: 360px;
    display: flex;
    align-items: center;
    isolation: isolate;
    box-shadow: 0 30px 70px rgba(7, 44, 70, 0.3);
}

.cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 124%;
    object-fit: cover;
    z-index: -2;
    transition: scale 1s var(--crypto-ease);
}

.cta__box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(7, 44, 70, 0.95) 0%, rgba(14, 90, 138, 0.82) 55%, rgba(228, 85, 63, 0.55) 100%);
}

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

.cta__content {
    max-width: 640px;
    color: #fff;
}

.cta__title {
    color: #fff;
}

.cta__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.cta__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(6px);
    animation: crypto-float 5s ease-in-out infinite;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq {
    background: var(--crypto-bg-cool);
}

.faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.faq__aside {
    position: sticky;
    top: calc(var(--crypto-header-h) + 24px);
}

.faq__frame {
    overflow: hidden;
    border-radius: var(--crypto-radius);
    aspect-ratio: 4 / 5;
    max-height: 520px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.45s var(--crypto-ease), box-shadow 0.45s var(--crypto-ease);
}

.faq__img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    transition: scale 0.9s var(--crypto-ease);
}

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

.faq__frame:hover .faq__img {
    scale: 1.07;
}

.faq__list {
    display: grid;
    gap: 14px;
}

.faq__item {
    border-radius: var(--crypto-radius-sm);
    background: #fff;
    border: 1px solid var(--crypto-border);
    box-shadow: 0 4px 14px rgba(15, 34, 51, 0.04);
    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-coral-light);
    box-shadow: var(--crypto-shadow);
}

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

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

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

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

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

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

.faq__answer {
    padding: 0 22px 6px;
    color: var(--crypto-text-muted);
    overflow: hidden;
}

/* =====================================================================
   LEGAL PAGES (doc cards)
   ===================================================================== */
.doc {
    padding: var(--crypto-section-y) 0;
    background: var(--crypto-bg-alt);
}

.doc__inner {
    display: grid;
    gap: 20px;
    max-width: 980px;
}

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

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

.doc-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.doc-card__title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
}

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

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

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

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

.post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.post-card:hover .post-card__img {
    scale: 1.08;
}

.post-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 36px 26px 26px;
}

.post-card__icon {
    position: absolute;
    top: -26px;
    left: 26px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--crypto-coral), var(--crypto-coral-light));
    color: #fff;
    box-shadow: 0 10px 22px rgba(228, 85, 63, 0.35);
}

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

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

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

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

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    color: var(--crypto-coral);
}

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

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

.posts__pagination {
    margin-top: 40px;
}

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

.posts__pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--crypto-border);
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.posts__pagination .page-numbers.current,
.posts__pagination a.page-numbers:hover {
    background: var(--crypto-ocean);
    border-color: var(--crypto-ocean);
    color: #fff;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--crypto-ocean-deep);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 64px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
}

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

.footer__mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer__mail .icon {
    width: 20px;
    height: 20px;
    color: var(--crypto-coral-light);
}

.footer__mail:hover {
    color: var(--crypto-coral-light);
}

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

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

.menu--footer {
    display: grid;
    gap: 8px;
}

.menu--footer .menu__link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.menu--footer .menu__link:hover {
    color: var(--crypto-coral-light);
    transform: translateX(4px);
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__copy {
    margin: 0;
    font-size: 14px;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 110px 0;
    text-align: center;
    background:
        radial-gradient(circle at 80% 10%, var(--crypto-peach) 0, transparent 40%),
        var(--crypto-bg-cool);
}

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

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

.error404__actions {
    margin-top: 28px;
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--crypto-ease), transform 0.8s var(--crypto-ease);
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

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

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

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

[data-parallax] {
    will-change: translate;
}

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

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

@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) {
    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: var(--crypto-header-h);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
        padding: 16px 24px 32px;
        background: #fff;
        border-top: 1px solid var(--crypto-border);
        box-shadow: 0 24px 40px rgba(15, 34, 51, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        transition: opacity 0.3s ease, transform 0.4s var(--crypto-ease), visibility 0.3s;
    }

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

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

    .menu--header .menu__link {
        padding: 14px 12px;
        border-radius: 12px;
        font-size: 17px;
    }

    .menu--header > .menu__item--parent > .menu__link {
        justify-content: space-between;
    }

    .menu--header > .menu__item--parent > .menu__link::after {
        display: none;
    }

    .menu--header > .menu__item--parent {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .menu--header > .menu__item--parent > .menu__link {
        flex: 1;
    }

    .menu__toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: var(--crypto-accent-soft);
        color: var(--crypto-accent);
        cursor: pointer;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .menu__toggle[aria-expanded="true"] {
        transform: rotate(180deg);
        background: var(--crypto-coral);
        color: #fff;
    }

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

    .menu--header .menu__sub--depth-1::before {
        display: none;
    }

    .menu--header > .menu__item--parent:hover > .menu__sub--depth-1,
    .menu--header > .menu__item--parent:focus-within > .menu__sub--depth-1 {
        transform: none;
    }

    .menu--header .menu__item--open > .menu__sub--depth-1 {
        max-height: 900px;
    }

    .hero__inner,
    .split,
    .faq__inner {
        gap: 40px;
    }

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

@media (max-width: 992px) {
    .hero__inner,
    .split,
    .faq__inner {
        grid-template-columns: 1fr;
    }

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

    .split--tall .split__media,
    .faq__aside {
        position: relative;
        top: 0;
    }

    .split--tall .split__frame {
        aspect-ratio: 16 / 10;
    }

    .faq__frame {
        aspect-ratio: 16 / 9;
        margin-top: 8px;
    }

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

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

    body {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero__widget {
        padding: 10px;
    }

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

    .split__badge {
        left: 16px;
        bottom: -22px;
    }

    .split--reverse .split__badge {
        right: 16px;
    }

    .cta__box {
        padding: 56px 28px;
    }

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

    /* Таблицы превращаются в карточки */
    .table-wrap {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        margin-bottom: 14px;
        border-radius: var(--crypto-radius-sm);
        background: #fff;
        border: 1px solid var(--crypto-border);
        box-shadow: var(--crypto-shadow);
        overflow: hidden;
    }

    .data-table td {
        border-top: 1px solid var(--crypto-border);
        padding: 12px 16px;
    }

    .data-table td:first-child {
        border-top: 0;
        background: var(--crypto-bg-cool);
    }

    .data-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--crypto-coral);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .doc-card {
        padding: 26px 22px;
    }
}

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

    h1 {
        font-size: 32px;
    }

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

    .section__head--center {
        align-items: center;
    }

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

    .card,
    .doc-card {
        padding: 26px 20px 22px;
    }

    .doc-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .button,
    .btn {
        width: 100%;
        padding: 15px 22px;
    }

    .cta__box {
        padding: 44px 20px;
        border-radius: 24px;
    }

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

    .steps-list__item {
        padding-left: 64px;
    }

    .exchange-widget {
        min-height: 440px;
    }
}
