/*
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 — Ivory / Crimson / Graphite / Midnight Blue / Onyx Black
   ===================================================================== */
:root {
    --crypto-ivory: #ede7dd;
    --crypto-crimson: #a6192e;
    --crypto-crimson-hover: #c41e3a;
    --crypto-graphite: #232326;
    --crypto-graphite-alt: #2c2c30;
    --crypto-midnight: #12172b;
    --crypto-onyx: #0b0b0d;

    --crypto-bg: var(--crypto-onyx);
    --crypto-bg-alt: var(--crypto-midnight);
    --crypto-surface: var(--crypto-graphite);
    --crypto-surface-alt: var(--crypto-graphite-alt);
    --crypto-border: rgba(237, 231, 221, 0.12);
    --crypto-accent: var(--crypto-crimson);
    --crypto-accent-hover: var(--crypto-crimson-hover);
    --crypto-accent-soft: rgba(166, 25, 46, 0.16);
    --crypto-text: var(--crypto-ivory);
    --crypto-text-muted: rgba(237, 231, 221, 0.64);
    --crypto-positive: #2fbf71;
    --crypto-negative: #e5484d;

    --crypto-section-y: 20px;
    --crypto-radius: 16px;
    --crypto-radius-sm: 10px;
    --crypto-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --crypto-container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(19px, 2.5vw, 22px); }

p {
    margin: 0 0 16px;
    color: var(--crypto-text-muted);
}

ul, ol {
    color: var(--crypto-text-muted);
}

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

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

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

.section-inner {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section-title h2 {
    margin-bottom: 12px;
}

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

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

.parallax {
    will-change: transform;
    transition: transform 0.05s linear;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn--primary {
    background: var(--crypto-accent);
    color: var(--crypto-ivory);
    box-shadow: 0 8px 24px rgba(166, 25, 46, 0.35);
}

.btn--primary:hover {
    background: var(--crypto-accent-hover);
    color: var(--crypto-ivory);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(196, 30, 58, 0.45);
}

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

.btn--secondary:hover {
    border-color: var(--crypto-accent);
    color: var(--crypto-accent);
    transform: translateY(-3px);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--crypto-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    max-width: var(--crypto-container);
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--crypto-ivory);
    letter-spacing: 0.02em;
}

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

.nav {
    display: flex;
}

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

.nav__list li {
    position: relative;
}

.nav__list > li > a {
    color: var(--crypto-text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.nav__list > li > a:hover {
    color: var(--crypto-accent);
}

.nav__list li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    transition: transform 0.25s ease;
}

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

.nav__list li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--crypto-text-muted);
    font-size: 14px;
}

.sub-menu li a:hover {
    background: var(--crypto-surface-alt);
    color: var(--crypto-accent);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--crypto-border);
    border-radius: 10px;
    cursor: pointer;
}

.header__burger span {
    display: block;
    height: 2px;
    width: 20px;
    margin: 0 auto;
    background: var(--crypto-ivory);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

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

/* =====================================================================
   MOBILE MENU
   ===================================================================== */
@media (max-width: 768px) {
    .header__burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--crypto-onyx);
        padding: 24px;
        overflow-y: auto;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav.is-open {
        max-height: calc(100vh - 73px);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .nav__list > li {
        width: 100%;
    }

    .nav__list > li > a {
        display: block;
        padding: 14px 4px;
        width: 100%;
        border-bottom: 1px solid var(--crypto-border);
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--crypto-surface-alt);
        margin: 4px 0 8px;
    }

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--crypto-midnight);
    border-top: 1px solid var(--crypto-border);
    padding: 56px 0 24px;
    margin-top: 60px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}

.footer__col h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--crypto-accent);
    margin-bottom: 18px;
}

.footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col a {
    color: var(--crypto-text-muted);
    font-size: 14px;
}

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

