:root {
    --primary: #2A1FB9;
    --accent: #791EC2;
    --secondary: #1B82C7;
    --light: #FDF3EC;
    --dark: #221E22;

    --anim-speed: 0.6s;
    --anim-curve: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background-color: var(--light) !important; /* Krémové pozadí vytvoří dojem podkladu */
    padding: 1.5vh;
    font-family: 'Satoshi', serif;
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
}

@font-face {
    font-family: 'Switzer';
    src: url('../fonts/Switzer-Variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Variable.woff2') format('woff2');
}

.bg {
    background-color: var(--primary);
    min-height: 97vh;
    /* Ikonický tvar: zakulacený levý horní a pravý dolní roh */
    border-radius: 200px 0 200px 0;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 60px 15%;
    background-image: url(../img/bg.min.jpeg);
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    transition: border-radius var(--anim-speed) var(--anim-curve), 
                padding var(--anim-speed) var(--anim-curve);
}

.bg.banner-is-visible {
    /* Když se objeví banner (rádius 30px), roh karty se mu přizpůsobí */
    border-radius: 200px 0 40px 0;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width: 100%; 
}

/* --- LOGO --- */
.logo {
    margin-bottom: 40px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

h1 {
    color: var(--light);
    font-family: 'Switzer', serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 600;
}

.accent {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: #E2DDF5;
    margin-top: 10px;
    font-style: italic;
    font-weight: 600;
}

p {
    color: var(--light);
    font-family: 'Satoshi', serif;
    max-width: 750px;
    width: 100%;
    line-height: 1.5; 
}

/* --- TLAČÍTKA --- */
.buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap; 
}

.btn {
    display: inline-flex;
    padding: 0 30px;
    border-radius: 15px 0 15px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    height: 55px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--light);
    border: 2px solid var(--accent);
}

.btn-outline {
    background: none;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-social {
    width: 55px;
    padding: 0;
    font-size: 24px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px; 
    max-width: 500px; 
    background-color: var(--light);
    border-radius: 30px 0 30px 0; /* Tento pravý dolní roh definuje zmenšení na kartě */
    padding: 25px; 
    /* Lehká úprava stínu pro lepší kontrast na krémovém pozadí */
    box-shadow: 0 10px 40px rgba(42, 31, 185, 0.15); 
    z-index: 9999;
    transform-origin: bottom right;
    transform: translate(15px, 15px) scale(0.85);
    opacity: 0;
    transition: transform var(--anim-speed) var(--anim-curve), 
                opacity var(--anim-speed) var(--anim-curve);
}

.cookie-banner.show {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

.cookie-content h3 {
    color: var(--primary);
    font-family: 'Switzer', serif;
    font-size: 20px; 
    margin-bottom: 10px;
    font-weight: 600;
}

.cookie-content p {
    color: var(--dark);
    font-size: 13px; 
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px; 
    flex-wrap: nowrap; 
}

.cookie-buttons .btn,
.cookie-buttons .btn-outline-dark {
    height: 40px; 
    padding: 0 15px; 
    font-size: 13px; 
    border-radius: 10px 0 10px 0; 
    flex: 1; 
    font-family: 'Satoshi', serif;
    cursor: pointer;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

/* --- RESPONZIVNÍ PRAVIDLA (MEDIA QUERIES) --- */

@media (max-width: 1024px) {
    .bg {
        padding: 60px 10%;
        border-radius: 100px 0 100px 0; 
    }
    .bg.banner-is-visible {
        border-radius: 100px 0 30px 0; /* Zohlednění na středních obrazovkách */
    }
}

@media (max-width: 768px) {
    body, html {
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bg {
        min-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important; /* Na mobilech se karta roztáhne do krajů */
        background-position: center; 
        padding: 40px 20px;
        transition: border-radius var(--anim-speed) var(--anim-curve), 
                    padding var(--anim-speed) var(--anim-curve),
                    background-color var(--anim-speed) var(--anim-curve);
    }

    .bg.banner-is-visible {
        border-radius: 0 !important;
        padding-bottom: 250px; 
    }
    
    .logo img {
        height: 35px; 
    }

    .btn-primary {
        width: 100%; 
    }

    .cookie-banner {
        bottom: 15px;
        right: 15px;
        left: 15px; 
        max-width: none;
        max-height: 240px;
        padding: 20px;
        border-radius: 20px 0 20px 0;
        transform-origin: center bottom;
        transform: translateY(120%);
    }
    
    .cookie-buttons {
        flex-direction: row; 
        gap: 10px;
    }
    
    .cookie-buttons .btn,
    .cookie-buttons .btn-outline-dark {
        padding: 0 10px; 
        font-size: 11px; 
        letter-spacing: -0.2px;
    }
}