/*
   Monsterarium Custom Homepage Stylesheet (Phase C2.C)
   Aplikuje sie WYLACZNIE na page-template = page-templates/custom-home.php.
   Zaladowany warunkowo przez monsterarium_enqueue_custom_home() w functions.php.

   Buduje na C1 design tokens z style.css (--ms-green-deep, --ms-bone, --ms-gold, etc.).
   Wszystkie klasy z prefixem .ms-* zeby uniknac konfliktow z parent theme.
   ============================================================================ */


/* ==========================================================
   1. RESET & BODY (only for custom-home body class)
   ========================================================== */
body.ms-custom-home {
    font-family: var(--ms-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ms-ink);
    background: var(--ms-bone);
    overflow-x: hidden;
}

body.ms-custom-home *,
body.ms-custom-home *::before,
body.ms-custom-home *::after {
    box-sizing: border-box;
}

body.ms-custom-home img {
    max-width: 100%;
    display: block;
}

body.ms-custom-home a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   2. TOP BAR (announcement)
   ========================================================== */
.ms-custom-home .ms-top-bar {
    background: var(--ms-green-deep);
    color: var(--ms-bone);
    padding: 10px 24px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}
.ms-custom-home .ms-top-bar strong {
    color: var(--ms-gold-soft);
    font-weight: 500;
    margin: 0 6px;
}
/* Phase D.Trust.RealPhoto.Home (2026-05-16): tekst "kupujesz te rosline" + "w zestawie"
   tylko na desktop, na mobile za dlugie -- hide. */
.ms-custom-home .ms-top-bar .ms-top-bar-extra {
    color: inherit;
    font-weight: inherit;
    margin: 0;
}
@media (max-width: 768px) {
    .ms-custom-home .ms-top-bar .ms-top-bar-extra { display: none; }
}


/* ==========================================================
   3. NAVIGATION (3-col grid: links / logo / actions)
   ========================================================== */
.ms-custom-home .ms-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 234, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228, 221, 201, 0.5);
    transition: background 0.3s var(--ms-ease), box-shadow 0.3s var(--ms-ease);
}
.ms-custom-home .ms-nav.is-scrolled {
    background: rgba(247, 243, 234, 0.96);
    box-shadow: 0 2px 24px rgba(15, 26, 22, 0.06);
}

.ms-custom-home .ms-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cols (left + right) -- logo absolute pozycjonowany */
    align-items: center;
    gap: 40px;
    /* Ograniczamy nav-inner do compact height -- logo overflows symmetrically */
    min-height: 64px;
    position: relative; /* anchor dla absolute logo */
}

.ms-custom-home .ms-nav-left,
.ms-custom-home .ms-nav-right {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.ms-custom-home .ms-nav-right { justify-content: flex-end; }

.ms-custom-home .ms-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}
.ms-custom-home .ms-menu li { margin: 0; }

.ms-custom-home .ms-nav-link,
.ms-custom-home .ms-menu a {
    position: relative;
    padding: 4px 0;
    color: var(--ms-green-dark);
    transition: color 0.2s var(--ms-ease);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.ms-custom-home .ms-nav-link::after,
.ms-custom-home .ms-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--ms-gold);
    transition: width 0.3s var(--ms-ease);
    transform: translateX(-50%);
}
.ms-custom-home .ms-nav-link:hover::after,
.ms-custom-home .ms-menu a:hover::after { width: 100%; }

.ms-custom-home .ms-nav-logo {
    /* Position absolute zeby NIE rozsuwac wysokosci nav-inner.
       Center horizontalnie + przesunieta w DOL (translateY -20% zamiast -50%) zeby
       logo nie wystawal za bardzo do gory (klient: "ginie zbyt wysoko").
       Wiekszosc okragu pod nav line, mala czesc nad. */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    overflow: visible;
    z-index: 10;
    pointer-events: auto;
}
/* Phase D.LogoBrandText (2026-05-20) REVERTED — text obok logo wygladal tragicznie
   (klient ocena, asymetryczny relative do logo absolute-centered, nakladalo sie
   z innymi elementami nav). Alternatywne placement w top-bar zostanie zaproponowane. */
.ms-custom-home .ms-nav-logo .custom-logo-link {
    /* Wymuszamy SQUARE aspect-ratio + fixed size zeby border-radius 50% dal okrag.
       Bez tego inline-flex robi container szerszy niz wyzszy = owal. */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    /* link wrapper tez musi pozwalac na overflow */
    overflow: visible;
    /* Okragle tlo za logo -- klient prosil. Cream-bone z subtle border + shadow. */
    background: var(--ms-bone);
    border-radius: 50%;
    border: 1px solid var(--ms-border);
    box-shadow: 0 8px 32px rgba(15, 26, 22, 0.08), 0 2px 8px rgba(15, 26, 22, 0.04);
    transition: transform 0.4s var(--ms-ease), box-shadow 0.4s var(--ms-ease);
    /* Fixed dimensions = guaranteed circle. Logo 120px + 10px oddech = 140px circle.
       Cisniejszy margines = logo bardziej "wypelnia" okrag. */
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}
.ms-custom-home .ms-nav-logo .custom-logo-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(15, 26, 22, 0.12), 0 4px 12px rgba(15, 26, 22, 0.06);
}

/* Mobile -- mniejszy okrag */
@media (max-width: 768px) {
    .ms-custom-home .ms-nav-logo .custom-logo-link {
        width: 84px;
        height: 84px;
    }
}
.ms-custom-home .ms-nav-logo img,
.ms-custom-home .ms-nav-logo .custom-logo {
    /* Logo 120px -- balans miedzy widocznoscia a nieprzytlaczaniem header */
    max-height: 120px !important;
    height: auto !important;
    width: auto !important;
    max-width: 240px !important;
    display: block;
    position: relative;
    z-index: 10;
}

/* Mobile -- mniejsze logo */
@media (max-width: 768px) {
    .ms-custom-home .ms-nav-logo img,
    .ms-custom-home .ms-nav-logo .custom-logo {
        max-height: 70px !important;
        max-width: 140px !important;
    }
}
.ms-custom-home .ms-nav-logo-text {
    font-family: var(--ms-font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ms-green-dark);
    font-style: italic;
}

/* ==========================================================
   MOBILE NAV — hamburger button + slide-down drawer
   Visible only at <=640px (desktop hides .ms-nav-burger).
   ========================================================== */
.ms-custom-home .ms-nav-burger {
    display: none; /* Default: hidden on desktop, shown via mobile media query */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s var(--ms-ease);
    flex-direction: column;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}
.ms-custom-home .ms-nav-burger:hover,
.ms-custom-home .ms-nav-burger:focus-visible {
    background: rgba(184, 147, 90, 0.12);
}
.ms-custom-home .ms-nav-burger:focus-visible {
    outline: 2px solid var(--ms-gold);
    outline-offset: 2px;
}
.ms-custom-home .ms-nav-burger-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ms-green-dark);
    border-radius: 2px;
    transition: transform 0.3s var(--ms-ease), opacity 0.2s var(--ms-ease);
    transform-origin: center;
}

/* Open state -- transform 3 bars do "X" */
body.ms-nav-drawer-open .ms-nav-burger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
body.ms-nav-drawer-open .ms-nav-burger-bar:nth-child(2) {
    opacity: 0;
}
body.ms-nav-drawer-open .ms-nav-burger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Drawer panel -- slide down z top, full-width below nav */
.ms-custom-home .ms-mobile-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ms-paper);
    border-bottom: 1px solid var(--ms-border);
    box-shadow: 0 12px 24px rgba(15, 26, 22, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ms-ease), opacity 0.28s var(--ms-ease), visibility 0.28s;
    z-index: 99;
    /* Hide by default — shown via body.ms-nav-drawer-open at mobile */
    pointer-events: none;
    display: none;
}
body.ms-nav-drawer-open .ms-custom-home .ms-mobile-drawer,
body.ms-nav-drawer-open .ms-mobile-drawer {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ms-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}
.ms-mobile-menu li {
    margin: 0;
}
.ms-mobile-menu li.ms-mobile-menu-divider {
    height: 1px;
    background: var(--ms-border);
    margin: 8px 24px;
}
.ms-mobile-menu a {
    display: block;
    padding: 16px 24px;
    font-family: var(--ms-font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--ms-green-dark);
    text-decoration: none;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--ms-border);
    transition: background 0.2s var(--ms-ease), color 0.2s var(--ms-ease);
    -webkit-tap-highlight-color: transparent;
}
.ms-mobile-menu li:last-child a {
    border-bottom: none;
}
.ms-mobile-menu a:hover,
.ms-mobile-menu a:focus-visible {
    background: var(--ms-sand);
    color: var(--ms-gold);
}

/* Backdrop scrim za drawerem (klik zamyka) */
body.ms-nav-drawer-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 22, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50;
    animation: msDrawerFadeIn 0.28s ease;
}
@keyframes msDrawerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    body.ms-nav-drawer-open::before {
        animation: none;
    }
}

/* Cart link */
.ms-custom-home .ms-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ms-green-dark);
    transition: background 0.2s var(--ms-ease);
}
.ms-custom-home .ms-cart-link:hover { background: var(--ms-sand); }
.ms-custom-home .ms-cart-link::after { display: none; }
.ms-custom-home .ms-cart-count {
    background: var(--ms-green-deep);
    color: var(--ms-bone);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    line-height: 1.3;
}


/* ==========================================================
   4. HERO (asymmetric editorial)
   ========================================================== */
.ms-custom-home .ms-hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    overflow: hidden;
    background: var(--ms-bone);
}
.ms-custom-home .ms-hero-content {
    padding: 100px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.ms-custom-home .ms-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ms-green-mid);
    font-weight: 500;
    margin-bottom: 32px;
    opacity: 0;
    animation: ms-fade-up 0.8s var(--ms-ease) 0.1s forwards;
}
.ms-custom-home .ms-hero-eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--ms-green-mid);
}

.ms-custom-home .ms-hero-title {
    font-family: var(--ms-font-display);
    font-size: clamp(48px, 7vw, 104px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--ms-green-deep);
    margin: 0 0 32px;
}
.ms-custom-home .ms-hero-title span {
    display: block;
    opacity: 0;
    animation: ms-fade-up 1s var(--ms-ease) forwards;
}
.ms-custom-home .ms-hero-title span:nth-child(1) { animation-delay: 0.2s; }
.ms-custom-home .ms-hero-title span:nth-child(2) { animation-delay: 0.35s; }
.ms-custom-home .ms-hero-title span:nth-child(3) { animation-delay: 0.5s; }

.ms-custom-home .ms-hero-lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ms-green-mid);
    max-width: 480px;
    margin-bottom: 48px;
    opacity: 0;
    animation: ms-fade-up 1s var(--ms-ease) 0.7s forwards;
}

.ms-custom-home .ms-hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 0;
    animation: ms-fade-up 1s var(--ms-ease) 0.85s forwards;
}

