/* ─── FONTS ──────────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/Gilroy-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ─── CUSTOM PROPERTIES ──────────────────────────────────────────────────── */
:root {
    --primary:       #1e2546;
    --primary-dark:  #151b36;
    --accent:        #dae5f1;
    --text:          #1e2546;
    --text-muted:    #6b7280;
    --bg:            #fbfdff;
    --bg-grey:       #dae5f1;
    --border:        #d0dcea;
    --success:       #6ec15c;
    --error:         #dc2626;
    --radius:        30px;
    --shadow:        0 1px 3px rgba(54,78,156,.15);
    --max-width:     1150px;
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: clip;
    /* Jednotné vykreslení písma napříč platformami (PC jinak působí tučněji než retina mobil) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: 0 4px 24px rgba(54, 78, 156, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo img {
    height: 36px;
    width: auto;
}
.site-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}
.site-nav a {
    color: var(--text-muted);
    font-size: .95rem;
    transition: color .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ─── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main-content { min-height: calc(100vh - 64px - 60px); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: #ffffff;
    border-top: none;
    padding: 1rem 0;
    font-size: .875rem;
    color: var(--text-muted);
    text-align: center;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .65rem 1.4rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, border-color .15s, color .15s, transform .2s;
    text-decoration: none;
}
/* Drobné zvětšení při hoveru – jednotné pro všechna tlačítka na webu */
.btn:hover { transform: scale(1.05); }

/* Antispam honeypot – skryté pole pro boty (lidé ho nevidí) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Potvrzení po odeslání formuláře */
.form-success { display: none; }
.form-success.active { display: block; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; }

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
    background: #ffffff;
    border: none;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(54, 78, 156, 0.15);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ─── WEBINAR CARD ───────────────────────────────────────────────────────── */
.webinar-card { display: flex; flex-direction: column; }
.webinar-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.webinar-meta {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.webinar-meta span { margin-right: 1rem; }
.webinar-capacity {
    font-size: .8rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 1rem;
}
.capacity-open { background: #d1fae5; color: #065f46; }
.capacity-low  { background: #fef3c7; color: #92400e; }
.capacity-full { background: #fee2e2; color: #991b1b; }
.webinar-card p { color: var(--text-muted); font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.webinar-card details { margin-top: auto; }
.webinar-card summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    user-select: none;
    padding: .5rem 0;
    list-style: none;
}
.webinar-card summary::-webkit-details-marker { display: none; }
.webinar-card summary::before { content: '+ '; }
.webinar-card details[open] summary::before { content: '− '; }
.register-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-optional { color: var(--text-muted); font-weight: 400; font-size: .8rem; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: .25rem; flex-shrink: 0; accent-color: var(--primary); }
.form-check label { font-size: .875rem; color: var(--text-muted); }
.form-check label a { color: var(--primary); }

.form-wrap { max-width: 600px; margin: 0 auto; }
.page-header { padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--border); margin-bottom: calc(1rem + 10px); }
.page-header h1 { font-size: 2rem; font-weight: 700; }
.page-header p { color: var(--text-muted); margin-top: .4rem; }

/* ─── ALERTS ─────────────────────────────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--error); }

/* ─── PRIVACY POLICY ─────────────────────────────────────────────────────── */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: #374151; line-height: 1.75; margin-bottom: .75rem; }
.prose ul { padding-left: 1.5rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem; }
    .nav-toggle { display: block; }
    .hero { padding: 3rem 0 2.5rem; }
}

@media (max-width: 1130px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Mobil: fixní odsazení obsahu 15px od kraje na všech mobilních šířkách */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}
