/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
    padding: 120px 0 60px;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, .08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.hero-content {
    padding-top: 24px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 18px;
    opacity: .85;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-illustration {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: var(--radius);
}

.hero-trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: .8;
}

.trust-badge svg {
    flex-shrink: 0;
}

.trust-badge--light {
    opacity: 1;
    color: var(--color-white);
    background: rgba(255, 255, 255, .12);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
}

.nav-cta {
    display: none;
}

.hero-social-proof {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 15px;
    opacity: .75;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 8px;
}

.hero-social-proof strong {
    color: var(--color-accent);
    opacity: 1;
}

/* ═══════════════════════════════════════════
   CALCULATOR CARD
   ═══════════════════════════════════════════ */

.calculator-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.calculator-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.calc-field {
    margin-bottom: 24px;
}

.calc-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calc-field-header label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
}

.calc-value-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.calc-inline-input {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    border: none;
    background: none;
    text-align: right;
    width: 120px;
    outline: none;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
    padding: 0 0 2px;
}

.calc-inline-input:focus {
    border-bottom-color: var(--color-cta);
}

.calc-inline-input--small {
    width: 50px;
}

.calc-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Range Slider */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--color-cta) 0%,
        var(--color-cta) var(--progress, 50%),
        var(--color-border) var(--progress, 50%),
        var(--color-border) 100%
    );
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-cta);
    box-shadow: 0 2px 8px rgba(46, 204, 113, .3);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(46, 204, 113, .4);
}

.calc-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-cta);
    box-shadow: 0 2px 8px rgba(46, 204, 113, .3);
    cursor: pointer;
}

.calc-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    border: none;
}

.calc-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--color-cta);
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* Calculator Results */
.calc-results {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.calc-result-row + .calc-result-row {
    border-top: 1px solid var(--color-border);
}

.calc-result-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.calc-result-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.calc-result-main .calc-result-label {
    font-weight: 600;
    color: var(--color-text);
}

.calc-result-main .calc-result-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-cta-hover);
}

.calc-cta {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.calc-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-light);
}

/* ═══════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════ */

.trust-bar {
    background: var(--color-primary);
    padding: 40px 0;
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.trust-stat-number {
    display: block;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.2;
}

.trust-stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════ */

.section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
    letter-spacing: -.3px;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════ */

.benefits {
    padding: 80px 0;
    background: var(--color-bg);
}

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

.benefit-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(46, 204, 113, .1), rgba(11, 37, 69, .06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-cta-hover);
}

.benefit-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */

.how-it-works {
    padding: 80px 0;
    background: var(--color-white);
}

.steps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.steps {
    max-width: 640px;
    margin: 0 auto;
}

.steps-illustration-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-illustration {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 32px;
    background: var(--color-border);
    margin-left: 25px;
}

.steps-cta {
    text-align: center;
    margin-top: 40px;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */

.testimonials {
    padding: 80px 0;
    background: var(--color-bg);
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 12px;
}

.testimonial-card > * {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
    margin-bottom: 16px;
    justify-content: center;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-location {
    font-size: 13px;
    color: var(--color-text-light);
}

.testimonial-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-cta-hover);
    font-weight: 500;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.testimonials-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    color: var(--color-text);
}

.testimonials-arrow:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}

.testimonials-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */

.faq {
    padding: 80px 0;
    background: var(--color-white);
}

.faq-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.faq-illustration-wrap {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.faq-illustration {
    width: auto;
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius);
    object-fit: contain;
}

.faq-list {
    max-width: 720px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(11, 37, 69, .05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    gap: 16px;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--color-text-light);
}

.faq-answer {
    height: 0;
    overflow: hidden;
}

