/* ===========================================
   HISTORICUM HOMEPAGE SECTIONS STYLES
   PRODUCTION COMPONENT STYLES
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400&display=swap');

/* -----------------------------------------
   VIEWPORT GUARD
----------------------------------------- */
body,
#page,
.site,
.site-content,
#content,
.content-area,
.entry-content,
#main,
.site-main,
.historicum-homepage,
#historicum-home {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

body {
    overflow-x: hidden !important;
}

@media (min-width: 992px) {
    @supports (overflow: clip) {
        body,
        #page,
        .site,
        .site-content,
        #content,
        .content-area,
        .entry-content,
        #main,
        .site-main,
        .historicum-homepage,
        #historicum-home {
            overflow-x: clip !important;
        }
    }
}

/* -----------------------------------------
   CSS VARIABLES
----------------------------------------- */
:root {
    --h-black: #0A0A0A;
    --h-paper: #F5F0E6;
    --h-accent: #EBBC00;
    --h-white: #FFFFFF;
    --h-gray-light: #B0B0B0;
    --h-font-cinzel: 'Cinzel', serif;
    --h-font-cormorant: 'Cormorant Garamond', serif;
    --h-font-augusta: 'Augusta', serif;
    --h-font-instrument: 'Instrument Sans', sans-serif;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}


/* -----------------------------------------
   SECTION: HERO
----------------------------------------- */
.h-hero {
    position: relative;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 140px;
    background: linear-gradient(180deg, var(--h-black) 0%, #0E110C 50%, var(--h-black) 100%);
    overflow: hidden;
}

.h-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(
            74% 82% at 0% 0%,
            rgba(235, 188, 0, 0.22) 0%,
            rgba(124, 91, 0, 0.13) 30%,
            rgba(0, 0, 0, 0) 64%
        );
}

.h-hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Diagonal Bands */
.h-hero-diagonal-bands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.h-band {
    position: absolute;
    width: 120%;
    left: -10%;
    background: var(--h-accent);
    transform: rotate(-8deg);
}

.h-band-middle {
    top: 50%;
    height: 180px;
}

.h-band-top {
    top: calc(50% - 6px);
    height: 4px;
}

.h-band-bottom {
    top: calc(50% + 180px + 4px);
    height: 12px;
}

/* =========================================
   HERO TEXT
   ========================================= */
.h-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.h-hero-content .h-subtitle {
    display: block;
    font-family: var(--h-font-cormorant);
    font-size: 18px;
    color: var(--h-white);
    margin-bottom: 8px;
    line-height: 1;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

.h-hero-content .h-main-title {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    letter-spacing: 3px;
    margin: 0;
}

.h-hero-cta-zone {
    position: relative;
    z-index: 4;
    margin-top: 20px;
    text-align: center;
}

.h-hero-cta-zone .h-cta-text {
    font-family: var(--h-font-augusta);
    font-size: 24px;
    color: var(--h-white);
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.h-hero-cta-zone .h-cta-text:hover,
.h-hero-cta-zone .h-cta-text:focus {
    color: var(--h-accent);
}

/* =========================================
   HERO BLOCKS
   ========================================= */
.h-hero-blocks {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

.h-hero-block {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: visible;
    isolation: isolate;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.42),
        0 5px 14px rgba(0, 0, 0, 0.28);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

#historicum-home .h-hero .h-hero-block::before,
#historicum-home .h-training-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--angle),
        transparent 0deg,
        rgba(235, 188, 0, 0.10) 12deg,
        rgba(235, 188, 0, 0.46) 28deg,
        var(--h-accent, #FFD60A) 44deg,
        rgba(235, 188, 0, 0.72) 60deg,
        rgba(235, 188, 0, 0.18) 76deg,
        transparent 96deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter:
        drop-shadow(0 0 10px var(--h-accent, #FFD60A))
        drop-shadow(0 0 26px rgba(255, 214, 10, 0.78))
        drop-shadow(0 0 54px rgba(255, 214, 10, 0.42));
    opacity: 0;
    transition: opacity 360ms ease;
    pointer-events: none;
    animation: hero-ring-rotate 6.4s linear infinite;
}

#historicum-home .h-hero .h-hero-block::after,
#historicum-home .h-training-image::after {
    content: none;
    display: none;
}

#historicum-home .h-hero .h-hero-block:hover {
    transform: scale(1.018);
}

#historicum-home .h-hero .h-hero-block:hover::before,
#historicum-home .h-hero .h-hero-block:focus-visible::before,
#historicum-home .h-training-image:hover::before,
#historicum-home .h-training-image:focus-within::before {
    opacity: 1;
}

@keyframes hero-ring-rotate {
    to {
        --angle: 360deg;
    }
}

.h-hero-block-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    z-index: 3;
}

.h-hero-block-inner::before,
.h-hero-block-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.h-hero-block-inner::before {
    background:
        linear-gradient(
            180deg,
            rgba(235, 188, 0, 0.18) 0%,
            rgba(235, 188, 0, 0.10) 20%,
            rgba(235, 188, 0, 0.04) 46%,
            rgba(235, 188, 0, 0) 76%
        );
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 520ms ease;
    z-index: 2;
}

.h-hero-block-inner::after {
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: opacity 420ms ease;
    z-index: 1;
}

.h-hero-block:hover .h-hero-block-inner::before {
    opacity: 1;
}

.h-hero-block:hover .h-hero-block-inner::after {
    opacity: 1;
}

.h-hero-block-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--h-font-cinzel);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    color: var(--h-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
}

.h-hero-block:hover .h-hero-block-label {
    opacity: 1;
}

.h-hero-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-hero-block-3 {
    width: 480px;
    height: 680px;
    margin-top: 30px;
}

.h-hero-block-2,
.h-hero-block-4 {
    width: 360px;
    height: 576px;
    margin-top: 65px;
}

.h-hero-block-1 {
    width: 240px;
    height: 456px;
    margin-top: 125px;
    margin-right: -8px;
}

.h-hero-block-5 {
    width: 240px;
    height: 456px;
    margin-top: 125px;
    margin-left: -8px;
}


/* =========================================
   TORN PAPER EDGES Ã¢â‚¬â€ absolute URL
   ========================================= */

.h-torn-edge-top,
.h-torn-edge-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    pointer-events: none;
}

.h-torn-edge-top {
    top: -60px;
    background-image: url('https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.h-torn-edge-bottom {
    bottom: -50px;
    background-image: url('https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: scaleY(-1);
}


/* -----------------------------------------
   PAPER SECTIONS SHARED
----------------------------------------- */
.h-section-paper {
    position: relative;
    background-color: #F5F0E6;
    z-index: 5;
    overflow: visible;
}

.h-section-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.055;
    pointer-events: none;
    z-index: 0;
}

.h-section-paper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 35%,
        rgba(150, 120, 80, 0.18) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.h-section-paper > * {
    position: relative;
    z-index: 1;
}

.h-best-sellers {
    padding-top: 50px;
    padding-bottom: 78px;
    position: relative;
}

.h-title-with-lines {
    position: relative;
    padding: 25px 0;
    margin-bottom: 40px;
}

.h-title-with-lines .h-h1 {
    position: relative;
    z-index: 2;
    background: #F5F0E6;
    display: inline-block;
    padding: 0 40px;
}

.h-title-line-top,
.h-title-line-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
}

.h-title-line-top { top: 0; }
.h-title-line-bottom { bottom: 0; }


/* -----------------------------------------
   CAROUSEL CONTROLS (shared)
----------------------------------------- */
.h-carousel-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 70px 0;
}

.h-carousel-arrow {
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1.5px solid var(--h-black);
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.h-carousel-arrow:hover {
    background: var(--h-black);
    transform: none;
}

.h-carousel-arrow::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--h-black);
    border-right: 1.5px solid var(--h-black);
    transition: border-color 0.2s ease;
}

.h-carousel-arrow:hover::before {
    border-color: var(--h-white);
}

.h-carousel-prev::before {
    transform: rotate(-135deg) translate(-1px, 1px);
}

.h-carousel-next::before {
    transform: rotate(45deg) translate(-1px, 1px);
}


/* -----------------------------------------
   BEST SELLERS / FIGHTERS FAVORITE CAROUSEL
   Desktop: infinite auto-scroll + mouse drag
   Mobile: arrows-only, 3 visible, 1-item step
----------------------------------------- */
#historicum-home .h-best-sellers .h-h1 {
    font-size: clamp(34px, 3.6vw, 45px);
    line-height: 1.04;
    letter-spacing: 0.06em;
}

#historicum-home .h-best-sellers .h-bs-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 40px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 12px 0 26px;
}

#historicum-home .h-best-sellers .h-bs-carousel {
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    display: flex;
    gap: 20px;
    padding: 16px 70px 36px;
    user-select: none;
    -webkit-user-select: none;
    will-change: scroll-position;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
}

#historicum-home .h-best-sellers .h-bs-carousel::-webkit-scrollbar {
    display: none;
}

#historicum-home .h-best-sellers .h-bs-carousel:active,
#historicum-home .h-best-sellers .h-bs-carousel.is-dragging {
    cursor: grabbing;
}

#historicum-home .h-best-sellers .h-bs-carousel.is-dragging * {
    pointer-events: none;
}

#historicum-home .h-best-sellers .h-bs-slide {
    flex: 0 0 280px;
    width: 280px;
    padding-bottom: 12px;
    display: flex;
}

#historicum-home .h-best-sellers .h-bs-wrapper .h-carousel-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 70px 0;
}

#historicum-home .h-best-sellers .h-bs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-box-shadow: 4px 4px 8px -1px #000000;
    box-shadow: 4px 4px 8px -1px #000000;
    background: #000000;
    backface-visibility: hidden;
    width: 100%;
}

#historicum-home .h-best-sellers .h-bs-card:hover {
    transform: none;
    border-color: var(--h-accent);
    -webkit-box-shadow: 4px 4px 8px -1px #000000;
    box-shadow: 4px 4px 8px -1px #000000;
}

#historicum-home .h-best-sellers .h-bs-card > .h-bs-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--h-accent);
    color: var(--h-black);
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 0 8px;
    z-index: 40;
    font-weight: 700;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

#historicum-home .h-best-sellers .h-bs-wrapper > .h-bs-badge,
#historicum-home .h-best-sellers .h-bs-carousel > .h-bs-badge {
    display: none !important;
}

#historicum-home .h-best-sellers .h-bs-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #000000;
    flex-shrink: 0;
    backface-visibility: hidden;
}

#historicum-home .h-best-sellers .h-bs-image::after {
    display: none;
}

#historicum-home .h-best-sellers .h-bs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#historicum-home .h-best-sellers .h-bs-card:hover .h-bs-image img {
    transform: scale(1.05);
}

