/* ============================================
   EBRA KALKULATORY — STYLE
   Artisan Banner Design System
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: #0f0e0c;
    color: #e8e3d8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- TOKENS ---------- */
:root {
    --bg:       #0f0e0c;
    --bg2:      #161410;
    --bg3:      #1c1a16;
    --gold:     #c9a227;
    --gold-l:   #e8c353;
    --gold-d:   #7a5e0f;
    --cream:    #f2e9d0;
    --text1:    #f0ebe0;
    --text2:    #a09a8e;
    --text3:    #5a5650;
    --border:   rgba(255,255,255,0.07);
    --tr:       0.3s cubic-bezier(.4,0,.2,1);
    --tr-slow:  0.5s cubic-bezier(.4,0,.2,1);
    --r:        18px;

    /* Per-profession colors */
    --masarz-c:     #7a1f1f;
    --masarz-hl:    #c0392b;
    --piekarz-c:    #6b4200;
    --piekarz-hl:   #c8860a;
    --cukiernik-c:  #4a2373;
    --cukiernik-hl: #9b59b6;
    --serowar-c:    #5c4500;
    --serowar-hl:   #d4ac0d;
    --browarnik-c:  #5e3200;
    --browarnik-hl: #c47b0a;
    --kiszeniarz-c: #0d3d20;
    --kiszeniarz-hl:#27ae60;
    --nalewkarz-c:  #3d1660;
    --nalewkarz-hl: #8e44ad;
    --ramiarz-c:    #3d2c1a;
    --ramiarz-hl:   #a0714a;
    --szklarz-c:    #0d2b4a;
    --szklarz-hl:   #2980b9;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3630; border-radius: 3px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 70px;
    background: rgba(15,14,12,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--tr);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.logo-gear {
    font-size: 1.5rem;
    color: var(--gold);
    display: inline-block;
    animation: gear-spin 10s linear infinite;
}

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

.logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: var(--text1);
}

.logo-tag {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    margin-top: 1px;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
}

.header-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text2);
    text-decoration: none;
    position: relative;
    transition: color var(--tr);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--tr);
}

.header-nav a:hover { color: var(--text1); }
.header-nav a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text2);
    border-radius: 1px;
    transition: all var(--tr);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,162,39,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 15% 60%, rgba(192,57,43,0.07) 0%, transparent 45%),
        radial-gradient(ellipse 50% 50% at 85% 60%, rgba(39,130,176,0.06) 0%, transparent 45%);
    pointer-events: none;
}

/* Grain texture overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
}

#heroParticles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 2rem 2rem 0;
    animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.22);
    padding: 0.45rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2.2rem;
    animation: fadeUp .9s ease 0.1s both;
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text1);
    margin-bottom: 1.6rem;
    animation: fadeUp .9s ease 0.2s both;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-l);
}

.hero-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text2);
    line-height: 1.85;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeUp .9s ease 0.3s both;
}

.hero-actions {
    animation: fadeUp .9s ease 0.4s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, var(--gold-d), var(--gold));
    color: #1a1000;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--tr);
    box-shadow: 0 6px 24px rgba(201,162,39,0.25);
}

.btn-primary svg {
    width: 18px; height: 18px;
    transition: transform var(--tr);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(201,162,39,0.38);
}

.btn-primary:hover svg { transform: translateX(3px); }

/* Scroll mouse */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeUp .9s ease 0.8s both;
}

.scroll-mouse {
    width: 26px; height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.scroll-wheel {
    width: 3px; height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1.5rem;
}

.stat-n {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-l);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.stat span {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text3);
}

.stat-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}


/* ============================================
   KALKULATORY SECTION
   ============================================ */
.kalkulatory {
    padding: 6rem 2rem 7rem;
    max-width: 1300px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.eyebrow {
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.85rem;
}

.section-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 0.85rem;
}

.intro-desc {
    font-size: 0.95rem;
    color: var(--text2);
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- BANNERS GRID ---------- */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

/* ---------- BANNER CARD ---------- */
.banner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r);
    overflow: hidden;
    text-decoration: none;
    color: var(--cream);
    background: #1a1410;
    min-height: 220px;
    cursor: pointer;
    transition: transform var(--tr-slow), box-shadow var(--tr-slow);
    border: 1px solid rgba(255,255,255,0.06);
}

.banner-card:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Background photo */
.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    transition: transform var(--tr-slow);
}

.banner-card:hover .banner-bg {
    transform: scale(1.04);
}