.faq-answer p {
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */

.final-cta {
    padding: 80px 0;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.final-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-illustration {
    max-width: 360px;
    height: auto;
    margin: 0 auto 24px;
    border-radius: var(--radius);
}

.final-cta-subtitle {
    font-size: 17px;
    opacity: .85;
    margin-bottom: 28px;
    line-height: 1.6;
}

.final-cta-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.final-cta-note {
    margin-top: 16px;
    font-size: 13px;
    opacity: .6;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
    background: #071a33;
    color: rgba(255, 255, 255, .75);
    padding: 60px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-logo {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-logo strong {
    font-weight: 800;
    color: var(--color-accent);
}

.footer-logo .logo-signet {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    margin-bottom: 12px;
    display: block;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-security {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-cta);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col a {
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-rrso {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-rrso p {
    font-size: 12px;
    line-height: 1.7;
    opacity: .6;
}

.footer-disclaimer {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-disclaimer p {
    font-size: 12px;
    line-height: 1.7;
    opacity: .6;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    opacity: .5;
}

/* ═══════════════════════════════════════════
   MOTION.DEV
   Initial states are set via JS only when
   the library loads. No CSS opacity:0 here
   to avoid invisible content if JS fails.
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-content {
        text-align: center;
        padding-top: 12px;
    }

    .hero-illustration {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .steps-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-illustration-wrap {
        order: -1;
        justify-content: center;
    }

    .steps-illustration {
        width: 400px;
        max-width: 80%;
    }

    .calculator-card {
        max-width: 520px;
        margin: 0 auto;
    }

    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq-illustration-wrap {
        position: static;
        justify-content: center;
    }

    .faq-illustration {
        width: 320px;
        max-width: 80%;
    }

    .faq-list {
        margin: 0 auto;
    }

    .cta-illustration {
        max-width: 300px;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .container {
        padding: 0 16px;
    }

    /* ── Mobile Nav ── */
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--color-white);
        z-index: 999;
        padding: 12px 24px 16px;
        transform: translateX(100%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0 4px 24px rgba(11, 37, 69, .1);
    }

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

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
        color: var(--color-text);
        display: flex;
        align-items: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-cta {
        display: flex;
        margin-top: 16px;
        padding: 14px;
        font-size: 16px;
    }

    .header-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* ── Mobile CTA Bar ── */
    .mobile-cta-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background: var(--color-white);
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
        transform: translateY(100%);
        transition: transform .3s ease;
    }

    .mobile-cta-bar.visible {
        transform: translateY(0);
    }

    /* ── Hero ── */
    .hero {
        padding: 76px 0 32px;
    }

    .hero-content {
        padding-top: 8px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-illustration {
        max-width: 100%;
        margin: 0 auto 16px;
        border-radius: var(--radius-sm);
    }

    .hero-trust-badges {
        gap: 12px;
        justify-content: center;
    }

    .trust-badge {
        font-size: 12px;
        gap: 6px;
    }

    .trust-badge svg {
        width: 16px;
        height: 16px;
    }

    .hero-social-proof {
        padding-top: 16px;
        font-size: 13px;
    }

    .hero .container {
        gap: 24px;
    }

    /* ── Calculator ── */
    .calculator-card {
        padding: 24px 20px;
    }

    .calculator-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .calc-field {
        margin-bottom: 20px;
    }

    .calc-inline-input {
        font-size: 18px;
        width: 100px;
    }

    .calc-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .calc-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .calc-slider {
        height: 8px;
        border-radius: 4px;
    }

    .calc-results {
        padding: 14px 16px;
    }

    .calc-result-main .calc-result-value {
        font-size: 20px;
    }

    .calc-cta {
        font-size: 16px;
        padding: 14px 24px;
    }

    /* ── Trust Bar ── */
    .trust-bar {
        padding: 32px 0;
    }

    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .trust-stat-number {
        font-size: 20px;
    }

    .trust-stat-label {
        font-size: 12px;
    }

    /* ── Sections ── */
    .benefits,
    .how-it-works,
    .testimonials,
    .faq,
    .final-cta {
        padding: 48px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    /* ── Benefits ── */
    .benefit-card {
        padding: 20px;
    }

    .benefit-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .benefit-icon svg {
        width: 24px;
        height: 24px;
    }

    .benefit-card h3 {
        font-size: 16px;
    }

    .benefit-card p {
        font-size: 13px;
    }

    /* ── Steps ── */
    .steps-illustration-wrap {
        display: none;
    }

    .step {
        gap: 16px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 14px;
    }

    .step-connector {
        margin-left: 21px;
        height: 20px;
    }

    .steps-cta {
        margin-top: 28px;
    }

    /* ── Testimonials ── */
    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .testimonial-author {
        gap: 10px;
    }

    .testimonials-nav {
        margin-top: 24px;
    }

    .testimonials-arrow {
        width: 44px;
        height: 44px;
    }

    /* ── FAQ ── */
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-illustration-wrap {
        position: static;
        justify-content: center;
    }

    .faq-illustration {
        width: 280px;
        max-width: 80%;
    }

    .faq-list {
        margin: 0 auto;
    }

    .faq-question {
        padding: 16px;
        font-size: 15px;
        gap: 12px;
        min-height: 52px;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 14px;
    }

    .cta-illustration {
        max-width: 260px;
    }

    /* ── Final CTA ── */
    .final-cta h2 {
        font-size: 22px;
    }

    .final-cta-subtitle {
        font-size: 15px;
    }

    .final-cta-badges {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        padding: 14px 32px;
        font-size: 16px;
    }

    /* ── Footer ── */
    .site-footer {
        padding: 40px 0 0;
        padding-bottom: 72px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-col h4 {
        margin-bottom: 12px;
    }

    .footer-rrso {
        padding: 16px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 16px 0;
    }
}

/* ═══════════════════════════════════════════
   404 — СТОРІНКА ПОМИЛКИ
   ═══════════════════════════════════════════ */

.error-404-page {
    padding-top: var(--header-h);
}

.error-404 {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #0f3060 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.e4-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 80% 20%, rgba(212, 168, 67, .07) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 10% 80%, rgba(46, 204, 113, .05) 0%, transparent 70%);
    pointer-events: none;
}

.error-404-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* — Visual — */

.error-404-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.error-404-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.e4-digit {
    font-size: clamp(100px, 12vw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, .15);
    text-shadow: 0 0 60px rgba(212, 168, 67, .2);
}

.e4-zero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.e4-coin {
    width: clamp(90px, 10vw, 140px);
    height: clamp(90px, 10vw, 140px);
    filter: drop-shadow(0 8px 32px rgba(212, 168, 67, .5));
    animation: e4-float 4s ease-in-out infinite;
}

@keyframes e4-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%       { transform: translateY(-14px) rotate(2deg); }
}

/* decorative elements */

.e4-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.e4-decor {
    position: absolute;
}

.e4-decor-1 {
    width: 56px;
    height: 56px;
    top: 0;
    right: 10%;
    animation: e4-spin 20s linear infinite;
}

.e4-decor-2 {
    width: 28px;
    height: 28px;
    top: 12%;
    left: 5%;
    animation: e4-pulse 3s ease-in-out infinite;
}

.e4-decor-3 {
    width: 18px;
    height: 18px;
    bottom: 10%;
    right: 20%;
    animation: e4-pulse 3.5s ease-in-out infinite .6s;
}

.e4-decor-4 {
    width: 48px;
    height: 48px;
    bottom: 8%;
    left: 8%;
    animation: e4-pulse 4s ease-in-out infinite 1s;
}

@keyframes e4-spin {
    to { transform: rotate(360deg); }
}

@keyframes e4-pulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%       { transform: scale(1.2); opacity: 1; }
}

/* — Content — */

.error-404-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.e4-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: .9;
}

.e4-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--color-white);
    margin: 0;
}

.e4-description {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .75);
    max-width: 440px;
}

/* — Buttons — */

.e4-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-white);
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-1px);
}

