/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5282;
    --secondary-color: #48bb78;
    --accent-color: #ed8936;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --gray-light: #e2e8f0;
    --gray-medium: #cbd5e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigace */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sekce */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: var(--light-bg);
}

.section h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.section h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.section h4 {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.section-intro {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #4a5568;
}

/* Content boxy */
.content-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Profilová sekce s fotkou */
.profile-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.profile-photo {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
    object-fit: cover;
}

.profile-text {
    flex: 1;
}

.profile-text p {
    margin-bottom: 20px;
}

.course-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.course-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.course-details {
    margin-top: 30px;
}

/* Seznamy */
.kurzy-list,
.publikace-list,
.course-details ul,
.price-list {
    margin: 20px 0;
    padding-left: 20px;
}

.kurzy-list li,
.publikace-list li,
.course-details ul li,
.price-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.price-list {
    list-style: none;
    padding-left: 0;
}

.price-list li {
    padding: 10px 15px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-image img {
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.product-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.product-card .btn {
    margin-top: auto;
}

/* Note box */
.note-box {
    background-color: #fffaf0;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.note-box h4 {
    color: var(--accent-color);
    margin-top: 0;
}

.note {
    text-align: center;
    margin-top: 30px;
    color: #718096;
}

/* Kontakt */
.contact-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-item strong {
    display: inline-block;
    width: 100px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Formulář */
.contact-form {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-light);
}

.contact-form h3 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #38a169;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a365d;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsivní design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1em;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        border-bottom: 1px solid var(--gray-light);
    }

    .section h2 {
        font-size: 1.8em;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .content-box,
    .course-box,
    .contact-box {
        padding: 25px;
    }

    .contact-item strong {
        display: block;
        margin-bottom: 5px;
    }

    .profile-section {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .profile-photo {
        width: 100%;
        max-width: 250px;
        margin: 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Zvýraznění aktivních prvků */
:target {
    scroll-margin-top: 80px;
}

/* Success message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.success-content h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.8em;
}

.success-content button {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.success-content button:hover {
    background-color: #38a169;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