/* Custom home buttons -- override C1 .kb-button styles */
.ms-custom-home .ms-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--ms-green-deep);
    color: var(--ms-bone);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: transform 0.3s var(--ms-ease), box-shadow 0.3s var(--ms-ease);
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.ms-custom-home .ms-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ms-green-mid);
    transform: translateY(100%);
    transition: transform 0.4s var(--ms-ease);
    z-index: -1;
}
.ms-custom-home .ms-btn-primary:hover::before { transform: translateY(0); }
.ms-custom-home .ms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--ms-shadow-md);
    color: var(--ms-bone);
}
.ms-custom-home .ms-btn-primary svg {
    transition: transform 0.3s var(--ms-ease);
    position: relative;
    z-index: 1;
}
.ms-custom-home .ms-btn-primary:hover svg { transform: translateX(4px); }

.ms-custom-home .ms-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-green-dark);
    border-bottom: 1px solid var(--ms-green-dark);
    border-radius: 0;
    transition: gap 0.3s var(--ms-ease), border-color 0.3s var(--ms-ease);
}
.ms-custom-home .ms-btn-ghost:hover {
    gap: 16px;
    border-bottom-color: var(--ms-gold);
}

.ms-custom-home .ms-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--ms-gold);
    color: var(--ms-green-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all 0.3s var(--ms-ease);
}
.ms-custom-home .ms-btn-gold:hover {
    background: var(--ms-gold-soft);
    transform: translateY(-2px);
    gap: 18px;
    color: var(--ms-green-deep);
}

/* Hero image */
.ms-custom-home .ms-hero-image {
    position: relative;
    background: var(--ms-green-deep);
    overflow: hidden;
}
.ms-custom-home .ms-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: ms-fade-in 1.5s var(--ms-ease) 0.3s forwards;
    filter: brightness(0.95) saturate(1.05);
}
.ms-custom-home .ms-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(250, 247, 239, 0.15) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(15, 26, 22, 0.2) 100%);
    z-index: 2;
    pointer-events: none;
}
.ms-custom-home .ms-hero-num {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-family: var(--ms-font-display);
    font-size: 14px;
    font-style: italic;
    color: var(--ms-cream);
    opacity: 0.85;
    z-index: 3;
    letter-spacing: 0.1em;
    background: rgba(31, 46, 40, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(247, 243, 234, 0.15);
}


/* ==========================================================
   5. SECTION DEFAULTS
   ========================================================== */
.ms-custom-home .ms-section {
    padding: 140px 80px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.ms-custom-home .ms-section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 80px;
    gap: 40px;
}

.ms-custom-home .ms-section-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--ms-gold);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ms-custom-home .ms-section-num::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ms-gold);
}

.ms-custom-home .ms-section-title {
    font-family: var(--ms-font-display);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ms-green-deep);
    max-width: 900px;
    margin: 0;
}
.ms-custom-home .ms-section-title .ms-italic {
    font-style: italic;
    color: var(--ms-green-mid);
    font-weight: 300;
}

.ms-custom-home .ms-section-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ms-green-dark);
    border-bottom: 1px solid var(--ms-green-dark);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s var(--ms-ease), border-color 0.3s var(--ms-ease);
}
.ms-custom-home .ms-section-link:hover {
    gap: 14px;
    border-bottom-color: var(--ms-gold);
}


/* ==========================================================
   6. COLLECTION GRID (3-col z asymmetric stagger)
   ========================================================== */
.ms-custom-home .ms-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
}
.ms-custom-home .ms-product-card {
    position: relative;
    transition: transform 0.6s var(--ms-ease);
}
.ms-custom-home .ms-product-card:hover { transform: translateY(-8px); }

.ms-custom-home .ms-product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--ms-cream);
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 4px;
    display: block;
}
.ms-custom-home .ms-product-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ms-ease-smooth, var(--ms-ease));
}
.ms-custom-home .ms-product-card:hover .ms-product-image-wrap img { transform: scale(1.05); }

.ms-custom-home .ms-product-badge {
    position: absolute;
    top: 16px;
    right: 16px; /* moved from left -- left now used by .ms-real-photo-badge-card (REAL PHOTO trust signal) */
    left: auto;
    background: var(--ms-bone);
    color: var(--ms-green-deep);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    z-index: 2;
}
.ms-custom-home .ms-product-badge.ms-badge-gold {
    background: var(--ms-gold);
    color: var(--ms-bone);
}

.ms-custom-home .ms-product-quickadd {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(250, 247, 239, 0.95);
    backdrop-filter: blur(10px);
    color: var(--ms-green-deep);
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s var(--ms-ease);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ms-custom-home .ms-product-card:hover .ms-product-quickadd {
    opacity: 1;
    transform: translateY(0);
}

.ms-custom-home .ms-product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.ms-custom-home .ms-product-meta {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 12px;
    color: var(--ms-muted);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.ms-custom-home .ms-product-name {
    font-family: var(--ms-font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--ms-green-deep);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}
.ms-custom-home .ms-product-name a {
    color: inherit;
}
.ms-custom-home .ms-product-latin {
    font-size: 13px;
    font-style: italic;
    color: var(--ms-green-soft);
    letter-spacing: 0.02em;
    margin: 0;
}
.ms-custom-home .ms-product-price {
    font-family: var(--ms-font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--ms-green-deep);
    white-space: nowrap;
}


/* ==========================================================
   7. FEATURE (Plant of the Week)
   ========================================================== */
.ms-custom-home .ms-feature {
    background: var(--ms-green-deep);
    margin: 0;
    padding: 0;
}
.ms-custom-home .ms-feature-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 140px 80px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.ms-custom-home .ms-feature-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--ms-green-mid);
    border-radius: 4px;
    overflow: hidden;
}
.ms-custom-home .ms-feature-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.98) saturate(1.08);
}
.ms-custom-home .ms-feature-content { color: var(--ms-bone); }

.ms-custom-home .ms-feature-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold-soft);
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ms-custom-home .ms-feature-num::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ms-gold-soft);
}

.ms-custom-home .ms-feature-title {
    font-family: var(--ms-font-display);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    color: var(--ms-cream);
}
.ms-custom-home .ms-feature-title .ms-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--ms-gold-soft);
    display: inline;
}

.ms-custom-home .ms-feature-latin {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 16px;
    color: var(--ms-gold-soft);
    opacity: 0.8;
    margin-bottom: 24px;
}
.ms-custom-home .ms-feature-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(247, 243, 234, 0.78);
    max-width: 520px;
    margin-bottom: 40px;
}

.ms-custom-home .ms-feature-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(247, 243, 234, 0.15);
    border-bottom: 1px solid rgba(247, 243, 234, 0.15);
    margin-bottom: 40px;
}
.ms-custom-home .ms-spec-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ms-gold-soft);
    opacity: 0.75;
    margin-bottom: 8px;
}
.ms-custom-home .ms-spec-value {
    font-family: var(--ms-font-display);
    font-size: 18px;
    color: var(--ms-cream);
    font-style: italic;
    font-weight: 300;
}

.ms-custom-home .ms-feature-price {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 32px;
}
.ms-custom-home .ms-feature-price-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ms-gold-soft);
    opacity: 0.7;
}
.ms-custom-home .ms-feature-price-val {
    font-family: var(--ms-font-display);
    font-size: 36px;
    color: var(--ms-cream);
    font-weight: 400;
}


/* ==========================================================
   7-bis. DISCOVER SLIDER (Phase D.Discover -- replacing Plant of the Week)
   ========================================================== */
.ms-custom-home .ms-discover {
    background: var(--ms-green-deep);
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.ms-custom-home .ms-discover-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 80px;
}

/* Header: text left, nav right */
.ms-custom-home .ms-discover-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
    margin-bottom: 56px;
}
.ms-custom-home .ms-discover-header-text {
    max-width: 640px;
}

.ms-custom-home .ms-discover-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold-soft);
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ms-custom-home .ms-discover-num::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ms-gold-soft);
}

.ms-custom-home .ms-discover-title {
    font-family: var(--ms-font-display);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--ms-cream);
}
.ms-custom-home .ms-discover-title .ms-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--ms-gold-soft);
}

.ms-custom-home .ms-discover-lead {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(247, 243, 234, 0.78);
    margin: 0;
}

/* Header right column: shop link + arrows */
.ms-custom-home .ms-discover-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    flex-shrink: 0;
}

/* "Caly sklep" link (matching ms-section-link styling) */
.ms-custom-home .ms-discover-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-gold-soft);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(184, 147, 90, 0.4);
    transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.ms-custom-home .ms-discover-shop-link:hover {
    color: var(--ms-cream);
    border-color: var(--ms-cream);
    gap: 12px;
}
.ms-custom-home .ms-discover-shop-link:focus-visible {
    outline: 3px solid var(--ms-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Arrow nav */
.ms-custom-home .ms-discover-nav {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.ms-custom-home .ms-discover-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(184, 147, 90, 0.4);
    color: var(--ms-gold-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s, transform 0.2s;
    padding: 0;
}
.ms-custom-home .ms-discover-nav-btn:hover {
    background: var(--ms-gold);
    border-color: var(--ms-gold);
    color: var(--ms-green-deep);
}
.ms-custom-home .ms-discover-nav-btn:focus-visible {
    outline: 3px solid var(--ms-gold);
    outline-offset: 2px;
}
.ms-custom-home .ms-discover-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.ms-custom-home .ms-discover-nav-btn:disabled:hover {
    background: transparent;
    border-color: rgba(184, 147, 90, 0.4);
    color: var(--ms-gold-soft);
}
.ms-custom-home .ms-discover-nav-btn svg {
    transition: transform 0.2s;
}
.ms-custom-home .ms-discover-nav-prev svg {
    transform: rotate(180deg);
}
.ms-custom-home .ms-discover-nav-btn:hover svg {
    transform: translateX(2px);
}
.ms-custom-home .ms-discover-nav-prev:hover svg {
    transform: rotate(180deg) translateX(2px);
}

/* Track: horizontal scroll-snap.
   Phase D.LinkAudit.SliderFix (2026-05-17): usunieto mask-image (24px fade byl
   za waski - karty wygladaly ostro ucinane wg klient feedback). Zamiast tego
   scroll-padding-inline 8px gives clean visible cards + natural scroll edges. */
.ms-custom-home .ms-discover-track {
    display: grid;
    grid-auto-flow: column;
    /* Phase D.LinkAudit.SliderFix v2 (2026-05-17): calc dla EXACTLY 4 pelnych kart
       desktop bez "3/4 obciecia" 5-tej karty (klient feedback). 100% - 3*24px gap / 4. */
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.ms-custom-home .ms-discover-track::-webkit-scrollbar {
    display: none;
}

/* Cards */
.ms-custom-home .ms-discover-card {
    scroll-snap-align: start;
    background: rgba(247, 243, 234, 0.04);
    border: 1px solid rgba(247, 243, 234, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}
.ms-custom-home .ms-discover-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 147, 90, 0.4);
}
.ms-custom-home .ms-discover-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.ms-custom-home .ms-discover-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--ms-green-mid);
    overflow: hidden;
}
.ms-custom-home .ms-discover-card-image img,
.ms-custom-home .ms-discover-card-image .ms-discover-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ms-custom-home .ms-discover-card:hover .ms-discover-card-image img,
.ms-custom-home .ms-discover-card:hover .ms-discover-card-image .ms-discover-card-img {
    transform: scale(1.05);
}
.ms-custom-home .ms-discover-card-info {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ms-custom-home .ms-discover-card-name {
    font-family: var(--ms-font-display);
    font-size: 19px;
    font-weight: 400;
    color: var(--ms-cream);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.ms-custom-home .ms-discover-card-latin {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--ms-gold-soft);
    opacity: 0.8;
    margin: 0 0 8px;
}
.ms-custom-home .ms-discover-card-price {
    font-family: var(--ms-font-display);
    font-size: 17px;
    color: var(--ms-cream);
    font-weight: 400;
    margin-top: auto;
}
.ms-custom-home .ms-discover-card-price del {
    color: rgba(247, 243, 234, 0.5);
    font-size: 14px;
    margin-right: 8px;
}
.ms-custom-home .ms-discover-card-price ins {
    color: var(--ms-gold-soft);
    text-decoration: none;
}

/* CTA at bottom */
.ms-custom-home .ms-discover-cta-wrap {
    text-align: center;
    margin-top: 56px;
}


/* ==========================================================
   7-ter. ARTICLES PREVIEW (Phase D.HomeArticles -- 3 latest blog posts)
   ========================================================== */
.ms-custom-home .ms-articles {
    background: var(--ms-sand);
    margin: 0;
    padding: 0;
}
.ms-custom-home .ms-articles-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 80px;
}

.ms-custom-home .ms-articles-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
    margin-bottom: 56px;
}
.ms-custom-home .ms-articles-header-text {
    max-width: 640px;
}

