/* CSS Variables & Reset */
:root {
    --color-primary: #aa9ddd;
    --color-secondary: #dfdcf9;
    --color-btn: #4e40ae;
    --color-btn-hover: #3b2e8d;
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-light-bg: #f9f9fc;
    --border-radius: 8px;
    --font-main: 'Outfit', sans-serif;
    --max-width: 1440px;
    --container-width: 80%;
    /* As requested: 80% screen width */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;

    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-btn);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 64, 174, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--color-btn);
    border: 2px solid var(--color-btn);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
}

/* Header */
.site-header {
    background-color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    display: block;
    /* Ensure no baseline space */
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: 0.8rem 1rem;
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-btn);
    background-color: var(--color-light-bg);
}

.btn-nav {
    background-color: var(--color-btn);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
}

.btn-nav:hover {
    background-color: var(--color-btn-hover);
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    /* Slightly increased padding for better proportion with larger text */
    background: linear-gradient(135deg, #fff 0%, var(--color-light-bg) 100%);
    overflow: hidden;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.homepage-h1 {
    font-size: clamp(2.4rem, 8vw, 3.7rem) !important;
}

.registration-h1 {
    font-size: clamp(2.0rem, 8vw, 3.2rem) !important;
}


.text-highlight {
    color: var(--color-btn);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Floating Bubbles */
.bubble {
    position: absolute;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.bubble i {
    color: var(--color-btn);
    font-size: 1.2rem;
}

.bubble-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.bubble-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: 2s;
}

.bubble-3 {
    top: 40%;
    right: -10%;
    animation-delay: 1s;
}

.bubble-4 {
    top: 45%;
    left: -12%;
    animation-delay: 1.5s;
}

.bubble-5 {
    bottom: 10%;
    right: -5%;
    animation-delay: 2.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

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

.feature-card {
    background: var(--color-light-bg);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-secondary);
}

.icon-box {
    background-color: var(--color-secondary);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-btn);
    font-size: 1.8rem;
}

/* Process Section */
.process-section {
    padding: 5rem 0;
    background-color: var(--color-light-bg);
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-label {
    display: inline-block;
    color: var(--color-btn);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.process-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #222;
    margin-bottom: 0;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.process-step {
    flex: 1;
    max-width: 250px;
    text-align: center;
    padding: 0 1rem;
}

.process-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 2rem;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.process-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.process-line {
    width: 80px;
    height: 2px;
    background-color: var(--color-btn);
    margin-top: 40px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .process-steps {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .process-step {
        flex: 0 0 calc(50% - 1rem);
        max-width: none;
    }

    .process-line {
        display: none;
    }
}

@media (max-width: 576px) {
    .process-step {
        flex: 0 0 100%;
    }

    .process-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Audience Section */
.audience-section {
    padding: 5rem 0;
    background-color: var(--color-secondary);
    /* Using secondary branding color for differentiation */
    color: #333;
}

.audience-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.audience-content h2 {
    color: var(--color-btn);
}

.audience-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.audience-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 1.5rem 0 4rem 0;
    width: 100%;
}

.audience-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 4px solid white;
}

.audience-img:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.audience-img:nth-child(1) {
    transform: rotate(-3deg);
}

.audience-img:nth-child(2) {
    transform: rotate(2deg);
    margin-top: 20px;
}

.audience-img:nth-child(3) {
    transform: rotate(-2deg);
}

@media (max-width: 768px) {
    .audience-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .audience-img {
        height: 180px;
        max-width: 250px;
        margin: 0 auto;
        transition: transform 0.3s ease;
    }

    .audience-img:nth-child(1) {
        transform: translateX(-15px) rotate(-3deg);
    }

    .audience-img:nth-child(2) {
        transform: translateX(15px) rotate(3deg);
    }

    .audience-img:nth-child(3) {
        transform: translateX(-10px) rotate(-2deg);
    }
}

/* Footer (High Priority) */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-cta {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta h3 {
    color: white;
    font-size: 1.8rem;
}

.footer-cta .highlight {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-contacts h3 {
    color: white;
    border-bottom: 2px solid var(--color-btn);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.contact-list .label {
    color: #aaa;
    font-weight: 400;
    min-width: 80px;
}

.contact-list a {
    color: white;
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--color-primary);
}

.contact-list .note {
    font-size: 0.85rem;
    color: #777;
    margin-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }

    .hero-section {
        padding: 4rem 0 2rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: auto;
        min-width: 200px;
        margin: 0 auto;
    }

    .bubble {
        display: flex !important;
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
        width: 160px;
        /* Pevná šířka pro všechny bubliny */
        box-sizing: border-box;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .bubble-1 {
        top: 5px;
        left: -10px;
    }

    .bubble-2 {
        bottom: 30px;
        left: -15px;
    }

    .bubble-3 {
        display: flex !important;
        top: 50%;
        left: -20px;
        transform: translateY(-50%) !important;
    }

    .bubble-4 {
        display: none !important;
    }

    .bubble-5 {
        bottom: -10px;
        right: -5px;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .logo-img {
        height: 50px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list.active {
        display: flex;
    }

    .btn-nav {
        margin: 0.5rem 1rem;
        text-align: center;
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-cta {
        padding: 1.5rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: default;
    background: white;
    padding: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.step-img {
    cursor: zoom-in;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2d2270 0%, #6b5cc7 50%, #8a7de0 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background-color: white;
    color: var(--color-btn);
}

.cta-content .btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* === Registration (auth) === */
.auth-section{padding:4rem 0 6rem;}
.auth-card{max-width:560px;margin:0 auto;background:#fff;border-radius:16px;padding:2rem;box-shadow:0 10px 30px rgba(0,0,0,.05);border:1px solid #eee;}
.auth-card-wide{max-width:760px;}
.auth-card h1{margin:0 0 .5rem;}
.auth-card .muted{color:#666;margin:0 0 1rem;}
.auth-form label{display:block;margin:1rem 0 .4rem;font-weight:600;}
.auth-form input{width:100%;border:1px solid #ddd;border-radius:12px;padding:12px 14px;font-size:16px;background:#fafafa;}
.turnstile-wrap{margin-top:12px;}
.notice{border-radius:12px;padding:20px 24px;margin:20px 0px 0px 0px;}
.notice .notice-title{margin:0 0 6px;font-size:18px;}
.notice .notice-sub{margin-top:8px;color:#555;}
.notice.error{background:#fff3f3;border:1px solid #ffd1d1;color:#a40000;}
.notice.success{background:#f3fff6;border:1px solid #bff0c8;color:#116b2c;}



.auth-section { padding: 4rem 0 6rem; }
.auth-card{
  max-width:560px; margin:0 auto; background:#fff; border-radius:16px;
  padding:2rem; border:1px solid #eee; box-shadow:0 10px 30px rgba(0,0,0,.05);
}
.auth-card h1{ margin:0 0 .6rem; }
.muted{ color:#666; margin:0 0 1rem; }

.field{ margin: 1rem 0; }
.field label{ display:block; font-weight:600; margin:0 0 .35rem; }
.field input{
  width:100%; border:1px solid #ddd; border-radius:12px; padding:12px 14px;
  font-size:16px; background:#fafafa;
}
.readonly{
  width:100%; border:1px solid #eee; border-radius:12px; padding:12px 14px;
  background:#f5f5f5; color:#444;
}

.row{ display:flex; gap:10px; align-items:center; }
.btn-inline{ white-space:nowrap; padding:12px 14px; border-radius:12px; }

.hint{ color:#777; font-size:12px; margin-top:6px; }

.notice{ border-radius:12px; padding:12px 14px; margin:0 0 12px; }
.notice.small{ padding:10px 12px; margin-top:10px; }
.notice.error{ background:#fff3f3; border:1px solid #ffd1d1; color:#a40000; }
.notice.success{ background:#f3fff6; border:1px solid #bff0c8; color:#116b2c; }

.checkbox{ margin-top: 1.2rem; }
.checkbox-wrap{ display:flex; gap:10px; align-items:flex-start; font-size:14px; color:#444; }
.checkbox-wrap input{ margin-top:3px; width:auto; }