#historicum-home .h-best-sellers .h-bs-info {
    position: relative;
    background: #000000;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
    margin-top: -1px;
    min-height: 74px;
    text-align: left;
}

#historicum-home .h-best-sellers .h-bs-title {
    font-family: var(--h-font-instrument);
    font-size: 15px;
    font-weight: 400;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

#historicum-home .h-best-sellers .h-bs-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

#historicum-home .h-best-sellers .h-bs-reviews {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#historicum-home .h-best-sellers .h-bs-reviews .h-stars {
    font-size: 12px;
    color: var(--h-accent);
    letter-spacing: 2px;
    line-height: 1;
}

#historicum-home .h-best-sellers .h-bs-price {
    font-family: var(--h-font-instrument);
    font-size: 22px;
    font-weight: 400;
    color: var(--h-accent);
    white-space: nowrap;
    line-height: 1;
    text-align: right;
    margin-left: auto;
}

#historicum-home .h-best-sellers .h-bs-price .woocommerce-Price-amount,
#historicum-home .h-best-sellers .h-bs-price .price,
#historicum-home .h-best-sellers .h-bs-price ins,
#historicum-home .h-best-sellers .h-bs-price ins .woocommerce-Price-amount {
    color: var(--h-accent) !important;
    font-family: var(--h-font-instrument) !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

#historicum-home .h-best-sellers .h-bs-price del {
    display: none;
}

#historicum-home .h-best-sellers .h-bs-divider {
    display: none;
}
/* -----------------------------------------
   DARK SECTIONS GROUP
----------------------------------------- */
#historicum-home .h-dark-sections-group {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #000000;
}

#historicum-home .h-dark-sections-group::before,
#historicum-home .h-dark-sections-group::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#historicum-home .h-dark-sections-group::before {
    z-index: 0;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.10;
}

#historicum-home .h-dark-sections-group::after {
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(2, 15, 10, 0.22) 24%,
        rgba(3, 19, 12, 0.18) 52%,
        rgba(1, 7, 5, 0.62) 82%,
        rgba(0, 0, 0, 0.96) 100%
    );
}

#historicum-home .h-dark-sections-group > section {
    position: relative;
    z-index: 1;
}

.h-section-dark-gradient {
    position: relative;
    background: linear-gradient(180deg,
        var(--h-black) 0%,
        #0B0C0A 50%,
        var(--h-black) 100%
    );
    padding: 100px 0;
    z-index: 1;
}

.h-section-dark {
    position: relative;
    background-color: var(--h-black);
    padding: 80px 0;
    z-index: 1;
}

#historicum-home .h-dark-sections-group .h-section-dark,
#historicum-home .h-dark-sections-group .h-section-dark-gradient,
#historicum-home .h-dark-sections-group .h-testimonials,
#historicum-home .h-dark-sections-group .h-training,
#historicum-home .h-dark-sections-group .h-blog {
    background: transparent;
    background-image: none;
}

#historicum-home .h-dark-sections-group .h-testimonials-bg-overlay,
#historicum-home .h-dark-sections-group .h-training-bg-overlay,
#historicum-home .h-dark-sections-group .h-training-background,
#historicum-home .h-dark-sections-group .h-training > .h-bg-image {
    display: none;
}

#historicum-home .h-dark-sections-group .h-training::before,
#historicum-home .h-dark-sections-group .h-blog::before {
    content: none;
    display: none;
}

.h-dark-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.h-stats {
    position: relative;
    padding: 100px 0;
    color: var(--h-white);
}

.h-stats-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.h-stats .h-container {
    position: relative;
    z-index: 1;
}

.h-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.h-stat {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.h-stat.h-visible {
    opacity: 1;
    transform: translateY(0);
}

.h-stat .h-big-number {
    display: block;
    margin-bottom: 10px;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.h-stat .h-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--h-font-cormorant);
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.25;
}


/* -----------------------------------------
   WORKSHOP RECOMMENDED
----------------------------------------- */
.h-workshop {
    padding-top: 100px;
    padding-bottom: 120px;
    position: relative;
}

.h-workshop-row {
    margin-bottom: 80px;
}

.h-workshop-row:last-child {
    margin-bottom: 0;
}

.h-workshop-subtitle {
    font-family: var(--h-font-cormorant);
    font-weight: 400;
    font-size: 28px;
    color: var(--h-black);
    text-align: center;
    margin-bottom: 30px;
}

.h-workshop .h-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.h-product-card {
    position: relative;
    background: var(--h-black);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.22),
        0 6px 12px rgba(0,0,0,0.14);
}

.h-ws-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 16px;
    overflow: hidden;
    padding: 10px 0 10px;
}

.h-ws-carousel {
    overflow: visible;
    cursor: grab;
    display: flex;
    gap: 20px;
    padding: 24px 70px;
    user-select: none;
    -webkit-user-select: none;
    will-change: scroll-position;
}

.h-ws-carousel:active,
.h-ws-carousel.is-dragging {
    cursor: grabbing;
}

.h-ws-carousel.is-dragging * {
    pointer-events: none;
}

.h-ws-slide {
    flex: 0 0 260px;
    width: 260px;
}

.h-product-card {
    position: relative;
    background: var(--h-black);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.22),
        0 6px 12px rgba(0,0,0,0.14);
}

.h-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--h-accent);
    box-shadow:
        0 6px 12px rgba(0,0,0,0.28),
        0 12px 24px rgba(0,0,0,0.16);
}

.h-product-card-image {
    width: 100%;
    aspect-ratio: 11 / 10;
    overflow: hidden;
    background: #111;
    position: relative;
}

.h-product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10,10,10,0.85) 0%,
        rgba(10,10,10,0.3) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.h-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.h-product-card:hover .h-product-card-image img {
    transform: scale(1.05);
}

.h-product-card-info {
    padding: 10px 12px 14px;
    text-align: left;
    background: var(--h-black);
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

.h-product-card .h-product-name {
    font-family: var(--h-font-instrument);
    font-size: 21px;
    font-weight: 400;
    color: var(--h-white);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-product-card .h-stars {
    font-size: 18px;
    color: var(--h-accent);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.h-product-card .h-product-price {
    font-family: var(--h-font-instrument);
    font-size: 22px;
    font-weight: 400;
    color: var(--h-white);
    margin-bottom: 8px;
}

.h-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    justify-content: flex-start;
}

.h-product-tag {
    font-family: var(--h-font-cinzel);
    font-size: 8px;
    font-weight: 700;
    color: var(--h-black);
    background: var(--h-accent);
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}


/* -----------------------------------------
   TESTIMONIALS
----------------------------------------- */
.h-testimonials {
    padding: 100px 0 20px;
    position: relative;
}

.h-testimonials-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.h-testimonials-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.h-testimonials-carousel {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.05) 2%, rgba(0,0,0,0.2) 5%, rgba(0,0,0,0.5) 8%, rgba(0,0,0,0.8) 11%, black 15%, black 85%, rgba(0,0,0,0.8) 89%, rgba(0,0,0,0.5) 92%, rgba(0,0,0,0.2) 95%, rgba(0,0,0,0.05) 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.05) 2%, rgba(0,0,0,0.2) 5%, rgba(0,0,0,0.5) 8%, rgba(0,0,0,0.8) 11%, black 15%, black 85%, rgba(0,0,0,0.8) 89%, rgba(0,0,0,0.5) 92%, rgba(0,0,0,0.2) 95%, rgba(0,0,0,0.05) 98%, transparent 100%);
}

.h-testimonials-track {
    display: flex;
    gap: 40px;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    padding: 0 80px;
}

.h-testimonial-card {
    flex: 0 0 380px;
    position: relative;
    text-align: center;
    padding: 50px 35px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
}

.h-quote-mark {
    font-family: var(--h-font-cormorant);
    font-size: 120px;
    font-weight: 700;
    color: var(--h-accent);
    line-height: 0.5;
    position: absolute;
    opacity: 0.5;
}

.h-quote-open {
    top: 20px;
    left: 15px;
}

.h-quote-close {
    bottom: 12px;
    right: 15px;
}

.h-testimonial-image {
    width: 230px;
    height: 310px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 30px;
}

.h-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stars centered under image, above name */
.h-testimonial-card .h-stars {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 28px;
    color: var(--h-accent);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.h-testimonial-name {
    font-family: var(--h-font-cormorant);
    font-weight: 700;
    font-size: 34px;
    color: var(--h-white);
    margin-bottom: 15px;
}

/* Bigger, brighter review text */
.h-testimonial-text {
    font-family: var(--h-font-cormorant);
    font-size: clamp(24px, 2.1vw, 30px);
    color: #f1efe7;
    font-style: italic;
    line-height: 1.45;
}


/* -----------------------------------------
   SPONSORS
----------------------------------------- */
.h-sponsors {
    padding: 20px 0 30px;
    position: relative;
}

.h-sponsors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.h-sponsors .h-container {
    position: relative;
    z-index: 1;
}

.h-sponsors-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.h-sponsor-line-top,
.h-sponsor-line-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--h-accent);
    opacity: 0.6;
}

.h-sponsor-line-top { top: 0; }
.h-sponsor-line-bottom { bottom: 0; }

.h-sponsors-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.h-sponsor-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.h-sponsor-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.h-sponsors-carousel {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 2;
}

.h-sponsors-track {
    display: flex;
    gap: 60px;
    animation: sponsorScroll 32s linear infinite;
    width: max-content;
    align-items: center;
    padding: 30px 60px;
}

.h-sponsors-track:hover {
    animation-play-state: paused;
}

