/* =========================
   Scandinavian Clean UI – Investuj Chytře
   Modern Flexbox Responsive CSS (NO CSS GRID!)
   ========================= */

/*--- CSS RESET & BASE ----*/
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #212D35;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #EDF0F5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: #123465;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #309668;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
li + li {
  margin-top: 8px;
}
hr {
  border: none;
  border-top: 1px solid #e3e7ee;
  margin: 32px 0;
}

/* Typography Scale */
h1, .h1 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #123465;
  line-height: 1.15;
  letter-spacing: 0.5px;
}
h2, .h2 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: #123465;
  letter-spacing: 0.3px;
}
h3, .h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #1d6c45;
}
h4, .h4 {
  font-size: 1.125rem;
  font-family: 'Roboto Slab', Georgia, serif;
  margin-bottom: 7px;
  font-weight: 400;
}
p, .hero-sub, .thankyou-message, .next-steps {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #27394b;
}
.hero-sub, .thankyou-message {
  font-size: 1.15rem;
  color: #123465;
}
blockquote {
  font-style: italic;
  color: #123465;
  margin-bottom: 12px;
  border-left: 4px solid #309668;
  padding-left: 16px;
  background: #F5F8FA;
  border-radius: 6px;
  font-size: 1.05rem;
}

/*--- LAYOUT: CONTAINER & SECTION ---*/
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(18,52,101,0.03);
}
.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;
}

/*--- HEADER / NAVIGATION ---*/
header {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(21,41,80,0.06);
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  min-height: 80px;
  gap: 0;
  justify-content: space-between;
}
.brand-logo {
  margin-right: 20px;
  display: flex;
  align-items: center;
}
.brand-logo img {
  max-height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #123465;
  background: none;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background 0.16s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EDF0F5;
  color: #309668;
}
.cta-btn {
  font-family: 'Roboto Slab', serif;
  font-size: 1.07rem;
  padding: 10px 30px;
  border-radius: 22px;
  background: #309668;
  color: #fff;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 1px 5px rgba(18,52,101,0.05);
  border: none;
  cursor: pointer;
  margin-left: 26px;
  transition: background 0.15s, box-shadow 0.2s, transform 0.11s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1d6c45;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 13px rgba(33,89,60,0.11), 0 1px 8px rgba(18,52,101,0.04);
}

/* Burger menu button -- shown only mobile */
.mobile-menu-toggle {
  display: none;
  background: #EDF0F5;
  border: none;
  color: #123465;
  font-size: 2.1rem;
  padding: 7px 12px 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
  z-index: 121;
}
.mobile-menu-toggle:hover {
  background: #D9E3ED;
  color: #309668;
}

/*--- MOBILE NAVIGATION (SLIDE-IN) ---*/
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: auto;
  width: 88vw;
  max-width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 18px rgba(18,52,101,0.09);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 34px 26px 26px 26px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.74,.06,.41,.93), opacity 0.17s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #123465;
  font-size: 2.1rem;
  padding: 8px 8px 8px 2px;
  border-radius: 6px;
  position: absolute;
  top: 18px; right: 16px;
  cursor: pointer;
  z-index: 999999;
  transition: background 0.14s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EDF0F5;
  color: #309668;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.mobile-nav a {
  font-size: 1.11rem;
  color: #243761;
  padding: 10px 6px;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.13s, color 0.13s;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #EDF0F5;
  color: #309668;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 7px;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 9px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  header .container {
    max-width: 95vw;
    padding-left: 8px; padding-right: 8px;
  }
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
}

@media (max-width: 800px) {
  .main-nav {
    gap: 2px;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 950px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 19px;
  }
  .cta-btn {
    margin-left: 10px;
    font-size: 1.02rem;
    padding: 9px 14px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    gap: 0;
  }
}

@media (max-width: 510px) {
  .brand-logo img {
    max-height: 34px;
  }
  .mobile-menu {
    width: 99vw;
    max-width: 99vw;
    padding-left: 6vw;
    padding-right: 4vw;
  }
  .mobile-menu-close {
    top: 12px; right: 8px;
  }
}

/*--- GENERAL SECTION, GAPS, CARDS, FEATURES ---*/
.feature-grid, .value-grid, .review-cards, .services-list, .services-highlights, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature, .service-item, .review-card, .value {
  background: #F5F8FA;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(22,54,95,0.06);
  padding: 26px 22px 20px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  transition: box-shadow 0.13s, transform 0.13s, background 0.18s;
  border: 1px solid #e3e7ee;
}
.feature:hover, .service-item:hover, .review-card:hover, .value:hover {
  box-shadow: 0 4px 22px rgba(18,52,101,0.08);
  background: #EDF0F5;
  transform: translateY(-2px) scale(1.02);
}
.feature img, .value img {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(18,52,101,0.07);
  object-fit: contain;
}