.ms-custom-home .ms-articles-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold);
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ms-custom-home .ms-articles-num::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ms-gold);
}

.ms-custom-home .ms-articles-title {
    font-family: var(--ms-font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--ms-green-deep);
}
.ms-custom-home .ms-articles-title .ms-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--ms-gold);
}

.ms-custom-home .ms-articles-lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ms-text);
    margin: 0;
    max-width: 540px;
}

/* Header right column: link + arrows (matching ms-discover-header-actions) */
.ms-custom-home .ms-articles-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    flex-shrink: 0;
}

/* "Caly poradnik" link header (matching ms-section-link / ms-discover-shop-link) */
.ms-custom-home .ms-articles-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-green-deep);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ms-green-deep);
    transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.ms-custom-home .ms-articles-link:hover {
    color: var(--ms-gold);
    border-color: var(--ms-gold);
    gap: 12px;
}
.ms-custom-home .ms-articles-link:focus-visible {
    outline: 3px solid var(--ms-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Arrow nav (matching .ms-discover-nav-btn but adapted dla light bg sand) */
.ms-custom-home .ms-articles-nav {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.ms-custom-home .ms-articles-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--ms-green-deep);
    color: var(--ms-green-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s, transform 0.2s;
    padding: 0;
}
.ms-custom-home .ms-articles-nav-btn:hover {
    background: var(--ms-green-deep);
    border-color: var(--ms-green-deep);
    color: var(--ms-cream);
}
.ms-custom-home .ms-articles-nav-btn:focus-visible {
    outline: 3px solid var(--ms-gold);
    outline-offset: 2px;
}
.ms-custom-home .ms-articles-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.ms-custom-home .ms-articles-nav-btn:disabled:hover {
    background: transparent;
    border-color: var(--ms-green-deep);
    color: var(--ms-green-deep);
}
.ms-custom-home .ms-articles-nav-btn svg {
    transition: transform 0.2s;
}
.ms-custom-home .ms-articles-nav-prev svg {
    transform: rotate(180deg);
}
.ms-custom-home .ms-articles-nav-btn:hover svg {
    transform: translateX(2px);
}
.ms-custom-home .ms-articles-nav-prev:hover svg {
    transform: rotate(180deg) translateX(2px);
}

/* Track: horizontal scroll-snap z 12 random blog cards (reuse blog-card styling) */
.ms-custom-home .ms-articles-track {
    display: grid;
    grid-auto-flow: column;
    /* Phase D.LinkAudit.SliderFix v2: calc dla EXACTLY 3 pelnych kart desktop. */
    grid-auto-columns: calc((100% - 64px) / 3);
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 16px;
    /* Subtle edge fade -- premium feel */
    scroll-padding-inline: 8px;
}
.ms-custom-home .ms-articles-track::-webkit-scrollbar {
    display: none;
}

/* Snap each blog-card to start of viewport */
.ms-custom-home .ms-articles-track .ms-blog-card {
    scroll-snap-align: start;
}

/* CTA bottom */
.ms-custom-home .ms-articles-cta-wrap {
    text-align: center;
    margin-top: 64px;
}


/* ==========================================================
   8. CATEGORIES GRID (5 cards, #4 span 2 cols)
   ========================================================== */
.ms-custom-home .ms-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ms-custom-home .ms-category-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ms-green-mid);
    display: block;
    color: var(--ms-bone);
}
.ms-custom-home .ms-cat-feature {
    grid-column: 1 / 3;
    aspect-ratio: 8 / 5;
}

.ms-custom-home .ms-category-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ms-ease);
    filter: brightness(0.82) saturate(1.1);
}
.ms-custom-home .ms-category-card:hover .ms-category-bg {
    transform: scale(1.06);
}

.ms-custom-home .ms-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 22, 0.85) 0%, rgba(15, 26, 22, 0.2) 50%, rgba(15, 26, 22, 0.05) 100%);
    transition: background 0.4s var(--ms-ease);
    z-index: 1;
}
.ms-custom-home .ms-category-card:hover::after {
    background: linear-gradient(to top, rgba(15, 26, 22, 0.9) 0%, rgba(15, 26, 22, 0.4) 60%, rgba(15, 26, 22, 0.15) 100%);
}

.ms-custom-home .ms-category-content {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}
.ms-custom-home .ms-category-count {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 12px;
    color: var(--ms-gold-soft);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}
.ms-custom-home .ms-category-name {
    font-family: var(--ms-font-display);
    /* Fluid typography: 22px on 320px viewport, 32px on 480px+, scaled by 7vw between.
       Prevents "PHILODENDRONY" clipping on narrow phones (Samsung Galaxy S 360px). */
    font-size: clamp(22px, 7vw, 32px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin: 0 0 8px;
    color: var(--ms-bone);
    /* Word-break safety net dla bardzo dlugich nazw kategorii w PL (np. "Anturium & inne") */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.ms-custom-home .ms-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ms-gold-soft);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.4s var(--ms-ease);
    margin-top: 8px;
}
.ms-custom-home .ms-category-card:hover .ms-category-link {
    opacity: 1;
    transform: translateX(0);
}
@media (hover: none) {
    .ms-custom-home .ms-category-link {
        opacity: 0.85;
        transform: translateX(0);
    }
}


/* ==========================================================
   9. STORY (cream bg, centered, stats grid)
   ========================================================== */
.ms-custom-home .ms-story {
    background: var(--ms-cream);
    margin: 0;
    padding: 160px 80px;
}
.ms-custom-home .ms-story-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.ms-custom-home .ms-story-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    display: inline-block;
}
.ms-custom-home .ms-story-title {
    font-family: var(--ms-font-display);
    font-size: clamp(44px, 6vw, 88px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ms-green-deep);
    max-width: 1000px;
    margin: 0 auto 48px;
}
.ms-custom-home .ms-story-title .ms-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--ms-green-mid);
}
.ms-custom-home .ms-story-body {
    font-size: 18px;
    line-height: 1.75;
    color: var(--ms-green-mid);
    max-width: 720px;
    margin: 0 auto 24px;
}
.ms-custom-home .ms-story-divider {
    margin: 56px 0;
    color: var(--ms-gold);
    font-size: 24px;
    font-family: var(--ms-font-display);
}
.ms-custom-home .ms-story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.ms-custom-home .ms-stat-num {
    font-family: var(--ms-font-display);
    font-size: 64px;
    font-weight: 300;
    color: var(--ms-green-deep);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    font-style: italic;
}
.ms-custom-home .ms-stat-label {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ms-green-mid);
}


/* ==========================================================
   10. NEWSLETTER
   ========================================================== */
.ms-custom-home .ms-newsletter {
    background: var(--ms-green-deep);
    margin: 0;
    padding: 120px 80px;
    color: var(--ms-bone);
    text-align: center;
}
.ms-custom-home .ms-newsletter-inner { max-width: 720px; margin: 0 auto; }
.ms-custom-home .ms-newsletter-eyebrow {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold-soft);
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}
.ms-custom-home .ms-newsletter-title {
    font-family: var(--ms-font-display);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--ms-cream);
}
.ms-custom-home .ms-newsletter-title .ms-italic {
    font-style: italic;
    color: var(--ms-gold-soft);
    font-weight: 300;
}
.ms-custom-home .ms-newsletter-desc {
    color: rgba(247, 243, 234, 0.75);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.ms-custom-home .ms-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(247, 243, 234, 0.3);
    padding-bottom: 4px;
    transition: border-color 0.3s;
}
.ms-custom-home .ms-newsletter-form:focus-within {
    border-bottom-color: var(--ms-gold-soft);
}
.ms-custom-home .ms-newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    color: var(--ms-bone);
    font-family: inherit;
    outline: none;
}
.ms-custom-home .ms-newsletter-input::placeholder {
    color: rgba(247, 243, 234, 0.5);
}
.ms-custom-home .ms-newsletter-submit {
    background: transparent;
    border: none;
    color: var(--ms-gold-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: gap 0.3s var(--ms-ease), color 0.3s;
}
.ms-custom-home .ms-newsletter-submit:hover {
    gap: 14px;
    color: var(--ms-cream);
}

/* Phase D.Social.Facebook (2026-05-16): social follow CTA pod newsletter form.
   Stosowane w home-newsletter.php + about-cta.php (oba uzywaja .ms-newsletter wrapper). */
.ms-custom-home .ms-newsletter-social {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(247, 243, 234, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.ms-custom-home .ms-newsletter-social-text {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--ms-gold-soft);
    letter-spacing: 0.04em;
    opacity: 0.9;
}
.ms-custom-home .ms-newsletter-social-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.ms-custom-home .ms-newsletter-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(247, 243, 234, 0.06);
    border: 1px solid rgba(247, 243, 234, 0.18);
    border-radius: 999px;
    color: var(--ms-bone);
    font-family: var(--ms-font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.3s var(--ms-ease), border-color 0.3s var(--ms-ease), transform 0.3s var(--ms-ease), color 0.3s var(--ms-ease);
}
.ms-custom-home .ms-newsletter-social-links a:hover {
    background: var(--ms-gold);
    border-color: var(--ms-gold);
    color: var(--ms-green-deep);
    transform: translateY(-2px);
}
.ms-custom-home .ms-newsletter-social-links a:focus-visible {
    outline: 3px solid var(--ms-gold);
    outline-offset: 3px;
}
.ms-custom-home .ms-newsletter-social-links svg {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .ms-custom-home .ms-newsletter-social { margin-top: 32px; padding-top: 24px; }
    .ms-custom-home .ms-newsletter-social-links { gap: 14px; }
    .ms-custom-home .ms-newsletter-social-links a { padding: 9px 18px; font-size: 12px; }
}


/* ==========================================================
   11. FOOTER (custom -- inheritance from C1 .site-footer styles)
   ========================================================== */
.ms-custom-home .ms-footer {
    background: var(--ms-ink);
    color: var(--ms-bone);
    padding: 100px 80px 40px;
    margin: 0;
    position: relative;
    z-index: 2;
}
.ms-custom-home .ms-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
}
.ms-custom-home .ms-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(247, 243, 234, 0.1);
}
.ms-custom-home .ms-footer-logo img,
.ms-custom-home .ms-footer-logo .custom-logo {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
}
.ms-custom-home .ms-brand-text {
    font-family: var(--ms-font-display);
    font-size: 32px;
    font-style: italic;
    color: var(--ms-cream);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 24px;
}
.ms-custom-home .ms-footer-desc {
    color: rgba(247, 243, 234, 0.55);
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
    margin-bottom: 32px;
}
.ms-custom-home .ms-footer-social {
    display: flex;
    gap: 16px;
}
.ms-custom-home .ms-footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(247, 243, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ms-ease);
    color: rgba(247, 243, 234, 0.7);
}
.ms-custom-home .ms-footer-social a:hover {
    background: var(--ms-gold);
    border-color: var(--ms-gold);
    color: var(--ms-green-deep);
    transform: translateY(-2px);
}

