/* 
  Bicom Písek — Veřejný Design Systém (Quiet Luxury)
  Téma: Light-only (žádný dark mode), klid, čistota, empatie, důvěryhodnost.
*/

:root {
  /* Barevná paleta */
  --c-alabaster:  #FAF8F5;  /* Hřejivá smetanová (hlavní pozadí) */
  --c-sage:       #738A75;  /* Šalvějová zelená (hlavní motiv, klid) */
  --c-forest:     #3A4A3C;  /* Hluboká lesní zelená (akcenty, patička, váha) */
  --c-champagne:  #C5A880;  /* Champagne gold (vysoce kontrastní prvky, ikony, CTA) */
  --c-charcoal:   #2B2B2B;  /* Uhlová (čitelné písmo) */
  --c-mist:       #EAEFE9;  /* Světlá šalvějová (pozadí karet, dělicí linky) */
  --c-white:      #FFFFFF;
  --c-error:      #D9534F;
  --c-success:    #5CB85C;

  /* Typografie */
  --font-head:    "Cormorant Garamond", Georgia, serif;
  --font-body:    "Montserrat", system-ui, sans-serif;

  /* Rytmus a tvary */
  --radius:       14px;
  --radius-lg:    24px;
  --space:        clamp(1rem, 2.5vw, 2.5rem);
  --space-lg:     clamp(2rem, 5vw, 5rem);
  --maxw:         1180px;

  /* Stíny a záře */
  --shadow-sm:    0 2px 8px rgba(58, 74, 60, 0.05);
  --shadow-md:    0 10px 30px rgba(58, 74, 60, 0.08);
  --glow-accent:  0 0 15px rgba(197, 168, 128, 0.3);
}

/* ----------------------------------------------------
   1. Reset a základní styly
------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--c-alabaster);
  color: var(--c-charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ----------------------------------------------------
   2. Typografie
------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-forest);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--c-champagne);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: #4A4A4A;
}

a {
  color: var(--c-sage);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-forest);
}

/* ----------------------------------------------------
   3. Layout
------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: min(var(--maxw), calc(100vw - 1.5rem));
  margin: 0 auto;
  padding: 0 var(--space);
}

section {
  padding: var(--space-lg) 0;
  position: relative;
}

/* Alternating backgrounds for visual rhythm */
section:nth-of-type(even) {
  background-color: var(--c-mist);
}

/* ----------------------------------------------------
   4. Hlavička a Menu
------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(115, 138, 117, 0.1);
  transition: all 0.3s ease;
}

header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

header .logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--c-forest);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

header .logo span {
  font-size: 0.75rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-champagne);
  margin-top: 2px;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

header nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-charcoal);
  padding: 0.5rem 0;
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--c-champagne);
  transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}

header nav a:hover,
header nav a.active {
  color: var(--c-forest);
}

/* Hamburger menu pro mobilní zařízení */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-forest);
}

/* ----------------------------------------------------
   5. Hero Sekce
------------------------------------------------------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-radial: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-champagne);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #4A4A4A;
  margin-bottom: 2rem;
}

.hero-img-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-mist);
  background-color: var(--c-white);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--c-champagne);
  border-radius: calc(var(--radius-lg) + 10px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(135deg, var(--c-mist) 0%, #F5EFEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-illustration svg {
  width: 60%;
  height: 60%;
  stroke: var(--c-sage);
  stroke-width: 1;
  opacity: 0.7;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------
   6. Komponenty a Tlačítka (CTA)
------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.75rem;
}

.btn-primary {
  background-color: var(--c-sage);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--c-forest);
  box-shadow: 0 4px 15px rgba(58, 74, 60, 0.2);
}

.btn-accent {
  background-color: var(--c-champagne);
  color: var(--c-white);
  box-shadow: var(--glow-accent);
}

.btn-accent:hover {
  background-color: #bfa074;
  box-shadow: 0 4px 20px rgba(197, 168, 128, 0.45);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--c-sage);
  color: var(--c-forest);
}

.btn-outline:hover {
  background-color: var(--c-mist);
}

/* Accent element */
.accent {
  color: var(--c-champagne);
  position: relative;
  display: inline-block;
}

