/* 
   THEME NAME: NeuroAyus Theme v1.1
   AUTHOR: Antigravity
   DESCRIPTION: Calm, accessible, and structured CSS for NeuroAyus.
   LAYOUT: Vertical sidebar panel (left), horizontal top panel (right-top), main content (right-bottom).
   FONTS: League Spartan (headings), Inter (body), Montserrat (logo)
   COLORS: #294a25, #3D762F, #588836, #f4f4e6, #fdf4ce, #F1F5E6, #EDF5D7
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=League+Spartan:wght@600;700;800;900&family=Montserrat:wght@600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Colors v1.1 */
  --color-primary-dark: #294a25;     /* Dark Forest Green */
  --color-primary-medium: #3D762F;   /* Medium Moss Green */
  --color-primary-light: #588836;    /* Light Brand Green */
  
  /* Background Colors v1.1 */
  --color-bg-sidebar: #EDF5D7;       /* Sidebar Panel Background (darker green pastel) */
  --color-bg-cream-light: #f4f4e6;   /* Horizontal Top Panel Background (light cream) */
  --color-bg-cream-dark: #fdf4ce;    /* Darker Cream Accent Background */
  --color-bg-pastel: #F1F5E6;        /* Page Section Blocks Background (light green pastel) */
  --color-white: #ffffff;
  
  /* Neutral UI Colors */
  --color-text-main: #111111;        /* Maximum contrast body text */
  --color-text-muted: #374151;      /* High legibility muted text */
  --color-border: #d1d5db;
  --color-focus: #3D762F;            /* Accessible keyboard focus ring */
  
  /* Typography Scale */
  --font-headings: 'League Spartan', var(--font-body);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-logo: 'Montserrat', sans-serif;
  
  --font-size-base: 20px;
  --line-height-base: 1.7;
  --border-radius: 8px;
  
  /* Layout Dimensions */
  --sidebar-width: 280px;
  --topbar-height: 280px;
  --max-content-width: 1100px;
  
  --transition-speed: 0.3s;
}

/* --- Base Resets & Accessibility Defaults --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: var(--line-height-base);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: row; /* Sidebar layout */
}

/* Make sure keyboard focus is extremely clear and high contrast for accessibility */
*:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2.25rem; /* ~45px */
  font-weight: 800;
}

h2 {
  font-size: 1.7rem; /* ~34px */
  margin-top: 1.5rem;
  padding-bottom: 0.4rem;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem; /* ~26px */
  font-weight: 700;
}

h4 {
  font-size: 1.1rem; /* ~22px */
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  max-width: 75ch; /* Comfortable reading length */
}

ul, ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600; /* Inter Medium/SemiBold */
  color: var(--color-text-main);
}

a {
  color: var(--color-primary-medium);
  text-decoration: underline;
  transition: color var(--transition-speed);
  font-weight: 600; /* Inter SemiBold */
}