.ms-custom-home .ms-footer-col h4 {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--ms-gold-soft);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin: 0 0 24px;
}
.ms-custom-home .ms-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ms-custom-home .ms-footer-col li { margin-bottom: 14px; }
.ms-custom-home .ms-footer-col a {
    color: rgba(247, 243, 234, 0.65);
    font-size: 14px;
    transition: color 0.2s;
}
.ms-custom-home .ms-footer-col a:hover { color: var(--ms-gold-soft); }

/* Phase D.LinkAudit.E-E-A-T (2026-05-17): footer legal block z NIP/REGON/CEIDG
   per Agent C TOP fix dla trust signal + RODO art. 13 obowiazek identyfikacji. */
.ms-custom-home .ms-footer-legal {
    padding-top: 32px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(247, 243, 234, 0.08);
    margin-top: 40px;
}
.ms-custom-home .ms-footer-legal p {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(247, 243, 234, 0.45);
    max-width: 900px;
    margin: 0;
}
.ms-custom-home .ms-footer-legal a {
    color: rgba(247, 243, 234, 0.65);
    border-bottom: 1px solid rgba(247, 243, 234, 0.15);
    transition: color 0.2s var(--ms-ease), border-color 0.2s var(--ms-ease);
}
.ms-custom-home .ms-footer-legal a:hover {
    color: var(--ms-gold-soft);
    border-bottom-color: var(--ms-gold-soft);
}
.ms-custom-home .ms-footer-legal strong {
    color: rgba(247, 243, 234, 0.7);
    font-weight: 500;
}

.ms-custom-home .ms-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(247, 243, 234, 0.4);
    letter-spacing: 0.04em;
    padding-top: 20px;
    border-top: 1px solid rgba(247, 243, 234, 0.05);
}
.ms-custom-home .ms-footer-payments {
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0.5;
}
.ms-custom-home .ms-payment-badge {
    padding: 4px 10px;
    border: 1px solid rgba(247, 243, 234, 0.2);
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(247, 243, 234, 0.6);
    text-transform: uppercase;
}


/* ==========================================================
   12. ANIMATIONS & REVEAL
   ========================================================== */
@keyframes ms-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ms-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ms-custom-home .ms-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ms-ease), transform 1s var(--ms-ease);
}
.ms-custom-home .ms-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   13. RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .ms-custom-home .ms-section { padding: 100px 48px; }
    .ms-custom-home .ms-hero { grid-template-columns: 1fr; min-height: auto; }
    .ms-custom-home .ms-hero-content { padding: 80px 48px 64px; }
    .ms-custom-home .ms-hero-image { min-height: 500px; }
    .ms-custom-home .ms-collection-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-custom-home .ms-feature-inner { grid-template-columns: 1fr; gap: 48px; padding: 100px 48px; }
    .ms-custom-home .ms-discover-inner { padding: 100px 48px; }
    .ms-custom-home .ms-discover-header { grid-template-columns: 1fr; align-items: start; gap: 32px; }
    .ms-custom-home .ms-discover-header-actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
    /* Phase D.LinkAudit.SliderFix v2: tablet 3 cards discover + 2 cards articles, calc dla pelnych. */
    .ms-custom-home .ms-discover-track { grid-auto-columns: calc((100% - 48px) / 3); }
    .ms-custom-home .ms-articles-inner { padding: 100px 48px; }
    .ms-custom-home .ms-articles-header { grid-template-columns: 1fr; align-items: start; gap: 32px; }
    .ms-custom-home .ms-articles-header-actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
    .ms-custom-home .ms-articles-track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
    .ms-custom-home .ms-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-custom-home .ms-cat-feature { grid-column: auto; aspect-ratio: 3/4; }
    .ms-custom-home .ms-footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
    .ms-custom-home .ms-story { padding: 100px 48px; }
    .ms-custom-home .ms-newsletter { padding: 100px 48px; }
    .ms-custom-home .ms-footer { padding: 80px 48px 32px; }
}
@media (max-width: 640px) {
    .ms-custom-home .ms-nav-inner { padding: 12px 16px; grid-template-columns: auto 1fr auto; min-height: 64px; gap: 12px; }
    /* Hide desktop menu items, show hamburger button only */
    .ms-custom-home .ms-nav-left .ms-menu { display: none; }
    .ms-custom-home .ms-nav-left { display: flex; align-items: center; justify-self: start; gap: 0; }
    /* SHOW hamburger button na mobile */
    .ms-custom-home .ms-nav-burger { display: inline-flex; }
    /* Mobile drawer enabled (display:none disabled na mobile) */
    .ms-custom-home .ms-mobile-drawer { display: block; }
    /* Konto label hidden on mobile -- tylko ikona koszyka */
    .ms-custom-home .ms-nav-link-account { display: none; }
    /* Cart label "Koszyk" ukryta na mobile (tylko icon + count) -- oszczednosc miejsca */
    .ms-custom-home .ms-nav-right .ms-cart-label { display: none; }
    .ms-custom-home .ms-nav-right { gap: 0; }
    /* Cart link compact na mobile -- ikona + count tylko, mniejszy padding */
    .ms-custom-home .ms-cart-link { padding: 8px 10px; gap: 6px; min-height: 44px; }
    /* Lekki gap miedzy ikona a count */
    .ms-custom-home .ms-cart-link svg { width: 22px; height: 22px; }
    .ms-custom-home .ms-cart-count { font-size: 11px; padding: 2px 6px; }
    /* Logo ciasniej na mobile */
    .ms-custom-home .ms-nav-logo .custom-logo-link { width: 80px; height: 80px; }
    .ms-custom-home .ms-nav-logo img,
    .ms-custom-home .ms-nav-logo .custom-logo { max-height: 64px !important; max-width: 64px !important; }
    /* Top bar mniej przytlaczajaca na mobile */
    .ms-custom-home .ms-top-bar { padding: 8px 16px; font-size: 11px; letter-spacing: 0.04em; }
    .ms-custom-home .ms-section { padding: 80px 24px; }
    .ms-custom-home .ms-hero-content { padding: 64px 24px 48px; }
    .ms-custom-home .ms-hero-image { min-height: 400px; }
    .ms-custom-home .ms-section-head { grid-template-columns: 1fr; align-items: start; }
    .ms-custom-home .ms-section-link { justify-self: start; }
    .ms-custom-home .ms-collection-grid { grid-template-columns: 1fr; gap: 48px; }
    .ms-custom-home .ms-feature-inner { padding: 80px 24px; }
    .ms-custom-home .ms-feature-specs { grid-template-columns: 1fr; gap: 20px; }
    .ms-custom-home .ms-discover-inner { padding: 80px 24px; }
    .ms-custom-home .ms-discover-header { margin-bottom: 40px; }
    .ms-custom-home .ms-discover-track { grid-auto-columns: clamp(220px, 70vw, 260px); gap: 16px; }
    .ms-custom-home .ms-discover-nav-btn { width: 42px; height: 42px; }
    .ms-custom-home .ms-discover-cta-wrap { margin-top: 40px; }
    .ms-custom-home .ms-articles-inner { padding: 80px 24px; }
    .ms-custom-home .ms-articles-header { margin-bottom: 40px; }
    .ms-custom-home .ms-articles-track { grid-auto-columns: clamp(260px, 80vw, 320px); gap: 16px; }
    .ms-custom-home .ms-articles-nav-btn { width: 42px; height: 42px; }
    .ms-custom-home .ms-articles-cta-wrap { margin-top: 48px; }
    .ms-custom-home .ms-categories-grid { grid-template-columns: 1fr; }
    .ms-custom-home .ms-story { padding: 80px 24px; }
    .ms-custom-home .ms-story-stats { grid-template-columns: 1fr; gap: 32px; }
    .ms-custom-home .ms-newsletter { padding: 80px 24px; }
    .ms-custom-home .ms-newsletter-form { flex-direction: column; border: none; gap: 16px; }
    .ms-custom-home .ms-newsletter-input { border-bottom: 1px solid rgba(247, 243, 234, 0.3); }
    .ms-custom-home .ms-newsletter-submit { justify-self: center; }
    .ms-custom-home .ms-footer { padding: 64px 24px 32px; }
    .ms-custom-home .ms-footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; margin-bottom: 32px; }
    .ms-custom-home .ms-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .ms-custom-home .ms-hero-actions { flex-direction: column; align-items: stretch; }
    .ms-custom-home .ms-btn-primary,
    .ms-custom-home .ms-btn-ghost { justify-content: center; }
}


/* ==========================================================
   15. EDITORIAL PAGES (About + FAQ + Contact + Regulamin)
   Used przez page-templates/page-about.php i page-templates/page-editorial.php
   ========================================================== */

/* === Page hero (text-only, centered, dla editorial pages) ===
   Phase D.LinkAudit.SpacingFix (2026-05-17): zmniejszone padding + margins
   po klient feedback "zrób mniejsze odstepy pionowe". */
.ms-page-hero-text {
    background: var(--ms-bone);
    padding: 80px 80px 48px; /* prev 140 80 100 -- znaczna redukcja */
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ms-page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.ms-page-hero-eyebrow {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 20px; /* prev 32 */
    display: inline-block;
    text-transform: none !important;
}
/* Reset inherited ::before (decorative line from .ms-hero-eyebrow) w editorial hero
   gdzie tytul jest centrowany - linia z gold po lewej myli klienta jako "krzak". */
.ms-page-hero-eyebrow::before {
    content: none;
}
.ms-page-hero-title {
    font-family: var(--ms-font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ms-green-deep);
    margin: 0 0 20px; /* prev 32 */
}
.ms-page-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ms-green-mid);
    max-width: 640px;
    margin: 0 auto;
}

/* About hero (asymmetric -- inherit from .ms-hero, only adjust padding) */
.ms-page-about .ms-hero {
    min-height: 78vh;
}

/* === Light section (cream/sand alternative do bone background) === */
.ms-section-light {
    background: var(--ms-cream);
    padding-left: clamp(48px, 6vw, 80px);
    padding-right: clamp(48px, 6vw, 80px);
    max-width: 100%;
}
.ms-section-light .ms-section-head,
.ms-section-light .ms-prose {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* === Prose (article body typography dla content / the_content() / about-specjalizacja) === */
.ms-prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ms-text);
}
.ms-prose-section {
    background: var(--ms-bone);
}
/* Phase D.LinkAudit.SpacingFix (2026-05-17): override .ms-section padding 140px
   (per .ms-custom-home .ms-section) zeby editorial pages mialy luzniejsze
   spacing -- klient feedback "zrob mniejsze odstepy pionowe". */
