/*
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 — Black / Burgundy / White palette
   ===================================================================== */
:root {
    --crypto-bg: #ffffff;
    --crypto-bg-soft: #f5f2f3;
    --crypto-black: #000000;
    --crypto-black-soft: #17141a;
    --crypto-accent: #6d001a;
    --crypto-accent-dark: #4a0012;
    --crypto-accent-soft: rgba(109, 0, 26, 0.08);
    --crypto-text: #111827;
    --crypto-text-muted: #6b7280;
    --crypto-border: #e5e7eb;
    --crypto-white: #ffffff;
    --crypto-radius: 14px;
    --crypto-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --crypto-shadow-hover: 0 18px 40px rgba(109, 0, 26, 0.18);
    --crypto-section-y: 20px;
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--crypto-text);
    background: var(--crypto-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    padding-left: 20px;
}

h1, h2, h3, h4 {
    color: var(--crypto-black);
    line-height: 1.25;
    margin: 0 0 16px;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }

table {
    border-collapse: collapse;
    width: 100%;
}

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

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

.section {
    padding: var(--crypto-section-y) 0;
}

.section__head {
    max-width: 760px;
    margin: 0 0 32px;
}

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

/* Links inside body text */
.entry p a,
.page-content p a,
p a {
    color: var(--crypto-accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    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 0.25s ease, color 0.25s ease;
    text-decoration: none !important;
}

.btn--primary {
    background: var(--crypto-accent);
    color: var(--crypto-white);
}

.btn--primary:hover {
    background: var(--crypto-accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--crypto-shadow-hover);
}

.btn--secondary {
    background: transparent;
    border-color: var(--crypto-black);
    color: var(--crypto-black);
}

.btn--secondary:hover {
    background: var(--crypto-black);
    color: var(--crypto-white);
    transform: translateY(-3px);
}

.btn--block {
    width: 100%;
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
    background: var(--crypto-black);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.header__logo {
    display: flex;
    align-items: center;
    color: var(--crypto-white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

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

.nav {
    flex: 1;
}

.nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav__link:hover,
.nav__item:hover > .nav__link {
    color: var(--crypto-white);
    background: rgba(109, 0, 26, 0.35);
}

.nav__item.menu-item-has-children > .nav__link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}

.nav__item.menu-item-has-children:hover > .nav__link::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.nav__submenu {
    list-style: none;
    margin: 0;
    padding: 10px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--crypto-white);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 50;
}

.nav__item:hover > .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__submenu .nav__link {
    color: var(--crypto-text);
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 500;
}

.nav__submenu .nav__link:hover {
    background: var(--crypto-accent-soft);
    color: var(--crypto-accent);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.burger__line {
    width: 20px;
    height: 2px;
    background: var(--crypto-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    background: linear-gradient(180deg, var(--crypto-black) 0%, #1c0308 140%);
    color: var(--crypto-white);
    padding: 56px 0 60px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 20%, rgba(109, 0, 26, 0.55), transparent 55%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
}

.hero__top {
    padding-right: 20px;
    margin: 0 0 28px;
    width: 60%;
}
.widget-block.widget-block--right .widget-block__frame {
    width: fit-content;
}

.hero__title {
    color: var(--crypto-white);
    font-size: 38px;
    margin-bottom: 14px;
}

.hero__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    margin-bottom: 0;
}

.hero__text + .hero__text {
    margin-top: 10px;
}

.widget-block {
    display: flex;
    align-items: stretch;
    gap: 28px;
    flex-wrap: wrap;
}

.widget-block--solo .widget-block__frame {
    margin: 0 auto;
}

.widget-block--right {
    flex-direction: row;
}

.hero__exchange {
    display: flex;
    justify-content: flex-end;
        width: 40%;
}

.widget-block__frame {
    background: var(--crypto-white);
    border-radius: var(--crypto-radius);
    padding: 14px;
    box-shadow: var(--crypto-shadow-hover);
    flex-shrink: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
        width: 100%;
}

.widget-block__frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(109, 0, 26, 0.3);
}

.widget-block__frame iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 400px;
    border: none;
    border-radius: 10px;
}

.widget-block__media {
    flex: 1;
    min-width: 260px;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    position: relative;
}

.widget-block__media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.widget-block__media:hover img {
    transform: scale(1.06);
}

/* =====================================================================
   CARDS / BENEFITS GRID
   ===================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 26px 22px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

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

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

.card__icon svg {
    width: 26px;
    height: 26px;
}

.card__title {
    font-size: 18px;
    margin-bottom: 8px;
}

.card__text {
    color: var(--crypto-text-muted);
    font-size: 15px;
    margin-bottom: 0;
}

/* Route / image cards */
.route-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.route-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 16px 18px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.route-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--crypto-shadow-hover);
    background: var(--crypto-accent-soft);
}

