/* ─── Reset & base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat, Arial, sans-serif;
    background: #f8f8f5;
    color: #1a1a1a;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #074a8c;
    text-decoration: none;
    transition: color .15s;
}

a:hover {
    color: #052f59;
    text-decoration: underline;
}

/* ─── Layout ─── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ═══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
    background: #fff;
    border-bottom: 2px solid #074a8c;
    box-shadow: 0 2px 10px rgba(7, 74, 140, .07);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #074a8c;
    margin: 0;
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    text-decoration: none;
    color: #052f59;
}

.site-desc {
    font-size: 11px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2px;
}

.nav-menu > li > a {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #333;
    padding: 7px 12px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.nav-menu > li > a:hover {
    background: #E6F1FB;
    color: #074a8c;
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #031d38;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://numizmat.org.ua/wp-content/themes/numizmat-theme/assets/images/hero5.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(.2);
    transform: scale(1.04);
    transition: transform 8s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1.0);
}

/* coin-grid overlay decoration */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(rgba(255, 255, 255, .03) 0px, transparent 1px, transparent 80px, rgba(255, 255, 255, .03) 81px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0px, transparent 1px, transparent 80px, rgba(255, 255, 255, .03) 81px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 5rem;
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #F49420;
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: #F49420;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.hero-title em {
    font-style: italic;
    color: #F49420;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F49420;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background .2s, transform .2s;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: #d47e10;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .45);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background .2s, border-color .2s;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .8);
    text-decoration: none;
    color: #fff;
}

/* hero stats bar */
.hero-stats {
    background: #1a2e42;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hero-stats-inner {
    display: flex;
    align-items: center;
    padding: 0 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: #F49420;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transform: translateY(8px);
}

.hero-stat-num.is-animating,
.hero-stat-num.is-counted {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat-num.is-animating {
    animation: heroStatPop .45s ease;
}

.hero-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

/* ═══════════════════════════════════════════
   SECTION STYLES
══════════════════════════════════════════ */
.section-pad {
    padding: 5rem 0;
}

.section-pad-sm {
    padding: 3.5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #074a8c;
    background: #E6F1FB;
    border: 1px solid #B5D4F4;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: .85rem;
}

.section-title-lg {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: .6rem;
}

.section-desc {
    font-size: 15px;
    color: #666;
    max-width: 540px;
    line-height: 1.75;
}

/* ═══════════════════════════════════════════
   COLLECTION SECTION
══════════════════════════════════════════ */
.collection-section {
    background: #fff;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 860px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

.collection-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.collection-image-wrap img {
    width: 100%;
    object-fit: cover;
}

.collection-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: #074a8c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
}

.collection-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2rem;
}

.collection-link-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8f8f5;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
    text-decoration: none;
}

.collection-link-card:hover {
    border-color: #B5D4F4;
    box-shadow: 0 6px 20px rgba(7, 74, 140, .08);
    transform: translateX(4px);
    text-decoration: none;
}

.collection-link-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.collection-link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-link-text {
}

.collection-link-title {
    font-size: 15px;
    font-weight: 600;
    color: #074a8c;
    display: block;
    margin-bottom: 2px;
}

.collection-link-sub {
    font-size: 12px;
    color: #888;
    letter-spacing: .5px;
}

.collection-link-arrow {
    margin-left: auto;
    font-size: 20px;
    color: #B5D4F4;
    transition: transform .18s, color .18s;
}

.collection-link-card:hover .collection-link-arrow {
    transform: translateX(4px);
    color: #074a8c;
}

/* ═══════════════════════════════════════════
   DIVIDER WAVE
══════════════════════════════════════════ */
.wave-divider {
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

/* ═══════════════════════════════════════════
   UGORNYKY SECTION
══════════════════════════════════════════ */
.ugornyky-section {
    background: #f8f8f5;
}

.ugornyky-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 860px) {
    .ugornyky-grid {
        grid-template-columns: 1fr;
    }
}

.ugornyky-text {
}

.ugornyky-desc {
    font-size: 14.5px;
    color: #555;
    line-height: 1.85;
    margin-bottom: 2rem;
}

.ugornyky-highlight {
    background: #d4f8e0;
    border: 1px solid #2ecc71;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.ugornyky-highlight p {
    font-size: 13.5px;
    color: #0a4a1f;
    line-height: 1.7;
    margin: 0;
}