.ms-page-editorial .ms-prose-section {
    padding-top: 48px;
    padding-bottom: 80px;
}
.ms-prose p {
    margin: 0 0 1em; /* prev 1.4em */
}
.ms-prose strong {
    font-weight: 600;
    color: var(--ms-green-deep);
}
.ms-prose em {
    font-style: italic;
    color: var(--ms-green-mid);
}
.ms-prose a {
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
    transition: color 0.2s var(--ms-ease), border-color 0.2s var(--ms-ease);
}
.ms-prose a:hover {
    color: var(--ms-gold);
    border-bottom-color: var(--ms-green-deep);
}
.ms-prose h2 {
    font-family: var(--ms-font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ms-green-deep);
    margin: 2em 0 0.6em;
}
.ms-prose h3 {
    font-family: var(--ms-font-display);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ms-green-deep);
    margin: 1.6em 0 0.5em;
}
.ms-prose ul, .ms-prose ol,
.ms-prose-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}
.ms-prose-list li,
.ms-prose ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.6em;
    line-height: 1.6;
}
.ms-prose-list li::before,
.ms-prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 16px;
    height: 1px;
    background: var(--ms-gold);
}
.ms-prose ol {
    counter-reset: ms-prose-counter;
}
.ms-prose ol li {
    counter-increment: ms-prose-counter;
    padding-left: 36px;
}
.ms-prose ol li::before {
    content: counter(ms-prose-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold);
    font-size: 14px;
    background: none;
    width: auto;
    height: auto;
}

/* === About proces section (3-step grid, dark bg, inherit z .ms-feature) === */
.ms-about-proces .ms-feature-inner {
    grid-template-columns: 1fr;
    gap: 64px;
}
.ms-proces-intro {
    max-width: 720px;
}
.ms-proces-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.ms-proces-step {
    border-top: 1px solid rgba(247, 243, 234, 0.18);
    padding-top: 28px;
}
.ms-proces-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 36px;
    color: var(--ms-gold-soft);
    margin-bottom: 16px;
    line-height: 1;
}
.ms-proces-title {
    font-family: var(--ms-font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--ms-cream);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}
.ms-proces-desc {
    color: rgba(247, 243, 234, 0.72);
    font-size: 15px;
    line-height: 1.7;
}
.ms-proces-desc strong {
    color: var(--ms-gold-soft);
    font-weight: 500;
}

/* === About wartosci section (3-col values grid) === */
.ms-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}
.ms-value-card {
    padding: 36px 28px;
    border-top: 1px solid var(--ms-border);
}
.ms-value-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 28px;
    color: var(--ms-gold);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}
.ms-value-title {
    font-family: var(--ms-font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--ms-green-deep);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}
.ms-value-desc {
    color: var(--ms-green-mid);
    font-size: 15px;
    line-height: 1.7;
}
.ms-value-desc a {
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
}
.ms-value-desc a:hover {
    color: var(--ms-gold);
}

/* === About stats (no top section heading, only divider + stats) === */
.ms-about-stats {
    padding: 80px 80px 100px;
}
.ms-about-stats .ms-story-divider {
    margin: 0 0 48px;
}
.ms-about-stats .ms-story-stats {
    margin-top: 0;
}

/* === CTA actions row (multiple buttons) === */
.ms-cta-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* === .ms-btn-ghost-light (light variant na ciemnym tle) === */
.ms-btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-bone);
    border-bottom: 1px solid rgba(247, 243, 234, 0.4);
    transition: gap 0.3s var(--ms-ease), border-color 0.3s var(--ms-ease);
}
.ms-btn-ghost-light:hover {
    gap: 16px;
    color: var(--ms-gold-soft);
    border-bottom-color: var(--ms-gold);
}


/* ==========================================================
   16. KADENCE ACCORDION OVERRIDE (FAQ + other accordion blocks)
   Nadpisuje Kadence default styling -- editorial luxury feel.
   Active: .kt-blocks-accordion-header[aria-expanded="true"]
   ========================================================== */
.ms-page-editorial .wp-block-kadence-accordion {
    max-width: 900px;
    margin: 48px auto;
}

.ms-page-editorial .kt-blocks-accordion-wrap,
.ms-page-editorial .kt-accordion-inner-wrap {
    row-gap: 12px !important;
    display: flex;
    flex-direction: column;
}

.ms-page-editorial .wp-block-kadence-pane {
    border: 1px solid var(--ms-border) !important;
    border-radius: var(--ms-radius-sm) !important;
    background: var(--ms-paper) !important;
    overflow: hidden;
    transition: border-color 0.25s var(--ms-ease), box-shadow 0.25s var(--ms-ease);
}
.ms-page-editorial .wp-block-kadence-pane:hover {
    border-color: var(--ms-gold-soft) !important;
    box-shadow: var(--ms-shadow-sm);
}

.ms-page-editorial .kt-blocks-accordion-header,
.ms-page-editorial .kt-blocks-accordion-header[class] {
    font-family: var(--ms-font-display) !important;
    font-size: clamp(17px, 1.6vw, 21px) !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    color: var(--ms-green-deep) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 22px 56px 22px 28px !important;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: color 0.25s var(--ms-ease);
    letter-spacing: -0.005em;
}
.ms-page-editorial .kt-blocks-accordion-header:hover {
    color: var(--ms-gold) !important;
}
.ms-page-editorial .kt-blocks-accordion-header[aria-expanded="true"] {
    color: var(--ms-green-deep) !important;
    border-bottom: 1px solid var(--ms-border) !important;
}

/* Accordion title (jesli wrapped) */
.ms-page-editorial .kt-blocks-accordion-title {
    font-family: var(--ms-font-display) !important;
    font-weight: 400 !important;
}

/* Accordion icon trigger (custom + / X) */
.ms-page-editorial .kt-blocks-accordion-icon-trigger,
.ms-page-editorial .kt-blocks-accordion-icon-trigger[class] {
    background: transparent !important;
    width: 24px !important;
    height: 24px !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.ms-page-editorial .kt-blocks-accordion-icon-trigger::before,
.ms-page-editorial .kt-blocks-accordion-icon-trigger::after {
    background: var(--ms-gold) !important;
    border-radius: 1px !important;
}
.ms-page-editorial .kt-blocks-accordion-icon-trigger::before {
    width: 14px !important;
    height: 1px !important;
    left: 5px !important;
    top: 11px !important;
}
.ms-page-editorial .kt-blocks-accordion-icon-trigger::after {
    width: 1px !important;
    height: 14px !important;
    left: 11px !important;
    top: 5px !important;
    transition: transform 0.3s var(--ms-ease);
}
.ms-page-editorial .kt-blocks-accordion-header[aria-expanded="true"] .kt-blocks-accordion-icon-trigger::after {
    transform: scaleY(0) !important;
}

/* Accordion panel (answer body) */
.ms-page-editorial .kt-accordion-panel,
.ms-page-editorial .kt-accordion-panel-inner {
    background: transparent !important;
    border: none !important;
    padding: 0 28px 24px 28px !important;
    color: var(--ms-text);
    font-family: var(--ms-font-body);
    font-size: 16px;
    line-height: 1.7;
}
.ms-page-editorial .kt-accordion-panel-inner p {
    margin: 0 0 1em;
}
.ms-page-editorial .kt-accordion-panel-inner p:last-child {
    margin-bottom: 0;
}
.ms-page-editorial .kt-accordion-panel-inner strong {
    color: var(--ms-green-deep);
    font-weight: 600;
}
.ms-page-editorial .kt-accordion-panel-inner a {
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
}
.ms-page-editorial .kt-accordion-panel-inner a:hover {
    color: var(--ms-gold);
}

/* Override Kadence Advanced Heading inline-style font (Nanum Myeongjo) na FAQ H1 */
.ms-page-editorial .wp-block-kadence-advancedheading,
.ms-page-editorial .wp-block-kadence-advancedheading[class] {
    font-family: var(--ms-font-display) !important;
    color: var(--ms-green-deep) !important;
    font-weight: 400 !important;
}


/* ==========================================================
   16.5 NATIVE <details> FAQ -- Phase D.FAQ-Rebuild (2026-05-04)
   Programatyczny rebuild FAQ przez inc/faq-content-rebuild.php
   uzywa core/details + core/html bloks (zamiast Kadence Accordion --
   resilient na wpautop, no plugin lock-in).

   Markup:
   <details class="wp-block-details ms-faq-item">
     <summary class="ms-faq-question">Pytanie?</summary>
     <div class="ms-faq-answer">
       <div class="ms-faq-short"><strong class="ms-faq-label">Krotka odpowiedz</strong> ...</div>
       <div class="ms-faq-detail"><strong class="ms-faq-label">Szczegoly</strong> ...</div>
     </div>
   </details>
   ========================================================== */

/* Wrapping section (intro paragraph + h2) */
.ms-page-editorial .ms-faq-intro {
    max-width: 760px;
    margin: 16px auto 56px;
    text-align: center;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ms-muted);
}
.ms-page-editorial .ms-faq-eyebrow {
    max-width: 900px;
    margin: 64px auto 8px;
    text-align: center;
}
.ms-page-editorial .ms-faq-section-title {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
    font-family: var(--ms-font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 40px);
    color: var(--ms-green-deep);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Accordion item (details element) */
.ms-page-editorial .ms-faq-item,
.ms-page-editorial details.wp-block-details.ms-faq-item {
    max-width: 900px;
    margin: 0 auto 12px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-sm);
    background: var(--ms-paper);
    overflow: hidden;
    transition: border-color 0.25s var(--ms-ease), box-shadow 0.25s var(--ms-ease);
}
.ms-page-editorial .ms-faq-item:hover {
    border-color: var(--ms-gold-soft);
    box-shadow: var(--ms-shadow-sm);
}
.ms-page-editorial .ms-faq-item[open] {
    border-color: var(--ms-gold-soft);
    box-shadow: var(--ms-shadow-sm);
}

/* Question (summary element) */
.ms-page-editorial .ms-faq-question,
.ms-page-editorial details.ms-faq-item > summary.ms-faq-question {
    list-style: none;
    cursor: pointer;
    padding: 22px 56px 22px 28px;
    font-family: var(--ms-font-display);
    font-weight: 400;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: var(--ms-green-deep);
    position: relative;
    transition: color 0.25s var(--ms-ease);
}
.ms-page-editorial .ms-faq-question::-webkit-details-marker {
    display: none;
}
.ms-page-editorial .ms-faq-question:hover {
    color: var(--ms-gold);
}

/* Custom + / minus icon -- gold cross via SVG background (clean centering) */
.ms-page-editorial .ms-faq-question {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><line x1='1' y1='8' x2='15' y2='8' stroke='%23b8935a' stroke-width='1.4' stroke-linecap='round'/><line x1='8' y1='1' x2='8' y2='15' stroke='%23b8935a' stroke-width='1.4' stroke-linecap='round'/></svg>");
    background-position: right 24px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    transition: color 0.25s var(--ms-ease), background-image 0.2s ease;
}
.ms-page-editorial .ms-faq-item[open] > .ms-faq-question {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><line x1='1' y1='8' x2='15' y2='8' stroke='%23b8935a' stroke-width='1.4' stroke-linecap='round'/></svg>");
}

