:root {
    --main-bg: #ffffff;
    --yellow-bg: #fecc0a;
    /* Přesná narozeninová žlutá */
    --card-bg: #ffffff;
    --text-color: #000000;
    --text-muted: #666666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ZÁKLADNÍ NASTAVENÍ WEBU */
body {
    background-color: var(--main-bg);
    color: var(--text-color);
    /* Systémové bezpatkové písmo pro odstavce, které umí perfektně normal i bold řez */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* HLAVIČKA S LOGEM */
.main-header {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
}

.logo {
    height: 45px;
}

/* KONTEJNERY PRO ZAROVNÁNÍ OBSAHU */
.campaign-container,
.inner-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* VELKÝ NAROZENINOVÝ NADPIS NAHOŘE */
.intro-section h1 {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    font-size: 3.8rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
}

/* ==========================================
   ŽLUTÝ SEKTOR S TEXTEM
   ========================================== */
.hero-section.yellow-bg {
    background-color: var(--yellow-bg);
    padding: 60px 0;
    margin: 20px 0 40px 0;
    width: 100%;
}

.hero-text {
    text-align: left;
    /* Zarovnání textu na levou stranu */
}

/* Velký, tučný nadpis uvnitř žlutého bloku v DIN Condensed */
.hero-text h2 {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    font-size: 2.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.1;
}

/* Běžné odstavce textu - teď už stoprocentně tenké (normal) a skvěle čitelné */
.hero-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: normal;
    text-transform: none;
    /* Povolí malá písmena */
}

.hero-text p:last-child {
    margin-bottom: 0;
}

/* Mezititulky uvnitř odstavců obalené v <strong> zůstanou tučné */
.hero-text strong {
    font-weight: bold;
}

/* ==========================================
   STRIPE DAROVACÍ SEKCE
   ========================================== */
.donation-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.donation-block {
    padding: 30px 0;
    background-color: #ffffff;
}

/* Nadpisy darovacích bloků v úderném DIN Condensed */
.donation-block .donation-block h2,
.donation-block .center-title {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif !important;
    font-size: 2.5rem !important;
    margin-bottom: 25px;
    text-align: left;
    font-weight: bold !important;
    text-transform: none !important;
    /* TOTÁLNÍ POJISTKA PRO DIZKRITIKU */
    color: #000000;
}

/* Mřížka pro Stripe widgety */
.stripe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.stripe-widget-box {
    background: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stripe-widget-box h3 {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #000;
    font-weight: bold;
}

/* Tlačítka uvnitř Stripe boxů */
.btn-stripe {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-stripe:hover {
    background: #222;
}

/* ==========================================
   SEKCE SE 6 TAJNÝMI SLOŽKAMI
   ========================================== */
.milestones-section {
    padding: 40px 0 80px 0;
    background: #ffffff;
}

.milestones-section h2 {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.milestone-card {
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

.milestone-card:hover:not(.locked) {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    display: block;
    height: auto;
}

/* Vizuální styl pro zamčenou složku (černobílá, poloprůhledná) */
.milestone-card.locked {
    cursor: not-allowed;
    filter: grayscale(100%);
    opacity: 0.35;
}

/* ==========================================
   POPUP MODAL OKNA (DETAIL SLOŽKY)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    color: #000;
    width: 92%;
    max-width: 1100px;
    height: 85vh;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    overflow-y: auto;
}

.modal-content h2 {
    font-family: 'DIN Condensed', 'Arial Narrow', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #000;
    font-size: 2.5rem;
    cursor: pointer;
}

.modal-body {
    margin-top: 25px;
    text-transform: none;
    line-height: 1.6;
}

/* RESPONSIVITA PRO MOBILNÍ TELEFONY */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.9rem;
    }

    /* Vycentrování nadpisu pro jednorázovou podporu */
    .donation-block .center-title {
        text-align: center;
        margin-bottom: 30px;
        text-transform: none !important;
    }

    /* Kontejner, který chytne iframe jednorázového tlačítka a hodí ho přesně doprostřed stránky */
    .single-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    /* Úprava responzivity pro mobilní telefony */
    @media (max-width: 768px) {
        .donation-block .center-title {
            text-align: center;
            /* Zůstane vycentrovaný i na mobilu */
        }
    }
}