.route-card__coin {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crypto-black);
    color: var(--crypto-white);
    transition: transform 0.3s ease;
}

.route-card:hover .route-card__coin {
    transform: rotate(12deg) scale(1.08);
}

.route-card__coin svg {
    width: 24px;
    height: 24px;
}

.route-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.route-card__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--crypto-black);
}

.route-card__text {
    font-size: 13px;
    color: var(--crypto-text-muted);
}

/* Live reference rate cards */
.rate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rate-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 18px 20px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.rate-card__pair {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--crypto-accent);
}

.rate-card__value {
    font-size: 17px;
    font-weight: 700;
    color: var(--crypto-black);
}

/* =====================================================================
   STEPS
   ===================================================================== */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    display: grid;
    gap: 16px;
}

.steps__item {
    counter-increment: step;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 18px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.steps__item::before {
    content: counter(step);
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--crypto-accent);
    color: var(--crypto-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.steps__text {
    margin: 0;
    padding-top: 6px;
}

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

.data-table {
    min-width: 480px;
}

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

.data-table th {
    background: var(--crypto-black);
    color: var(--crypto-white);
    font-weight: 700;
}

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

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

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

.data-table a {
    color: var(--crypto-accent);
    font-weight: 600;
    text-decoration: underline;
}

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

.faq__item {
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 20px 22px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.faq__question {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--crypto-black);
}

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

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.review-card {
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 22px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-card__name {
    font-weight: 700;
    color: var(--crypto-black);
}

.review-card__rating {
    color: var(--crypto-accent);
    font-weight: 700;
    letter-spacing: 1px;
}

.review-card__text {
    color: var(--crypto-text-muted);
    margin: 0;
    font-size: 15px;
}

/* =====================================================================
   FORMS (contact / review)
   ===================================================================== */
.form {
    display: grid;
    gap: 16px;
    max-width: 640px;
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    box-shadow: var(--crypto-shadow);
}

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

.form__label {
    font-weight: 600;
    font-size: 14px;
    color: var(--crypto-black);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--crypto-border);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--crypto-white);
    color: var(--crypto-text);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--crypto-accent);
    box-shadow: 0 0 0 3px var(--crypto-accent-soft);
}

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

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