/* ----------------------------------------------------
   7. Interaktivní průvodce
------------------------------------------------------- */
.guide-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.guide-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.guide-btn {
  background-color: var(--c-white);
  border: 1px solid rgba(115, 138, 117, 0.2);
  color: var(--c-charcoal);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.guide-btn:hover {
  background-color: var(--c-mist);
  border-color: var(--c-sage);
}

.guide-btn[aria-pressed="true"] {
  background-color: var(--c-sage);
  border-color: var(--c-sage);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}

.guide-card {
  background-color: var(--c-white);
  border: 1px solid rgba(115, 138, 117, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  min-height: 380px;
  animation: fadeIn 0.4s ease;
}

.guide-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-meta {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.guide-meta-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-champagne);
  flex-shrink: 0;
}

.guide-placeholder-visual {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-mist) 0%, var(--c-white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(115, 138, 117, 0.08);
}

.guide-placeholder-visual svg {
  width: 35%;
  height: 35%;
  stroke: var(--c-sage);
  opacity: 0.4;
}

/* ----------------------------------------------------
   8. Jak metoda funguje a Důkaz & bezpečí
------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--c-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(115, 138, 117, 0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
}

.info-card-icon {
  background-color: var(--c-mist);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-sage);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cert-card {
  background-color: var(--c-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(197, 168, 128, 0.2);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-icon {
  width: 60px;
  height: 60px;
  background-color: #F6F3EC;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.cert-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--c-champagne);
}

/* ----------------------------------------------------
   9. Magazín (Blog)
------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid rgba(115, 138, 117, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-mist) 0%, #E2D9D2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-img svg {
  width: 25%;
  height: 25%;
  stroke: var(--c-sage);
  opacity: 0.35;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.blog-meta {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-champagne);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ----------------------------------------------------
   10. Rezervační Hub
------------------------------------------------------- */
.booking-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(115, 138, 117, 0.15);
  box-shadow: var(--shadow-md);
  padding: var(--space);
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-forest);
}

.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(115, 138, 117, 0.25);
  background-color: var(--c-alabaster);
  color: var(--c-charcoal);
  transition: all 0.25s ease;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-sage);
  background-color: var(--c-white);
  box-shadow: 0 0 0 3px rgba(115, 138, 117, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Phone input with prefix badge */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background-color: rgba(115, 138, 117, 0.08);
  border: 1px solid rgba(115, 138, 117, 0.25);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--c-forest);
  font-size: 0.95rem;
  font-family: var(--font-body);
  white-space: nowrap;
  user-select: none;
  transition: border-color 0.25s ease;
}
.phone-input-wrap .form-control {
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 1;
  min-width: 0;
}
.phone-input-wrap:focus-within .phone-prefix {
  border-color: var(--c-sage);
}
.phone-input-wrap.phone-custom-prefix .form-control {
  border-radius: var(--radius);
}
.form-hint {
  display: block;
  font-size: 0.82rem;
  color: #767a7d;
  margin-top: 5px;
  line-height: 1.4;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--c-sage);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.link-btn:hover { color: var(--c-forest); }

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-sage);
  margin-top: 2px;
  cursor: pointer;
}

.form-checkbox label {
  text-transform: none;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555555;
  letter-spacing: 0;
  cursor: pointer;
}

.form-checkbox a {
  text-decoration: underline;
}

.booking-actions {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* ----------------------------------------------------
   11. Kontakt a Mapa
------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--c-mist);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-sage);
}

.contact-details h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin: 0;
  font-size: 0.95rem;
  color: #555555;
}

.contact-details--offset {
  padding-left: 60px;
}

.map-container {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(115, 138, 117, 0.15);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------------------------
   12. Patička (Footer)
------------------------------------------------------- */
footer {
  background-color: var(--c-forest);
  color: #DFE5DF;
  padding: var(--space-lg) 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--c-white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #ADB8AE;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--c-champagne);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #DFE5DF;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--c-champagne);
}

.footer-legal {
  max-width: 450px;
}

.footer-legal h4 {
  color: var(--c-champagne);
}

.footer-legal p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ADB8AE;
}

.footer-bottom {
  border-top: 1px solid rgba(223, 229, 223, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #ADB8AE;
}

/* ----------------------------------------------------
   13. Cookie Consent lišta
------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 450px;
  background-color: var(--c-white);
  border: 1px solid rgba(115, 138, 117, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #555555;
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.cookie-btn-accept {
  background-color: var(--c-sage);
  color: var(--c-white);
}

.cookie-btn-accept:hover {
  background-color: var(--c-forest);
}

.cookie-btn-decline {
  background-color: transparent;
  border: 1px solid rgba(115, 138, 117, 0.3);
  color: var(--c-charcoal);
}

.cookie-btn-decline:hover {
  background-color: var(--c-mist);
}

/* ----------------------------------------------------
   14. AI Rádce Chatbot Widget
------------------------------------------------------- */
/* Container query pro layout chatu */
.chat-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  font-family: var(--font-body);
}