.footer__bottom {
    border-top: 1px solid var(--crypto-border);
    padding-top: 24px;
    text-align: center;
    color: var(--crypto-text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   HERO (with optional right-side widget)
   ===================================================================== */
.hero {
    padding: 56px 0 var(--crypto-section-y);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero__grid--text-only {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

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

.hero__widget-frame {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 12px;
    box-shadow: var(--crypto-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero__widget-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero__widget-frame iframe {
    max-width: 100%;
    border-radius: var(--crypto-radius-sm);
}

.hero__image {
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero__image:hover img {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__widget {
        order: -1;
    }
}

/* =====================================================================
   SPLIT BLOCK (text + image)
   ===================================================================== */
.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.split-block--reverse .media-frame {
    order: -1;
}

.media-frame {
    border-radius: var(--crypto-radius);
    overflow: hidden;
    box-shadow: var(--crypto-shadow);
    aspect-ratio: 4 / 3;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-frame:hover img {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .split-block {
        grid-template-columns: 1fr;
    }

    .split-block--reverse .media-frame {
        order: 0;
    }
}

/* =====================================================================
   CARDS / GRIDS
   ===================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    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);
    border-color: var(--crypto-accent);
}

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

.card:hover .card__icon {
    transform: scale(1.1) rotate(-4deg);
}

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

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

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   COINS GRID
   ===================================================================== */
.coins-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

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

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

.coin-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.coin-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.coin-card__title a {
    color: var(--crypto-ivory);
    font-weight: 600;
}

.coin-card p {
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .coins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .coins-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   ROUTE LISTS (buy-coin / sell-coin blocks)
   ===================================================================== */
.route-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.route-card {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-left: 3px solid var(--crypto-accent);
    border-radius: var(--crypto-radius-sm);
    padding: 20px 22px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.route-card:hover {
    transform: translateX(6px);
    background: var(--crypto-surface-alt);
}

.route-card h4 {
    margin: 0 0 8px;
    color: var(--crypto-ivory);
    font-size: 15px;
    font-weight: 600;
}

.route-card p {
    margin-bottom: 0;
    font-size: 14px;
}

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

.check-item {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-left: 3px solid var(--crypto-accent);
    border-radius: var(--crypto-radius-sm);
    padding: 20px 24px;
}

.check-item h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.check-item p {
    margin-bottom: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .route-list {
        grid-template-columns: 1fr;
    }
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    background: var(--crypto-surface);
}

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

th {
    color: var(--crypto-ivory);
    font-weight: 600;
    background: var(--crypto-surface-alt);
}

tr:hover td {
    background: rgba(166, 25, 46, 0.06);
}

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

/* =====================================================================
   PRICE TABLE SHORTCODE
   ===================================================================== */
.price-table__updated {
    color: var(--crypto-text-muted);
    font-size: 13px;
    margin-top: 10px;
}

.price-table__change--up {
    color: var(--crypto-positive);
    font-weight: 600;
}

.price-table__change--down {
    color: var(--crypto-negative);
    font-weight: 600;
}

.price-table__coin {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-table__coin img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.price-empty,
.chart-empty {
    padding: 20px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    border: 1px dashed var(--crypto-border);
    color: var(--crypto-text-muted);
    text-align: center;
}

/* =====================================================================
   CHART SHORTCODE (server-rendered inline SVG)
   ===================================================================== */
.chart {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 20px;
}

.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: "Inter", "Segoe UI", Arial, sans-serif;
}

.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-ivory);
    stroke-width: 1.5;
}

/* =====================================================================
   COMPARE / WHY BLOCK
   ===================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-col {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 24px;
}

.why-col h3 {
    color: var(--crypto-accent);
}

.why-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.why-col li {
    padding-left: 22px;
    position: relative;
    font-size: 14px;
}

.why-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crypto-accent);
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   STEPS (how it works)
   ===================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--crypto-accent);
    color: var(--crypto-ivory);
    font-weight: 700;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   REVIEWS
   ===================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

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

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

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

.review-card__name {
    font-weight: 600;
    color: var(--crypto-ivory);
}

.review-card__rating {
    color: var(--crypto-accent);
    font-weight: 600;
    font-size: 14px;
}

.review-card p {
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
    background: linear-gradient(135deg, var(--crypto-midnight), var(--crypto-graphite));
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 48px;
    text-align: center;
}

.cta h2 {
    margin-bottom: 10px;
}

.cta .btn--primary {
    margin-top: 16px;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq__item {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    padding: 20px 24px;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

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

.faq__item h3 {
    margin: 0;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq__item h3::after {
    content: "+";
    color: var(--crypto-accent);
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq__item.is-open h3::after {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq__answer p {
    padding-top: 12px;
    margin-bottom: 0;
    font-size: 14px;
}

.faq__item.is-open .faq__answer {
    max-height: 600px;
}

/* =====================================================================
   BLOG
   ===================================================================== */
.blog-intro {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    display: block;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    overflow: hidden;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card__image {
    height: 180px;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.08);
}

.post-card__body {
    padding: 20px;
}

.post-card__title {
    color: var(--crypto-ivory);
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    transition: color 0.25s ease;
}

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

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.post {
    max-width: 820px;
    margin: 0 auto;
}

.post__hero {
    border-radius: var(--crypto-radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--crypto-shadow);
}

.post__hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.post__content h2 {
    margin-top: 40px;
}

.post__content h3 {
    margin-top: 28px;
}

.post__content ul,
.post__content ol {
    padding-left: 22px;
}

.post__content li {
    margin-bottom: 8px;
}

.post__content table {
    margin: 20px 0;
}

.post__related {
    margin-top: 40px;
    padding: 24px;
    background: var(--crypto-surface);
    border-radius: var(--crypto-radius);
    border: 1px solid var(--crypto-border);
}

/* =====================================================================
   LEGAL / BASE PAGES
   ===================================================================== */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
}

.legal-page h2 {
    margin-top: 36px;
}

.legal-page ul {
    padding-left: 22px;
}

.legal-page li {
    margin-bottom: 8px;
}

.contact-block {
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 28px;
    margin: 24px 0;
}

.contact-block a {
    font-weight: 600;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 100px 0;
}

.error404__inner {
    text-align: center;
}

.error404__code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 800;
    color: var(--crypto-accent);
    line-height: 1;
    margin-bottom: 12px;
}

.error404__title {
    margin-bottom: 12px;
}

.error404__text {
    max-width: 480px;
    margin: 0 auto 28px;
}

/* =====================================================================
   RESPONSIVE — 768px / 480px
   ===================================================================== */
@media (max-width: 768px) {
    section {
        padding: calc(var(--crypto-section-y) - 5px) 0;
    }

    .cards-grid,
    .steps,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 32px 20px;
    }
}

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

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    .btn {
        width: 100%;
    }

    .footer__grid {
        gap: 24px;
    }
}