.ugornyky-highlight strong {
    font-weight: 700;
}

.btn-ugornyky {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 26px;
    border-radius: 8px;
    margin-right: 10px;
    transition: background .2s;
    text-decoration: none;
    color: #0a4a1f;
    background: #d4f8e0;
    border: 1px solid #2ecc71;
}

.btn-ugornyky-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #0a4a1f;
    border: 1.5px solid #2ecc71;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 8px;
    transition: background .2s;
    text-decoration: none;
}

.ugornyky-photo-collage {
    position: relative;
    height: 420px;
}

.collage-img {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
    transition: transform .3s ease;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-img:hover {
    transform: scale(1.03);
    z-index: 10;
}

.collage-img-1 {
    width: 58%;
    height: 70%;
    top: 0;
    left: 0;
}

.collage-img-2 {
    width: 44%;
    height: 55%;
    top: 16%;
    right: 0;
}

.collage-img-3 {
    width: 40%;
    height: 38%;
    bottom: 0;
    left: 10%;
}

.collage-year-badge {
    position: absolute;
    bottom: 30px;
    right: 10px;
    z-index: 5;
    color: #0a4a1f;
    background: #d4f8e0;
    border: 1px solid #2ecc71;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(7, 74, 140, .3);
}

/* ═══════════════════════════════════════════
   BLOG SECTION
══════════════════════════════════════════ */
.blog-section {
    background: #fff;
}

.blog-section-inner {
    position: relative;
}

.blog-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 2.5rem;
}

.blog-link-all {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #074a8c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap .18s;
}

.blog-link-all:hover {
    gap: 10px;
    text-decoration: none;
}

.blog-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.blog-card:hover {
    border-color: #B5D4F4;
    box-shadow: 0 6px 24px rgba(7, 74, 140, .09);
    transform: translateY(-2px);
}

.blog-card-thumb {
    position: relative;
    overflow: hidden;
    background: #E6F1FB;
    min-height: 160px;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #074a8c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    z-index: 9999;
}

.blog-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #888;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: #074a8c;
}

.blog-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    font-size: 11px;
    font-weight: 600;
    color: #074a8c;
    background: #E6F1FB;
    border: 1px solid #B5D4F4;
    padding: 2px 10px;
    border-radius: 999px;
}

.blog-readmore {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #074a8c;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s;
    text-decoration: none;
}

.blog-readmore:hover {
    gap: 9px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-thumb {
        min-height: 160px;
        height: 160px;
    }
}

/* ═══════════════════════════════════════════
   THANKS SECTION
══════════════════════════════════════════ */
.thanks-section {
    background: #fff;
    overflow: hidden;
    position: relative;
}

.thanks-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(rgba(255, 255, 255, .03) 0, transparent 1px, transparent 60px, rgba(255, 255, 255, .03) 61px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0, transparent 1px, transparent 60px, rgba(255, 255, 255, .03) 61px);
    pointer-events: none;
}

.thanks-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 0 3.5rem;
}

.thanks-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
}

.thanks-title {
    font-size: 2rem;
    font-weight: 700;
    color: #074a8c;
    margin-bottom: 2rem;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 27s linear infinite;
}

.marquee-track p {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 14px;
    background: #E6F1FB;
    color: #185FA5;
    border: 1px solid #B5D4F4;
    margin: 0 5px;
    border-radius: 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    animation: fadeUp .65s ease forwards;
}

.fade-up-1 {
    animation-delay: .1s;
}

.fade-up-2 {
    animation-delay: .25s;
}

.fade-up-3 {
    animation-delay: .4s;
}

.fade-up-4 {
    animation-delay: .55s;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
    .nav-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 100vh;
    }

    .hero-stats-inner {
        flex-direction: column;
    }

    .hero-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        width: 100%;
    }

    .hero-stat:last-child {
        border-bottom: none;
    }
}

.page-template-template-homepage .site-content {
    padding: 0;
}

.section-label.section-label-kr {
    color: #0a4a1f;
    background: #d4f8e0;
    border: 1px solid #2ecc71;
}

.btn-ugornyky.blog-btn-ugornyky {
    color: #074a8c;
    background: #E6F1FB;
    border: 1px solid #B5D4F4;
}

@keyframes heroStatPop {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stat-num {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}
