/* RESET & BASE ---------------------- */
html, body { box-sizing: border-box; height: 100%; margin: 0; padding: 0; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul, ol { margin: 0 0 1.4em 1.3em; padding: 0; }
ul li, ol li { margin-bottom: 0.5em; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #205375;
  margin: 0 0 22px 0;
  line-height: 1.2;
}
h1 { font-size: 2.3rem; margin-bottom: 26px; }
h2 { font-size: 1.7rem; margin-bottom: 20px; }
h3 { font-size: 1.18rem; margin-bottom: 16px; font-weight: 500; }
h4 { font-size: 1.05rem; margin-bottom: 12px; font-weight: 500; }
p { margin-bottom: 18px; }
a { color: #205375; text-decoration: none; transition: color 0.15s; }
a:hover, a:focus { color: #3AB29E; text-decoration: underline; outline: none; }
strong, b { font-weight: 600; }
hr { border: none; border-top: 1px solid #E3E6E8; margin: 32px 0; }

/* LAYOUT: CONTAINER & ROWS ----------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(32, 83, 117, 0.03);
}

/* CARDS & FLEX PATTERNS -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(32,83,117,.06);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px 20px 20px 20px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(58,178,158,.09);
}

.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: 20px;
  }
}


/* FEATURE ITEM ----------------------- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}


/* TESTIMONIAL CARD ------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F7F7F7;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(58,178,158,0.06);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.04rem;
}
.testimonial-card strong { color: #205375; font-weight: 600; margin-left: auto; font-size: 0.99rem; }

@media (max-width: 480px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* CORE NAVIGATION & HEADER ----------- */
header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #205375;
  padding: 8px 0;
  position: relative;
  transition: color 0.18s;
  font-size: 1.01rem;
}
header nav a:hover,
header nav a:focus {
  color: #3AB29E;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  background: #3AB29E;
  color: #fff !important;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1rem;
  margin-left: 18px;
  box-shadow: 0 2px 8px 0 rgba(58,178,158,0.08);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #257e6c;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(58,178,158,0.15);
  outline: none;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #205375;
  cursor: pointer;
  padding: 6px 12px;
  transition: background 0.14s;
  border-radius: 8px;
  z-index: 105;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F7F7F7;
  color: #257e6c;
}

/* MOBILE MENU ------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100%;
  background: rgba(32, 83, 117, 0.96);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.6,0,.33,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 38px;
  padding-bottom: 38px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.0rem;
  align-self: flex-end;
  margin-right: 24px;
  margin-bottom: 16px;
  cursor: pointer;
  z-index: 2010;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #3AB29E;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  padding-left: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  font-weight: 500;
  padding: 10px 4px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  text-align: left;
  min-width: 90px;
  margin-right: 8px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #3AB29E;
  color: #fff;
}
@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
    visibility: hidden !important;
  }
}

/* MAIN & CORE SECTIONS --------------- */
main {
  margin-top: 0;
  margin-bottom: 80px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 500px) {
  section {
    padding: 28px 6px;
    margin-bottom: 48px;
  }
}

/* SERVICE LIST (used as cards) -------- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-item {
  flex: 1 1 230px;
  min-width: 200px;
  background: #F7F7F7;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(58,178,158,0.06);
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.18s, transform 0.13s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 5px 16px 0 rgba(32,83,117,0.09);
  transform: translateY(-2px);
}
.service-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #205375;
}
.service-item .price {
  margin-top: auto;
  color: #3AB29E;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01rem;
}

/* FAQ-LIST --------------------------- */
.faq-list h3 {
  font-size: 1.07rem;
  color: #205375;
  margin-bottom: 7px;
}
.faq-list p {
  margin-bottom: 18px;
  margin-left: 8px;
}

/* TABLES (Aplikace page) -------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 32px 0;
  font-size: 0.97rem;
}
thead {
  background: #F7F7F7;
}
th, td {
  padding: 13px 11px;
  border-bottom: 1px solid #e4e4ea;
  text-align: left;
}
th { color: #205375; font-family: 'Montserrat',Arial,Helvetica,sans-serif; font-weight: 600; }
td { color: #222; font-family: 'Open Sans',sans-serif; }
tr:last-child td { border-bottom: none; }

/* CONTACT DETAILS --------------------- */
.contact-details {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.01rem;
}
.contact-details img {
  margin-right: 8px;
  vertical-align: middle;
  width: 19px; height: 19px;
}
.contact-details a {
  color: #3AB29E;
  font-weight: 500;
}

/* BUTTONS & LINKS --------------------- */
button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  background: #3AB29E;
  color: #fff;
  padding: 11px 24px;
  font-size: 1rem;
  transition: background 0.16s, box-shadow 0.16s;
}
button:focus, .button:focus { outline: 2px solid #3AB29E; }
button:hover, .button:hover, button:active {
  background: #257e6c;
}

/* LEGAL / FOOTER ---------------------- */
footer {
  background: #F7F7F7;
  color: #9ba2ae;
  font-size: 1rem;
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: 1px solid #e9ecef;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  justify-content: flex-start;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-nav img {
  width: 108px; height: auto;
  margin-right: 18px;
}
.footer-nav nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav nav a {
  color: #205375;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-nav nav a:hover,
.footer-nav nav a:focus { color: #3AB29E; }
.footer-info {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.legal-links a {
  color: #205375;
  font-size: 0.98rem;
  transition: color 0.14s;
}
.legal-links a:hover { color: #3AB29E; }
.footer-copy {
  text-align: left;
  font-size: 0.97rem;
  color: #787D86;
  margin-top: 14px;
  padding-bottom: 4px;
}
@media (max-width: 940px) {
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-info { flex-direction: column; gap: 18px; }
}

/* --- SPACING & FLEX PATTERN OVERRIDES FOR MOBILE --- */
@media (max-width: 800px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .service-list, .card-container, .content-grid { flex-direction: column; gap: 20px; }
}

/* --- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.99);
  border-top: 1px solid #e3e6e8;
  box-shadow: 0 -4px 18px 0 rgba(32,83,117,0.07);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 16px 24px 16px;
  font-size: 1.04rem;
  animation: fadeInBanner 0.55s cubic-bezier(.6,0,.33,1) 0.18s both;
}
.cookie-banner__text {
  color: #222;
  max-width: 480px;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  min-width: 128px;
  font-size: 1rem;
  border-radius: 20px;
}
.cookie-banner .button--secondary {
  background: #F7F7F7;
  color: #205375;
  border: 1px solid #ccc;
}
.cookie-banner .button--secondary:hover { background: #e3e6e8; }
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(80px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* COOKIE SETTINGS MODAL ------------- */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(32,83,117,.38);
  display: flex; align-items: center; justify-content: center;
  z-index: 2200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 97%;
  padding: 32px 22px;
  box-shadow: 0 7px 32px 0 rgba(32,83,117,0.16);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: modalPopIn 0.3s cubic-bezier(.62,0,.25,1.02);
}
@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(60px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  color: #205375;
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.04rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: #3AB29E;
}
.cookie-category--essential input[type="checkbox"],
.cookie-category--essential label::after {
  content: '';
  display: none;
}
.cookie-category--essential label {
  opacity: 0.55;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none;
  border: none;
  color: #205375;
  font-size: 1.65rem;
  cursor: pointer;
  border-radius: 7px;
  padding: 3px 9px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F7F7F7;
  color: #3AB29E;
}
@media (max-width: 520px) {
  .cookie-modal { padding: 19px 6px; }
}

/* MICRO-ANIMATIONS ------------------- */
.card, .service-item, .testimonial-card, .cta-btn, .button {
  transition: box-shadow 0.2s, background 0.17s, transform 0.12s; }
.card:active, .service-item:active,
.cta-btn:active, button:active {
  transform: scale(0.98);
}

/* SPACING UTILS ---------------------- */
.mt-0   { margin-top: 0 !important; }
.mt-24  { margin-top: 24px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px !important; }
.mb-32  { margin-bottom: 32px !important; }
.mb-60  { margin-bottom: 60px; }

/* RESPONSIVE TYPOGRAPHY -------------- */
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1.01rem; }
  .cta-btn, button, .button { font-size: 0.98rem; padding: 10px 22px; }
  .service-item, .card, .testimonial-card, section, .content-wrapper { padding-left: 9px; padding-right: 9px; }
}

/* MISC. ------------------------------ */
::-webkit-scrollbar { width: 9px; background: #F7F7F7; }
::-webkit-scrollbar-thumb { background: #e3e6e8; border-radius: 7px; }
::selection { background: #3AB29E; color: #fff; }

/* Hide default number spinner */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* Utility: visually hidden (for a11y) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