/* Answer body */
.ms-page-editorial .ms-faq-answer {
    padding: 0 28px 24px 28px;
    color: var(--ms-text);
    font-family: var(--ms-font-body);
    font-size: 16px;
    line-height: 1.7;
    border-top: 1px solid var(--ms-border);
    padding-top: 24px;
}

.ms-page-editorial .ms-faq-short {
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 3px solid var(--ms-gold);
}
.ms-page-editorial .ms-faq-detail {
    margin-top: 8px;
}

.ms-page-editorial .ms-faq-label {
    display: block;
    font-family: var(--ms-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-gold);
    margin-bottom: 6px;
}

.ms-page-editorial .ms-faq-answer p {
    margin: 0 0 0.95em;
}
.ms-page-editorial .ms-faq-answer p:last-child {
    margin-bottom: 0;
}
.ms-page-editorial .ms-faq-answer strong {
    color: var(--ms-green-deep);
    font-weight: 600;
}
.ms-page-editorial .ms-faq-answer em {
    font-style: italic;
    color: var(--ms-text);
}
.ms-page-editorial .ms-faq-answer a {
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
    transition: color 0.2s var(--ms-ease);
}
.ms-page-editorial .ms-faq-answer a:hover {
    color: var(--ms-gold);
}

/* Lists inside answers */
.ms-page-editorial .ms-faq-answer ul,
.ms-page-editorial .ms-faq-answer ol {
    margin: 0.6em 0 1em;
    padding-left: 1.4em;
}
.ms-page-editorial .ms-faq-answer li {
    margin-bottom: 0.55em;
}
.ms-page-editorial .ms-faq-answer ul li::marker {
    color: var(--ms-gold);
}
.ms-page-editorial .ms-faq-answer ol li::marker {
    color: var(--ms-gold);
    font-family: var(--ms-font-display);
    font-weight: 500;
}

/* Tables inside answers (price tables, comparison tables) */
.ms-page-editorial .ms-faq-answer .wp-block-table,
.ms-page-editorial .ms-faq-answer table {
    margin: 16px 0 18px;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ms-page-editorial .ms-faq-answer table thead {
    background: var(--ms-sand);
}
.ms-page-editorial .ms-faq-answer table th {
    text-align: left;
    padding: 10px 14px;
    font-family: var(--ms-font-body);
    font-weight: 600;
    color: var(--ms-green-deep);
    border-bottom: 2px solid var(--ms-border);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ms-page-editorial .ms-faq-answer table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ms-border);
    color: var(--ms-text);
    line-height: 1.55;
}
.ms-page-editorial .ms-faq-answer table tr:last-child td {
    border-bottom: none;
}
.ms-page-editorial .ms-faq-answer .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background: rgba(242, 237, 226, 0.4);
}


/* ==========================================================
   17. RESPONSIVE — editorial pages
   ========================================================== */
@media (max-width: 1024px) {
    .ms-page-hero-text { padding: 56px 32px 32px; }
    .ms-page-editorial .ms-prose-section { padding-top: 32px; padding-bottom: 56px; }
    .ms-proces-grid { grid-template-columns: 1fr; gap: 32px; }
    .ms-values-grid { grid-template-columns: 1fr; gap: 24px; max-width: 600px; }
    .ms-section-light { padding-left: 48px; padding-right: 48px; }
    .ms-page-editorial .kt-blocks-accordion-header,
    .ms-page-editorial .kt-blocks-accordion-header[class] {
        padding: 18px 50px 18px 22px !important;
        font-size: 17px !important;
    }
    .ms-page-editorial .ms-faq-question {
        padding: 18px 50px 18px 22px;
        font-size: 17px;
    }
    .ms-page-editorial .ms-faq-answer {
        padding: 0 22px 22px 22px;
        padding-top: 22px;
        font-size: 15px;
    }
    .ms-page-editorial .ms-faq-section-title {
        font-size: clamp(24px, 4vw, 32px);
        margin-bottom: 24px;
    }
}
@media (max-width: 640px) {
    .ms-page-hero-text { padding: 80px 24px 64px; }
    .ms-section-light { padding-left: 24px; padding-right: 24px; }
    .ms-cta-actions { flex-direction: column; align-items: stretch; }
    .ms-cta-actions .ms-btn-gold,
    .ms-cta-actions .ms-btn-ghost-light { justify-content: center; }
    .ms-page-editorial .ms-faq-question {
        padding: 16px 44px 16px 18px;
        font-size: 16px;
    }
    .ms-page-editorial .ms-faq-question::before,
    .ms-page-editorial .ms-faq-question::after {
        right: 18px;
    }
    .ms-page-editorial .ms-faq-answer {
        padding: 0 18px 20px 18px;
        padding-top: 20px;
        font-size: 14.5px;
    }
    .ms-page-editorial .ms-faq-answer table {
        font-size: 12.5px;
    }
    .ms-page-editorial .ms-faq-answer table th,
    .ms-page-editorial .ms-faq-answer table td {
        padding: 7px 8px;
    }
    .ms-page-editorial .ms-faq-intro {
        margin: 12px auto 36px;
        font-size: 15px;
    }
    .ms-page-editorial .ms-faq-eyebrow {
        margin: 40px auto 8px;
    }
}


/* ==========================================================
   17.5. CONTACT PAGE (3-col info grid + mailto buttons)
   ========================================================== */

.ms-page-contact .ms-contact-info {
    background: var(--ms-cream);
    max-width: 100%;
    padding: 100px clamp(48px, 6vw, 80px) 120px;
    margin: 0;
}

.ms-page-contact .ms-contact-grid {
    display: grid;
    /* Phase D.LinkAudit.E-E-A-T (2026-05-17): zmiana z 3-col na auto-fit zeby
       handle 4 cards (Email + Telefon + Adres + Social) - responsive na wszystkich rozdzielczosciach. */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ms-page-contact .ms-contact-card {
    background: var(--ms-bone);
    padding: 48px 36px;
    border-radius: var(--ms-radius-sm);
    border: 1px solid var(--ms-border);
    transition: transform 0.4s var(--ms-ease), box-shadow 0.4s var(--ms-ease), border-color 0.4s var(--ms-ease);
    display: flex;
    flex-direction: column;
}
.ms-page-contact .ms-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow-md);
    border-color: var(--ms-gold-soft);
}

.ms-page-contact .ms-contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ms-cream);
    border: 1px solid var(--ms-gold);
    color: var(--ms-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: background 0.3s var(--ms-ease), color 0.3s var(--ms-ease);
}
.ms-page-contact .ms-contact-card:hover .ms-contact-icon {
    background: var(--ms-gold);
    color: var(--ms-bone);
}

.ms-page-contact .ms-contact-card-title {
    font-family: var(--ms-font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--ms-green-deep);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.ms-page-contact .ms-contact-card-desc {
    color: var(--ms-green-mid);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
    flex: 1;
}

.ms-page-contact .ms-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ms-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
    padding-bottom: 4px;
    align-self: flex-start;
    transition: gap 0.3s var(--ms-ease), color 0.3s var(--ms-ease);
    word-break: break-all;
}
.ms-page-contact .ms-contact-link:hover {
    gap: 14px;
    color: var(--ms-gold);
}

.ms-page-contact .ms-contact-address {
    font-style: normal;
    font-family: var(--ms-font-display);
    font-size: 17px;
    color: var(--ms-green-deep);
    line-height: 1.6;
    letter-spacing: -0.005em;
}

.ms-page-contact .ms-contact-social {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ms-page-contact .ms-contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ms-green-deep);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s var(--ms-ease), gap 0.3s var(--ms-ease);
    border: none;
    padding: 0;
}
.ms-page-contact .ms-contact-social a:hover {
    color: var(--ms-gold);
    gap: 16px;
}
.ms-page-contact .ms-contact-social svg {
    flex-shrink: 0;
}

/* Phase D.LinkAudit.ContactForm (2026-05-17): formularz kontaktowy section.
   Editorial styling - bone background, gold focus rings, green-deep submit. */
.ms-page-contact .ms-contact-form-section {
    background: var(--ms-bone);
    padding: 80px 80px 100px;
}
.ms-page-contact .ms-contact-form-inner {
    max-width: 760px;
    margin: 0 auto;
}
.ms-page-contact .ms-contact-form-header {
    text-align: center;
    margin-bottom: 48px;
}
.ms-page-contact .ms-contact-form-header .ms-section-num {
    margin: 0 auto 24px;
    justify-content: center;
}
.ms-page-contact .ms-contact-form-title {
    font-family: var(--ms-font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ms-green-deep);
    margin: 0 0 20px;
}
.ms-page-contact .ms-contact-form-title .ms-italic {
    font-style: italic;
    color: var(--ms-gold);
    font-weight: 300;
}
.ms-page-contact .ms-contact-form-lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ms-green-mid);
    max-width: 600px;
    margin: 0 auto;
}
.ms-page-contact .ms-contact-form-lead strong {
    color: var(--ms-green-deep);
}

/* Flash message (success/error/spam/ratelimit/invalid) */
.ms-page-contact .ms-contact-flash {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
    border-left: 3px solid;
}
.ms-page-contact .ms-contact-flash-success {
    background: rgba(193, 212, 174, 0.18);
    border-left-color: #6a8c4e;
    color: #2d4a1a;
}
.ms-page-contact .ms-contact-flash-error,
.ms-page-contact .ms-contact-flash-spam {
    background: rgba(193, 71, 71, 0.08);
    border-left-color: #c14747;
    color: #6b1f1f;
}
.ms-page-contact .ms-contact-flash-ratelimit,
.ms-page-contact .ms-contact-flash-invalid {
    background: rgba(201, 169, 97, 0.12);
    border-left-color: var(--ms-gold);
    color: #5f4a1f;
}
.ms-page-contact .ms-contact-flash a {
    color: inherit;
    text-decoration: underline;
}

/* Honeypot - hidden CSS (bot reads HTML, fills, my detect = spam reject) */
.ms-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Form grid */
.ms-page-contact .ms-contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.ms-page-contact .ms-form-field-full {
    grid-column: 1 / -1;
}

/* Form fields - inputs / select / textarea */
.ms-page-contact .ms-form-field label {
    display: block;
    font-family: var(--ms-font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ms-green-deep);
    margin-bottom: 8px;
    text-transform: none;
}
.ms-page-contact .ms-form-field .ms-required {
    color: var(--ms-gold);
    font-weight: 400;
}
.ms-page-contact .ms-form-field .ms-optional {
    color: var(--ms-muted);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0;
}
.ms-page-contact .ms-form-field input[type="text"],
.ms-page-contact .ms-form-field input[type="email"],
.ms-page-contact .ms-form-field input[type="tel"],
.ms-page-contact .ms-form-field select,
.ms-page-contact .ms-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--ms-font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ms-green-deep);
    background: var(--ms-paper);
    border: 1px solid var(--ms-border);
    border-radius: 4px;
    transition: border-color 0.2s var(--ms-ease), box-shadow 0.2s var(--ms-ease);
}
.ms-page-contact .ms-form-field input::placeholder,
.ms-page-contact .ms-form-field textarea::placeholder {
    color: var(--ms-muted);
    opacity: 0.7;
}
.ms-page-contact .ms-form-field input:focus,
.ms-page-contact .ms-form-field select:focus,
.ms-page-contact .ms-form-field textarea:focus {
    outline: none;
    border-color: var(--ms-gold);
    box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.18);
}
.ms-page-contact .ms-form-field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--ms-font-body);
}
.ms-page-contact .ms-form-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%232a3a32' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