@keyframes sponsorScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.h-sponsors-track .h-sponsor-logo {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.h-sponsors-track .h-sponsor-logo:hover {
    transform: scale(1.1);
}

.h-sponsors-track .h-sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.h-sponsors-track .h-sponsor-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/* -----------------------------------------
   AMMA TRAINING
----------------------------------------- */
.h-training {
    padding: 100px 0;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    z-index: 2;
}

@media (max-width: 991px) {
    .h-training {
        overflow-x: hidden;
    }
}

.h-training::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.h-training .h-container {
    position: relative;
    z-index: 2;
}

.h-training-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.h-training-bands {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.h-training-band {
    position: absolute;
    width: calc(100vw + 240px);
    left: 50%;
    background: var(--h-accent);
    transform: translateX(-50%) rotate(-8deg);
}

.h-training-band-main {
    bottom: -20px;
    height: 140px;
    transform: translateX(-50%) rotate(-8deg);
}

.h-training-band-thin {
    bottom: -34px;
    height: 8px;
    transform: translateX(-50%) rotate(-8deg);
}

.h-training-content {
    text-align: left;
    position: relative;
    z-index: 3;
}

.h-training-title {
    font-family: var(--h-font-cinzel);
    font-weight: 700;
    font-size: clamp(26px, 3.8vw, 46px);
    color: var(--h-white);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
}

.h-training-title .h-text-accent {
    color: var(--h-accent);
}

.h-training-title-group {
    display: inline-block;
    text-align: left;
}

.h-training-instructor {
    font-family: var(--h-font-cinzel);
    font-weight: 400;
    font-size: clamp(12px, 1.3vw, 17px);
    color: var(--h-white);
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.5;
}

.h-training-instructor .h-text-accent {
    font-weight: 700;
    font-size: clamp(17px, 1.8vw, 24px);
    color: var(--h-accent);
}

.h-training-details {
    margin-bottom: 30px;
}

.h-training-label {
    font-family: var(--h-font-cinzel);
    font-weight: 400;
    font-size: clamp(11px, 1.1vw, 15px);
    color: var(--h-gray-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.h-training-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.h-training-list li {
    font-family: var(--h-font-cormorant);
    font-weight: 400;
    font-size: clamp(26px, 3.2vw, 42px);
    color: var(--h-white);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
    line-height: 1.1;
}

.h-training-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.h-training-patreon-text {
    font-family: var(--h-font-cinzel);
    font-weight: 400;
    font-size: clamp(12px, 1.3vw, 17px);
    color: var(--h-gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.h-training .h-btn-primary {
    font-family: var(--h-font-cinzel);
    font-size: 13px;
    font-weight: 700;
    color: var(--h-black);
    background: var(--h-accent);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--h-accent);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.h-training .h-btn-primary:hover {
    background: var(--h-white);
    color: var(--h-black);
    border-color: var(--h-white);
}

.h-training-images {
    position: relative;
    height: min(580px, 41vw);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    transform: translateY(10px);
}

.h-training-image {
    position: absolute;
    border-radius: 8px;
    overflow: visible;
    isolation: isolate;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.48),
        0 18px 34px rgba(0, 0, 0, 0.30);
    transition: transform 0.4s ease;
    z-index: 2;
}

.h-training-image img {
    clip-path: inset(0 round 8px);
}

.h-training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-training-image-small {
    width: min(270px, 19vw);
    height: min(390px, 27vw);
    left: min(10px, 1vw);
    bottom: min(50px, 3.5vw);
    transform: rotate(-3deg) scaleX(-1);
    z-index: 3;
}

.h-training-image-small:hover {
    transform: rotate(-3deg) scaleX(-1);
}

.h-training-image-large {
    width: min(430px, 30vw);
    height: min(560px, 39vw);
    right: -20px;
    bottom: min(20px, 1.4vw);
    transform: rotate(4deg);
    z-index: 2;
}

.h-training-image-large:hover {
    transform: rotate(4deg);
}


/* -----------------------------------------
   BLOG POSTS
----------------------------------------- */
.h-blog {
    padding: 100px 0;
    position: relative;
}

.h-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://2026-remake.historicum.pl/wp-content/uploads/2026/04/Landing_Background_low_opacity-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.h-blog .h-container {
    position: relative;
    z-index: 1;
}

.h-blog-grid {
    margin-top: 50px;
}

.h-blog-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
    padding: 10px 0 20px;
}

.h-blog-carousel {
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
}

.h-blog-track {
    display: flex;
    gap: 22px;
    padding: 14px 70px 36px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.h-blog-track::-webkit-scrollbar {
    display: none;
}

.h-blog-slide {
    flex: 0 0 calc((100vw - 206px) / 4);
    width: calc((100vw - 206px) / 4);
    scroll-snap-align: none;
}

.h-blog-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.h-blog-card:hover {
    transform: translateY(-8px);
}

.h-blog-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 5%;
    margin-bottom: 15px;
    background: #000000;
}

.h-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.h-blog-card:hover .h-blog-card-image img {
    transform: scale(1.05);
}

.h-blog-card .h-h3 {
    color: var(--h-white);
    text-align: center;
}


/* -----------------------------------------
   INSTAGRAM FEED
----------------------------------------- */
.h-instagram {
    padding-top: 100px;
    padding-bottom: 120px;
    position: relative;
}

.h-instagram .h-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 30px;
    padding-left: 30px;
}

.h-instagram-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.h-instagram-grid--juicer {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: clamp(16px, 2vw, 30px);
    padding-left: clamp(16px, 2vw, 30px);
    justify-items: stretch;
}

body #historicum-home .h-instagram-grid--juicer > .juicer-feed,
body #historicum-home .h-instagram-grid--juicer > .juicer-feed.image-grid,
body #historicum-home .h-instagram-grid--juicer > .juicer-feed.j-image-grid {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    list-style: none !important;
}

body #historicum-home .h-instagram-grid--juicer > .juicer-feed > ul,
body #historicum-home .h-instagram-grid--juicer > .juicer-feed > ol,
body #historicum-home .h-instagram-grid--juicer .j-stacker-wrapper > ul,
body #historicum-home .h-instagram-grid--juicer .j-stacker-wrapper > ol {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body #historicum-home .h-instagram-grid--juicer .j-stacker-wrapper,
body #historicum-home .h-instagram-grid--juicer .j-stacker,
body #historicum-home .h-instagram-grid--juicer .j-stack {
    display: contents !important;
}

body #historicum-home .h-instagram-grid--juicer .j-post,
body #historicum-home .h-instagram-grid--juicer .feed-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0.3px solid #111111 !important;
    border-radius: 8px !important;
    background: var(--h-paper);
    -webkit-box-shadow: 4px 4px 8px -1px #000000;
    box-shadow: 4px 4px 8px -1px #000000;
    list-style: none !important;
}

body #historicum-home .h-instagram-grid--juicer .j-post:nth-of-type(n + 6),
body #historicum-home .h-instagram-grid--juicer .feed-item:nth-of-type(n + 6),
body #historicum-home .h-instagram-grid--juicer .j-stack > .feed-item:nth-child(n + 6),
body #historicum-home .h-instagram-grid--juicer .j-stack > .j-post:nth-child(n + 6) {
    display: none !important;
}

body #historicum-home .h-instagram-grid--juicer .j-image,
body #historicum-home .h-instagram-grid--juicer .j-content-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body #historicum-home .h-instagram-grid--juicer .j-image img,
body #historicum-home .h-instagram-grid--juicer .feed-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body #historicum-home .h-instagram-grid--juicer .j-text,
body #historicum-home .h-instagram-grid--juicer .j-text-container {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 3;
    display: block !important;
    width: auto !important;
    max-height: 42%;
    overflow: hidden !important;
    padding: 8px 10px !important;
    border: 0.3px solid rgba(17, 17, 17, 0.55);
    border-radius: 6px;
    background: var(--h-paper) !important;
    color: #111111 !important;
    font-family: var(--h-font-instrument, sans-serif) !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

body #historicum-home .h-instagram-grid--juicer .j-post:hover .j-text,
body #historicum-home .h-instagram-grid--juicer .j-post:focus-within .j-text,
body #historicum-home .h-instagram-grid--juicer .feed-item:hover .j-text,
body #historicum-home .h-instagram-grid--juicer .feed-item:focus-within .j-text,
body #historicum-home .h-instagram-grid--juicer .j-post:hover .j-text-container,
body #historicum-home .h-instagram-grid--juicer .j-post:focus-within .j-text-container,
body #historicum-home .h-instagram-grid--juicer .feed-item:hover .j-text-container,
body #historicum-home .h-instagram-grid--juicer .feed-item:focus-within .j-text-container {
    opacity: 1;
    transform: translateY(0);
}

body #historicum-home .h-instagram-grid--juicer .j-text *,
body #historicum-home .h-instagram-grid--juicer .j-text-container * {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body #historicum-home .h-instagram-grid--juicer .j-text .j-text-container {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-height: none;
    padding: 0 !important;
    border: 0;
    background: transparent !important;
    opacity: 1;
    transform: none;
}

body #historicum-home .h-instagram-grid--juicer .j-paginate,
body #historicum-home .h-instagram-grid--juicer .j-pagination,
body #historicum-home .h-instagram-grid--juicer .juicer-button,
body #historicum-home .h-instagram-grid--juicer .j-load-more,
body #historicum-home .h-instagram-grid--juicer .referral {
    display: none !important;
}

body .j-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(16px, 4vw, 42px) !important;
    overflow: auto !important;
    background: rgba(0, 0, 0, 0.72) !important;
}

body .j-overlay .j-overlay-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(940px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 48px) !important;
    margin: auto !important;
    overflow: auto !important;
    transform: none !important;
}

body .j-overlay .j-post-overlay {
    max-height: calc(100vh - 48px) !important;
    overflow: auto !important;
}

body .j-overlay .j-post-overlay .j-overlay-text,
body .j-overlay .j-post-overlay .j-message {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

@media screen and (max-width: 900px) {
    .h-instagram-grid--juicer {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    body #historicum-home .h-instagram-grid--juicer > .juicer-feed,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.image-grid,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.j-image-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media screen and (max-width: 599px) {
    .h-instagram-grid--juicer {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
    }

    body #historicum-home .h-instagram-grid--juicer > .juicer-feed,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.image-grid,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.j-image-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    body #historicum-home .h-instagram-grid--juicer .j-text,
    body #historicum-home .h-instagram-grid--juicer .j-text-container {
        display: none !important;
    }
}

.h-instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.h-instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.h-instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.h-instagram-overlay svg {
    color: var(--h-white);
}

.h-instagram-item:hover img {
    transform: scale(1.1);
}

.h-instagram-item:hover .h-instagram-overlay {
    opacity: 1;
}


/* -----------------------------------------
   FOOTER
----------------------------------------- */
.h-footer {
    background: transparent;
    padding: 80px 0 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.h-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.h-footer-group {
    display: flex;
    gap: 40px;
}

.h-footer-left { justify-content: flex-start; }
.h-footer-center { justify-content: center; }
.h-footer-right { justify-content: flex-end; }

.h-footer-link {
    font-family: var(--h-font-cinzel);
    font-size: 14px;
    font-weight: 600;
    color: var(--h-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
}

.h-footer-link:hover {
    color: var(--h-accent);
}

.h-footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--h-accent);
    transition: width 0.3s ease;
}

.h-footer-link:hover::after {
    width: 100%;
}

.h-footer-link-home {
    font-size: 16px;
}


/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */
@media screen and (max-width: 1400px) {
    .h-hero-blocks { max-width: min(1100px, 90vw); }
    .h-hero-block-3 { width: min(300px, 21vw); height: min(480px, 34vw); }
    .h-hero-block-2, .h-hero-block-4 { width: min(230px, 16.5vw); height: min(400px, 28.5vw); }
    .h-hero-block-1, .h-hero-block-5 { width: min(170px, 12vw); height: min(320px, 23vw); }
}

@media screen and (max-width: 1200px) {
    .h-hero-blocks { max-width: min(940px, 90vw); }
    .h-workshop .h-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 15px; }
    .h-training-wrapper { gap: 40px; }
    .h-training-images { height: 450px; }
    .h-testimonial-card { flex: 0 0 320px; padding: 40px 25px; }
    .h-testimonial-image { width: 160px; height: 220px; }
}