/* Left→Right gradient overlay — darkens left for text readability */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,10,5,0.92) 0%,
        rgba(15,10,5,0.82) 35%,
        rgba(15,10,5,0.45) 62%,
        rgba(15,10,5,0.12) 100%
    );
    transition: opacity var(--tr);
    z-index: 1;
}

/* ---------- ICON BADGE ---------- */
.banner-icon-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #f5edda, #e8d9b5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform var(--tr), box-shadow var(--tr);
}

.banner-card:hover .banner-icon-badge {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.6);
}

.banner-icon-badge svg {
    width: 42px;
    height: 42px;
}

/* ---------- BANNER CONTENT ---------- */
.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.6rem 1.5rem 1.4rem;
    flex: 1;
}

.banner-texts {
    flex: 1;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.banner-sub {
    font-size: 0.8rem;
    color: rgba(242,233,208,0.72);
    margin-bottom: 0.9rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.banner-tags span {
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(242,233,208,0.8);
    backdrop-filter: blur(4px);
}

/* ---------- CTA BUTTON ---------- */
.banner-cta {
    display: flex;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: none;
    position: relative;
    overflow: hidden;
    transition: all var(--tr);
}

/* Profession-specific CTA colors */
[data-prof="masarz"]    .cta-btn { background: var(--masarz-c); border: 1px solid var(--masarz-hl); }
[data-prof="piekarz"]   .cta-btn { background: var(--piekarz-c); border: 1px solid var(--piekarz-hl); }
[data-prof="cukiernik"] .cta-btn { background: var(--cukiernik-c); border: 1px solid var(--cukiernik-hl); }
[data-prof="serowar"]   .cta-btn { background: var(--serowar-c); border: 1px solid var(--serowar-hl); }
[data-prof="browarnik"] .cta-btn { background: var(--browarnik-c); border: 1px solid var(--browarnik-hl); }
[data-prof="kiszeniarz"].cta-btn { background: var(--kiszeniarz-c); border: 1px solid var(--kiszeniarz-hl); }
[data-prof="nalewkarz"] .cta-btn { background: var(--nalewkarz-c); border: 1px solid var(--nalewkarz-hl); }
[data-prof="ramiarz"]   .cta-btn { background: var(--ramiarz-c); border: 1px solid var(--ramiarz-hl); }
[data-prof="szklarz"]   .cta-btn { background: var(--szklarz-c); border: 1px solid var(--szklarz-hl); }

.banner-card:hover .cta-btn {
    transform: translateX(4px);
    filter: brightness(1.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.cta-btn svg {
    width: 14px; height: 14px;
    transition: transform var(--tr);
}

.banner-card:hover .cta-btn svg {
    transform: rotate(90deg) scale(1.2);
}

/* Glow on card hover — profession color */
[data-prof="masarz"]:hover    { box-shadow: 0 16px 50px rgba(192,57,43,0.3); }
[data-prof="piekarz"]:hover   { box-shadow: 0 16px 50px rgba(200,134,10,0.3); }
[data-prof="cukiernik"]:hover { box-shadow: 0 16px 50px rgba(155,89,182,0.3); }
[data-prof="serowar"]:hover   { box-shadow: 0 16px 50px rgba(212,172,13,0.3); }
[data-prof="browarnik"]:hover { box-shadow: 0 16px 50px rgba(196,123,10,0.3); }
[data-prof="kiszeniarz"]:hover{ box-shadow: 0 16px 50px rgba(39,174,96,0.3); }
[data-prof="nalewkarz"]:hover { box-shadow: 0 16px 50px rgba(142,68,173,0.3); }
[data-prof="ramiarz"]:hover   { box-shadow: 0 16px 50px rgba(160,113,74,0.3); }
[data-prof="szklarz"]:hover   { box-shadow: 0 16px 50px rgba(41,128,185,0.3); }

/* Combined at the end */

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 7rem 2rem;
}

.about-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-left .eyebrow { text-align: left; }

.about-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text1);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-left h2 em {
    font-style: italic;
    color: var(--gold-l);
}

.about-left p {
    color: var(--text2);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-left p strong { color: var(--text1); font-weight: 600; }

.about-features {
    list-style: none;
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text2);
}

.feat-check {
    width: 22px; height: 22px;
    background: rgba(201,162,39,0.14);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

/* Mini cards grid */
.about-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.1rem 0.6rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.8rem;
    transition: all var(--tr);
    border-top: 2px solid var(--c, #555);
    cursor: pointer;
    text-decoration: none;
}

.mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--c, #555);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.mini-card span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg);
    padding-top: 5rem;
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    gap: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text3);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 1.2rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.footer-links-grid a {
    font-size: 0.88rem;
    color: var(--text2);
    text-decoration: none;
    transition: color var(--tr);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-links-grid a::before {
    content: '›';
    color: var(--gold-d);
    transition: color var(--tr);
}

.footer-links-grid a:hover { color: var(--gold-l); }
.footer-links-grid a:hover::before { color: var(--gold-l); }

.footer-contact p {
    font-size: 0.88rem;
    color: var(--text2);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--tr);
}

.footer-contact a:hover { color: var(--gold-l); }

.footer-note {
    font-size: 0.8rem;
    color: var(--text3) !important;
}

.footer-bottom {
    text-align: center;
    padding: 1.6rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text3);
    letter-spacing: 0.04em;
}

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

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.rd-1 { transition-delay: 0.05s; }
.rd-2 { transition-delay: 0.12s; }
.rd-3 { transition-delay: 0.19s; }
.rd-4 { transition-delay: 0.26s; }
.rd-5 { transition-delay: 0.33s; }
.rd-6 { transition-delay: 0.40s; }
.rd-7 { transition-delay: 0.47s; }
.rd-8 { transition-delay: 0.54s; }
.rd-9 { transition-delay: 0.61s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .header-nav { display: none; }
    .menu-toggle { display: flex; }

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

    .banner-card {
        min-height: 200px;
    }

    .banner-title {
        font-size: 1.35rem;
    }

    .stats-container {
        flex-wrap: wrap;
    }

    .stat { min-width: 45%; }
    .stat-sep { display: none; }

    .footer-wrap {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {
    .hero-title { font-size: 2.6rem; }
    .banner-icon-badge {
        width: 52px; height: 52px;
        border-radius: 12px;
        top: 0.85rem; right: 0.85rem;
    }
    .banner-icon-badge svg { width: 34px; height: 34px; }
}

/* ============================================
   INSTRUCTIONS SECTION
   ============================================ */
.instructions {
    padding: 6rem 2rem 8rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 3.5rem;
}

.instr-card {
    display: flex;
    gap: 1.5rem;
    padding: 2.2rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: all var(--tr);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.instr-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201,162,39,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.instr-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
    z-index: 2;
}

.instr-text { position: relative; z-index: 2; }

.instr-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text1);
    margin-bottom: 0.7rem;
}

.instr-text p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.6;
}

