/*
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
*/

/* =====================================================================
   Variables
   ===================================================================== */
:root {
    --bg: #ffffff;
    --text: #000000;
    --header-bg: #000000;
    --header-text: #ffffff;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --border: #000000;
    --card-1: #0F4C45;
    --card-2: #A6461F;
    --card-3: #FF8C1C;
    --card-4: #FFB31F;
    --card-5: #E2552A;
    --card-text: #ffffff;
    --card-4-text: #000000;
    --section-bg-alt: #f5f5f5;
    --crypto-section-y: 64px;
    --container-max: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
    --tr: 0.28s ease;
    --shadow-card: 0 4px 18px rgba(0,0,0,0.12);
    --shadow-card-hover: 0 12px 36px rgba(0,0,0,0.22);
}

/* =====================================================================
   Reset & Base
   ===================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

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

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

ul, ol {
    list-style: none;
}

/* =====================================================================
   Container
   ===================================================================== */
.crypto-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border);
}

.site-header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 20px;
}

/* Logo */
.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo a,
.site-header__logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header-text);
    text-decoration: none;
}

.site-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-header__logo .custom-logo-link img {
    height: 42px;
    width: auto;
}

.site-header__logo-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.site-header__logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* Navigation */
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu > .menu-item > a {
    display: block;
    padding: 8px 13px;
    color: var(--header-text);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background var(--tr), color var(--tr);
    white-space: nowrap;
    line-height: 1.3;
}

.site-header__menu > .menu-item > a:hover,
.site-header__menu > .menu-item.current-menu-item > a,
.site-header__menu > .menu-item.current-menu-ancestor > a {
    background: var(--header-text);
    color: var(--header-bg);
}

/* Dropdown */
.site-header__menu .menu-item-has-children {
    position: relative;
}

.site-header__menu .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.72em;
    opacity: 0.8;
}

.site-header__menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--header-bg);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.site-header__menu .menu-item-has-children:hover > .sub-menu,
.site-header__menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__menu .sub-menu .menu-item > a {
    display: block;
    padding: 9px 12px;
    color: var(--header-text);
    font-size: 0.88rem;
    border-radius: 5px;
    transition: background var(--tr);
    opacity: 0.85;
}

.site-header__menu .sub-menu .menu-item > a:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1;
}

/* Burger button */
.site-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.site-header__burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--header-text);
    border-radius: 2px;
    transition: transform var(--tr), opacity var(--tr);
}

.site-header__burger.is-active .site-header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__burger.is-active .site-header__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.site-header__burger.is-active .site-header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   Site Main
   ===================================================================== */
.site-main {
    min-height: 60vh;
}

/* =====================================================================
   Hero Section
   ===================================================================== */
.crypto-hero {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 72px 0 52px;
}

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

.crypto-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
    max-width: 820px;
    letter-spacing: -0.5px;
}

.crypto-hero__lead {
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 740px;
    opacity: 0.88;
}