@media screen and (max-width: 991px) {
    .h-hero { padding-top: 60px; padding-bottom: 100px; }
    .h-hero-blocks { transform: none; margin-bottom: 0; max-width: 95vw; gap: 10px; }
    .h-hero-block-3 { width: 22vw; height: 35vw; margin-top: 0; }
    .h-hero-block-2, .h-hero-block-4 { width: 17.5vw; height: 30vw; margin-top: 3.5vw; }
    .h-hero-block-1 { width: 13vw; height: 24vw; margin-top: calc(7vw - 5px); margin-right: -0.5vw; }
    .h-hero-block-5 { width: 13vw; height: 24vw; margin-top: calc(7vw - 5px); margin-left: -0.5vw; }
    .h-hero-content .h-main-title { white-space: normal; font-size: clamp(22px, 5vw, 32px); }
    .h-section-paper, .h-section-dark, .h-section-dark-gradient { padding: 60px 0; }
    .h-workshop .h-grid-4, .h-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .h-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .h-training { padding-top: 30px; }
    .h-training-wrapper { gap: 30px; }
    .h-training-band-main { bottom: -50px; }
    .h-training-band-thin { bottom: -64px; }
    .h-instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .h-footer-grid { gap: 15px; }
    .h-footer-group { gap: 20px; flex-wrap: wrap; }
    .h-testimonial-card { flex: 0 0 280px; }
    .h-testimonial-image { width: 140px; height: 190px; }
    .h-testimonial-card .h-stars { font-size: 22px; }
    .h-testimonial-name { font-size: 22px; }
    .h-testimonial-text { font-size: 18px; }
    .h-torn-edge-top { height: 60px; top: -60px; }
    .h-torn-edge-bottom { height: 60px; bottom: -60px; }
    .h-training-cta { flex-wrap: wrap; }
}

@media screen and (max-width: 767px) {
    .h-hero { padding-top: 50px; padding-bottom: 60px; }
    .h-hero-blocks { transform: none; margin-bottom: 0; gap: 8px; overflow: visible; justify-content: center; padding: 0 8px; max-width: 100vw; }
    .h-hero-block-3 { flex: 0 0 auto; width: 22vw; height: 35vw; margin-top: 0; }
    .h-hero-block-2, .h-hero-block-4 { flex: 0 0 auto; width: 19vw; height: 32vw; margin-top: 3.5vw; margin-left: 0; margin-right: 0; }
    .h-hero-block-1 { flex: 0 0 auto; width: 14vw; height: 26vw; margin-top: 7vw; margin-right: 0; }
    .h-hero-block-5 { flex: 0 0 auto; width: 14vw; height: 26vw; margin-top: 7vw; margin-left: 0; }
    .h-hero-content { margin-top: 0; margin-bottom: 4px; }
    .h-hero-cta-zone { margin-bottom: 20px; }
    .h-band-middle { top: 40%; }
    .h-band-top { top: calc(40% - 6px); }
    .h-band-bottom { top: calc(40% + 180px + 4px); }
    .h-hero-content .h-subtitle { font-size: 16px; }
    .h-hero-cta-zone .h-cta-text { font-size: 24px; }

    /* Stats: keep 3 columns on mobile, smaller */
    .h-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .h-stat-label { font-size: 12px; line-height: 1.25; }

    .h-workshop .h-grid-4, .h-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .h-workshop-subtitle { font-size: 20px; }
    .h-product-card .h-product-name { font-size: 14px; }
    .h-product-card .h-product-price { font-size: 16px; }
    .h-training { padding: 50px 0; }
    #historicum-home .h-training {
        transform: translateY(-28px);
    }
    .h-training-wrapper { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .h-training-content { text-align: center; padding: 0 16px; }
    .h-training-cta { justify-content: center; }
    .h-training-instructor { text-align: center; }

    /* Bigger title on mobile */
    .h-training-title { font-size: clamp(50px, 13vw, 72px); white-space: normal; line-height: 1.03; }

    .h-training-instructor { font-size: clamp(15px, 4vw, 20px); }
    .h-training-instructor .h-text-accent { font-size: clamp(20px, 5.5vw, 26px); }
    .h-training-list li { font-size: clamp(26px, 7vw, 36px); }
    .h-training-label { font-size: clamp(13px, 3.5vw, 16px); }
    .h-training-cta { flex-wrap: nowrap; align-items: stretch; gap: 10px; }
    .h-training-patreon-text { flex: 1; font-size: clamp(11px, 2.8vw, 14px); white-space: normal; text-align: center; display: flex; align-items: center; justify-content: center; }
    .h-training .h-btn-primary { flex: 1; font-size: clamp(10px, 2.5vw, 13px); padding: 8px 4px; white-space: nowrap; text-align: center; }
    .h-training-bands { display: none; }
    .h-training-band-main { height: 70px; bottom: -10px; }
    .h-training-band-thin { height: 5px; bottom: -20px; }
    .h-training-images { height: 72vw; min-height: unset; position: relative; margin-top: 10px; }
    .h-training-image-small { display: block; width: 38vw; height: 52vw; left: 2vw; bottom: 10px; }
    .h-training-image-large { position: absolute; right: 0; left: auto; bottom: 0; width: 53vw; height: 69vw; transform: rotate(4deg); margin: 0; aspect-ratio: unset; }
    .h-training-image-large:hover { transform: rotate(4deg); }

    /* Arrows: bigger + centered for finger tapping */
    .h-carousel-controls { justify-content: center; padding: 20px 0 0; gap: 16px; }
    .h-carousel-arrow { width: 46px; height: 46px; }
    .h-carousel-arrow::before { width: 9px; height: 9px; }
    #historicum-home .h-testimonials-carousel .h-carousel-arrow {
        border-color: rgba(255, 255, 255, 0.92);
        background: transparent;
    }
    #historicum-home .h-testimonials-carousel .h-carousel-arrow::before {
        border-color: #ffffff;
    }
    #historicum-home .h-testimonials-carousel .h-carousel-arrow:hover,
    #historicum-home .h-testimonials-carousel .h-carousel-arrow:focus-visible {
        border-color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
    }
    #historicum-home .h-testimonials-carousel .h-carousel-arrow:hover::before,
    #historicum-home .h-testimonials-carousel .h-carousel-arrow:focus-visible::before {
        border-color: #ffffff;
    }

    /* Fighters Favorite: 3 cards, arrows centered and lower */
    #historicum-home .h-best-sellers .h-bs-wrapper {
        overflow: hidden;
        padding: 8px 0 42px;
    }
    #historicum-home .h-best-sellers .h-bs-carousel {
        overflow-x: auto;
        overflow-y: hidden;
        cursor: default;
        gap: 10px;
        padding: 10px 15px 8px;
        scroll-behavior: smooth;
    }
    #historicum-home .h-best-sellers .h-bs-slide {
        flex: 0 0 calc((100vw - 50px) / 3);
        width: calc((100vw - 50px) / 3);
        min-width: 0;
        padding-bottom: 6px;
    }
    #historicum-home .h-best-sellers .h-bs-wrapper .h-carousel-controls {
        justify-content: center;
        padding: 14px 0 0;
        gap: 18px;
    }
    #historicum-home .h-best-sellers .h-bs-wrapper .h-carousel-arrow {
        width: 50px;
        height: 50px;
    }
    #historicum-home .h-best-sellers .h-bs-wrapper .h-carousel-arrow::before {
        width: 10px;
        height: 10px;
    }
    #historicum-home .h-best-sellers .h-bs-title { font-size: 13px; }
    #historicum-home .h-best-sellers .h-bs-price { font-size: 14px; }
    #historicum-home .h-best-sellers .h-bs-info { min-height: 58px; }
    #historicum-home .h-best-sellers .h-bs-card > .h-bs-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Workshop: 3 cards, static, arrows only Ã¢â‚¬â€ same as FF */
    .h-ws-wrapper { overflow: hidden; }
    .h-ws-carousel {
        overflow: hidden;
        cursor: default;
        padding: 10px 15px;
        scroll-behavior: smooth;
    }
    .h-ws-slide {
        flex: 0 0 calc((100vw - 46px) / 3);
        width: calc((100vw - 46px) / 3);
        min-width: 0;
    }

    .h-instagram-grid { grid-template-columns: repeat(2, 1fr); }
    .h-footer-group { gap: 12px; }
    .h-footer-link { font-size: 11px; }
    .h-torn-edge-top { height: 50px; top: -50px; }
    .h-torn-edge-bottom { height: 50px; bottom: -50px; }
    .h-testimonial-card { flex: 0 0 260px; padding: 30px 20px; }
    .h-testimonial-image { width: 120px; height: 160px; }
    .h-quote-mark { font-size: 80px; }
    .h-testimonial-card .h-stars { font-size: 18px; }
    .h-testimonial-name { font-size: 22px; }
    .h-testimonial-text { font-size: 20px; }
    .h-training-title { white-space: normal; }
    .h-training-cta { flex-wrap: wrap; }

    /* Section titles bigger on mobile */
    .h-h1 { font-size: clamp(28px, 7.6vw, 36px); }
    .h-h2 { font-size: clamp(24px, 6.2vw, 30px); }
    .h-h3 { font-size: clamp(18px, 5vw, 22px); }
}

@media screen and (max-width: 480px) {
    .h-hero-block-3 { width: 24vw; height: 38vw; }
    .h-hero-block-2, .h-hero-block-4 { width: 20vw; height: 34vw; margin-top: 4vw; }
    .h-hero-block-1, .h-hero-block-5 { width: 15vw; height: 28vw; margin-top: 8vw; }
    .h-workshop .h-grid-4, .h-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
    .h-sponsors-logos { flex-wrap: wrap; gap: 30px; }
    .h-sponsor-logo { width: 60px; height: 60px; }
    .h-footer-nav { flex-direction: column; gap: 15px; }
    .h-training-patreon-text { font-size: 16px; }
    .h-training .h-btn-primary { font-size: 12px; padding: 12px 24px; }
}

/* ===========================================
   HOMEPAGE COMPONENT SYSTEMS
   =========================================== */