.services-list {
  list-style: none;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  margin-bottom: 18px;
}
.services-list li {
  background: #F5F8FA;
  border-radius: 12px;
  padding: 17px 20px;
  font-size: 1rem;
  color: #212d35;
  margin-bottom: 12px;
}
.services-list strong {
  color: #1d6c45;
  font-weight: 600;
  font-family: 'Roboto Slab', serif;
}
.services-highlights {
  list-style: disc;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}

.service-item span {
  color: #4965a9;
  font-size: 1rem;
}

.value-propositions {
  padding-left: 1.25em;
  margin: 15px 0 0 0;
  font-size: 1rem;
  color: #27394b;
}
.value-propositions li {
  margin-bottom: 4px;
}

.tips {
  background: #f3f8f5;
  border-radius: 12px;
  padding: 14px 20px 6px 20px;
  font-size: 1rem;
  color: #236c3b;
  margin-top: 6px;
}

.step-list {
  margin: 0 0 10px 0;
  padding-left: 1.2em;
  font-size: 1rem;
  color: #1d6c45;
}

/*--- FAQ / BLOCK CARDS ---*/
.faq-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.faq-item {
  background: #F5F8FA;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(22,54,95,0.05);
  padding: 18px 22px 14px;
  flex: 1 1 380px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.12s;
  border: 1px solid #e3e7ee;
}
.faq-item:hover {
  box-shadow: 0 4px 14px rgba(18,52,101,0.07);
}
.faq-item h3 {
  color: #123465;
  font-size: 1.09rem;
}
.faq-item p {
  margin-top: 7px;
  font-size: 1rem;
  color: #27394b;
}

/*--- TABLE (COMPARISON) ---*/
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 9px rgba(18,52,101,0.03);
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.97rem;
}
.comparison-table th, .comparison-table td {
  padding: 14px 15px;
  text-align: left;
}
.comparison-table thead {
  background: #EDF0F5;
  color: #123465;
  font-weight: 700;
}
.comparison-table tbody tr {
  border-bottom: 1px solid #e5eaf3;
  background: #fff;
}
.comparison-table tbody tr:hover {
  background: #f7fafb;
}
.comparison-table td {
  color: #27394b;
}
.comparison-table tr:last-child {
  border-bottom: none;
}

/*--- TESTIMONIALS & REVIEWS ---*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(33,36,52,0.09);
  margin-bottom: 20px;
  border: 1px solid #e3e7ee;
  transition: box-shadow 0.13s, transform 0.12s;
  color: #123465;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  padding-left: 0;
  background: none;
  border-radius: 0;
  border-left: 3px solid #309668;
  color: #123465;
  font-style: italic;
  font-size: 1.07rem;
  margin-right: 20px;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #27394b;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(18,52,101,0.13);
  transform: scale(1.016);
}

.review-card {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(33,36,52,0.07);
  padding: 22px 20px 16px 20px;
  margin-bottom: 20px;
  min-width: 230px;
  color: #123465;
  transition: box-shadow 0.13s, transform 0.1s;
}
.review-card:hover {
  box-shadow: 0 8px 24px rgba(18,52,101,0.13);
  transform: translateY(-2px) scale(1.01);
}
.star-rating {
  color: #309668;
  font-size: 1.25rem;
  display: inline-block;
  margin: 7px 0 5px 0;
  letter-spacing: 1.5px;
}
.review-author {
  color: #495973;
  font-weight: 500;
  font-size: 1.03rem;
}

/*--- MISC & UTILS ---*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(20,41,70,0.06);
  background: #fff;
  padding: 22px 20px 16px 20px;
  transition: box-shadow 0.13s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(18,52,101,0.10);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

/***** CTA SECTION *****/
section .cta-btn {
  margin-top: 8px;
  align-self: flex-start;
}

