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

/* =====================================================================
   ROOT VARIABLES — палитра Basalt Black / Tangerine / Leaf Green / Sea Grey
   ===================================================================== */
:root {
    --crypto-accent: #f58f1f;
    --crypto-accent-dark: #c96f0a;
    --crypto-accent-soft: rgba(245, 143, 31, 0.14);
    --crypto-dark: #363636;
    --crypto-dark-deep: #242424;
    --crypto-green: #457534;
    --crypto-green-dark: #355a28;
    --crypto-green-soft: rgba(69, 117, 52, 0.12);
    --crypto-grey: #7d8285;
    --crypto-bg: #ffffff;
    --crypto-bg-alt: #f5f5f3;
    --crypto-surface: #ffffff;
    --crypto-text: #363636;
    --crypto-text-muted: #61666a;
    --crypto-border: #e3e4e5;
    --crypto-shadow: 0 12px 32px rgba(54, 54, 54, 0.08);
    --crypto-shadow-hover: 0 22px 46px rgba(54, 54, 54, 0.16);
    --crypto-radius: 16px;
    --crypto-section-y: 20px;
    --crypto-container: 1180px;
    --crypto-header-h: 72px;
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--crypto-bg);
    color: var(--crypto-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.25; color: var(--crypto-dark); }
h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; color: var(--crypto-text); }
table { border-collapse: collapse; width: 100%; }
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    background: var(--crypto-accent-soft);
    color: var(--crypto-dark);
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-all;
}
[id] { scroll-margin-top: calc(var(--crypto-header-h) + 16px); }

.container { max-width: var(--crypto-container); margin: 0 auto; padding: 0 20px; }

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

/* Ссылки внутри текстовых блоков */
p a {
    color: var(--crypto-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}
p a:hover { color: var(--crypto-accent-dark); }

/* Кнопки */
.btn, .button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn svg, .button svg { width: 18px; height: 18px; }
.btn--primary, .button {
    background: var(--crypto-accent);
    color: var(--crypto-dark);
    box-shadow: 0 10px 24px rgba(245, 143, 31, 0.32);
}
.btn--primary::after, .button::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn--primary:hover, .button:hover {
    background: #ff9d33;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(245, 143, 31, 0.42);
}
.btn--primary:hover::after, .button:hover::after { left: 120%; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--crypto-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--crypto-header-h);
}
.site-header__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--crypto-dark); }
.site-header__logo img { height: 36px; width: auto; }
.site-header__logo-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--crypto-dark);
    color: var(--crypto-accent);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.4s ease;
}
.site-header__logo-mark svg { width: 22px; height: 22px; }
.site-header__logo:hover .site-header__logo-mark { transform: rotate(-12deg) scale(1.08); }
.site-header__logo-text span { color: var(--crypto-accent-dark); }

.site-header__nav-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-header__nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--crypto-dark);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}
.site-header__nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--crypto-accent);
    transition: width 0.25s ease;
}
.site-header__nav-link:hover { color: var(--crypto-accent-dark); }
.site-header__nav-link:hover::after { width: 100%; }

.site-header__right { display: flex; align-items: center; gap: 14px; }

/* Выпадающий список языков */
.site-header__langs { position: relative; }
.site-header__langs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--crypto-border);
    background: var(--crypto-surface);
    color: var(--crypto-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header__langs-toggle svg { width: 16px; height: 16px; color: var(--crypto-green); }
.site-header__langs-toggle:hover, .site-header__langs.is-open .site-header__langs-toggle { border-color: var(--crypto-accent); background: var(--crypto-accent-soft); }
.site-header__langs-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    padding: 8px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.site-header__langs:hover .site-header__langs-list,
.site-header__langs:focus-within .site-header__langs-list,
.site-header__langs.is-open .site-header__langs-list { opacity: 1; visibility: visible; transform: translateY(0); }
.site-header__langs-link { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease; }
.site-header__langs-link:hover { background: var(--crypto-accent-soft); color: var(--crypto-accent-dark); padding-left: 16px; }

.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.site-header__burger span { display: block; width: 24px; height: 2px; background: var(--crypto-dark); transition: transform 0.25s ease, opacity 0.25s ease; }
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.crypto-page__mobile-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(36, 36, 36, 0.6);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.crypto-page__mobile-menu-overlay--open { opacity: 1; }

.crypto-page__mobile-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(320px, 85vw);
    background: var(--crypto-surface);
    z-index: 201;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15);
}
.crypto-page__mobile-menu--open { transform: translateX(0); }
.crypto-page__mobile-menu-close {
    margin-left: auto;
    display: block;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--crypto-bg-alt);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.crypto-page__mobile-menu-close:hover { transform: rotate(90deg); background: var(--crypto-accent-soft); }