.crypto-hero__lead a {
    color: var(--card-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.crypto-hero__lead a:hover {
    color: var(--card-4);
}

.crypto-hero__widget-intro {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 720px;
    opacity: 0.85;
}

.crypto-hero__after-widget {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 20px 0 22px;
    opacity: 0.82;
}

.crypto-hero__after-widget a {
    color: var(--card-3);
    text-decoration: underline;
}

.crypto-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* Hero two-column: text left + widget right */
.crypto-hero__inner {
    display: grid;
    grid-template-columns: 1fr 516px;
    gap: 48px;
    align-items: start;
}

.crypto-hero__content {
    display: flex;
    flex-direction: column;
}

.crypto-hero__widget-col .crypto-widget__wrap {
    position: sticky;
    top: 86px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow var(--tr);
}

.crypto-hero__widget-col .crypto-widget__wrap:hover {
    box-shadow: 0 0 32px rgba(255,140,28,0.2);
}

@media (max-width: 1100px) {
    .crypto-hero__inner {
        grid-template-columns: 1fr 460px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .crypto-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .crypto-hero__widget-col .crypto-widget__wrap {
        position: static;
    }

    .crypto-hero__widget-col {
        display: flex;
        justify-content: center;
    }
}

/* =====================================================================
   Widget Section
   ===================================================================== */
.crypto-widget {
    background: var(--header-bg);
    padding: 32px 0;
    border-bottom: 2px solid var(--border);
}

.crypto-widget__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.crypto-widget__wrap {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    transition: box-shadow var(--tr);
}

.crypto-widget__wrap:hover {
    box-shadow: 0 0 32px rgba(255,140,28,0.25);
}

.crypto-widget__wrap iframe {
    display: block;
    border-radius: 6px;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.crypto-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--tr), color var(--tr), transform var(--tr), box-shadow var(--tr);
    border: 2px solid var(--border);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.crypto-btn--primary {
    background: var(--header-text);
    color: var(--header-bg);
    border-color: var(--header-text);
}

.crypto-btn--primary:hover {
    background: transparent;
    color: var(--header-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255,255,255,0.15);
}

.crypto-btn--outline {
    background: transparent;
    color: var(--header-text);
    border-color: rgba(255,255,255,0.5);
}

.crypto-btn--outline:hover {
    background: var(--header-text);
    color: var(--header-bg);
    border-color: var(--header-text);
    transform: translateY(-2px);
}

.crypto-btn--dark {
    background: var(--header-bg);
    color: var(--header-text);
    border-color: var(--header-bg);
}

.crypto-btn--dark:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* =====================================================================
   Content Sections
   ===================================================================== */
.crypto-section {
    padding: var(--crypto-section-y) 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

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

.crypto-section--dark {
    background: var(--header-bg);
    color: var(--header-text);
}

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

.crypto-section__title {
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.22;
    padding-left: 18px;
    border-left: 4px solid var(--border);
    letter-spacing: -0.2px;
}

.crypto-section--dark .crypto-section__title {
    border-left-color: var(--card-3);
}

.crypto-section__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    margin: 32px 0 14px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.crypto-section__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 840px;
}

.crypto-section__text a {
    color: var(--card-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.crypto-section__text a:hover {
    color: var(--card-5);
}

/* =====================================================================
   See-also link block
   ===================================================================== */
.crypto-seealso {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.crypto-seealso__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.55;
    white-space: nowrap;
}

.crypto-seealso__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--header-bg);
    color: var(--header-text);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: background var(--tr), color var(--tr), transform var(--tr);
}

.crypto-seealso__link:hover {
    background: #1a1a1a;
    transform: translateX(3px);
}

.crypto-seealso__link::after {
    content: '→';
    font-size: 0.85em;
}

/* =====================================================================
   Bullet list
   ===================================================================== */
.crypto-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.crypto-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.65;
    padding: 2px 0;
}

.crypto-list li::before {
    content: '▪';
    flex-shrink: 0;
    font-size: 1em;
    margin-top: 3px;
    color: var(--card-2);
}

/* Mistakes list (X prefix) */
.crypto-list--mistakes li::before {
    content: '—';
    color: var(--card-5);
    font-weight: 700;
}

/* =====================================================================
   Checklist
   ===================================================================== */
.crypto-checklist {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.crypto-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 6px;
    background: #fff;
    transition: background var(--tr), border-color var(--tr);
}

.crypto-checklist li:hover {
    background: #f8f8f8;
    border-color: rgba(0,0,0,0.18);
}

.crypto-checklist li::before {
    content: '✓';
    color: var(--card-1);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================================
   Cards grid
   ===================================================================== */
.crypto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.crypto-card {
    background: var(--card-1);
    color: var(--card-text);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    border: 2px solid transparent;
    transition: transform var(--tr), box-shadow var(--tr);
    position: relative;
    overflow: hidden;
}

.crypto-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.crypto-card:nth-child(5n+1) { background: var(--card-1); }
.crypto-card:nth-child(5n+2) { background: var(--card-2); }
.crypto-card:nth-child(5n+3) { background: var(--card-3); }
.crypto-card:nth-child(5n+4) { background: var(--card-4); color: var(--card-4-text); }
.crypto-card:nth-child(5n+5) { background: var(--card-5); }

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

.crypto-card__icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.crypto-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.crypto-card__text {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.92;
}

/* =====================================================================
   Country cards
   ===================================================================== */
.crypto-country-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.crypto-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--card-1);
    color: var(--card-text);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    border: 2px solid transparent;
    text-align: center;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: transform var(--tr), box-shadow var(--tr);
    text-decoration: none;
}

.crypto-country-card:nth-child(5n+1) { background: var(--card-1); color: var(--card-text); }
.crypto-country-card:nth-child(5n+2) { background: var(--card-2); color: var(--card-text); }
.crypto-country-card:nth-child(5n+3) { background: var(--card-3); color: var(--card-text); }
.crypto-country-card:nth-child(5n+4) { background: var(--card-4); color: var(--card-4-text); }
.crypto-country-card:nth-child(5n+5) { background: var(--card-5); color: var(--card-text); }

.crypto-country-card__flag {
    font-size: 2.4rem;
    line-height: 1;
}

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

/* =====================================================================
   Steps
   ===================================================================== */
.crypto-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 26px;
}

