/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F6FAF6;
  color: #19412c;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #176B37;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D9A539;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
}
li + li {
  margin-top: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #176B37;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem;   }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem;  }
p, ul, ol {
  font-size: 1.12rem;
  color: #286147;
  margin-bottom: 1em;
}
strong, b {
  font-weight: 700;
  color: #176B37;
}
small {
  font-size: 0.88em;
  color: #999;
}
blockquote {
  font-style: italic;
  color: #176B37;
  margin: 12px 0 8px 0;
  border-left: 3px solid #BAE2C4;
  padding-left: 12px;
}
pre, code {
  font-family: 'Fira Mono', monospace;
  background: #F0F4FC;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.97em;
}

/* === LAYOUT CONTAINERS & SPACING === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 6px 36px 0 rgba(183, 216, 179,0.10);
  padding: 36px 24px 36px 24px;
  margin-bottom: 28px;
  gap: 20px;
}
.section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.text-section {
  padding: 16px 0;
}
.map-snippet {
  background: #E4F8E9;
  border-radius: 1.2em;
  padding: 18px 24px;
  font-weight: 700;
  color: #176B37;
  margin-top: 20px;
  box-shadow: 0 2px 12px 0 rgba(170,200,176,0.11);
}

/* === HEADER & NAVIGATION === */
header {
  background: linear-gradient(90deg,#e3f0ea 0%, #fdf3f7 100%);
  box-shadow: 0 4px 22px -10px #C5DDCA80;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 500;
  color: #176B37;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  background: #e1ffe5;
  color: #ab7e19;
}
header img[alt="Vitalní Start"] {
  height: 42px;
  width: auto;
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fcecbb;
  color: #176B37;
  border-radius: 23px;
  padding: 11px 32px;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-left: 18px;
  border: none;
  box-shadow: 0 3px 12px 0 rgba(217, 165, 57, 0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFEFD7;
  color: #ab7e19;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 18px 0 rgba(217,165,57,0.12);
  outline: none;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: #fcecbb;
  color: #176B37;
  border: none;
  font-size: 2rem;
  border-radius: 14px;
  padding: 4px 14px 2px 14px;
  box-shadow: 0 3px 11px 0 #ECECEC29;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s;
  z-index: 500;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffecc6;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,250,255,0.97);
  box-shadow: 0 0 40px 0 rgba(130,160,120,0.10);
  transform: translateX(-105vw);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.7,0.1,0.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: #176B37;
  margin: 20px 25px 10px 0;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ab7e19;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #176B37;
  padding: 14px 36px;
  border-radius: 22px;
  background: none;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e1ffe5;
  color: #ab7e19;
}

@media (max-width: 1040px) {
  .container {
    padding: 0 11px;
  }
  .content-wrapper {
    padding: 28px 8px 28px 8px;
  }
}

@media (max-width: 900px) {
  header .container, .container {
    padding: 12px 6px;
  }
}

@media (max-width: 840px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* === MAIN CONTENT & SECTIONS === */
main {
  width: 100%;
  min-height: 70vh;
  flex: 1 1 auto;
  background: transparent;
}
.services-list, .blog-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 20px 0;
  width: 100%;
}
.services-list > div, .blog-list article {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 320px;
  background: #f6faff;
  border-radius: 22px;
  box-shadow: 0 4px 18px 0 rgba(176,210,180,0.09);
  padding: 28px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.services-list > div:hover, .blog-list article:hover {
  box-shadow: 0 8px 32px 0 rgba(150,180,156,0.20);
  transform: translateY(-4px) scale(1.03);
}
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13em;
  color: #ab7e19;
  background: #FFF7E0;
  border-radius: 1em;
  padding: 6px 18px;
  font-weight: 600;
  align-self: flex-end;
  margin-top: 12px;
}

/* === LISTS, FEATURES === */
ul {
  margin-bottom: 14px;
}
ul li, .feature-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.03em;
  margin-bottom: 8px;
  line-height: 1.5;
}
ul li img {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  margin-right: 4px;
  background: #e6fdee;
  box-shadow: 0 2px 10px 0 #d6eee699;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 5px 26px 0 rgba(177,197,191,0.14);
  width: 100%;
  max-width: 560px;
  min-width: 0;
  border-left: 6px solid #CFF4D2;
  transition: box-shadow 0.23s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px 0 rgba(183,216,179,0.13);
}
.testimonial-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #F4FDED;
  margin-right: 14px;
}
.testimonial-card blockquote {
  color: #176B37;
  font-size: 1.07rem;
  margin-bottom: 3px;
  border-left: 4px solid #BAE2C4;
  padding-left: 12px;
}
.testimonial-card strong {
  color: #246d3b;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 7px;
  display: block;
}
.testimonial-card span {
  color: #F9B800;
  font-size: 1.07rem;
}

