 :root {
  --bg: #fafafa;
  --text: #111;
  --accent: #f97316;
  --card: #ffffff;
  --border: #b5b5b5;
}
body.dark {
  --bg: #0f172a;
  --text: #f8fafc;
  --accent: #facc15;
  --card: #1e293b;
  --border: #334155;
}
* { 
  box-sizing: border-box; 
  transition: background 0.3s, color 0.3s, border 0.3s; 
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

  /* 🔧 Přidané – zabrání kurzoru a výběru textu mimo formuláře */
  user-select: none;
  cursor: default;
}

/* Povolit kurzor a výběr textu ve formulářích */
input, textarea {
  user-select: text;
  cursor: text;
}

header {
  background: var(--card);
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: white;
}

.logo-img {
  width: 80%;
  height: 90%;
  object-fit: cover; 
}

nav a {
  margin: 0 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
nav a:hover { color: var(--accent); }
.call-btn {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.toggle-btn {
  cursor: pointer;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 1.2rem;
  margin-left: 1rem;
}
.hero {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.hero-text {
  flex: 1 1 400px;
}
.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero-text p {
  margin-bottom: 1.5rem;
  color: var(--text);
  opacity: 0.85;
}
.hero-text a {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.hero-text .primary {
  background: var(--accent);
  color: white;
}
.hero-text .secondary {
  border: 1px solid var(--border);
  color: var(--text);
}
.hero-img {
  flex: 1 1 400px;
}
.hero-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}
h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  transition: transform 0.2s;
}
.service:hover {
  transform: translateY(-5px);
}
.service h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* vždy 5 obrázků vedle sebe */
  gap: 1rem;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
/* Responsivita: na menších obrazovkách méně sloupců */
@media (max-width: 950px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.contact-form button:hover {
  opacity: 0.9;
}

/* ===== Reference / Recenze ===== */
#reference {
  background: var(--card);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: 20px; /* hlavní box zaoblený */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.review {
  background: var(--bg);
  border-radius: 12px; /* jednotlivé recenze zaoblené */
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.review p {
  margin: 0 0 0.5rem 0;
}

footer {
  background: var(--card);
  color: var(--text);
  padding: 2rem;
  border-top: 1px solid var(--border);
}
footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
}
footer h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
footer .copyright {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
}