/********* FOOTER ********/
footer {
  background: #123465;
  color: #E4EEF9;
  padding: 44px 0 34px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
.footer-brand img {
  width: 48px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #EDF0F5;
  font-size: 1rem;
  transition: color 0.13s;
  margin-bottom: 3px;
}
.footer-nav a:hover {
  color: #309668;
}
.footer-contact {
  font-size: 1rem;
  color: #e4eef9;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-contact p{
  color: #EDF0F5;
}
/****** THANK YOU BLOCK *****/
.thankyou-message {
  font-size: 1.18rem;
  color: #1d6c45;
}
.next-steps a {
  color: #309668;
  font-weight: 500;
  text-decoration: underline;
}

/*--- RESPONSIVE LAYOUTS ---*/
@media (max-width: 991px) {
  .feature-grid, .value-grid, .faq-items, .review-cards, .card-container, .footer .container {
    flex-direction: column;
    gap: 20px;
  }
  .footer .container {
    gap: 30px;
  }
}
@media (max-width: 768px) {
  .container, .section {
    max-width: 98vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .content-grid, .feature-grid, .value-grid, .faq-items, .card-container, .review-cards {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 15px;
  }
  .footer-nav {
    flex-direction: column;
  }
  .footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
}

/******** Micro-interactions & Shadows ********/
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
  transition: box-shadow 0.17s, background 0.14s, color 0.12s, transform 0.11s;
}
button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #1d6c45;
  box-shadow: 0 0 0 2px #B1E3C2;
}

/********** COOKIE CONSENT BANNER **********/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #212D35;
  box-shadow: 0 -2px 16px rgba(18,52,101,0.13);
  border-top: 1px solid #e3e7ee;
  display: flex;
  align-items: center;
  padding: 20px 30px 18px 30px;
  z-index: 4000;
  flex-wrap: wrap;
  gap: 22px;
  transition: transform 0.38s cubic-bezier(.56,.04,.51,.87), opacity 0.18s;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__text {
  flex: 1 1 220px;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  margin-right: 7px;
  cursor: pointer;
  color: #fff;
  background: #309668;
  min-width: 134px;
  transition: background 0.16s, color 0.13s, box-shadow 0.12s;
}
.cookie-btn.reject {
  background: #123465;
}
.cookie-btn.settings {
  background: #EDF0F5;
  color: #123465;
  border: 1px solid #123465;
}
.cookie-btn:hover {
  filter: brightness(0.91);
  box-shadow: 0 2px 10px rgba(22,100,55,0.09);
}

/******** COOKIE MODAL ********/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,45,90,0.36);
  z-index: 4400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(18,52,101,0.18);
  min-width: 90vw;
  max-width: 370px;
  padding: 28px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #1c273f;
  animation: fadeInUp 0.37s cubic-bezier(.71,.06,.27,1.07);
  position: relative;
}
@keyframes fadeInUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  right: 16px;
  top: 13px;
  border: none;
  background: none;
  color: #123465;
  font-size: 1.7rem;
  border-radius: 7px;
  cursor: pointer;
  padding: 5px 9px 6px 6px;
}
.cookie-modal__close:hover {
  background: #EDF0F5;
  color: #309668;
}
.cookie-modal__title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.27rem;
  font-weight: 600;
  color: #123465;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  border-bottom: 1px solid #e3e7ee;
  padding-bottom: 11px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.cookie-category__label {
  font-weight: 500;
  color: #1d6c45;
  font-size: 1.05rem;
}
.cookie-switch {
  position: relative;
  width: 46px; height: 24px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 46px; height: 24px;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
}
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #EDF0F5;
  border-radius: 16px;
  transition: background 0.17s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: #309668;
}
.cookie-switch-slider:before {
  position: absolute;
  content: "";
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
  box-shadow: 0 2px 6px rgba(18,52,101,0.11);
}
.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(22px);
}
.cookie-category__essential {
  color: #636d85;
  font-size: 0.98rem;
}
.cookie-category__essential strong {
  color: #123465;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 9px;
}

/********** ACCESSIBILITY / SCANDINAVIAN DETAILING **********/
::-webkit-input-placeholder { color: #a7b1c4; }
:-ms-input-placeholder { color: #a7b1c4; }
::placeholder { color: #a7b1c4; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}
input, textarea, select {
  border-radius: 8px;
  border: 1px solid #CED8E7;
  background: #F5F8FA;
  padding: 10px 12px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1d6c45;
  background: #EDF0F5;
}

/****** MISC (MAP, CONTACT) ******/
.contact-information {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: #274267;
  margin-bottom: 10px;
}
.contact-information img {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
.map-location {
  font-size: 1rem;
  color: #1d6c45;
  margin-bottom: 8px;
}

/***** PRINT / MISC OVERRIDES *****/
@media print {
  * { color: #212d35 !important; background: #fff !important; }
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, header, footer { display: none !important; }
  .section, .container { box-shadow: none !important; border-radius: 0 !important; }
}
