/* ===== Čiperkové / Chipmunks – společný styl ===== */
:root {
--bg: #fffaf2;
--text: #2f2a25;
--muted: #6b625a;
--card: #ffffff;
--line: #f0e2cf;
--radius: 18px;

--green: #16a34a;
--green-soft: #ecfdf5;
--green-line: #bbf7d0;
--green-dark: #14532d;
--green-text: #166534;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
line-height: 1.65;
color: var(--text);
background: var(--bg);
}

a { color: #0f766e; }

.wrap { width: min(1000px, 92%); margin: 0 auto; }

h1 {
font-size: clamp(1.8rem, 4vw, 2.6rem);
line-height: 1.15;
margin: 0 0 .75rem;
}
h2 {
font-size: clamp(1.35rem, 3vw, 1.75rem);
margin: 0 0 .75rem;
}
h3 { font-size: 1.1rem; margin: 0 0 .35rem; }

section { padding: 2.5rem 0; }
section:nth-of-type(even) { background: #fff; }

.lead { font-size: 1.1rem; max-width: 65ch; }

/* ===== Rozcestník – zelená tlačítka ===== */
.hub {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.hub a {
display: block;
text-align: center;
text-decoration: none;
color: var(--green-dark);
background: var(--green-soft);
border: 1px solid var(--green-line);
border-radius: var(--radius);
padding: 1.5rem 1.25rem;
box-shadow: 0 6px 20px rgba(22,163,74,.08);
transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.hub a:hover {
transform: translateY(-2px);
background: #d1fae5;
border-color: #86efac;
box-shadow: 0 10px 26px rgba(22,163,74,.15);
}
.hub .emoji { font-size: 2rem; display: block; margin-bottom: .4rem; }
.hub h3 { margin: 0 0 .25rem; font-size: 1.15rem; color: var(--green-dark); }
.hub p { margin: 0; color: var(--green-text); font-size: .95rem; }

/* ===== Karty ===== */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.card {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1.25rem;
box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.card p { margin: .25rem 0 0; color: var(--muted); }

/* ===== Formuláře ===== */
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
@media (max-width: 600px) {
.form-row { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.25rem; }

label {
display: block;
font-weight: 600;
margin-bottom: .35rem;
}

input, textarea, select {
width: 100%;
padding: .8rem 1rem;
font-size: 1rem;
font-family: inherit;
border: 1px solid var(--line);
border-radius: 12px;
background: #fffdf8;
outline: none;
}
input:focus, textarea:focus, select:focus {
border-color: var(--green);
}
textarea { resize: vertical; min-height: 100px; }

fieldset {
border: 0;
padding: 0;
margin: 0 0 1.75rem;
}
fieldset legend {
font-size: 1.05rem;
font-weight: 700;
color: var(--green-dark);
border-bottom: 2px solid var(--green-line);
padding-bottom: .5rem;
margin-bottom: 1rem;
width: 100%;
}

/* ===== Tlačítka ===== */
button, .btn {
display: inline-block;
padding: .85rem 1.25rem;
font-size: 1rem;
font-weight: 800;
font-family: inherit;
border: 0;
border-radius: 999px;
background: var(--green);
color: #fff;
cursor: pointer;
text-decoration: none;
transition: filter .15s ease;
}
button:hover, .btn:hover { filter: brightness(1.08); }

.button-group {
display: flex;
gap: .75rem;
justify-content: center;
margin-top: 1.5rem;
flex-wrap: wrap;
}
.button-group button { flex: 1; min-width: 140px; }

button.reset-button { background: #e5e7eb; color: #374151; }
button.reset-button:hover { background: #d1d5db; filter: none; }

/* ===== Zpětný odkaz ===== */
.back-link {
text-align: center;
margin-top: 2rem;
}
.back-link a {
color: var(--muted);
text-decoration: none;
font-weight: 600;
font-size: .95rem;
}
.back-link a:hover { text-decoration: underline; }

/* ===== Patička ===== */
footer {
padding: 1.5rem 0;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: .9rem;
}

/* ===== Vstupní brána (index) ===== */
.gate {
min-height: 100vh;
display: grid;
place-items: center;
padding: 1.5rem;
background: linear-gradient(135deg, #fff7e6, #ecfdf5);
}
.gate-box {
width: min(520px, 100%);
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 2rem;
box-shadow: 0 10px 30px rgba(0,0,0,.06);
text-align: center;
}
.gate-box img {
max-width: 100%;
max-height: 50vh;
object-fit: contain;
border-radius: 12px;
margin-bottom: 1.5rem;
}
.gate-row {
display: flex;
gap: .75rem;
justify-content: center;
flex-wrap: wrap;
margin-top: 1rem;
}
.gate-row input {
width: auto;
flex: 1;
min-width: 180px;
border-radius: 999px;
}
.gate-row button { flex: 0 0 auto; }

.error-message {
color: #b91c1c;
font-size: .9rem;
font-weight: 600;
margin-top: .75rem;
display: none;
}

/* ===== Jednoduchá centrovaná stránka (galerie, omluvenka) ===== */
.center-page { padding: 3rem 0; }
.center-page .card {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