.crypto-page__mobile-menu-list { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.crypto-page__mobile-menu-list a {
    display: block;
    padding: 12px 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--crypto-dark);
    border-bottom: 1px solid var(--crypto-border);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.crypto-page__mobile-menu-list a:hover { color: var(--crypto-accent-dark); padding-left: 14px; }
.crypto-page__mobile-menu-title { margin: 24px 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--crypto-text-muted); }
.crypto-page__mobile-menu-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.crypto-page__mobile-menu-langs a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--crypto-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--crypto-text-muted);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.crypto-page__mobile-menu-langs a:hover { color: var(--crypto-accent-dark); border-color: var(--crypto-accent); }

/* =====================================================================
   ОБЩИЕ СЕКЦИИ И СЕТКИ
   ===================================================================== */
.section { padding: calc(var(--crypto-section-y) * 3) 0; }
.section--alt { background: var(--crypto-bg-alt); }
.section__head { max-width: 760px; margin: 0 auto calc(var(--crypto-section-y) * 2); text-align: center; }
.section__head p { color: var(--crypto-text-muted); }
.section__head h2::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-green));
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split--top { margin-top: calc(var(--crypto-section-y) * 1.5); }
.split__content--stack { display: flex; flex-direction: column; gap: var(--crypto-section-y); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--crypto-section-y) * 4) 0 calc(var(--crypto-section-y) * 3.5);
    background: linear-gradient(135deg, var(--crypto-dark-deep) 0%, var(--crypto-dark) 60%, #2d3a28 100%);
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: hero-float 12s ease-in-out infinite alternate;
}
.hero::before { width: 420px; height: 420px; top: -140px; left: -100px; background: rgba(245, 143, 31, 0.32); }
.hero::after { width: 360px; height: 360px; bottom: -160px; right: 10%; background: rgba(69, 117, 52, 0.4); animation-delay: -6s; }
@keyframes hero-float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(40px, 30px) scale(1.12); }
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__content h1 { color: #fff; }
.hero__content p { font-size: 18px; color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.hero__widget { justify-self: end; width: 100%; max-width: 520px; }
.exchange-widget {
    border-radius: var(--crypto-radius);
    overflow: hidden;
    background: var(--crypto-surface);
    padding: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(245, 143, 31, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exchange-widget:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.exchange-widget iframe { display: block; width: 100%; border: 0; border-radius: 10px; }

/* Шапка внутренних страниц */
.page-hero { background: linear-gradient(180deg, var(--crypto-bg-alt) 0%, var(--crypto-bg) 100%); }
.page-hero h1 { position: relative; padding-left: 18px; }
.page-hero h1::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 4px; background: var(--crypto-accent); }

/* =====================================================================
   КАРТОЧКИ / ЗАМЕТКИ / ШАГИ / CTA
   ===================================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    border-radius: var(--crypto-radius) var(--crypto-radius) 0 0;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--crypto-shadow-hover); border-color: rgba(245, 143, 31, 0.4); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 18px; }
.card p { color: var(--crypto-text-muted); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.card--row { display: flex; gap: 18px; align-items: flex-start; }
.card--row .card__icon { flex: none; margin-bottom: 0; }

.card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.card__icon--green { background: var(--crypto-green-soft); color: var(--crypto-green); }
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.1) rotate(-6deg); background: var(--crypto-accent); color: var(--crypto-dark); }
.card:hover .card__icon--green { background: var(--crypto-green); color: #fff; }

.note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-left: 4px solid var(--crypto-accent);
    border-radius: var(--crypto-radius);
    padding: 20px 22px;
    margin-top: calc(var(--crypto-section-y) * 1.5);
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.split .note, .split__content .note { margin-top: 0; }
.note:hover { transform: translateY(-4px); box-shadow: var(--crypto-shadow-hover); }
.note p { margin: 0; color: var(--crypto-text-muted); }
.note__icon {
    flex: none;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent-dark);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
.note__icon--green { background: var(--crypto-green-soft); color: var(--crypto-green); }
.note:hover .note__icon { transform: rotate(-8deg) scale(1.08); }
.note__icon svg { width: 22px; height: 22px; }

.media-card { border-radius: var(--crypto-radius); overflow: hidden; box-shadow: var(--crypto-shadow); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.media-card:hover { box-shadow: var(--crypto-shadow-hover); transform: translateY(-4px); }
.media-card__img { height: 340px; overflow: hidden; }
.media-card__img--short { height: 240px; }
.media-card__img--tall { height: 420px; }
.media-card__img img { width: 100%; height: 115%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; }
.media-card:hover .media-card__img img { transform: scale(1.08); filter: saturate(1.15); }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.step {
    counter-increment: step;
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 20px 22px;
    font-weight: 600;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step::before {
    content: counter(step);
    flex: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--crypto-accent);
    color: var(--crypto-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.step:hover { transform: translateX(6px); box-shadow: var(--crypto-shadow-hover); border-color: rgba(69, 117, 52, 0.45); }
.step:hover::before { transform: scale(1.1); background: var(--crypto-green); color: #fff; }

.cta {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
    border-radius: calc(var(--crypto-radius) + 4px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--crypto-dark-deep), var(--crypto-dark));
    box-shadow: var(--crypto-shadow-hover);
}
.cta__content { padding: 44px; }
.cta__content h2 { color: #fff; }
.cta__content p { color: rgba(255, 255, 255, 0.8); margin-bottom: 26px; }
.cta__img { min-height: 280px; overflow: hidden; }
.cta__img img { width: 100%; height: 115%; object-fit: cover; transition: transform 0.6s ease; }
.cta:hover .cta__img img { transform: scale(1.08) rotate(1deg); }

.contract code { display: inline-block; margin-top: 4px; }

/* =====================================================================
   ТАБЛИЦЫ
   ===================================================================== */
.data-table-wrap { overflow-x: auto; border-radius: var(--crypto-radius); box-shadow: var(--crypto-shadow); border: 1px solid var(--crypto-border); }
.data-table { background: var(--crypto-surface); min-width: 560px; }
.data-table th, .data-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--crypto-border); }
.data-table thead th { background: var(--crypto-dark); color: #fff; font-weight: 700; }
.data-table thead th:first-child { box-shadow: inset 4px 0 0 var(--crypto-accent); }
.data-table td:first-child { font-weight: 700; color: var(--crypto-dark); }
.data-table tbody tr { transition: background-color 0.2s ease; }
.data-table tbody tr:hover { background: var(--crypto-accent-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* =====================================================================
   ГРАФИК КУРСА (rate + chart)
   ===================================================================== */
.rate { background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 28px; box-shadow: var(--crypto-shadow); transition: box-shadow 0.3s ease; }
.rate:hover { box-shadow: var(--crypto-shadow-hover); }
.rate__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 20px; }
.rate__price-wrap { display: flex; flex-direction: column; }
.rate__ticker { font-size: 13px; font-weight: 700; color: var(--crypto-text-muted); letter-spacing: 0.04em; }
.rate__price { font-size: 32px; font-weight: 800; color: var(--crypto-dark); line-height: 1.1; }
.rate__changes { display: flex; flex-wrap: wrap; gap: 8px; }
.rate__change { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.rate__change-label { opacity: 0.75; font-weight: 600; }
.rate__change--up { color: var(--crypto-green-dark); background: var(--crypto-green-soft); }
.rate__change--down { color: #b3261e; background: rgba(179, 38, 30, 0.1); }
.rate__updated { margin-left: auto; font-size: 13px; color: var(--crypto-text-muted); }

.rate__tabs { display: flex; flex-wrap: wrap; }
.rate__tab-input { position: absolute; opacity: 0; pointer-events: none; }
.rate__tab-label {
    order: -1;
    padding: 8px 18px;
    margin: 0 8px 8px 0;
    border-radius: 999px;
    background: var(--crypto-bg-alt);
    color: var(--crypto-text-muted);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rate__tab-label:hover { transform: translateY(-2px); color: var(--crypto-dark); }
.rate__tab-input:checked + .rate__tab-label { background: var(--crypto-accent); color: var(--crypto-dark); }
.rate__tab-input:focus-visible + .rate__tab-label { outline: 2px solid var(--crypto-green); outline-offset: 2px; }
.rate__panel { display: none; width: 100%; margin-top: 14px; }
.rate__tab-input:checked + .rate__tab-label + .rate__panel { display: block; animation: rate-fade 0.4s ease; }
@keyframes rate-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rate__range { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.rate__range-item { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--crypto-bg-alt); }
.rate__range-item--high { color: var(--crypto-green-dark); }
.rate__range-item--low { color: var(--crypto-accent-dark); }

.chart { width: 100%; }
.chart__svg { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--crypto-border); stroke-width: 1; }
.chart__grid--v { stroke-dasharray: 4 4; }
.chart__label { font-size: 11px; fill: var(--crypto-text-muted); font-family: inherit; }
.chart__area { fill: var(--crypto-accent-soft); stroke: none; }
.chart__line { fill: none; stroke: var(--crypto-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--crypto-accent); stroke: #fff; stroke-width: 2; }
.chart-empty { text-align: center; color: var(--crypto-text-muted); padding: 32px 0; margin: 0; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq__item { display: flex; gap: 16px; align-items: flex-start; background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 22px 24px; box-shadow: var(--crypto-shadow); transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease; }
.faq__item:hover { box-shadow: var(--crypto-shadow-hover); transform: translateY(-4px); border-color: rgba(245, 143, 31, 0.4); }
.faq__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--crypto-green-soft); color: var(--crypto-green); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.faq__icon svg { width: 20px; height: 20px; }
.faq__item:hover .faq__icon { transform: scale(1.1); background: var(--crypto-green); color: #fff; }
.faq__item h3 { margin-bottom: 8px; font-size: 17px; }
.faq__item p { margin: 0; color: var(--crypto-text-muted); }

/* =====================================================================
   СТРАНИЦЫ ПОЛИТИК
   ===================================================================== */
.policy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.policy__item { display: flex; gap: 18px; align-items: flex-start; background: var(--crypto-surface); border: 1px solid var(--crypto-border); border-radius: var(--crypto-radius); padding: 26px; box-shadow: var(--crypto-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.policy__item:hover { transform: translateY(-5px); box-shadow: var(--crypto-shadow-hover); border-color: rgba(245, 143, 31, 0.4); }
.policy__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--crypto-accent-soft); color: var(--crypto-accent-dark); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.policy__icon--green { background: var(--crypto-green-soft); color: var(--crypto-green); }
.policy__icon svg { width: 24px; height: 24px; }
.policy__item:hover .policy__icon { transform: rotate(-8deg) scale(1.1); background: var(--crypto-accent); color: var(--crypto-dark); }
.policy__item:hover .policy__icon--green { background: var(--crypto-green); color: #fff; }
.policy__body h2 { font-size: 21px; margin-bottom: 12px; }
.policy__body p { color: var(--crypto-text-muted); }
.policy__body p:last-child { margin-bottom: 0; }
.policy__list { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.policy__list li { position: relative; padding-left: 26px; color: var(--crypto-text); }
.policy__list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--crypto-accent); transform: rotate(45deg); }

/* =====================================================================
   ФУТЕР
   ===================================================================== */
.site-footer { background: var(--crypto-dark-deep); color: rgba(255, 255, 255, 0.82); border-top: 4px solid var(--crypto-accent); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: calc(var(--crypto-section-y) * 3) 20px calc(var(--crypto-section-y) * 2); }
.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 16px; }
.site-footer__logo .site-header__logo-mark { background: var(--crypto-accent); color: var(--crypto-dark); }
.site-footer__logo .site-header__logo-text span { color: var(--crypto-accent); }
.site-footer__identity { color: rgba(255, 255, 255, 0.66); font-size: 14px; max-width: 380px; }
.site-footer__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.site-footer__link { color: rgba(255, 255, 255, 0.75); font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; }
.site-footer__link:hover { color: var(--crypto-accent); padding-left: 4px; }
.site-footer__item--mail .site-footer__link { color: var(--crypto-accent); font-weight: 700; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 20px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* =====================================================================
   REVEAL / SCROLL ANIMATIONS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--parallax img { will-change: transform; }

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

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper { padding: calc(var(--crypto-section-y) * 5) 0; text-align: center; }
.error404__code { font-size: clamp(80px, 16vw, 160px); font-weight: 900; color: var(--crypto-accent); line-height: 1; }
.error404__title { margin-top: 8px; }
.error404__text { color: var(--crypto-text-muted); max-width: 420px; margin: 0 auto 24px; }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1080px) {
    .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .site-header__nav-list { gap: 16px; }
}

@media (max-width: 960px) {
    .site-header__nav, .site-header__langs { display: none; }
    .site-header__burger { display: flex; }
}

@media (max-width: 768px) {
    :root { --crypto-header-h: 64px; }
    .hero__grid, .split, .cta { grid-template-columns: 1fr; }
    .hero__widget { justify-self: center; }
    .split { gap: 28px; }
    .faq, .policy { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: calc(var(--crypto-section-y) * 2); }
    .section { padding: calc(var(--crypto-section-y) * 2) 0; }
    .media-card__img, .media-card__img--tall { height: 260px; }
    .cta__content { padding: 32px 24px; }
    .rate__updated { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .cards-grid--4 { grid-template-columns: 1fr; }
    .btn, .button { width: 100%; }
    .card, .faq__item, .policy__item, .rate { padding: 20px; }
    .card--row, .policy__item { flex-direction: column; }
    .site-footer__list { grid-template-columns: 1fr; }
    .data-table th, .data-table td { padding: 10px 12px; font-size: 14px; }
    .rate__price { font-size: 26px; }
    .exchange-widget { padding: 6px; }
}