.crypto-step {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--tr), transform var(--tr);
    background: #fff;
}

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

.crypto-step__num {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0,0,0,0.12);
    flex-shrink: 0;
    min-width: 44px;
}

.crypto-step__body {}

.crypto-step__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.crypto-step__body p {
    font-size: 0.97rem;
    line-height: 1.72;
    margin-bottom: 10px;
}

.crypto-step__body p:last-child {
    margin-bottom: 0;
}

/* =====================================================================
   Table
   ===================================================================== */
.crypto-table-wrap {
    overflow-x: auto;
    margin: 22px 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.crypto-table th,
.crypto-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: top;
}

.crypto-table thead th {
    background: var(--header-bg);
    color: var(--header-text);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.crypto-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}
.crypto-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

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

.crypto-table tbody tr:hover td {
    background: #f7f7f7;
}

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.crypto-faq {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crypto-faq__item {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.crypto-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.97rem;
    background: #fff;
    user-select: none;
    transition: background var(--tr), color var(--tr);
    gap: 16px;
    list-style: none;
    line-height: 1.4;
}

.crypto-faq__question:hover {
    background: #f5f5f5;
}

.crypto-faq__item.is-open .crypto-faq__question {
    background: var(--header-bg);
    color: var(--header-text);
}

.crypto-faq__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform var(--tr);
    font-style: normal;
}

.crypto-faq__item.is-open .crypto-faq__icon {
    transform: rotate(45deg);
}

.crypto-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s ease, padding var(--tr);
    padding: 0 20px;
    font-size: 0.95rem;
    line-height: 1.72;
    color: #222;
}

.crypto-faq__item.is-open .crypto-faq__answer {
    max-height: 800px;
    padding: 16px 20px 20px;
}

/* =====================================================================
   CTA Section
   ===================================================================== */
.crypto-cta {
    background: var(--header-bg);
    color: var(--header-text);
    padding: var(--crypto-section-y) 0;
}

.crypto-cta__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.crypto-cta__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -0.2px;
}

/* =====================================================================
   About / Contact page
   ===================================================================== */
.crypto-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    margin: 18px 0;
    transition: background var(--tr), color var(--tr);
}

.crypto-contact-email:hover {
    background: var(--header-bg);
    color: var(--header-text);
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 2px solid #1a1a1a;
}

.site-footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    padding: 52px 0 42px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.42);
    margin-bottom: 18px;
}

.site-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__menu a {
    color: var(--footer-text);
    font-size: 0.88rem;
    line-height: 1.4;
    opacity: 0.72;
    transition: opacity var(--tr);
    display: block;
}

.site-footer__menu a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__bottom {
    padding: 26px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__copyright {
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0.9;
}

.site-footer__disclaimer {
    font-size: 0.77rem;
    line-height: 1.65;
    opacity: 0.48;
    max-width: 820px;
}

/* =====================================================================
   404 Page
   ===================================================================== */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 62vh;
    padding: 60px 24px;
}