/* RODO consent checkbox */
.ms-page-contact .ms-form-consent {
    margin-top: 8px;
}
.ms-page-contact .ms-checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ms-text);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.ms-page-contact .ms-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ms-gold);
    cursor: pointer;
}
.ms-page-contact .ms-checkbox-label span {
    flex: 1;
}
.ms-page-contact .ms-checkbox-label a {
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
}
.ms-page-contact .ms-checkbox-label a:hover {
    color: var(--ms-gold);
}
.ms-page-contact .ms-checkbox-label strong {
    color: var(--ms-green-deep);
    font-weight: 500;
}

/* Submit button */
.ms-page-contact .ms-form-submit {
    margin-top: 16px;
    text-align: center;
}
.ms-page-contact .ms-form-submit .ms-btn-primary {
    min-height: 56px;
    padding: 16px 36px;
    font-size: 14px;
    letter-spacing: 0.1em;
    min-width: 240px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ms-page-contact .ms-contact-form-section { padding: 56px 24px 80px; }
    .ms-page-contact .ms-contact-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .ms-page-contact .ms-form-submit .ms-btn-primary { width: 100%; }
}

/* Contact CTA section -- inherit from .ms-newsletter, custom adjustments */
.ms-page-contact .ms-contact-cta {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 1024px) {
    .ms-page-contact .ms-contact-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 24px;
    }
    .ms-page-contact .ms-contact-info {
        padding: 80px 32px 100px;
    }
}
@media (max-width: 640px) {
    .ms-page-contact .ms-contact-info {
        padding: 64px 24px 80px;
    }
    .ms-page-contact .ms-contact-card {
        padding: 36px 28px;
    }
}


/* ==========================================================
   17.6. 404 ERROR PAGE
   ========================================================== */

.ms-page-404 .ms-error-section {
    background: var(--ms-bone);
    min-height: 75vh;
    padding: 120px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ms-page-404 .ms-error-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ms-page-404 .ms-error-num {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(120px, 22vw, 240px);
    line-height: 1;
    color: var(--ms-gold-soft);
    opacity: 0.5;
    letter-spacing: -0.06em;
    margin-bottom: -40px;
    user-select: none;
}

.ms-page-404 .ms-error-eyebrow {
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: inline-block;
}

.ms-page-404 .ms-error-title {
    font-family: var(--ms-font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ms-green-deep);
    margin: 0 0 24px;
}

.ms-page-404 .ms-error-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ms-green-mid);
    max-width: 520px;
    margin: 0 auto 40px;
}

.ms-page-404 .ms-error-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.ms-page-404 .ms-error-suggestions {
    padding-top: 48px;
    border-top: 1px solid var(--ms-border);
}

.ms-page-404 .ms-error-suggestions-title {
    font-family: var(--ms-font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ms-muted);
    margin: 0 0 24px;
}

.ms-page-404 .ms-error-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
}

.ms-page-404 .ms-error-links li::before {
    display: none;
}

.ms-page-404 .ms-error-links a {
    font-family: var(--ms-font-display);
    font-size: 18px;
    color: var(--ms-green-deep);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s var(--ms-ease), color 0.2s var(--ms-ease);
}
.ms-page-404 .ms-error-links a:hover {
    color: var(--ms-gold);
    border-bottom-color: var(--ms-gold);
}

@media (max-width: 640px) {
    .ms-page-404 .ms-error-section { padding: 80px 24px; }
    .ms-page-404 .ms-error-actions { flex-direction: column; align-items: stretch; }
    .ms-page-404 .ms-error-actions .ms-btn-primary,
    .ms-page-404 .ms-error-actions .ms-btn-ghost { justify-content: center; }
}


/* ==========================================================
   17.7. BLOG (archive + single post + related posts)
   ========================================================== */

/* === Blog grid (3-col responsive) === */
.ms-page-blog .ms-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .ms-page-blog .ms-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ms-page-blog .ms-blog-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* === Blog card === */
.ms-blog-card {
    position: relative;
}
.ms-blog-card-link {
    display: block;
    color: inherit;
    transition: transform 0.4s var(--ms-ease);
}
.ms-blog-card-link:hover {
    transform: translateY(-6px);
}

.ms-blog-card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--ms-radius-xs);
    background: var(--ms-cream);
    margin-bottom: 24px;
}
.ms-blog-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ms-ease);
    filter: brightness(0.95) saturate(1.05);
}
.ms-blog-card-link:hover .ms-blog-card-image img {
    transform: scale(1.04);
}
.ms-blog-card-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ms-green-mid), var(--ms-green-deep));
}

.ms-blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ms-bone);
    color: var(--ms-green-deep);
    font-family: var(--ms-font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--ms-radius-pill);
    z-index: 2;
}

.ms-blog-card-body {
    padding: 0 4px;
}

.ms-blog-card-meta {
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 12px;
    color: var(--ms-muted);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-blog-card-meta-sep {
    opacity: 0.6;
}

.ms-blog-card-title {
    font-family: var(--ms-font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ms-green-deep);
    margin: 0 0 12px;
}

.ms-blog-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ms-green-mid);
    margin: 0 0 16px;
}

.ms-blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ms-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-green-deep);
    transition: gap 0.3s var(--ms-ease), color 0.3s var(--ms-ease);
}
.ms-blog-card-link:hover .ms-blog-card-readmore {
    gap: 14px;
    color: var(--ms-gold);
}

/* === Blog archive section === */
.ms-page-blog .ms-blog-archive-section {
    padding-top: 80px;
    padding-bottom: 120px;
}

.ms-page-blog .ms-blog-empty {
    text-align: center;
    padding: 80px 24px;
    font-family: var(--ms-font-display);
    font-size: 20px;
    color: var(--ms-green-mid);
}
.ms-page-blog .ms-blog-empty a {
    color: var(--ms-green-deep);
    border-bottom: 1px solid var(--ms-gold);
}

/* === Pagination === */
.ms-page-blog .ms-blog-pagination {
    margin-top: 80px;
    text-align: center;
}
.ms-page-blog .ms-blog-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.ms-page-blog .ms-blog-pagination li::before {
    display: none;
}
.ms-page-blog .ms-blog-pagination a,
.ms-page-blog .ms-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 50%;
    font-family: var(--ms-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ms-green-deep);
    background: transparent;
    border: 1px solid var(--ms-border);
    transition: all 0.25s var(--ms-ease);
}
.ms-page-blog .ms-blog-pagination a:hover {
    border-color: var(--ms-gold);
    color: var(--ms-gold);
}
.ms-page-blog .ms-blog-pagination .current {
    background: var(--ms-green-deep);
    border-color: var(--ms-green-deep);
    color: var(--ms-bone);
}
.ms-page-blog .ms-blog-pagination .prev,
.ms-page-blog .ms-blog-pagination .next {
    border-radius: var(--ms-radius-pill);
    padding: 0 20px;
}

/* === Single post hero === */
.ms-single-post .ms-post-hero {
    background: var(--ms-bone);
    padding: 100px clamp(48px, 6vw, 80px) 60px;
    text-align: center;
}
.ms-single-post .ms-post-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.ms-single-post .ms-post-eyebrow {
    display: inline-block;
    font-family: var(--ms-font-display);
    font-style: italic;
    color: var(--ms-gold);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    text-transform: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ms-ease);
}
.ms-single-post .ms-post-eyebrow:hover {
    border-bottom-color: var(--ms-gold);
}

.ms-single-post .ms-post-title {
    font-family: var(--ms-font-display);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ms-green-deep);
    margin: 0 0 32px;
}

.ms-single-post .ms-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--ms-font-body);
    font-size: 13px;
    color: var(--ms-muted);
    letter-spacing: 0.03em;
}
.ms-single-post .ms-post-meta-sep {
    opacity: 0.5;
}

/* === Featured image === */
.ms-single-post .ms-post-featured {
    max-width: 1200px;
    margin: 0 auto 64px;
    padding: 0 clamp(24px, 4vw, 48px);
}
.ms-single-post .ms-post-featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--ms-radius-xs);
    filter: brightness(0.98) saturate(1.05);
}

/* === Post content === */
.ms-single-post .ms-post-content-wrap {
    padding: 0 clamp(24px, 4vw, 48px);
    margin-bottom: 80px;
}
.ms-single-post .ms-post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.78;
}
.ms-single-post .ms-post-content > :first-child {
    font-size: 19px;
    line-height: 1.65;
    color: var(--ms-green-mid);
    margin-bottom: 1.6em;
}
.ms-single-post .ms-post-content figure,
.ms-single-post .ms-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ms-radius-xs);
    margin: 2em 0;
}
.ms-single-post .ms-post-content blockquote {
    border-left: 3px solid var(--ms-gold);
    padding: 16px 0 16px 28px;
    margin: 2em 0;
    font-family: var(--ms-font-display);
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--ms-green-deep);
}

/* === Tags === */
.ms-single-post .ms-post-tags-wrap {
    max-width: 720px;
    margin: 0 auto 80px;
    padding: 32px clamp(24px, 4vw, 48px);
    border-top: 1px solid var(--ms-border);
}
.ms-single-post .ms-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-family: var(--ms-font-body);
    font-size: 13px;
    color: var(--ms-muted);
}
.ms-single-post .ms-post-tags-label {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-green-deep);
    margin-right: 4px;
}
.ms-single-post .ms-post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--ms-cream);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-pill);
    color: var(--ms-green-deep);
    transition: border-color 0.2s var(--ms-ease), color 0.2s var(--ms-ease);
}
.ms-single-post .ms-post-tags a:hover {
    border-color: var(--ms-gold);
    color: var(--ms-gold);
}

/* === Related posts on single === */
.ms-single-post .ms-related-posts {
    background: var(--ms-cream);
    max-width: 100%;
    padding: 100px clamp(48px, 6vw, 80px);
}
.ms-single-post .ms-related-posts .ms-section-head {
    margin-bottom: 64px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .ms-single-post .ms-post-hero { padding: 80px 32px 48px; }
    .ms-single-post .ms-post-content > :first-child { font-size: 17px; }
}
@media (max-width: 640px) {
    .ms-single-post .ms-post-hero { padding: 64px 24px 40px; }
    .ms-single-post .ms-post-content { font-size: 16px; line-height: 1.7; }
    .ms-single-post .ms-post-content blockquote { font-size: 18px; }
    .ms-single-post .ms-post-meta { font-size: 12px; gap: 8px; }
}


/* ==========================================================
   18. PREFERS-REDUCED-MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .ms-custom-home *,
    .ms-custom-home *::before,
    .ms-custom-home *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================
   20. REAL PHOTO PROMISE (Phase D.Trust.RealPhoto.Home 2026-05-16)
   ========================================================== */