/* Headings and title dividers */
#historicum-home .h-section-paper .h-h1,
#historicum-home .h-section-dark .h-h1,
#historicum-home .h-section-dark-gradient .h-h1,
#historicum-home .h-section-dark .h-h2 {
    font-size: clamp(34px, 3.6vw, 45px);
    line-height: 1.04;
    letter-spacing: 0.06em;
}

#historicum-home .h-title-with-lines .h-h1,
#historicum-home .h-title-with-lines .h-h2,
#historicum-home .h-title-with-lines .h-h3 {
    background: transparent;
}

#historicum-home .h-title-line-top,
#historicum-home .h-title-line-bottom {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.18) 14%,
        rgba(0, 0, 0, 0.72) 50%,
        rgba(0, 0, 0, 0.18) 86%,
        rgba(0, 0, 0, 0) 100%
    );
}

#historicum-home .h-section-dark .h-title-line-top,
#historicum-home .h-section-dark .h-title-line-bottom,
#historicum-home .h-section-dark-gradient .h-title-line-top,
#historicum-home .h-section-dark-gradient .h-title-line-bottom {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.16) 14%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.16) 86%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Paper sections and torn edges */
#historicum-home .h-section-paper {
    position: relative;
    z-index: 5;
    overflow: visible;
    background-color: #f5f0e6;
    background-image: none;
}

#historicum-home .h-section-paper::before,
#historicum-home .h-section-paper::after {
    content: none;
    display: none;
}

#historicum-home .h-section-paper > * {
    position: relative;
    z-index: 1;
}

#historicum-home .h-torn-edge-top,
#historicum-home .h-torn-edge-bottom {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 62px;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
    background-color: #f5f0e6;
    background-image: none;
    clip-path: none;
    -webkit-mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 118% 100%;
    mask-image: url("https://historicum.pl/wp-content/uploads/2026/04/torn-edge.svg");
    mask-repeat: no-repeat;
    mask-size: 118% 100%;
}

#historicum-home .h-torn-edge-top {
    top: -61px;
    transform: none;
    -webkit-mask-position: 48% bottom;
    mask-position: 48% bottom;
}

#historicum-home .h-torn-edge-bottom {
    bottom: -61px;
    transform: scaleY(-1);
    transform-origin: center;
    -webkit-mask-position: 52% top;
    mask-position: 52% top;
}

#historicum-home .h-torn-edge-top::before,
#historicum-home .h-torn-edge-top::after,
#historicum-home .h-torn-edge-bottom::before,
#historicum-home .h-torn-edge-bottom::after {
    content: none;
    display: none;
}

/* Hero block sizing */
#historicum-home .h-hero-block-label {
    font-size: clamp(16px, 1.8vw, 24px);
    letter-spacing: 0.1em;
}

#historicum-home .h-hero-blocks {
    max-width: min(1480px, 96vw);
    gap: 6px;
}

#historicum-home .h-hero-block-1 { margin-right: -12px; }
#historicum-home .h-hero-block-2 { margin-right: -12px; }
#historicum-home .h-hero-block-4 { margin-left: -12px; }
#historicum-home .h-hero-block-5 { margin-left: -12px; }

#historicum-home .h-hero .h-hero-block-1,
#historicum-home .h-hero .h-hero-block-5 { z-index: 20; }

#historicum-home .h-hero .h-hero-block-2,
#historicum-home .h-hero .h-hero-block-4 { z-index: 40; }

#historicum-home .h-hero .h-hero-block-3 { z-index: 60; }

#historicum-home .h-band-middle {
    top: calc(50% + 30px);
    height: 152px;
}

#historicum-home .h-band-top {
    top: calc(50% + 23px);
    height: 3px;
}

#historicum-home .h-band-bottom {
    top: calc(50% + 187px);
    height: 9px;
}

@media screen and (min-width: 1401px) {
    #historicum-home .h-hero-block-3 {
        width: clamp(500px, 31vw, 535px);
        height: clamp(690px, 43vw, 735px);
        margin-top: 0;
    }

    #historicum-home .h-hero-block-2,
    #historicum-home .h-hero-block-4 {
        width: clamp(382px, 23.5vw, 410px);
        height: clamp(600px, 36.7vw, 635px);
        margin-top: 54px;
    }

    #historicum-home .h-hero-block-1,
    #historicum-home .h-hero-block-5 {
        width: clamp(252px, 16vw, 280px);
        height: clamp(468px, 30vw, 510px);
        margin-top: 114px;
    }
}

@media screen and (min-width: 992px) and (max-width: 1400px) {
    #historicum-home .h-hero-blocks { gap: 4px; }
    #historicum-home .h-hero-block-1 { margin-right: -6px; }
    #historicum-home .h-hero-block-2 { margin-right: -6px; }
    #historicum-home .h-hero-block-4 { margin-left: -6px; }
    #historicum-home .h-hero-block-5 { margin-left: -6px; }

    #historicum-home .h-hero-block-3 {
        width: min(360px, 27vw);
        height: min(540px, 40vw);
        margin-top: 0;
    }

    #historicum-home .h-hero-block-2,
    #historicum-home .h-hero-block-4 {
        width: min(280px, 21vw);
        height: min(455px, 34vw);
        margin-top: 42px;
    }

    #historicum-home .h-hero-block-1,
    #historicum-home .h-hero-block-5 {
        width: min(205px, 15vw);
        height: min(365px, 27vw);
        margin-top: 96px;
    }
}

/* Shared product card language */
#historicum-home .h-home-fighters-favorite .h-container,
#historicum-home .h-workshop .h-container {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
}

#historicum-home .h-home-fighters-favorite .h-title-with-lines,
#historicum-home .h-workshop .h-title-with-lines {
    max-width: var(--h-container-wide);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--h-space-md);
    padding-left: var(--h-space-md);
}

#historicum-home .h-home-fighters-favorite {
    max-width: 100%;
    overflow: visible;
}

#historicum-home .h-home-fighters-favorite .h-shop-fighter-wrapper {
    position: relative;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    overflow: visible;
    box-sizing: border-box;
}

#historicum-home .h-bs-wrapper {
    overflow-x: visible;
    overflow-y: visible;
}

#historicum-home .h-home-fighters-favorite .h-shop-fighter-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px var(--h-shop-section-left-pad, 40px) 22px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: auto;
    touch-action: auto;
    scroll-behavior: auto;
}

#historicum-home .h-home-fighters-favorite .h-shop-fighter-carousel::-webkit-scrollbar {
    display: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-slide {
    position: relative;
    isolation: isolate;
    flex: 0 0 280px;
    width: 280px;
    padding-bottom: 12px;
    background: transparent !important;
    box-shadow: none !important;
}

#historicum-home .h-workshop .h-ws-cell {
    background: transparent !important;
    box-shadow: none !important;
}

#historicum-home .h-home-fighters-favorite .h-bs-slide::before,
#historicum-home .h-home-fighters-favorite .h-bs-slide::after,
#historicum-home .h-workshop .h-ws-cell::before,
#historicum-home .h-workshop .h-ws-cell::after {
    content: none;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

#historicum-home .h-home-fighters-favorite .h-bs-card,
#historicum-home .h-workshop .h-ws-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.78);
    border-radius: 10px;
    background: #0b0b0b;
    color: inherit;
    text-decoration: none;
    -webkit-box-shadow: 0 4px 7px rgba(0, 0, 0, 0.54), 0 1px 2px rgba(0, 0, 0, 0.38);
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.54), 0 1px 2px rgba(0, 0, 0, 0.38);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#historicum-home .h-bs-card.h-set-temporarily-unavailable,
#historicum-home .h-ws-card.h-set-temporarily-unavailable {
    opacity: 0.52;
    filter: grayscale(1);
}

#historicum-home .h-ws-cell.h-set-temporarily-unavailable {
    opacity: 1;
    filter: none;
}

#historicum-home .h-bs-card.h-set-temporarily-unavailable::after,
#historicum-home .h-ws-card.h-set-temporarily-unavailable::after {
    content: "TEMPORARILY UNAVAILABLE";
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 90;
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(235, 188, 0, 0.75);
    border-radius: 6px;
    background: rgba(5, 5, 5, 0.86);
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-align: center;
    pointer-events: none;
}

#historicum-home .h-sets-unavailable-label {
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: uppercase;
}

#historicum-home .h-home-fighters-favorite .h-bs-card:hover,
#historicum-home .h-home-fighters-favorite .h-bs-card:focus-visible,
#historicum-home .h-workshop .h-ws-card:hover,
#historicum-home .h-workshop .h-ws-card:focus-visible {
    border-color: var(--h-accent);
    -webkit-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.60), 0 1px 3px rgba(0, 0, 0, 0.42);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.60), 0 1px 3px rgba(0, 0, 0, 0.42);
    transform: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 40;
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 0 8px;
    background: var(--h-accent);
    color: #111;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-card.is-sale::before,
#historicum-home .h-workshop .h-ws-cell.is-sale .h-ws-card::before {
    content: none;
    display: none;
}

#historicum-home .h-sale-ribbon,
#historicum-home .h-ws-sale-badge {
    position: absolute;
    top: 8px;
    left: -78px;
    z-index: 85;
    display: flex;
    width: 244px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: var(--h-accent);
    color: #111;
    font-family: var(--h-font-instrument);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
    transform: rotate(-24deg);
    -webkit-box-shadow: 3px 3px 7px -1px #000000;
    box-shadow: 3px 3px 7px -1px #000000;
}

#historicum-home .h-sale-ribbon span,
#historicum-home .h-ws-sale-badge span {
    display: block;
    line-height: 1;
}

#historicum-home .h-sale-ribbon .h-sale-ribbon-label,
#historicum-home .h-ws-sale-badge .h-sale-ribbon-label {
    font-size: 10px;
    letter-spacing: 0.16em;
}

#historicum-home .h-sale-ribbon .h-sale-ribbon-amount,
#historicum-home .h-ws-sale-badge .h-sale-ribbon-amount {
    margin-top: 0;
    font-size: 16px;
    letter-spacing: 0.035em;
}

#historicum-home .h-home-fighters-favorite .h-bs-image,
#historicum-home .h-workshop .h-ws-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    background: #111;
}

#historicum-home .h-home-fighters-favorite .h-bs-image > img,
#historicum-home .h-workshop .h-ws-image > img:not(.h-shop-card-watermark) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.36s ease;
}

#historicum-home .h-home-fighters-favorite .h-bs-image .h-card-image-secondary {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-card:hover .h-card-image-primary:not(.h-card-image-only) {
    opacity: 0;
}

#historicum-home .h-home-fighters-favorite .h-bs-card:hover .h-card-image-primary.h-card-image-only {
    opacity: 1;
}

#historicum-home .h-home-fighters-favorite .h-bs-card:hover .h-card-image-secondary {
    opacity: 1;
}

