@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #c0392b; /* Cihlová z Přívozu */
    --accent: #d35400;
    --bg: #f9f7f2;    /* Jemný krémový podklad (působí tepleji) */
    --white: #ffffff;
    --text: #2c3e50;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* --- RESPONZIVNÍ MENU --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

@media (max-width: 600px) {
    .nav-links { gap: 10px; font-size: 0.8rem; }
}

/* --- HERO MOZAIKA (Responzivní) --- */
.hero {
    height: 60vh;
    display: grid;
    /* Na mobilu 2x2, na PC 4 vedle sebe */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
    position: relative;
    /* ŠIKMÝ STŘIH SPODKU */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    transition: transform 0.6s;
}

.hero-img:hover { transform: scale(1.1); filter: brightness(70%); }

.hero-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    z-index: 10;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem); /* Automatická velikost podle displeje */
    margin: 0;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

/* --- KARTY (Plovoucí efekt) --- */
.container {
    max-width: 1100px;
    margin: -50px auto 50px; /* Posun nahoru přes ten šikmý střih */
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 20;
}

@media (min-width: 900px) {
    .container { grid-template-columns: 2fr 1fr; }
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px; /* Více zaoblené pro hravost */
    box-shadow: var(--shadow);
    border-bottom: 5px solid rgba(0,0,0,0.05);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    position: relative;
    margin-bottom: 25px;
}

/* Ručně psaný detail (akcent) */
.section-title::after {
    content: '➔';
    position: absolute;
    margin-left: 10px;
    font-size: 1.2rem;
    transform: rotate(-10deg);
}

.btn-main {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-main:hover { background: var(--accent); transform: translateY(-2px); }