.form__message {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.form__message--success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.form__message--error {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

/* =====================================================================
   CHART COMPONENT
   ===================================================================== */
.chart {
    background: var(--crypto-white);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 18px;
    box-shadow: var(--crypto-shadow);
}

.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 {
    fill: var(--crypto-text-muted);
    font-size: 11px;
    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: var(--crypto-white);
    stroke-width: 2;
}

.chart-empty {
    color: var(--crypto-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 30px 10px;
    margin: 0;
}

/* CSS-only period tabs (no JS required) */
.chart-tabs {
    position: relative;
}

.chart-tabs__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chart-tabs__nav {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.chart-tabs__label {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--crypto-border);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--crypto-text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chart-tabs__label:hover {
    border-color: var(--crypto-accent);
    color: var(--crypto-accent);
}

.chart-tabs__panel {
    display: none;
}

.chart-tabs__input:checked + .chart-tabs__panel-wrap .chart-tabs__panel {
    display: block;
}

/* fallback: pair each input with its label+panel using generic sibling selectors */
.chart-tabs__input:nth-of-type(1):checked ~ .chart-tabs__nav .chart-tabs__label:nth-of-type(1),
.chart-tabs__input:nth-of-type(2):checked ~ .chart-tabs__nav .chart-tabs__label:nth-of-type(2),
.chart-tabs__input:nth-of-type(3):checked ~ .chart-tabs__nav .chart-tabs__label:nth-of-type(3),
.chart-tabs__input:nth-of-type(4):checked ~ .chart-tabs__nav .chart-tabs__label:nth-of-type(4) {
    background: var(--crypto-accent);
    color: var(--crypto-white);
    border-color: var(--crypto-accent);
}

.chart-tabs__input:nth-of-type(1):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-of-type(1),
.chart-tabs__input:nth-of-type(2):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-of-type(2),
.chart-tabs__input:nth-of-type(3):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-of-type(3),
.chart-tabs__input:nth-of-type(4):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-of-type(4) {
    display: block;
}

.chart-tabs__panels .chart-tabs__panel {
    display: none;
}

/* =====================================================================
   CTA BANNER (reverse route)
   ===================================================================== */
.cta-banner {
    background: var(--crypto-black);
    color: var(--crypto-white);
    border-radius: var(--crypto-radius);
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(109, 0, 26, 0.6), transparent 60%);
}

.cta-banner__text {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-banner__link {
    position: relative;
    z-index: 1;
}

.cta-banner__text a {
    color: var(--crypto-white);
    text-decoration: underline;
    font-weight: 700;
}

.cta-banner__text a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* =====================================================================
   PAGE / ARTICLE CONTENT WRAPPER
   ===================================================================== */
.page-content {
    padding: 36px 0 10px;
}

.page-content > .container > * + * {
    margin-top: var(--crypto-section-y);
}

.page-content h2 {
    margin-top: 8px;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 100px 0;
    text-align: center;
    background: var(--crypto-bg-soft);
}

.error404__code {
    font-size: 120px;
    font-weight: 800;
    color: var(--crypto-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.error404__title {
    margin-bottom: 12px;
}

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--crypto-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 24px;
    margin-top: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col-title {
    color: var(--crypto-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer__list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__list a:hover {
    color: var(--crypto-white);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    font-size: 13px;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer__bottom a:hover {
    color: var(--crypto-white);
}

/* =====================================================================
   SCROLL REVEAL ANIMATION
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--scale {
    transform: translateY(0) scale(0.92);
}

.reveal--scale.is-visible {
    transform: translateY(0) scale(1);
}

/* stagger helper: nth-child delay for grids */
.cards .card:nth-child(2),
.route-cards .route-card:nth-child(2),
.steps__item:nth-child(2) { transition-delay: 0.06s; }
.cards .card:nth-child(3),
.route-cards .route-card:nth-child(3),
.steps__item:nth-child(3) { transition-delay: 0.12s; }
.cards .card:nth-child(4),
.route-cards .route-card:nth-child(4),
.steps__item:nth-child(4) { transition-delay: 0.18s; }
.cards .card:nth-child(5),
.route-cards .route-card:nth-child(5),
.steps__item:nth-child(5) { transition-delay: 0.24s; }

/* Parallax media */
.parallax {
    will-change: transform;
}

/* =====================================================================
   RESPONSIVE — tablet 768px
   ===================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }

    .hero__title { font-size: 28px; }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--crypto-black);
        padding: 20px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 90;
    }

    .nav.is-open {
        transform: translateX(0);
    }

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

    .nav__link {
        padding: 13px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        justify-content: space-between;
    }

    .nav__submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        display: none;
        padding: 4px 0 4px 14px;
    }

    .nav__item.is-expanded > .nav__submenu {
        display: block;
    }

    .nav__submenu .nav__link {
        color: rgba(255, 255, 255, 0.75);
    }

    .burger {
        display: flex;
    }

    .widget-block,
    .widget-block--right {
        flex-direction: column;
    }

    .hero__exchange {
        justify-content: center;
    }

    .widget-block__frame iframe {
        max-width: 100%;
    }

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

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero__inner {
        flex-direction: column;
        align-items: center;
    }
    .hero__top {
        width: 100%;
    }
    .hero__exchange {
        width: 100%;
        max-width: 500px;
    }
}

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

    h1 { font-size: 25px; }
    h2 { font-size: 21px; }

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

    .error404__code { font-size: 80px; }

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

    .steps__item {
        flex-direction: column;
        gap: 10px;
    }

    .form {
        padding: 20px;
    }
}