#historicum-home .h-home-fighters-favorite .h-bs-card:hover .h-bs-image > img,
#historicum-home .h-workshop .h-ws-card:hover .h-ws-image > img:not(.h-shop-card-watermark) {
    transform: scale(1.05);
}

#historicum-home .h-home-fighters-favorite .h-bs-image img.h-shop-card-watermark,
#historicum-home .h-workshop .h-ws-image img.h-shop-card-watermark {
    position: absolute;
    right: auto;
    bottom: 8px;
    left: 8px;
    z-index: 4;
    display: block;
    width: 42px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
    opacity: 0.98;
    filter: none;
    pointer-events: none;
    transition: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-info,
#historicum-home .h-workshop .h-ws-info {
    position: relative;
    display: flex;
    min-height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    margin-top: 0;
    padding: 10px 12px 12px;
    background-color: #090909;
    background-image: linear-gradient(135deg, #252525 0%, #121212 48%, #020202 100%);
    text-align: center;
}

#historicum-home .h-home-fighters-favorite .h-bs-info::after,
#historicum-home .h-workshop .h-ws-info::after {
    content: "ORDER NOW";
    position: absolute;
    top: auto;
    right: -1px;
    bottom: -1px;
    left: -1px;
    z-index: 70;
    display: flex;
    height: 43px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--h-accent);
    color: #111;
    font-family: var(--h-font-instrument);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    transform: translateZ(0);
    transition: clip-path 0.18s cubic-bezier(0.25, 0.9, 0.25, 1);
}

#historicum-home .h-home-fighters-favorite .h-bs-info::after {
    height: 48px;
}

#historicum-home .h-home-fighters-favorite .h-bs-card:hover .h-bs-info::after,
#historicum-home .h-home-fighters-favorite .h-bs-card:focus-visible .h-bs-info::after,
#historicum-home .h-home-fighters-favorite .h-bs-card:active .h-bs-info::after,
#historicum-home .h-workshop .h-ws-card:hover .h-ws-info::after,
#historicum-home .h-workshop .h-ws-card:focus-visible .h-ws-info::after,
#historicum-home .h-workshop .h-ws-card:active .h-ws-info::after {
    clip-path: inset(0 0 0 0);
}

#historicum-home .h-home-fighters-favorite .h-bs-title,
#historicum-home .h-workshop .h-ws-title {
    display: -webkit-box;
    width: 100%;
    min-height: 30px;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: var(--h-font-instrument);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#historicum-home .h-home-fighters-favorite .h-bs-title {
    text-align: left;
}

#historicum-home .h-workshop .h-ws-title {
    transform: translateY(10px);
    transition: none;
}

#historicum-home .h-workshop .h-ws-card:hover .h-ws-title,
#historicum-home .h-workshop .h-ws-card:focus-visible .h-ws-title {
    opacity: 1;
    transform: translateY(10px);
}

#historicum-home .h-home-fighters-favorite .h-bs-bottom-row {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

#historicum-home .h-home-fighters-favorite .h-bs-reviews .h-stars,
#historicum-home .h-home-fighters-favorite .h-bs-reviews .star-rating,
#historicum-home .h-workshop .h-ws-reviews .h-stars,
#historicum-home .h-workshop .h-ws-reviews .star-rating {
    color: var(--h-accent);
    font-size: 11px;
    letter-spacing: 1.5px;
}

#historicum-home .h-home-fighters-favorite .h-bs-price,
#historicum-home .h-workshop .h-ws-price {
    position: relative;
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    padding: 4px 10px;
    border: 0.5px solid rgba(235, 188, 0, 0.9);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--h-accent);
    font-family: var(--h-font-instrument);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

#historicum-home .h-home-fighters-favorite .h-bs-price {
    margin-right: 0;
    margin-left: auto;
}

#historicum-home .h-home-fighters-favorite .h-bs-price *,
#historicum-home .h-home-fighters-favorite .h-bs-price ins,
#historicum-home .h-workshop .h-ws-price *,
#historicum-home .h-workshop .h-ws-price ins,
#historicum-home .h-product-price ins,
#historicum-home .h-product-price ins * {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    text-decoration: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-price del,
#historicum-home .h-workshop .h-ws-price del,
#historicum-home .h-product-price del {
    display: inline-block;
    color: #fff;
    font-size: 0.58em;
    line-height: 1;
    opacity: 1;
    text-align: center;
    text-decoration: line-through;
}

#historicum-home .h-carousel-page-indicator {
    display: none;
}

#historicum-home .h-home-fighters-favorite .h-bs-wrapper .h-carousel-controls,
#historicum-home .h-workshop .h-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 70px;
}

@media screen and (min-width: 992px) {
    #historicum-home .h-home-fighters-favorite .h-shop-fighter-wrapper {
        overflow: hidden;
    }

    #historicum-home .h-home-fighters-favorite .h-shop-fighter-carousel {
        overflow: visible;
    }
}

/* Workshop Recommended */
#historicum-home .h-workshop {
    padding-top: 86px;
    padding-bottom: 94px;
}

#historicum-home .h-workshop .h-ws-master-wrapper {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-top: 34px;
    overflow: visible;
    transform: translateX(-50%);
}

#historicum-home .h-workshop .h-ws-viewport {
    overflow: visible;
    padding: 18px 0 0;
    clip-path: inset(-32px 0 -110px 0);
    touch-action: pan-y;
}

#historicum-home .h-workshop .h-ws-pages-track {
    display: flex;
    align-items: flex-start;
}

#historicum-home .h-workshop .h-ws-page {
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
    align-items: stretch;
    padding: 16px 78px 0;
}

#historicum-home .h-workshop .h-ws-master-wrapper.h-carousel-one-row-page .h-ws-viewport {
    padding-bottom: 0;
}

#historicum-home .h-workshop .h-ws-master-wrapper.h-carousel-one-row-page .h-ws-page {
    padding-bottom: 0;
}

#historicum-home .h-workshop .h-ws-master-wrapper.h-carousel-one-row-page .h-ws-cell {
    padding-bottom: 0;
}

#historicum-home .h-workshop .h-ws-cell {
    display: flex;
    min-width: 0;
    padding-bottom: 0;
    background: transparent;
    box-shadow: none;
    isolation: auto;
}

#historicum-home .h-workshop .h-carousel-controls {
    position: relative;
    z-index: 10;
    margin-top: 34px;
    padding: 0 78px;
}

/* Trusted by Community */
#historicum-home .h-testimonials {
    position: relative;
    overflow: hidden;
    padding: 76px 0 44px;
}

#historicum-home .h-testimonials > .h-container {
    margin-bottom: 22px;
}

#historicum-home .h-testimonials-wrapper {
    margin-top: clamp(72px, calc(2.5vw + 44px), 94px);
}

#historicum-home .h-testimonials-carousel {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

#historicum-home .h-testimonials-viewport {
    position: relative;
    width: 100%;
    height: clamp(330px, 30vw, 430px);
    overflow: visible;
    touch-action: pan-y;
}

#historicum-home .h-testimonials-track {
    position: relative;
    width: min(820px, calc(100vw - 48px));
    height: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    cursor: grab;
    --h-review-drag-x: 0px;
}

#historicum-home .h-testimonials-carousel.is-dragging .h-testimonials-track {
    cursor: grabbing;
}

#historicum-home .h-testimonial-text-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    width: min(760px, 100%);
    min-height: 275px;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    margin: auto;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgba(235, 188, 0, 0.22);
    border-radius: 10px;
    background: rgba(4, 6, 4, 0.88);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.62), 0 16px 28px rgba(0, 0, 0, 0.40);
    color: #f5f0e6;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate3d(0, 22px, 0) scale(0.84);
    transition: opacity 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
}

#historicum-home .h-testimonial-text-card.is-active {
    z-index: 4;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.70), 0 20px 34px rgba(0, 0, 0, 0.46);
    transform: translate3d(var(--h-review-drag-x), 0, 0) scale(1);
}

#historicum-home .h-testimonial-text-card.is-prev {
    z-index: 2;
    opacity: 0.42;
    transform: translate3d(calc(-38% + (var(--h-review-drag-x) * 0.35)), 18px, 0) scale(0.86);
}

#historicum-home .h-testimonial-text-card.is-next {
    z-index: 2;
    opacity: 0.42;
    transform: translate3d(calc(38% + (var(--h-review-drag-x) * 0.35)), 18px, 0) scale(0.86);
}

#historicum-home .h-testimonial-text-card.is-back {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.78);
}

#historicum-home .h-testimonial-text-card .h-stars {
    color: var(--h-accent);
    font-size: clamp(18px, 1.6vw, 24px);
    letter-spacing: 0.18em;
    line-height: 1;
}

#historicum-home .h-testimonial-text-card .h-testimonial-text {
    margin: 0;
    color: #f5f0e6;
    font-family: var(--h-font-cormorant);
    font-size: clamp(22px, 2vw, 30px);
    font-style: italic;
    line-height: 1.34;
}

#historicum-home .h-testimonial-text-card .h-testimonial-name {
    margin: 4px 0 0;
    color: var(--h-accent);
    font-family: var(--h-font-cinzel);
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    #historicum-home .h-testimonials-carousel .h-carousel-controls {
        display: flex;
        justify-content: center;
        gap: 14px;
        padding: 30px 0 0;
    }

    #historicum-home .h-testimonials-carousel .h-carousel-arrow {
        border-color: rgba(245, 240, 230, 0.86);
    }

    #historicum-home .h-testimonials-carousel .h-carousel-arrow::before {
        border-color: rgba(245, 240, 230, 0.86);
    }

    #historicum-home .h-testimonials-carousel .h-carousel-arrow:hover {
        border-color: var(--h-accent);
        background: var(--h-accent);
    }

    #historicum-home .h-testimonials-carousel .h-carousel-arrow:hover::before {
        border-color: #111;
    }
}

/* Train Like In AMMA */
#historicum-home .h-training-bands,
#historicum-home .h-training-band,
#historicum-home .h-training-band-main,
#historicum-home .h-training-band-thin {
    display: none;
}