.page-404__number {
    font-size: clamp(6rem, 22vw, 14rem);
    font-weight: 900;
    line-height: 0.9;
    color: rgba(0,0,0,0.05);
    letter-spacing: -8px;
    margin-bottom: 0;
    user-select: none;
}

.page-404__title {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: -16px;
    letter-spacing: -0.3px;
}

.page-404__text {
    font-size: 1rem;
    color: rgba(0,0,0,0.55);
    margin-bottom: 32px;
    max-width: 420px;
    line-height: 1.65;
}

/* =====================================================================
   Scroll Animations
   ===================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for child items */
.crypto-cards .crypto-card,
.crypto-country-cards .crypto-country-card,
.crypto-steps .crypto-step {
    transition-delay: calc(var(--i, 0) * 0.08s);
}

/* =====================================================================
   Responsive — 768px
   ===================================================================== */
@media (max-width: 768px) {
    :root {
        --crypto-section-y: 44px;
    }

    .site-header__nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-top: 1px solid rgba(255,255,255,0.08);
        border-bottom: 2px solid var(--border);
        z-index: 999;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .site-header__nav.is-open {
        display: block;
    }

    .site-header__menu {
        flex-direction: column;
        gap: 0;
        padding: 10px 0 14px;
    }

    .site-header__menu > .menu-item > a {
        padding: 13px 20px;
        border-radius: 0;
        font-size: 1rem;
    }

    .site-header__menu .menu-item-has-children > a::after {
        float: right;
    }

    .site-header__menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-radius: 0;
        background: rgba(255,255,255,0.05);
        padding: 0;
        box-shadow: none;
        display: none;
        min-width: 0;
    }

    .site-header__menu .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .site-header__menu .sub-menu .menu-item > a {
        padding: 10px 20px 10px 38px;
        font-size: 0.92rem;
        border-radius: 0;
    }

    .site-header__burger {
        display: flex;
    }

    .crypto-hero {
        padding: 50px 0 38px;
    }

    .crypto-hero__buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .crypto-seealso {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 38px 0 28px;
    }

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

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

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

    .crypto-step__num {
        font-size: 2rem;
        min-width: auto;
    }

    .crypto-checklist {
        grid-template-columns: 1fr;
    }

    .crypto-table th,
    .crypto-table td {
        padding: 10px 12px;
        font-size: 0.83rem;
    }
}

/* =====================================================================
   Hero with background image
   ===================================================================== */
.crypto-hero--with-bg {
    background-image: var(--hero-bg-url, none);
    background-size: cover;
    background-position: center top;
    position: relative;
}

.crypto-hero--with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    z-index: 0;
}

.crypto-hero--with-bg .crypto-hero__container {
    position: relative;
    z-index: 1;
}

/* =====================================================================
   Block images
   ===================================================================== */
.crypto-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    margin: 28px 0;
    position: relative;
}

.crypto-img-wrap img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.crypto-img-wrap:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

/* Section with image + text side by side */
.crypto-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 24px;
}

.crypto-split--reverse .crypto-split__img-col {
    order: -1;
}

.crypto-split__img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease, box-shadow var(--tr);
}

.crypto-split__img:hover {
    transform: scale(1.03);
    filter: brightness(1.06);
    box-shadow: var(--shadow-card-hover);
}

.crypto-split__img--tall {
    height: 460px;
}

/* Responsive — 768px
   ===================================================================== */
@media (max-width: 768px) {
    .crypto-split {
        grid-template-columns: 1fr;
    }

    .crypto-split--reverse .crypto-split__img-col {
        order: 0;
    }

    .crypto-split__img,
    .crypto-split__img--tall {
        height: 240px;
    }

    .crypto-img-wrap img {
        height: 220px;
    }
}

/* =====================================================================
   Responsive — 480px
   ===================================================================== */
@media (max-width: 480px) {
    .crypto-hero__title {
        font-size: 1.75rem;
    }

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

    .crypto-widget__wrap iframe {
        width: 100% !important;
        height: 380px !important;
    }

    .page-404__number {
        letter-spacing: -4px;
    }
}