/* — Quick links — */

.e4-quick-links {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 24px;
}

.e4-quick-links-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 14px;
}

.e4-quick-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.e4-quick-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.e4-quick-links a::before {
    content: '→';
    color: var(--color-cta);
    font-size: 12px;
}

.e4-quick-links a:hover {
    color: var(--color-white);
}

/* — Responsive — */

@media (max-width: 900px) {
    .error-404-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .error-404-visual {
        order: -1;
    }

    .e4-description {
        max-width: 100%;
    }

    .e4-actions {
        justify-content: center;
    }

    .e4-quick-links ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 48px 0 60px;
    }

    .e4-digit {
        font-size: 80px;
    }

    .e4-coin {
        width: 76px;
        height: 76px;
    }

    .e4-actions {
        flex-direction: column;
    }

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

/* ═══════════════════════════════════════════
   INNER PAGES — page.php / single.php
   ═══════════════════════════════════════════ */

.inner-page {
    min-height: 100vh;
}

/* Page Hero */

.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 56px) 0 56px;
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, .07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
    margin-bottom: 12px;
}

.page-hero-category {
    color: var(--color-accent);
    opacity: 1;
    text-decoration: none;
    transition: opacity .2s;
}

.page-hero-category:hover {
    opacity: .8;
}

.page-hero-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin-bottom: 0;
}