@media screen and (min-width: 1025px) {
    #historicum-home .h-training {
        padding-top: clamp(68px, 6vw, 108px);
        padding-bottom: clamp(80px, 6vw, 110px);
    }

    #historicum-home .h-training .h-container {
        max-width: min(1560px, calc(100vw - 80px));
    }

    #historicum-home .h-training-wrapper {
        grid-template-columns: minmax(0, 1.05fr) minmax(640px, 1.35fr);
        gap: clamp(70px, 6vw, 110px);
    }

    #historicum-home .h-training-title {
        font-size: clamp(34px, 4.94vw, 60px);
    }

    #historicum-home .h-training-instructor {
        margin-bottom: 39px;
        font-size: clamp(16px, 1.69vw, 22px);
    }

    #historicum-home .h-training-instructor .h-text-accent {
        font-size: clamp(22px, 2.34vw, 31px);
    }

    #historicum-home .h-training-label {
        font-size: clamp(14px, 1.43vw, 20px);
    }

    #historicum-home .h-training-list li {
        font-size: clamp(34px, 4.16vw, 55px);
    }

    #historicum-home .h-training-patreon-text {
        font-size: clamp(16px, 1.69vw, 22px);
    }

    #historicum-home .h-training .h-btn-primary {
        padding: 13px 26px;
        font-size: 17px;
    }

    #historicum-home .h-training-images {
        height: min(690px, 48vw);
    }

    #historicum-home .h-training-image-small {
        width: min(330px, 23vw);
        height: min(475px, 33vw);
        left: min(34px, 2.4vw);
        bottom: min(58px, 4vw);
    }

    #historicum-home .h-training-image-large {
        width: min(520px, 36vw);
        height: min(675px, 47vw);
        right: 0;
        bottom: min(18px, 1.25vw);
    }
}

/* Blog carousel and cards */
#historicum-home .h-blog-wrapper,
#historicum-home .h-blog-carousel {
    overflow: hidden;
}

#historicum-home .h-blog-carousel {
    -webkit-mask-image: none;
    mask-image: none;
}

#historicum-home .h-blog-track {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 28px 70px 56px;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    -webkit-user-select: none;
    user-select: none;
    animation: none;
}

#historicum-home .h-blog-track::-webkit-scrollbar {
    display: none;
}

#historicum-home .h-blog-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

#historicum-home .h-blog-track.is-dragging a,
#historicum-home .h-blog-track.is-dragging img {
    pointer-events: none;
}

#historicum-home .h-blog-slide {
    flex: 0 0 calc((100vw - 182px) / 4);
    width: calc((100vw - 182px) / 4);
    min-width: 0;
    max-width: none;
    background: transparent;
    border: none;
    outline: none;
}

#historicum-home .h-blog-card {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(560px, 46vw, 740px);
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round 18px);
    border: none;
    border-radius: 18px;
    outline: none;
    background: #000;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.50);
    transform: translateZ(0);
    transition: box-shadow 300ms ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#historicum-home .h-blog-card:hover {
    border: none;
    outline: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.58);
    transform: translateZ(0);
}

#historicum-home .h-blog-card::before,
#historicum-home .h-blog-card::after {
    content: none;
    display: none;
}

#historicum-home .h-blog-card-image {
    position: absolute;
    inset: 0;
    isolation: isolate;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: linear-gradient(145deg, #0b2117, #000);
    box-shadow: inset 0 0 0 1px #000;
}

#historicum-home .h-blog-card-image img,
#historicum-home .h-blog-card-fallback {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.4s ease;
}

#historicum-home .h-blog-card:hover .h-blog-card-image img {
    transform: scale(1.04);
}

#historicum-home .h-blog-card-image::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 2;
    pointer-events: none;
    border-radius: 0;
    opacity: 1;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.12) 24%,
        rgba(0, 0, 0, 0.22) 44%,
        rgba(0, 0, 0, 0.46) 64%,
        rgba(0, 0, 0, 0.72) 82%,
        rgba(0, 0, 0, 0.90) 94%,
        #000 100%
    );
}

#historicum-home .h-blog-card .h-h3 {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: -webkit-box;
    min-height: 124px;
    max-height: 124px;
    margin: 0;
    padding: 28px 20px 24px;
    overflow: hidden;
    border: none;
    outline: none;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 0.46) 28%,
        rgba(0, 0, 0, 0.86) 66%,
        #000 100%
    );
    color: #fff;
    font-size: clamp(19px, 1.25vw, 24px);
    line-height: 1.12;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#historicum-home .h-blog .h-carousel-controls,
#historicum-home .h-blog .h-blog-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 70px 0;
    opacity: 1;
    visibility: visible;
}

#historicum-home .h-blog .h-carousel-arrow {
    display: flex;
    border-color: rgba(255, 255, 255, 0.92);
    background: transparent;
    opacity: 1;
    visibility: visible;
}

#historicum-home .h-blog .h-carousel-arrow::before {
    border-color: rgba(255, 255, 255, 0.92);
}

#historicum-home .h-blog .h-carousel-arrow:hover {
    border-color: var(--h-accent);
    background: var(--h-accent);
}

#historicum-home .h-blog .h-carousel-arrow:hover::before {
    border-color: #111;
}

/* Sponsors */
#historicum-home .h-sponsors-track {
    animation-duration: 156s;
}

#historicum-home .h-sponsors-track .h-sponsor-logo {
    cursor: default;
    pointer-events: none;
    background: rgba(245, 240, 230, 0.96);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.31);
}

#historicum-home .h-sponsors-track .h-sponsor-logo:hover {
    transform: none;
}

#historicum-home .h-sponsors-track .h-sponsor-logo img {
    object-fit: contain;
}

/* Tablet and mobile */
@media screen and (max-width: 991px) {
    #historicum-home .h-hero-blocks {
        gap: 0;
    }

    #historicum-home .h-hero-block-1 { margin-right: -6px; }
    #historicum-home .h-hero-block-2 { margin-right: -6px; }
    #historicum-home .h-hero-block-4 { margin-left: -6px; }
    #historicum-home .h-hero-block-5 { margin-left: -6px; }

    #historicum-home .h-testimonials {
        padding-top: 58px;
        padding-bottom: 44px;
    }

    #historicum-home .h-testimonials-wrapper {
        margin-top: 64px;
    }

    #historicum-home .h-blog-track {
        gap: 14px;
        padding: 26px 24px 52px;
    }

    #historicum-home .h-blog-slide {
        flex: 0 0 calc((100vw - 70px) / 2);
        width: calc((100vw - 70px) / 2);
    }

    #historicum-home .h-blog .h-carousel-controls,
    #historicum-home .h-blog .h-blog-controls {
        justify-content: center;
        padding: 18px 24px 0;
    }
}

