@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --c-primary: #15325b;
    /* Tmavá modrá */
    --c-primary-light: #1f4780;
    --c-accent: #ca1222;
    /* Červená z loga */
    --c-accent-hover: #ca1222;
    --c-white: #ffffff;
    --c-bg: #f8fafc;
    --c-text: #334155;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

h1,
h2,
h3 {
    color: var(--c-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

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

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

/* Obmedzovač obsahu */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* Hlavička & Navigácia */
.site-header {
    height: auto;
    background-color: var(--c-primary);
    background-image: linear-gradient(to bottom, rgba(21, 50, 91, 0.8), rgba(21, 50, 91, 0.3));
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--c-accent);
}

.navbar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
    position: relative;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--c-white);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--c-primary);
}

.logo-area span {
    color: var(--c-accent);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    background: rgba(21, 50, 91, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--c-white);
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
}

.nav-link:hover {
    background: #274b7f;
}

.nav-link.active {
    background: var(--c-accent);
    box-shadow: var(--shadow-md);
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--c-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--c-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Grid systémy */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Domovská stránka (Hero text, pobočky) */
.hero-content h1 {
    font-size: 3rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--c-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--c-primary-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--c-accent);
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-accent);
}

/* Kurzy a cenník */
.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-primary);
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
}

.price-tag span {
    font-size: 1rem;
    color: var(--c-text-muted);
    font-weight: 600;
    margin-left: 5px;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li::before {
    content: "✓";
    color: var(--c-accent);
    font-weight: 800;
}

.course-main {
    border-top-color: var(--c-accent);
    position: relative;
    overflow: hidden;
}

.course-main::after {
    content: "NAJLEPŠIA VOĽBA";
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--c-accent);
    color: var(--c-white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

/* Kontakty */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--c-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(31, 71, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-btn.red .contact-icon {
    background: rgba(230, 57, 70, 0.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details span {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    font-weight: 600;
}

.contact-details strong {
    font-size: 1.25rem;
    color: var(--c-text);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--c-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hours-table th,
.hours-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.hours-table th {
    background: var(--c-primary);
    color: var(--c-white);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--c-primary);
}

.map-wrapper {
    width: 100%;
    min-height: 400px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--c-white);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 400px;
}

/* Päta */
.site-footer {
    margin-top: auto;
    background: var(--c-primary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    border-top: 5px solid var(--c-primary-light);
}

.site-footer p {
    margin: 0;
}

/* Mobilná Responzivita */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .site-header {
        height: auto;
        min-height: 250px;
    }

    .nav-links {
        display: none;
    }

    /* Pre jednoduchosť je na mobiloch skryté bez JS, alebo môžeme doplniť toggle */
}