/* Post Meta */

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    opacity: .75;
}

.post-meta-date,
.post-meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Page Content Wrap */

.page-content-wrap {
    background: var(--color-white);
    padding: 64px 0 80px;
}

.page-content-wrap .container {
    max-width: 800px;
}

/* Entry Content — typografia treści z edytora WP */

.entry-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.entry-content > * + * {
    margin-top: 1.25em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.3px;
    color: var(--color-primary);
    margin-top: 2em;
    margin-bottom: .5em;
}

.entry-content h1 { font-size: clamp(22px, 3vw, 32px); }
.entry-content h2 { font-size: clamp(20px, 2.5vw, 26px); }
.entry-content h3 { font-size: clamp(18px, 2vw, 22px); }
.entry-content h4 { font-size: 18px; }
.entry-content h5 { font-size: 16px; }
.entry-content h6 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

.entry-content p {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .2s;
}

.entry-content a:hover {
    opacity: .75;
}

.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: var(--color-primary);
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li {
    margin-top: .5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 24px;
    margin-left: 0;
    margin-right: 0;
    background: var(--color-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-primary);
}

.entry-content blockquote p {
    margin: 0;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5em 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.entry-content figure {
    margin: 0;
}

.entry-content figcaption {
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 8px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.entry-content table th,
.entry-content table td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content table th {
    background: var(--color-bg);
    font-weight: 700;
    color: var(--color-primary);
}

.entry-content table tr:nth-child(even) td {
    background: rgba(248, 249, 250, .6);
}

.entry-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: .88em;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1px 6px;
}

.entry-content pre {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Entry Pagination */

.entry-pagination {
    margin-top: 48px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.entry-pagination span,
.entry-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all .2s;
}

.entry-pagination a {
    color: var(--color-primary);
    text-decoration: none;
}

.entry-pagination a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.entry-pagination span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Post Navigation (single.php) */

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    max-width: 48%;
    transition: color .2s;
}

.post-nav-link:hover {
    color: var(--color-accent);
}

.post-nav-link span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-nav-next {
    margin-left: auto;
    text-align: right;
}

/* Responsive */

@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--header-h) + 36px) 0 40px;
    }

    .page-content-wrap {
        padding: 40px 0 56px;
    }

    .entry-content {
        font-size: 16px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .post-nav-link {
        max-width: 100%;
    }

    .post-nav-next {
        margin-left: 0;
        text-align: left;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 380px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-trust-badges {
        gap: 8px;
        justify-content: center;
    }

    .trust-stat-number {
        font-size: 18px;
    }

    .calc-field-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .calc-inline-input {
        text-align: left;
    }

    .calc-result-main .calc-result-value {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .faq-question {
        font-size: 14px;
    }

    .final-cta h2 {
        font-size: 20px;
    }
}
