/* Mazlivý Spánek – Geometric Structured Style (Flexbox-Only, Mobile-first) */

/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure,
figcaption, footer, header, hgroup, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; }

body {
  background: #F7F5F2;
  color: #21587A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #21587A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #BC8641;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #184665;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }

p, ul, ol { color: #21587A; margin-bottom: 16px; }
strong { color: #184665; font-weight: 700; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 10px; }

@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
}
@media (min-width: 992px) {
  h1 { font-size: 3.5rem; }
}

/* === STRUCTURED CONTAINER === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* === HEADER / NAV === */
header {
  background: #fff;
  border-bottom: 3px solid #21587A;
  box-shadow: 0 2px 8px rgba(33, 88, 122, 0.07);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #21587A;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover, .main-nav a:focus {
  background: #DAB99F;
  color: #fff;
}

.cta-btn {
  background: #21587A;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(33,88,122,.07);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.18s;
  display: inline-block;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #BC8641;
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

@media (max-width: 900px) {
  .main-nav, .cta-btn {
    display: none;
  }
}

/* === MOBILE BURGER NAVIGATION === */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 111;
  background: #21587A;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(33,88,122,0.1);
  cursor: pointer;
  transition: background 0.19s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:hover {
  background: #BC8641;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(34, 62, 76, 0.92);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.5,0,.5,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #fff;
  color: #21587A;
  border: none;
  font-size: 2.1rem;
  margin: 26px 25px 0 0;
  border-radius: 14px;
  width: 44px; height: 44px;
  box-shadow: 0 2px 8px rgba(185,185,190,.13);
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #BC8641;
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 16px;
  padding: 44px 18px 18px 35px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: #FAFAFA;
  padding: 15px 8px 15px 10px;
  border-left: 4px solid transparent;
  border-radius: 0 14px 14px 0;
  transition: background 0.14s, color 0.14s, border-left 0.2s;
  margin-right: 16px;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #21587A;
  color: #fff;
  border-left: 4px solid #DAB99F;
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === MAIN CONTENT === */
main {
  margin-top: 0;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 44px rgba(33,88,122,0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 600px) {
  section {
    padding: 22px 6vw 22px 6vw;
    border-radius: 14px;
  }
}

/* === FLEX & GEOMETRIC LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F7F5F2;
  border-radius: 20px;
  box-shadow: 0 3px 16px rgba(33,88,122,0.05);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(33,88,122,0.18);
  transform: translateY(-2px) scale(1.018);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F7F5F2;
  padding: 20px 28px;
  margin-bottom: 24px;
  border: 2px solid #21587A;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(33, 88, 122, 0.10);
  max-width: 540px;
  font-size: 1.06rem;
  font-style: normal;
  color: #1a3550;
}
.testimonial-card strong {
  color: #21587A;
  font-size: 1.01em;
}
.testimonial-card p {
  color: #21587A;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 0.5rem;
}

@media (max-width:850px) {
  .testimonial-card {
    max-width: 100%;
    padding: 17px 10px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(33,88,122,0.06);
  margin-bottom: 20px;
}

.text-section {
  background: #F7F5F2;
  border-left: 4px solid #BC8641;
  padding: 20px 20px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 1rem;
}

@media (min-width: 801px) {
  .content-wrapper {
    gap: 34px;
  }
  .card {
    min-width: 300px;
    padding: 40px 32px;
  }
}

/* === BUTTONS & INTERACTIONS === */
button, .cta-btn {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible {
  box-shadow: 0 0 0 4px #DAB99F;
}

button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  background: #21587A;
  color: #fff;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
button.secondary {
  background: #BC8641;
  color: #fff;
}
button.tertiary {
  background: #F7F5F2;
  color: #21587A;
  border: 1px solid #BC8641;
}
button:hover, button:focus {
  background: #BC8641;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* === FOOTER === */
footer {
  background: #21587A;
  color: #fff;
  padding: 32px 0 0 0;
  position: relative;
  z-index: 10;
  border-top: 3px solid #BC8641;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 38px;
  padding-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.92;
  letter-spacing: 0.01em;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.16s;
}
.footer-nav a:focus,
.footer-nav a:hover {
  color: #BC8641;
  background: #fff;
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.contact-info strong {
  color: #BC8641;
}

footer img {
  width: 72px;
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
  }
  .footer-nav {
    margin-bottom: 0;
  }
  .contact-info {
    align-items: flex-end;
    gap: 6px;
  }
  footer img {
    margin-bottom: 0;
  }
}

/* === RESPONSIVE AND FLEX ADJUSTMENTS === */
@media (min-width:700px) {
  .content-grid {
    flex-direction: row;
    gap: 32px;
  }
}
@media (min-width:1020px) {
  .container {
    padding-left: 8vw; padding-right: 8vw;
  }
}

/* ============ COOKIE CONSENT BANNER & MODAL ============ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #21587A;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3000;
  box-shadow: 0 -4px 24px rgba(33,88,122,0.12);
  padding: 20px 16px;
  font-size: 1rem;
  animation: cookieIn 0.6s cubic-bezier(.65,0,.65,1);
  gap: 18px;
}
@keyframes cookieIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  background: #BC8641;
  color: #fff;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.13s;
}
.cookie-banner button.secondary {
  background: #fff;
  color: #21587A;
  border: 1px solid #BC8641;
}
.cookie-banner button.tertiary {
  background: #21587A;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #21587A;
  color: #fff;
  transform: scale(1.05);
}

/* Cookie MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  background: rgba(33,88,122,0.45);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalfadein 0.22s linear;
}
@keyframes modalfadein {
  from {opacity: 0;} to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #21587A;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(33,88,122,0.15);
  max-width: 410px;
  width: 96vw;
  padding: 32px 18px 27px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-size: 1rem;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: #184665;
  margin-bottom: 12px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.cookie-modal label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #21587A;
  width: 19px;
  height: 19px;
  border-radius: 5px;
}
.cookie-modal .cookie-actions {
  flex-direction: row;
  gap: 13px;
  margin-top: 12px;
}
.cookie-modal .close {
  background: transparent;
  color: #21587A;
  position: absolute;
  top: 13px; right: 17px;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  color: #BC8641;
}

@media (max-width: 540px) {
  .cookie-modal { padding: 18px 4vw 16px 4vw; }
}

/* Hide .cookie-banner when closed via JS (not via CSS as default) */

/* ==== MISCELLANEOUS ==== */
::-webkit-scrollbar { width: 11px; background: #F7F5F2; }
::-webkit-scrollbar-thumb { background: #DAB99F; border-radius: 7px; }
::-webkit-input-placeholder { color: #a8adb6; }
::-moz-placeholder { color: #a8adb6; }
:-ms-input-placeholder { color: #a8adb6; }
::placeholder { color: #a8adb6; }

/* === GEOMETRIC DECORATION (optional) === */
.card::before, .testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: #DAB99F;
  opacity: 0.07;
  border-radius: 6px 20px 7px 13px;
  z-index: 0;
  pointer-events: none;
}
.card::before { background: #BC8641; opacity: 0.1; }
.testimonial-card::before { background: #21587A; opacity: 0.08; }

@media (max-width:800px) {
  .card::before, .testimonial-card::before { display: none; }
}

/* === FORM ELEMENTS / CONTACT (if needed) === */
input[type='text'], input[type='email'], textarea {
  border: 2px solid #21587A;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  background: #F7F5F2;
}
input:focus, textarea:focus {
  border-color: #BC8641;
  outline: none;
}

/* === Z-INDEX FOR NAV / MOBILE === */
header { z-index: 100; }
.mobile-menu.open { z-index: 300; }

/* ==== GEOMETRIC STRUCTURED EXTRAS ==== */
section {
  border: 2.5px solid #DAB99F;
  position: relative;
  box-shadow: 0 6px 32px rgba(33,88,122,0.07);
}
section::after {
  content: '';
  width: 60px;
  height: 5px;
  background: #BC8641;
  position: absolute;
  left: 30px; top: -8px;
  border-radius: 3px;
  opacity: 0.12;
  z-index: 0;
}
@media (max-width:600px) {
  section::after { width: 34px; left: 16px; }
}

/* === SPACING AND ALIGNMENT PATTERNS (MANDATORY) === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === AVOIDING GRID === */
/* No use of display: grid, grid-* or CSS columns anywhere in this CSS. */