/* === BLOG ARTICLES === */
.blog-list {
  gap: 24px;
}
.blog-list article {
  border-left: 5px solid #E4EAFE;
  background: #f9fafe;
  color: #125d2b;
}
.blog-list h3 {
  margin: 0 0 10px 0;
  font-size: 1.09rem;
}
.blog-list article a {
  font-weight: 600;
  color: #ab7e19;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 10px;
  display: inline-block;
  text-decoration: underline dotted #ab7e19;
  transition: color 0.16s, text-decoration-color 0.16s;
}
.blog-list article a:hover {
  color: #176B37;
  text-decoration-color: #176B37;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg,#fdf3f7 0%, #e3f0ea 100%);
  padding: 40px 0 18px 0;
  border-top-left-radius: 42px;
  border-top-right-radius: 42px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  background: none;
  color: #176B37;
  border-radius: 8px;
  padding: 9px 18px;
  transition: background 0.18s, color 0.18s;
}
.footer-info {
  color: #6c9280;
  font-size: 0.97rem;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFAF1;
  border-top: 2px solid #FAE8B0;
  box-shadow: 0 -6px 30px 0 #e0c29e24;
  color: #176B37;
  z-index: 21000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 6vw;
  font-size: 1rem;
  width: 100vw;
  animation: cookieFadeIn 0.9s ease;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner button, #cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 17px;
  background: #FFF6D8;
  color: #176B37;
  border: none;
  border-radius: 16px;
  padding: 9px 19px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s, transform 0.13s;
  box-shadow: 0 2px 8px 0 #e1e1d111;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: #FCECBB;
  color: #ab7e19;
  transform: translateY(-1px) scale(1.02);
  outline: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

/* ---- Cookie Preferences Modal ---- */
#cookie-modal, .cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  min-width: 312px;
  max-width: 98vw;
  width: 420px;
  z-index: 23000;
  background: #fbfff3;
  border-radius: 24px;
  box-shadow: 0 10px 40px 0 rgba(154,202,110,0.24);
  display: none;
  flex-direction: column;
  padding: 38px 26px 32px 26px;
  gap: 22px;
  animation: cookieModalAnim 0.35s cubic-bezier(0.8, 0.4, 0.2, 1);
}
.cookie-modal.open, #cookie-modal.open {
  display: flex;
  animation: cookieModalAnim 0.35s cubic-bezier(0.8, 0.4, 0.2, 1);
}
@keyframes cookieModalAnim {
  from { opacity: 0; transform: translate(-50%,-42%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3, #cookie-modal h3 {
  font-size: 1.19rem;
  color: #176B37;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 26px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 11px 8px;
  background: #F7FDE7;
  border-radius: 12px;
  font-size: 1.03em;
  font-weight: 500;
}
.cookie-category[aria-disabled="true"],
.cookie-category .cookie-switch[disabled] {
  opacity: 0.7;
  pointer-events: none;
}
.cookie-switch {
  width: 38px;
  height: 20px;
  border-radius: 12px;
  background: #ececec;
  position: relative;
  appearance: none;
  outline: none;
  margin-left: 15px;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #b6eac1;
}
.cookie-switch::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #176B37;
  position: absolute;
  left: 0;
  top: 1px;
  box-shadow: 0 0 7px 0 #b6eac111;
  transition: left 0.13s, background 0.15s;
}
.cookie-switch:checked::-webkit-slider-thumb {
  background: #D9A539;
}
.cookie-switch::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #176B37;
  box-shadow: 0 0 7px #b6eac111;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 18px;
  flex-direction: row;
}

