/* --- Základné nastavenia a premenné --- */
:root {
    --primary-color: #007BFF; /* Hlavná modrá farba */
    --secondary-color: #6c757d; /* Sivá pre sekundárne prvky */
    --background-color: #f8f9fa; /* Svetlosivé pozadie */
    --text-color: #343a40; /* Tmavá farba textu */
    --white-color: #ffffff;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* --- Globálny reset a štýly pre body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }

/* --- Hlavička a navigácia --- */
.header {
    background: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .nav-btn {
    padding: 0.5rem 1.2rem;
    margin-left: 1rem;
    color: var(--white-color) !important;
}

/* --- Language Switcher --- */
.nav-menu .lang-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 2rem;
}

.lang-switcher-item span {
    color: #ccc;
    font-weight: 400;
}

.lang-switcher-item a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.2rem 0.4rem;
}

.lang-switcher-item a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none; /* Skryté na desktope */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101; /* Musí byť nad ostatným obsahom hlavičky */
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg); }

/* --- Sekcia Hero --- */
.hero {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Sekcia Problem/Solution --- */
.problem-solution {
    padding: 4rem 0;
    background-color: #e9ecef;
    text-align: center;
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
}

.solution-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 1rem;
}

/* --- Tlačidlá --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- Sekcia Funkcie --- */
.features {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Sekcia Cloud --- */
.cloud-feature {
    padding: 6rem 0;
    background-color: var(--white-color);
    text-align: center;
}

.cloud-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Sekcia Kiosk Deep Dive --- */
.kiosk-deep-dive {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.kiosk-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.kiosk-step:last-child {
    margin-bottom: 0;
}

.kiosk-step.reverse {
    flex-direction: row-reverse;
}

.kiosk-step-content {
    flex: 1;
}

.kiosk-step-image {
    flex: 1;
}

.kiosk-step-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- Sekcia Timeline --- */
.timeline-section {
    padding: 6rem 0;
    background-color: var(--white-color);
    text-align: center;
}

.timeline {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    background: var(--white-color);
    padding: 0 1rem;
    flex: 1;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

/* --- Sekcia Inovácie --- */
.innovations {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.innovation-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
}


/* --- Sekcia Methods (Tabuľka) --- */
.methods {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Zabezpečí čitateľnosť na malých displejoch */
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.coming-soon {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
    vertical-align: middle;
}

/* --- Sekcia Benefits (Marketing) --- */
.benefits {
    padding: 6rem 0;
    background-color: #e9ecef; /* Jemne odlíšené pozadie */
}

/* --- Sekcia Audience (Pre koho) --- */
.audience {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.audience-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* --- Sekcia Pricing (Cenník) --- */
.pricing {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid transparent;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.target-group {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0 0.5rem;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.discount-tag {
    background-color: #d4edda;
    color: #155724;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.pricing-extras {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cloud-included, .attendy-box-promo {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.cloud-included h4, .attendy-box-promo h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.pricing-card .period {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Sekcia FAQ --- */
.faq {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.faq-item h3 {
    cursor: pointer;
    position: relative;
    padding-right: 2.5rem; /* Priestor pre ikonu */
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.2s ease-in-out;
}

.faq-item.active h3::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.faq-item.active p {
    padding-top: 1rem;
    max-height: 200px; /* Dostatočná výška pre obsah */
    transition: max-height 0.4s ease-in, padding-top 0.4s ease-in;
}

/* --- Sekcia Kontaktný formulár --- */
.contact-form-section {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.contact-form-section .section-subtitle {
    margin-bottom: 1rem;
}

.contact-email-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

#contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#contact-form button {
    align-self: flex-start; /* Zarovná tlačidlo na začiatok */
    cursor: pointer;
    font-size: 1rem;
}

/* --- Sekcia CTA --- */
.cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--white-color);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cta .btn-primary:hover {
    background-color: #f0f0f0;
}

/* --- Päta --- */
.footer {
    background-color: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer a {
    color: var(--white-color);
    text-decoration: underline;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Skryté v predvolenom stave (mimo obrazovky) */
    left: 0;
    width: 100%;
    background-color: var(--text-color); /* Tmavé pozadie */
    color: var(--white-color);
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* --- Modal (Popup) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white-color);
    margin: auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* --- Validácia formulára --- */
.input-error {
    border-color: #dc3545 !important; /* Červená farba pre chybu */
    background-color: #fff8f8;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.success-message {
    color: #28a745; /* Zelená farba úspechu */
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

.demo-credentials {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    text-align: left;
}

.demo-credentials p {
    margin-bottom: 0.5rem;
    font-family: monospace;
    font-size: 1.1rem;
}

/* --- Responzivita pre mobilné zariadenia --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .kiosk-step, .kiosk-step.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .feature-list {
        text-align: left;
    }

    .timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::before {
        display: none; /* Skrytie čiary na mobile */
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none; /* Skryté v predvolenom stave na mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Zobrazí sa hneď pod hlavičkou */
        left: 0;
        background: var(--white-color);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex; /* Zobraziť po kliknutí */
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }

    .nav-menu .nav-btn {
        margin: 1rem auto;
    }

    .nav-menu .lang-switcher-item {
        margin: 0;
        padding: 1rem;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
    }

    #contact-form button {
        align-self: stretch;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