/* Collapsed float button */
.chat-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--c-sage);
  color: var(--c-white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(115, 138, 117, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.chat-launcher::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--c-champagne);
  border-radius: 50%;
  opacity: 0;
  scale: 0.8;
  transition: all 0.3s ease;
}

.chat-launcher:hover {
  background-color: var(--c-forest);
  transform: scale(1.05);
}

.chat-launcher:hover::before {
  opacity: 1;
  scale: 1;
}

.chat-launcher svg {
  width: 26px;
  height: 26px;
  stroke: var(--c-white);
  transition: transform 0.3s ease;
}

/* Expanded state icon rotate */
.chat-active .chat-launcher svg {
  transform: rotate(90deg);
}

/* Chat window UI */
.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  height: 500px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(115, 138, 117, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

/* When chat active */
.chat-active .chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  background-color: var(--c-forest);
  color: var(--c-white);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--c-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-champagne);
}

.chat-avatar svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-white);
}

.chat-title-group h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-white);
  margin: 0;
}

.chat-title-group span {
  font-size: 0.75rem;
  color: #ADB8AE;
}

/* Chat Messages Area */
.chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #FDFDFD;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: fadeIn 0.25s ease;
  word-wrap: break-word;
}

.chat-bubble-agent {
  background-color: var(--c-mist);
  color: var(--c-charcoal);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble-user {
  background-color: var(--c-sage);
  color: var(--c-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Skeleton Loading bubble */
.chat-bubble-loading {
  background-color: var(--c-mist);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.chat-dot {
  width: 6px;
  height: 6px;
  background-color: var(--c-sage);
  border-radius: 50%;
  animation: pulse 1.2s infinite ease-in-out;
}

.chat-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-dot:nth-child(3) { animation-delay: 0.4s; }

/* Chat Input Bar */
.chat-input-bar {
  padding: 0.75rem 1.25rem;
  background-color: var(--c-white);
  border-top: 1px solid rgba(115, 138, 117, 0.15);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input {
  flex-grow: 1;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem;
  background: transparent;
  color: var(--c-charcoal);
}

.chat-input:focus {
  outline: none;
}

.chat-send-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.chat-send-btn:hover {
  color: var(--c-forest);
  background-color: var(--c-mist);
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ----------------------------------------------------
   15. Animace a Systémové stavy
------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Dynamic view-transitions */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}

/* ----------------------------------------------------
   16. Přístupnost a Redukce pohybu
------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Focus style pro klávesnici (WCAG AA) */
*:focus-visible {
  outline: 2px solid var(--c-champagne) !important;
  outline-offset: 4px !important;
}

/* ----------------------------------------------------
   17. Responzivní design
------------------------------------------------------- */
@media (min-width: 1600px) {
  :root {
    --maxw: 1320px;
    --space-lg: clamp(3rem, 4.5vw, 7rem);
  }

  .hero-grid,
  .contact-grid {
    gap: 4rem;
  }

  /* Galerie — 8 sloupců na širokých monitorech */
  .gallery-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 2rem;
  }

  .gallery-item:nth-child(1) { grid-column: span 4; }
  .gallery-item:nth-child(2) { grid-column: span 4; }
  .gallery-item:nth-child(3) { grid-column: span 3; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 3; }

  /* Větší vzdálenosti v info sekcích */
  .info-grid {
    gap: 6rem;
  }

  /* Lepší proporce footer na ultrawides */
  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr;
    gap: 5rem;
  }
}

/* Tablety — intermediate hodnoty (iPad portrait, Android tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  header .navbar {
    height: 72px;
  }

  /* Booking kontejner — menší padding na tabletu */
  .booking-container {
    padding: calc(var(--space) * 0.8);
  }

  /* Info sekce — menší gap aby se text nepřetahoval */
  .info-grid {
    gap: 2.5rem;
  }

  /* Footer 2 sloupce na tabletu (3 jsou příliš úzké) */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Certifikáty — 2 sloupce na tabletu */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .guide-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-details--offset {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  header nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--c-alabaster);
    border-bottom: 1px solid rgba(115, 138, 117, 0.15);
    padding: 2rem var(--space);
    display: none;
    box-shadow: var(--shadow-md);
  }
  
  header.nav-open nav {
    display: block;
  }
  
  header nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .booking-form {
    grid-template-columns: 1fr;
  }
  
  .booking-actions,
  .form-full {
    grid-column: span 1;
  }
  
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  
  .chat-window {
    width: calc(100vw - 32px);
    right: 0;
    height: min(420px, 68vh);
    /* dvh guard: nepřetéct na zařízeních s dynamickým prohlížečovým UI */
    max-height: calc(100dvh - 120px);
  }
}

@media (max-width: 575px) {
  header .navbar {
    height: 70px;
  }

  header nav {
    top: 70px;
    padding: 1.25rem var(--space);
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
  }

  .btn {
    width: 100%;
    padding: 0.9rem 1.1rem;
    letter-spacing: 0.06em;
  }

  .guide-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-btn {
    width: 100%;
  }

  .info-card,
  .contact-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .map-container {
    aspect-ratio: 1 / 1;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1 1 140px;
  }

  .chat-widget-container {
    right: 12px;
    bottom: 12px;
  }

  .chat-window {
    width: min(calc(100vw - 24px), 380px);
    height: min(55vh, 360px);
    max-height: calc(100dvh - 100px);
    bottom: 64px;
  }

  .chat-bubble {
    max-width: 92%;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.65;
  }

  .chat-header {
    padding: 0.9rem;
  }

  .chat-messages {
    padding: 0.85rem;
  }
}

/* Ultra-malé displeje (Galaxy Fold, iPhone 5 apod.) */
@media (max-width: 320px) {
  html {
    font-size: 14px;
  }

  .wrap {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: clamp(1.75rem, 10vw, 2.1rem);
  }

  .cookie-banner {
    padding: 0.75rem;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
  }

  .booking-container {
    padding: 1rem;
  }

  .chat-header {
    padding: 0.75rem;
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 92px;
  }
}

/* Landscape mobilní telefony — krátký viewport */
@media (max-height: 500px) and (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 1.5rem;
  }

  .hero-grid {
    gap: 1rem;
  }

  .chat-window {
    height: min(75vh, 280px);
    max-height: calc(100dvh - 90px);
  }

  .cookie-banner {
    padding: 0.75rem 1rem;
    bottom: 8px;
    left: 8px;
    right: 8px;
    max-width: none;
  }

  .cookie-banner p {
    margin-bottom: 0.5rem;
  }
}