a:hover, a:focus {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* --- Layout Grid Structure --- */

/* Sidebar (Left svislý panel - closed by default) */
.site-sidebar {
  width: var(--sidebar-width);
  height: calc(100vh - 85px);
  background-color: var(--color-bg-sidebar);
  position: fixed;
  top: 85px;
  left: -280px;
  z-index: 999;
  border-right: 1px solid rgba(41, 74, 37, 0.1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  transition: left var(--transition-speed) ease-in-out;
}

.site-sidebar.open {
  left: 0;
}

/* Main Content Area (Right-hand side) */
.content-wrapper {
  margin-left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 85px;
  transition: margin-left var(--transition-speed) ease-in-out, width var(--transition-speed) ease-in-out;
}

/* Horizontal Panel (Vrchní vodorovný panel) */
.top-horizontal-panel {
  height: var(--topbar-height);
  background-color: var(--color-bg-cream-light);
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  width: 100%;
}

.top-panel-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.top-panel-text {
  flex: 1;
  padding: 2.5rem 2.5rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-panel-text h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.top-panel-text p {
  font-size: 0.95rem; /* ~19px */
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.top-panel-image {
  width: 50%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.top-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* Crops right-hand side first dynamically */
  display: block;
}

/* Page Main Section Container */
.page-main {
  background-color: var(--color-white);
  padding: 3rem 0;
  flex: 1 0 auto;
}

/* --- Brand Logo in Sidebar --- */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(41, 74, 37, 0.15);
}

.logo-icon {
  width: 46px;
  height: 46px;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.2rem; /* ~24px */
  font-weight: 700;
  display: flex;
  letter-spacing: -0.5px;
}

.logo-text-neuro {
  color: var(--color-primary-dark);
}

.logo-text-ayus {
  color: var(--color-primary-light);
}

/* --- Navigation Menu --- */
.sidebar-navigation {
  flex-grow: 1;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-item {
  margin-bottom: 0;
  margin-left: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.85rem; /* ~17px */
  font-weight: 600; /* Inter SemiBold */
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.menu-link:hover, .menu-link:focus, .menu-link.active {
  background-color: rgba(41, 74, 37, 0.08);
  color: var(--color-primary-dark);
}

.menu-link.active {
  background-color: var(--color-primary-dark);
  color: var(--color-white) !important;
}

/* Submenu layout (for collapsible parts) */
.menu-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.submenu-toggle-btn {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.75rem;
  transition: transform var(--transition-speed) ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item.expanded .submenu-toggle-btn {
  transform: rotate(180deg);
}

.submenu-list {
  list-style: none;
  padding-left: 1.2rem;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
  display: none; /* Collapsed by default */
  flex-direction: column;
  gap: 0.2rem;
}

.menu-item.expanded .submenu-list {
  display: flex; /* Expanded state */
}

.submenu-link {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem; /* ~16px */
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: color var(--transition-speed), background-color var(--transition-speed);
}

.submenu-link:hover, .submenu-link:focus {
  color: var(--color-primary-dark);
  background-color: rgba(41, 74, 37, 0.04);
}

/* Sticky Header Panel (Hlavička) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background-color: var(--color-primary-dark); /* Tmavě zelená #294a25 */
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.menu-toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  min-height: 44px; /* WCAG touch target */
  transition: color var(--transition-speed), background-color var(--transition-speed);
  justify-self: start;
}

.menu-toggle-btn:hover, .menu-toggle-btn:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.hamburger-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.header-tagline {
  color: var(--color-bg-sidebar); /* Světle zelená #EDF5D7 */
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.85;
  white-space: nowrap;
  text-align: center;
  justify-self: center;
}

.header-logo {
  height: 52px; /* Hlavní vizuální prvek */
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: end;
}

.header-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.header-cta-btn {
  background-color: var(--color-bg-sidebar) !important; /* Světle zelená #EDF5D7 */
  color: var(--color-primary-dark) !important;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.header-cta-btn:hover, .header-cta-btn:focus {
  background-color: var(--color-white) !important;
  color: var(--color-primary-dark) !important;
}

/* --- Sections --- */
.page-section {
  padding: 3rem 0;
  scroll-margin-top: 115px; /* Offset for sticky header */
}

#o-neuroayus, #edukace, #cenik, #reference, #spoluprace, #kontakt, #oblast-pusobeni,
#co-je-trenink, #pro-koho, #jak-to-probiha, #rehacom, #moduly, #faq, #objednat-screening, #sluzby {
  scroll-margin-top: 115px !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.page-section:first-of-type {
  padding-top: 1rem;
}

.page-section.bg-pastel {
  background-color: var(--color-bg-pastel);
}

.page-section.bg-cream-dark {
  background-color: var(--color-bg-cream-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem; /* ~18px */
  font-family: var(--font-body);
  font-weight: 600; /* Inter SemiBold */
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
  text-align: center;
  min-height: 52px; /* WCAG touch target */
}

.btn-primary {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-primary-medium);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(41, 74, 37, 0.05);
  color: var(--color-primary-dark);
}

/* --- Card Grids --- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--color-white);
  border: 1px solid rgba(41, 74, 37, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(41,74,37,0.05);
}

.card-title {
  font-size: 1.1rem; /* ~22px */
  margin-bottom: 0.6rem;
  font-family: var(--font-headings);
}

.card-text {
  font-size: 0.9rem; /* ~18px */
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Corner Ribbon "Připravujeme" */
.ribbon-wrapper {
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

.ribbon {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.58rem;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
  /* Absolute centering layout */
  position: absolute;
  top: 24px;
  right: -42px;
  width: 160px;
  transform: rotate(45deg);
  
  padding: 4px 0;
  background-color: var(--color-primary-dark); /* tmavě zelená */
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* --- Custom Highlights (Yellow Callout Box) --- */
.callout-box {
  background-color: var(--color-bg-cream-dark);
  border-left: 6px solid var(--color-primary-medium);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* --- Accordions (FAQ) --- */
.accordion {
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid rgba(41, 74, 37, 0.1);
  background-color: var(--color-white);
  margin-bottom: 0.6rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.5rem;
  font-family: var(--font-headings);
  font-size: 1rem; /* ~20px */
  font-weight: 600; /* League Spartan SemiBold */
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary-medium);
  transition: transform var(--transition-speed);
  font-weight: 300;
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--color-white);
}

.accordion-content-inner {
  padding: 0 1.5rem 1.2rem 1.5rem;
  font-size: 0.9rem; /* ~18px */
  color: var(--color-text-muted);
}

/* --- Form Styles --- */
.contact-section-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-card {
  background-color: var(--color-white);
  border: 1px solid rgba(41, 74, 37, 0.10);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-weight: 600; /* Inter Medium/SemiBold */
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(61,118,47,0.15);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-other-text {
  margin-top: 0.5rem;
  display: none; /* Shown dynamically when 'jiné' is selected */
}

/* Map Placeholder */
.map-container {
  height: auto;
  min-height: 280px;
  background-color: var(--color-bg-cream-light);
  border-radius: 12px;
  border: 2px solid var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

#oblast-pusobeni .contact-section-layout {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

#oblast-pusobeni .map-container {
  margin-top: 0;
}

.map-icon {
  width: 44px;
  height: 44px;
  fill: var(--color-primary-dark);
  margin-bottom: 0.8rem;
}

/* Bio Section ( Kateřina Baláčková ) */
.bio-wrapper {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.bio-image-wrapper {
  background-color: var(--color-bg-pastel);
  border-radius: 12px;
  border: 1px solid rgba(41,74,37,0.1);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Welcome Modal Overlay --- */
.welcome-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(41, 74, 37, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.welcome-modal-card {
  background-color: var(--color-white);
  border-top: 6px solid var(--color-primary-dark);
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: modalScale 0.3s ease-out forwards;
}

.welcome-modal-card h2 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.welcome-modal-card p {
  font-size: 0.9rem; /* ~18px */
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- GDPR Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background-color: var(--color-white);
  border-top: 4px solid var(--color-primary-dark);
  padding: 1.2rem 2.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 900;
  display: none; /* Controlled by JS */
  animation: slideUp 0.4s ease-out forwards;
}

.cookie-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.cookie-text {
  font-size: 0.85rem; /* ~17px */
  line-height: 1.5;
  color: var(--color-text-main);
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.btn-cookie {
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 3rem 2.5rem;
  border-top: 4px solid var(--color-primary-light);
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-speed);
}

.footer-links a:hover, .footer-links a:focus {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* --- Sticky sidebar push layout on desktop --- */
@media (min-width: 1025px) {
  body.menu-open .content-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }
}

/* --- Responsive CSS (Tablet & Mobile overrides) --- */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
  }
  
  .site-header {
    padding: 0 1.5rem;
  }

  .top-horizontal-panel {
    height: auto !important;
    flex: none;
  }
  
  .header-container {
    padding: 0;
  }
  
  .site-sidebar {
    top: 85px;
    height: calc(100vh - 85px);
    z-index: 999;
  }
  
  .top-panel-container {
    flex-direction: column;
    height: auto !important;
    align-items: stretch;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .top-panel-text {
    padding: 2rem 0;
    flex: none;
  }
  
  .top-panel-image {
    width: 100%;
    max-width: 100%;
    height: 240px;
    flex: none;
  }
  
  .page-main {
    padding: 2rem 0;
  }
  
  .cookie-consent-banner {
    left: 0;
    padding: 1.2rem 1.5rem;
  }
  
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .header-cta-btn {
    display: none;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
  }
  .header-logo {
    margin-left: auto;
  }
  .header-tagline {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 19px; /* Muted base size on tiny screens */
  }
  
  .contact-section-layout, .bio-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #oblast-pusobeni .contact-section-layout {
    grid-template-columns: 1fr;
  }
  
  .bio-image-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* --- Price List and Reference Details Styling --- */
.loan-conditions-details summary,
.gift-conditions-details summary,
.reference-details summary,
.module-details summary {
  list-style: none; /* Firefox/Modern browsers */
  outline: none;
}

.loan-conditions-details summary::-webkit-details-marker,
.gift-conditions-details summary::-webkit-details-marker,
.reference-details summary::-webkit-details-marker,
.module-details summary::-webkit-details-marker {
  display: none; /* Chrome/Safari */
}

.loan-conditions-details[open] summary,
.gift-conditions-details[open] summary,
.reference-details[open] summary,
.module-details[open] summary {
  background-color: var(--color-primary-medium) !important;
  color: var(--color-white) !important;
}

/* --- Anti-spam: honeypot field (off-screen, invisible to users, visible to bots) --- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


