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

:root {
    --bg: #eae6df;
    --bg-grad-1: #eef1ec;
    --bg-grad-2: #e2ddd4;
    --card-bg: #ffffff;
    --heading: #263445;
    --text: #4a5568;
    --text-soft: #6b7686;
    --accent: #3f7d6e;         /* beskydská zeleň */
    --accent-dark: #2f6154;
    --brand: #c25a3c;          /* teplá cihlová – "fajne" akcent */
    --brand-dark: #a8492e;
    --line: rgba(38, 52, 69, 0.10);
    --shadow: 0 10px 30px rgba(38, 52, 69, 0.08);
    --shadow-hover: 0 16px 40px rgba(38, 52, 69, 0.14);
    --radius: 16px;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, var(--bg-grad-1), transparent 70%),
        radial-gradient(1000px 500px at -10% 110%, var(--bg-grad-2), transparent 70%),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page {
    display: flex;
    justify-content: center;
    padding: 48px 20px;
}

.container {
    width: 100%;
    max-width: 820px;
    animation: fadeIn 0.7s ease-out;
}

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

/* HERO */
.hero {
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #f4f7f5;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 900;
    color: var(--heading);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

h1 .accent {
    color: var(--brand);
}

.lead {
    font-size: 1.18rem;
    color: var(--text);
    margin-bottom: 12px;
}

.lead-soft {
    color: var(--text-soft);
}

.lead em {
    color: var(--brand);
    font-style: normal;
    font-weight: 600;
}

/* FLASH zprávy */
.flash {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1rem;
    animation: fadeIn 0.4s ease-out;
}

.flash-success {
    background: #e6f2ee;
    color: var(--accent-dark);
    border: 1px solid rgba(63, 125, 110, 0.3);
}

.flash-error {
    background: #fbeae5;
    color: var(--brand-dark);
    border: 1px solid rgba(194, 90, 60, 0.3);
}

/* KARTY */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.18;
    margin-bottom: 14px;
}

.signup-title {
    font-size: clamp(1.9rem, 4.2vw, 2.5rem) !important;
}

.card-text {
    color: var(--text);
    font-size: 1.03rem;
    margin-bottom: 18px;
}

.card-note {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* SIGNUP */
.card-signup {
    border-top: 4px solid var(--accent);
}

.signup-form {
    display: flex;
    gap: 12px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--heading);
    background: #fbfbfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(63, 125, 110, 0.15);
}

.signup-form button {
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.signup-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* AFFILIATE */
.affiliates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.affiliates .card {
    margin-bottom: 0;
}

.card-affiliate {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #c25a3c 0%, #a8492e 100%);
    color: #fff8f5;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Druhá varianta – beskydská zeleň (adrop.cz zážitky) */
.card-affiliate-alt {
    background: linear-gradient(135deg, #3f7d6e 0%, #2f6154 100%);
}

.card-affiliate-alt .affiliate-cta {
    color: var(--accent-dark);
}

.card-affiliate::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 60%);
    pointer-events: none;
}

.card-affiliate:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.affiliate-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.card-affiliate h2 {
    color: #fff;
}

.card-affiliate .card-text {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 20px;
}

.card-affiliate .card-text strong {
    color: #fff;
}

.affiliate-cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    background: #fff;
    color: var(--brand-dark);
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.card-affiliate:hover .affiliate-cta {
    transform: translateX(3px);
}

/* SOCIÁLNÍ SÍTĚ */
.social {
    margin-top: 8px;
}

.section-label {
    color: var(--heading);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    color: var(--heading);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex: 1;
    min-width: 220px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn svg {
    width: 26px;
    height: 26px;
    fill: var(--accent);
    flex-shrink: 0;
}

.btn-label {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.btn-label small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.btn-label span {
    font-size: 1.02rem;
    font-weight: 600;
}

/* FOOTER */
.footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer p {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 680px) {
    .affiliates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 32px 16px;
    }

    .card {
        padding: 24px 20px;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form button {
        width: 100%;
    }

    .btn {
        min-width: 100%;
        justify-content: flex-start;
    }
}