/* === SPACING & FLEXBOX LAYOUTS === */
.card-container, .features, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(176,210,180,0.09);
  background: #F7FAFC;
  padding: 30px 20px;
  flex: 1 1 260px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* === RESPONSIVE ADAPTATION (MOBILE FIRST) === */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  .content-wrapper, .services-list > div, .blog-list article, .testimonial-card, .card {
    padding: 18px 7px 18px 13px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px 0 rgba(180,200,180,0.09);
    min-width: 0;
  }
  .section {
    padding: 18px 4px;
    margin-bottom: 28px;
  }
  .services-list, .blog-list, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 7vw 18px 7vw;
    font-size: 0.95rem;
  }
  #cookie-modal, .cookie-modal {
    min-width: 99vw;
    width: 97vw;
    max-width: 99vw;
    padding: 24px 7px 20px 11px;
  }
}
@media (max-width: 510px) {
  h1 {
    font-size: 1.13rem;
  }
  h2 {
    font-size: 1.01rem;
  }
  main {
    min-height: 55vh;
  }
  .content-wrapper {
    padding: 12px 2px 12px 7px;
    border-radius: 9px;
  }
  .testimonial-card {
    padding: 12px 4px;
    border-left: 3px solid #CFF4D2;
  }
  .services-list > div, .blog-list article {
    min-width: 95vw;
    max-width: 99vw;
    padding: 12px 6px 14px 6px;
  }
  .blog-list {
    gap: 10px;
  }
  #cookie-banner, .cookie-banner {
    font-size: 0.89rem;
    padding: 12px 1vw 13px 1vw;
    gap: 6px;
  }
}

/* === FORMS, DL, DT, DD overrides === */
dl {
  margin-bottom: 18px;
}
dt {
  font-weight: 600;
  color: #176B37;
  margin-top: 10px;
}
dd {
  margin-left: 16px;
  color: #217144;
  margin-bottom: 4px;
}

/* === DREAMY PASTEL ELEMENTS === */
body {
  background: linear-gradient(140deg,#F4FCF8 80%,#F5F6FB 100%);
}
.section {
  background: linear-gradient(100deg,#f4fbe2 75%,#f5f4fc 100%);
  border-radius: 32px;
  box-shadow: 0 6px 30px 0 rgba(190,225,195,0.09);
}
.content-wrapper {
  background: #fafdf7;
}

/* === MICROINTERACTIONS === */
a, .cta-btn, button, .cookie-banner button {
  transition: background 0.19s, color 0.22s, box-shadow 0.22s, transform 0.19s, border-color 0.12s;
}
.services-list > div, .blog-list article, .testimonial-card, .card {
  transition: box-shadow 0.23s, transform 0.2s;
}

/* === HIDE MOBILE MENU BY DEFAULT, SHOW WHEN OPEN === */
.mobile-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* === ACCESSIBLE FOCUS STATES === */
a:focus, .cta-btn:focus, button:focus,
.mobile-menu-close:focus, .mobile-menu-toggle:focus, .mobile-nav a:focus {
  outline: 2px dashed #D9A539;
  outline-offset: 2px;
}

/* === HIDE SCROLL ON BODY WHEN MENU OPEN === */
body.menu-open {
  overflow: hidden;
}

/* === UTILITIES === */
.hide {
  display: none !important;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-20 {
  gap: 20px;
}

/* === PASTEL SHADOWS & BORDERS === */
hr {
  border: 0;
  border-top: 1px solid #e1fce6;
  margin: 24px 0;
}

/* === CUSTOM FONTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