.instr-link {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform var(--tr);
}

.instr-card:hover .instr-link { transform: translateX(5px); }

/* Premium Masarz Instruction Card */
.instr-card.banner-style {
    min-height: 180px;
    align-items: center;
}

.instr-card.banner-style .banner-bg {
    opacity: 0.15;
    transition: opacity 0.4s ease;
}

.instr-card.banner-style:hover .banner-bg {
    opacity: 0.25;
    transform: scale(1.05);
}

.instr-card.theme-masarz:hover {
    border-color: var(--masarz-hl) !important;
    box-shadow: 0 15px 40px rgba(192,57,43,0.25) !important;
}

/* ---------- MODAL SYSTEM ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 8, 5, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tr);
    z-index: 10;
}

.modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
    background: var(--bg2);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-badge-pwa {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,162,39,0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-header h2 em { color: var(--gold-l); font-style: italic; }

.pwa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
}

.pwa-col {
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 2.2rem;
    border-radius: 20px;
}

.pwa-platform-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.8rem;
}

.pwa-icon { font-size: 2.8rem; margin-bottom: 0.5rem; }

.pwa-platform-header h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 0.4rem; }
.pwa-platform-header p { font-size: 0.85rem; color: var(--text3); }

.pwa-steps { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.pwa-steps li { display: flex; gap: 0.9rem; font-size: 0.92rem; color: var(--text2); line-height: 1.5; }
.pwa-steps li span {
    width: 24px; height: 24px;
    background: var(--gold-d);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pwa-footer-info { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.pwa-footer-info h4 { font-family: 'Inter', sans-serif; text-align: center; margin-bottom: 1.5rem; color: var(--text1); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;}

.pwa-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pwa-benefit { display: flex; gap: 0.8rem; font-size: 0.88rem; color: var(--text2); }

.modal-footer { margin-top: 3rem; text-align: center; }

@media (max-width: 900px) {
    .instructions-grid { grid-template-columns: 1fr; }
    .pwa-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 2.5rem 1.5rem; }
    .modal-header h2 { font-size: 1.9rem; }
    .pwa-benefits { grid-template-columns: 1fr; }
}