@media screen and (max-width: 767px) {
    #historicum-home {
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }

    #historicum-home .h-hero {
        --h-mobile-hero-band-height: clamp(88px, 27vw, 106px);
        --h-mobile-hero-band-offset: clamp(60px, 16vw, 70px);
    }

    #historicum-home .h-hero-block-label {
        font-size: clamp(10px, 3vw, 15px);
        letter-spacing: 0.08em;
    }

    #historicum-home .h-hero-blocks {
        max-width: min(100%, 100vw);
        padding-right: 8px;
        padding-left: 8px;
        gap: 0;
        justify-content: center;
        align-items: flex-start;
        overflow: visible;
        box-sizing: border-box;
    }

    #historicum-home .h-hero-block-3 {
        flex: 0 0 auto;
        width: clamp(104px, 35.65vw, 183px);
        height: clamp(166px, 56.8vw, 293px);
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
        transform: scale(1.018);
        z-index: 5;
    }

    #historicum-home .h-hero-block-2,
    #historicum-home .h-hero-block-4 {
        flex: 0 0 auto;
        width: clamp(84px, 28.4vw, 150px);
        height: clamp(141px, 47.8vw, 251px);
        margin-top: clamp(14px, 4vw, 22px);
        z-index: 4;
    }

    #historicum-home .h-hero-block-1,
    #historicum-home .h-hero-block-5 {
        flex: 0 0 auto;
        width: clamp(64px, 22.4vw, 116px);
        height: clamp(117px, 40.4vw, 206px);
        margin-top: clamp(30px, 8vw, 42px);
        z-index: 3;
    }

    #historicum-home .h-hero-block-1,
    #historicum-home .h-hero-block-2 {
        margin-right: clamp(-52px, -11vw, -38px);
        margin-left: 0;
    }

    #historicum-home .h-hero-block-4,
    #historicum-home .h-hero-block-5 {
        margin-right: 0;
        margin-left: clamp(-52px, -11vw, -38px);
    }

    #historicum-home .h-hero .h-hero-block-3::before,
    #historicum-home .h-hero .h-hero-block-3:focus-visible::before,
    #historicum-home .h-hero .h-hero-block-3 .h-hero-block-inner::before,
    #historicum-home .h-hero .h-hero-block-3 .h-hero-block-inner::after,
    #historicum-home .h-hero .h-hero-block-3 .h-hero-block-label {
        opacity: 1;
    }

    #historicum-home .h-hero .h-hero-block::before {
        inset: -2px;
        padding: 2px;
    }

    #historicum-home .h-band-middle {
        top: calc(50% - var(--h-mobile-hero-band-offset) + 30px);
        height: var(--h-mobile-hero-band-height);
    }

    #historicum-home .h-band-top {
        top: calc(50% - var(--h-mobile-hero-band-offset) + 23px);
    }

    #historicum-home .h-band-bottom {
        top: calc(50% - var(--h-mobile-hero-band-offset) + var(--h-mobile-hero-band-height) + 34px);
    }

    #historicum-home .h-stats {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    #historicum-home .h-title-with-lines {
        padding-top: 7px;
        padding-bottom: 7px;
        margin-bottom: 24px;
    }

    #historicum-home .h-title-with-lines .h-h1 {
        padding-right: 24px;
        padding-left: 24px;
    }

    #historicum-home .h-home-fighters-favorite .h-title-with-lines .h-h1,
    #historicum-home .h-workshop .h-title-with-lines .h-h1 {
        font-size: clamp(34px, 3.6vw, 45px);
        line-height: 1.04;
    }

    #historicum-home .h-home-fighters-favorite .h-shop-fighter-wrapper,
    #historicum-home .h-home-fighters-favorite .h-bs-wrapper {
        overflow: visible;
    }

    #historicum-home .h-home-fighters-favorite .h-bs-wrapper {
        max-width: 100%;
        padding-bottom: 46px;
    }

    #historicum-home .h-home-fighters-favorite .h-shop-fighter-carousel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-right: 15vw;
        padding-left: 15vw;
        padding-bottom: 46px;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: auto;
        touch-action: auto;
        scroll-behavior: smooth;
        transform: none;
        will-change: auto;
    }

    #historicum-home .h-home-fighters-favorite .h-bs-slide {
        flex: 0 0 70vw;
        width: 70vw;
        max-width: 280px;
        padding-bottom: 34px;
    }

    #historicum-home .h-home-fighters-favorite .h-bs-card,
    #historicum-home .h-workshop .h-ws-card {
        -webkit-box-shadow: 0 4px 7px rgba(0, 0, 0, 0.54), 0 1px 2px rgba(0, 0, 0, 0.38);
        box-shadow: 0 4px 7px rgba(0, 0, 0, 0.54), 0 1px 2px rgba(0, 0, 0, 0.38);
    }

    #historicum-home .h-home-fighters-favorite .h-bs-card:hover,
    #historicum-home .h-home-fighters-favorite .h-bs-card:active,
    #historicum-home .h-home-fighters-favorite .h-bs-card:focus-visible,
    #historicum-home .h-workshop .h-ws-card:hover,
    #historicum-home .h-workshop .h-ws-card:active,
    #historicum-home .h-workshop .h-ws-card:focus-visible {
        -webkit-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.60), 0 1px 3px rgba(0, 0, 0, 0.42);
        box-shadow: 0 5px 8px rgba(0, 0, 0, 0.60), 0 1px 3px rgba(0, 0, 0, 0.42);
    }

    #historicum-home .h-home-fighters-favorite .h-bs-wrapper .h-carousel-controls {
        display: none;
    }

    #historicum-home .h-home-fighters-favorite .h-bs-wrapper .h-carousel-arrow {
        pointer-events: none;
    }

    #historicum-home .h-workshop {
        padding-top: 38px;
        padding-bottom: 44px;
    }

    #historicum-home .h-workshop .h-ws-master-wrapper {
        margin-top: 16px;
    }

    #historicum-home .h-workshop .h-ws-viewport {
        padding-top: 0;
        padding-bottom: 0;
        overflow: visible;
        clip-path: inset(-26px 0 -86px 0);
    }

    #historicum-home .h-workshop .h-ws-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 4px 10px 0;
    }

    #historicum-home .h-workshop .h-ws-cell {
        padding-bottom: 0;
    }

    #historicum-home .h-workshop .h-ws-master-wrapper.h-carousel-one-row-page .h-ws-viewport {
        padding-bottom: 0;
    }

    #historicum-home .h-workshop .h-ws-master-wrapper.h-carousel-one-row-page .h-ws-page {
        padding-bottom: 0;
    }

    #historicum-home .h-workshop .h-ws-master-wrapper.h-carousel-one-row-page .h-ws-cell {
        padding-bottom: 0;
    }

    #historicum-home .h-workshop .h-ws-info {
        min-height: 104px;
        padding: 12px 8px 13px;
        gap: 6px;
        justify-content: center;
    }

    #historicum-home .h-workshop .h-ws-info::after {
        height: 52px;
        padding-bottom: 0;
    }

    #historicum-home .h-workshop .h-ws-title,
    #historicum-home .h-workshop .h-ws-card:hover .h-ws-title,
    #historicum-home .h-workshop .h-ws-card:focus-visible .h-ws-title {
        min-height: 28px;
        transform: none;
    }

    #historicum-home .h-workshop .h-ws-card:hover .h-ws-title,
    #historicum-home .h-workshop .h-ws-card:focus-visible .h-ws-title,
    #historicum-home .h-workshop .h-ws-card:active .h-ws-title {
        opacity: 1;
    }

    #historicum-home .h-workshop .h-ws-card:hover .h-ws-price,
    #historicum-home .h-workshop .h-ws-card:focus-visible .h-ws-price,
    #historicum-home .h-workshop .h-ws-card:active .h-ws-price {
        opacity: 0;
    }

    #historicum-home .h-workshop .h-ws-price {
        margin-top: 0;
        padding: 3px 8px;
        font-size: clamp(13px, 3.4vw, 16px);
        transition: opacity 0.14s ease;
    }

    #historicum-home .h-workshop .h-carousel-controls {
        position: relative;
        z-index: 10;
        justify-content: center;
        gap: 18px;
        margin-right: auto;
        margin-left: auto;
        margin-top: 30px;
        padding: 0 10px;
        text-align: center;
    }

    #historicum-home .h-testimonials {
        padding-top: 46px;
        padding-bottom: 40px;
    }

    #historicum-home .h-testimonials-wrapper {
        margin-top: 58px;
    }

    #historicum-home .h-testimonials-viewport {
        height: 410px;
    }

    #historicum-home .h-testimonials-track {
        width: calc(100vw - 34px);
    }

    #historicum-home .h-testimonial-text-card {
        min-height: 320px;
        padding: 26px 20px;
    }

    #historicum-home .h-testimonial-text-card.is-prev {
        transform: translate3d(calc(-24% + (var(--h-review-drag-x) * 0.24)), 18px, 0) scale(0.84);
    }

    #historicum-home .h-testimonial-text-card.is-next {
        transform: translate3d(calc(24% + (var(--h-review-drag-x) * 0.24)), 18px, 0) scale(0.84);
    }

    #historicum-home .h-training {
        overflow-x: clip;
        overflow-y: visible;
        touch-action: pan-y;
        transform: translateY(-28px);
    }

    #historicum-home .h-training-wrapper,
    #historicum-home .h-training-content,
    #historicum-home .h-training-title-group,
    #historicum-home .h-training-details,
    #historicum-home .h-training-instructor {
        text-align: center;
    }

    #historicum-home .h-training-wrapper {
        justify-items: center;
        align-items: center;
    }

    #historicum-home .h-training-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    #historicum-home .h-training-title-group {
        display: contents;
        margin-bottom: 0;
    }

    #historicum-home .h-training-title {
        order: 1;
        margin-bottom: 38px;
        font-size: clamp(50px, 13vw, 72px);
        line-height: 1.03;
    }

    #historicum-home .h-training-details {
        order: 2;
        margin-bottom: 0;
    }

    #historicum-home .h-training-label {
        display: none;
    }

    #historicum-home .h-training-instructor,
    #historicum-home .h-training-instructor .h-text-accent {
        font-family: var(--h-font-cinzel, "Cinzel", serif);
        letter-spacing: 0.05em;
    }

    #historicum-home .h-training-instructor {
        order: 3;
        margin: 12px 0 34px;
        font-size: clamp(13px, 3.5vw, 16px);
        line-height: 1.25;
    }

    #historicum-home .h-training-instructor .h-text-accent {
        font-size: inherit;
    }

    #historicum-home .h-training-cta {
        order: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    #historicum-home .h-training-patreon-text,
    #historicum-home .h-training .h-btn-primary {
        flex: 0 0 auto;
        text-align: center;
    }

    #historicum-home .h-training-images,
    #historicum-home .h-training-image {
        overflow: visible;
        clip-path: none;
        -webkit-clip-path: none;
    }

    #historicum-home .h-training-images {
        width: min(100%, 520px);
        height: 98vw;
        max-height: 462px;
        margin: 7px auto 0;
    }

    #historicum-home .h-training-image,
    #historicum-home .h-training-image img {
        -webkit-user-drag: none;
        user-select: none;
    }

    #historicum-home .h-training-image-small {
        left: 2vw;
        bottom: 8px;
        width: 47.6vw;
        max-width: 207px;
        height: 64.4vw;
        max-height: 300px;
    }

    #historicum-home .h-training-image-large {
        right: 1vw;
        bottom: 0;
        width: 67.2vw;
        max-width: 301px;
        height: 89.6vw;
        max-height: 412px;
    }

    #historicum-home .h-blog .h-carousel-controls {
        display: none;
    }

    #historicum-home .h-blog-track {
        overflow-x: auto;
        overflow-y: visible;
        padding-right: 15vw;
        padding-left: 15vw;
        touch-action: auto;
        scroll-behavior: smooth;
    }

    #historicum-home .h-blog-slide {
        flex: 0 0 70vw;
        width: 70vw;
        max-width: 320px;
    }

    #historicum-home .h-blog-card {
        height: clamp(448px, 78vw, 592px);
    }

    #historicum-home .h-sponsors-carousel {
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: auto;
    }

    #historicum-home .h-sponsors-carousel::-webkit-scrollbar {
        display: none;
    }

    #historicum-home .h-sponsors-track {
        animation: none;
        transform: none;
        will-change: auto;
    }
}

@media screen and (max-width: 560px) {
    #historicum-home .h-blog-track {
        padding-right: 12.5vw;
        padding-left: 12.5vw;
    }

    #historicum-home .h-blog-slide {
        flex: 0 0 75vw;
        width: 75vw;
    }

    #historicum-home .h-blog-card {
        height: clamp(430px, 116vw, 540px);
    }
}


/* ===========================================
   FINAL JUICER MOBILE FIX
   Keeps desktop untouched. Mobile shows 4 large stacked posts.
   =========================================== */
@media screen and (max-width: 767px) {
    body #historicum-home .h-instagram-grid--juicer {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    body #historicum-home .h-instagram-grid--juicer > .juicer-feed,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.image-grid,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.j-image-grid,
    body #historicum-home .h-instagram-grid--juicer > .juicer-feed.image_grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
        list-style: none !important;
    }

    body #historicum-home .h-instagram-grid--juicer .j-stacker-wrapper,
    body #historicum-home .h-instagram-grid--juicer .j-stacker,
    body #historicum-home .h-instagram-grid--juicer .j-stack {
        display: contents !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    body #historicum-home .h-instagram-grid--juicer .feed-item,
    body #historicum-home .h-instagram-grid--juicer .j-post {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 10px !important;
        list-style: none !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* Show 4 posts only, covering Juicer's different column splits. */
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:first-child:last-child > .feed-item:nth-child(n + 5),
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:first-child:last-child > .j-post:nth-child(n + 5),
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:nth-of-type(2):last-child > .feed-item:nth-child(n + 2),
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:nth-of-type(2):last-child > .j-post:nth-child(n + 2),
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:nth-of-type(3):last-child > .feed-item,
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:nth-of-type(3):last-child > .j-post,
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:nth-of-type(n + 5) > .feed-item,
    body #historicum-home .h-instagram-grid--juicer .j-stacker > .j-stack:nth-of-type(n + 5) > .j-post {
        display: none !important;
    }

    body #historicum-home .h-instagram-grid--juicer .j-image,
    body #historicum-home .h-instagram-grid--juicer .j-content-image,
    body #historicum-home .h-instagram-grid--juicer .j-image img,
    body #historicum-home .h-instagram-grid--juicer .feed-item img,
    body #historicum-home .h-instagram-grid--juicer .j-post img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body #historicum-home .h-instagram-grid--juicer .j-text,
    body #historicum-home .h-instagram-grid--juicer .j-text-container,
    body #historicum-home .h-instagram-grid--juicer .j-meta,
    body #historicum-home .h-instagram-grid--juicer .j-paginate,
    body #historicum-home .h-instagram-grid--juicer .j-pagination,
    body #historicum-home .h-instagram-grid--juicer .juicer-button,
    body #historicum-home .h-instagram-grid--juicer .j-load-more,
    body #historicum-home .h-instagram-grid--juicer .referral {
        display: none !important;
    }
}