.ms-realphoto {
    background: var(--ms-bone, #faf7ef);
    padding: 120px 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element -- gold diagonal line top-left, like editorial magazines */
.ms-realphoto::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 80px;
    width: 80px;
    height: 1px;
    background: var(--ms-gold, #c9a961);
    opacity: 0.6;
}

.ms-realphoto-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.ms-realphoto-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ms-font-display, Fraunces, serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ms-gold, #c9a961);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}
.ms-realphoto-eyebrow svg {
    flex-shrink: 0;
}

.ms-realphoto-title {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--ms-green-deep, #1a2823);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 32px;
}
.ms-realphoto-title .ms-italic {
    font-style: italic;
    color: var(--ms-gold, #c9a961);
    font-weight: 300;
}

.ms-realphoto-lead {
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ms-text, #2a2a2a);
    max-width: 720px;
    margin: 0 auto 80px;
}
.ms-realphoto-lead strong {
    font-weight: 600;
    color: var(--ms-green-deep, #1a2823);
}

.ms-realphoto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
    text-align: left;
}

.ms-realphoto-item {
    background: var(--ms-paper, #ffffff);
    padding: 40px 32px;
    border-radius: 6px;
    border: 1px solid var(--ms-border, #e8e2d5);
    transition: transform 0.4s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
                box-shadow 0.4s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
                border-color 0.3s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.ms-realphoto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -16px rgba(15, 26, 22, 0.18);
    border-color: var(--ms-gold, #c9a961);
}

.ms-realphoto-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ms-cream, #faf8f3);
    color: var(--ms-gold, #c9a961);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ms-realphoto-item h3 {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--ms-green-deep, #1a2823);
    line-height: 1.2;
    margin: 0 0 14px;
}

.ms-realphoto-item p {
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ms-text, #2a2a2a);
    margin: 0;
}
.ms-realphoto-item p em {
    font-style: italic;
    color: var(--ms-green-mid, #3d5249);
    font-weight: 500;
}

.ms-realphoto-cta {
    text-align: center;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ms-realphoto {
        padding: 100px 48px;
    }
    .ms-realphoto::before {
        left: 48px;
    }
    .ms-realphoto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .ms-realphoto-lead {
        margin-bottom: 64px;
    }
}
@media (max-width: 768px) {
    .ms-realphoto {
        padding: 80px 24px;
    }
    .ms-realphoto::before {
        left: 24px;
        top: 40px;
        width: 60px;
    }
    .ms-realphoto-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }
    .ms-realphoto-item {
        padding: 32px 24px;
    }
    .ms-realphoto-item-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }
    .ms-realphoto-lead {
        font-size: 16px;
        margin-bottom: 48px;
    }
    .ms-realphoto-title {
        margin-bottom: 24px;
    }
    .ms-realphoto-eyebrow {
        font-size: 13px;
        margin-bottom: 20px;
    }
}


/* ==========================================================
   19. HYBRID INVENTORY (Phase D.HybridInventory.Implementation 2026-05-15)
   ========================================================== */

/* Variation <li> wrapper -- override WC default styles inherited z .product class */
.products .ms-variation-li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Variation card -- inherits ms-product-card base, adds variation-specific tweaks */
/* H7.ShopFix (2026-06-04): variation cards inherit the SAME white card box as simple WC
   cards -- the box comes from `.woocommerce ul.products li.product` on the <li.ms-variation-li>
   wrapper (paper bg + border + shadow + rounded + overflow hidden + hover lift). So the
   <article> stays TRANSPARENT (no double box / double hover) and only lays out the inner
   content like a simple card: flush image -> padded vertical info -> visible CTA.
   Previously: margined rounded image + horizontal info + no button -> looked misaligned. */
.ms-variation-card {
    position: relative;
    display: block;
    background: transparent;
}
.ms-variation-card .ms-product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--ms-cream);
    overflow: hidden;
    margin-bottom: 0; /* flush -- the li provides border-radius + overflow:hidden */
    border-radius: 0;
    display: block;
}
.ms-variation-card .ms-product-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-variation-card .ms-product-info {
    display: block; /* vertical stack -- match simple card rhythm (meta -> name -> latin -> price) */
    flex: 1 1 auto;
    padding: 18px 18px 8px;
}
.ms-variation-card .ms-product-name {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--ms-green-deep, #1a2823);
    line-height: 1.2;
    margin: 2px 0 4px;
}
.ms-variation-card .ms-product-name a {
    color: inherit;
    text-decoration: none;
}
.ms-variation-card .ms-product-name a:hover {
    color: var(--ms-gold, #c9a961);
}
.ms-variation-card .ms-product-latin {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-style: italic;
    font-size: 13px;
    color: var(--ms-muted, #6b6b6b);
    margin: 0 0 6px;
}
.ms-variation-card .ms-product-price {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ms-green-deep, #1a2823);
    margin: 6px 0 0;
}
/* Visible CTA at card bottom -- mirrors the simple card's DO KOSZYKA pill. */
.ms-variation-card .ms-variation-action {
    margin-top: auto;
    padding: 4px 18px 18px;
}
.ms-variation-card .ms-variation-cta {
    display: block;
    text-align: center;
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 20px 13px;
    border-radius: var(--ms-radius-pill, 999px);
    background: var(--ms-green-deep, #1a2823);
    color: var(--ms-bone, #faf8f3) !important;
    border: 1px solid var(--ms-green-deep, #1a2823);
    text-decoration: none;
    transition: background 0.35s var(--ms-ease, ease), transform 0.35s, box-shadow 0.35s;
}
.ms-variation-card .ms-variation-cta:hover {
    background: var(--ms-green-mid, #3d5249);
    border-color: var(--ms-green-mid, #3d5249);
    color: var(--ms-bone, #faf8f3) !important;
    transform: translateY(-2px);
    box-shadow: var(--ms-shadow-md, 0 10px 30px rgba(15, 26, 22, 0.12));
}

/* Specimen meta "Okaz #1234" -- gold accent above title */
.ms-specimen-meta {
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ms-gold, #c9a961);
    margin-bottom: 6px;
}

/* "od X zl" price prefix dla variable products na shop archive */
.ms-price-from {
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 400;
    color: var(--ms-muted, #6b6b6b);
    text-transform: lowercase;
    letter-spacing: 0.03em;
    margin-right: 4px;
}

/* "Sprzedany" badge na sold-out variation */
.ms-variation-sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    background: rgba(15, 26, 22, 0.92);
    color: var(--ms-cream, #faf8f3);
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Sold-out variation card -- dimmed + non-interactive image */
.ms-variation-card.ms-variation-sold-out {
    opacity: 0.7;
}
.ms-variation-card.ms-variation-sold-out .ms-product-image-wrap img {
    filter: grayscale(40%) brightness(0.85);
}
.ms-variation-card.ms-variation-sold-out:hover {
    transform: none;
}
.ms-variation-card.ms-variation-sold-out:hover .ms-product-image-wrap img {
    transform: none;
}
.ms-variation-card.ms-variation-sold-out .ms-product-price {
    text-decoration: line-through;
    color: var(--ms-muted, #6b6b6b);
}

/* ===========================================================
   "Dostepne okazy" gallery section on single product page
   =========================================================== */
.ms-available-specimens {
    margin: 80px 0 60px;
    padding: 80px 0;
    background: var(--ms-sand, #f2ede2);
    border-top: 1px solid var(--ms-border, #e8e2d5);
    border-bottom: 1px solid var(--ms-border, #e8e2d5);
}

.ms-available-specimens-header {
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 40px;
    text-align: center;
}

.ms-available-specimens .ms-section-num {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ms-gold, #c9a961);
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 16px;
    position: relative;
    padding-left: 36px;
}
.ms-available-specimens .ms-section-num::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--ms-gold, #c9a961);
}

.ms-available-specimens-title {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--ms-green-deep, #1a2823);
    line-height: 1.1;
    margin: 0 0 16px;
}
.ms-available-specimens-title .ms-italic {
    font-style: italic;
    color: var(--ms-gold, #c9a961);
    font-weight: 300;
}

.ms-available-specimens-lead {
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 15px;
    color: var(--ms-text, #2a2a2a);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

/* Specimens grid */
.ms-specimens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.ms-specimen-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ms-paper, #ffffff);
    border: 1px solid var(--ms-border, #e8e2d5);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
                border-color 0.3s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
                box-shadow 0.3s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.ms-specimen-card:hover {
    transform: translateY(-4px);
    border-color: var(--ms-gold, #c9a961);
    box-shadow: 0 12px 32px -12px rgba(15, 26, 22, 0.18);
    text-decoration: none;
    color: inherit;
}
.ms-specimen-card:focus-visible {
    outline: 3px solid var(--ms-gold, #c9a961);
    outline-offset: 4px;
}

.ms-specimen-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ms-cream, #faf8f3);
}
.ms-specimen-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ms-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.ms-specimen-card:hover .ms-specimen-card-image img {
    transform: scale(1.05);
}

.ms-specimen-card-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ms-specimen-number {
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ms-gold, #c9a961);
}
.ms-specimen-price {
    font-family: var(--ms-font-display, Fraunces, serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--ms-green-deep, #1a2823);
}
.ms-specimen-price del {
    color: var(--ms-muted, #6b6b6b);
    margin-right: 6px;
}

/* Currently selected variation -- gold highlight */
.ms-specimen-card.ms-specimen-card-active {
    border-color: var(--ms-gold, #c9a961);
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--ms-gold, #c9a961),
                0 12px 32px -12px rgba(201, 169, 97, 0.32);
}
.ms-specimen-card.ms-specimen-card-active::after {
    content: "Wybrany";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ms-gold, #c9a961);
    color: var(--ms-bone, #faf6ed);
    font-family: var(--ms-font-body, Inter, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 2;
}

/* Sold-out specimen in gallery -- dimmed */
.ms-specimen-card.ms-specimen-card-sold-out {
    opacity: 0.55;
}
.ms-specimen-card.ms-specimen-card-sold-out:hover {
    transform: none;
    border-color: var(--ms-border, #e8e2d5);
    box-shadow: none;
}
.ms-specimen-card.ms-specimen-card-sold-out .ms-specimen-card-image img {
    filter: grayscale(50%) brightness(0.9);
}
.ms-specimen-card.ms-specimen-card-sold-out .ms-specimen-price {
    text-decoration: line-through;
    color: var(--ms-muted, #6b6b6b);
}

/* Responsive */
@media (max-width: 1024px) {
    .ms-specimens-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 24px;
    }
    .ms-available-specimens-header {
        padding: 0 24px;
    }
}
@media (max-width: 768px) {
    .ms-available-specimens {
        margin: 48px 0 40px;
        padding: 56px 0;
    }
    .ms-specimens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .ms-variation-sold-out-badge {
        font-size: 12px;
        padding: 10px 22px;
    }
    .ms-variation-card .ms-product-info {
        flex-direction: column;
        gap: 8px;
    }
    .ms-variation-card .ms-product-price {
        align-self: flex-start;
    }
}
@media (max-width: 480px) {
    .ms-specimens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ms-specimen-card-info {
        padding: 12px 14px 16px;
    }
    .ms-specimen-price {
        font-size: 16px;
    }
}