@media (pointer: coarse) {
  .menu-toggle,
  .guide-btn,
  .cookie-btn,
  .chat-launcher,
  .chat-send-btn,
  .btn,
  [data-slot-start] {
    min-height: 44px;
    min-width: 44px;
  }

  .form-control {
    min-height: 44px;
  }

  /* Zvětšení klepacích ploch pro navigaci */
  header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Slot chipy — vizuální zarovnání tap targetu */
  [data-slot-start] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Checkbox label — větší klepací plocha */
  .form-checkbox {
    min-height: 44px;
    align-items: center;
  }
}

/* ----------------------------------------------------
   17. Galerie naší ordinace & Doplňkové animace
------------------------------------------------------- */
#galerie {
  padding: 5rem 0;
  background-color: var(--c-alabaster);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(115, 138, 117, 0.12);
  box-shadow: var(--shadow-sm);
  background-color: var(--c-white);
  aspect-ratio: 4 / 3;
  transition: all 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-champagne);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:nth-child(1) {
  grid-column: span 3;
}
.gallery-item:nth-child(2) {
  grid-column: span 3;
}
.gallery-item:nth-child(3) {
  grid-column: span 2;
}
.gallery-item:nth-child(4) {
  grid-column: span 2;
}
.gallery-item:nth-child(5) {
  grid-column: span 2;
}

@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-item {
    aspect-ratio: 3 / 2;
  }
}

/* ----------------------------------------------------
   18. Články Magazínu — Stylování Markdownu
------------------------------------------------------- */
.blog-article-content h2,
.blog-article-content h3 {
  font-family: var(--font-head);
  color: var(--c-forest);
  font-weight: 500;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.blog-article-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.blog-article-content h2::after {
  display: none; /* Odstranění středové linky */
}

.blog-article-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.blog-article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: square;
}

.blog-article-content li {
  margin-bottom: 0.5rem;
}

.blog-article-content blockquote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-forest);
  border-left: 3px solid var(--c-champagne);
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────────
   Booking Time Slots (F5)
   ───────────────────────────────────────────────────────────── */

#booking-time-wrap {
  margin-top: 1.5rem;
}

#booking-slots {
  margin-top: 0.75rem;
}

#booking-slots > p {
  margin: 0;
  padding: 0.75rem 0;
}

[data-slot-start] {
  font-family: var(--font-body);
}

[data-slot-start]:hover {
  border-color: var(--c-sage);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(114, 147, 120, 0.12);
}

[data-slot-start]:active {
  transform: translateY(0);
}

