* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-blue: #1a3a5f;
    --darker-blue: #0f2438;
    --light-blue: #2d5a87;
    --gold: #d4af37;
    --light-gold: #f4d03f;
    --dark-gold: #b8941f;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--gold);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 50%, var(--light-blue) 100%);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 2rem;
    background: rgba(15, 36, 56, 0.7);
    border-radius: 10px;
    border: 2px solid var(--gold);
    max-width: 800px;
    margin: 0 auto;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-content p {
    font-size: 1.3rem;
    line-height: 1.8;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(212, 175, 55, 0.8);
    border: none;
    color: var(--darker-blue);
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* Sections */
.intro, .features, .map-preview, .page-header {
    padding: 4rem 0;
}

.page-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.page-header p {
    font-size: 1.2rem;
}

.intro {
    background: var(--light-gray);
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.feature-card p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--darker-blue);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-gold);
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* Castles Section */
.castles-section {
    padding: 4rem 0;
    background: var(--white);
}

.castles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.castle-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.castle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.castle-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-gray);
}

.castle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
}

.castle-image img:not([src]),
.castle-image img[src=""] {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.castle-image img:not([src])::after,
.castle-image img[src=""]::after {
    content: 'Obraz zamku';
    color: var(--gold);
    font-size: 1.2rem;
}

.castle-card:hover .castle-image img {
    transform: scale(1.1);
}

.castle-content {
    padding: 1.5rem;
}

.castle-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.castle-location {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.castle-content p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Legends Section */
.legends-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.legend-item {
    background: var(--white);
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legend-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.legend-location {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.storyteller {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.storyteller-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    border-radius: 50%;
    position: relative;
    animation: storytellerPulse 3s infinite;
    border: 3px solid var(--dark-blue);
}

.storyteller-icon::before {
    content: '📖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

@keyframes storytellerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

.legend-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Guide Section */
.guide-section {
    padding: 4rem 0;
    background: var(--white);
}

.guide-content {
    max-width: 900px;
    margin: 0 auto;
}

.guide-article {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 5px solid var(--gold);
}

.guide-article h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.guide-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.events-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background: var(--white);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    gap: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--gold);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
}

.event-date {
    min-width: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.event-location {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

.event-content p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-full {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--gold);
}

.contact-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 5px;
    border: 2px solid var(--gold);
}

.contact-note a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-note a:hover {
    color: var(--gold);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.contact-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 5px solid var(--gold);
}

.contact-details p {
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.contact-details strong {
    color: var(--dark-blue);
}

/* Forms */
.contact-form, .consent-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--gold);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form h2, .consent-form-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--dark-blue);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Privacy Section */
.privacy-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content article {
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--gold);
}

.privacy-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.consent-form-section {
    margin-top: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    border: 3px solid var(--gold);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker-blue);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-list a {
        display: block;
        padding: 1rem;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .features-grid,
    .castles-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        max-width: 100%;
    }

    .consent-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
        width: 100%;
    }

    .hero {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .slide-content {
        padding: 1rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .intro h2,
    .page-header h1 {
        font-size: 1.8rem;
    }

    .consent-form {
        padding: 1rem;
    }

    .consent-form-section {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.7rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

