/* --- 1. CSS RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  min-height: 100%;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #223A5E;
  background: #F6F6F6;
  font-size: 16px;
  line-height: 1.67;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #223A5E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #77C4D3;
  text-decoration: underline;
}
ul, ol {
  padding-left: 20px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', "Arial Rounded MT Bold", Arial, sans-serif;
  color: #223A5E;
  margin-bottom: 16px;  /* Artistic spacing */
}
h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

/* --- 2. CONTAINER & GLOBAL LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(34, 58, 94, 0.06), 0 1.5px 6px 0 #77c4d32b;
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 40px;
    padding: 30px 10px;
  }
}

/* --- 3. ARTISTIC COLORS & TYPOGRAPHY --- */
:root {
  --primary: #223A5E;
  --secondary: #77C4D3;
  --accent: #F6F6F6;
  --art-orange: #FAAF40;
  --art-magenta: #BD2A80;
  --art-purple: #5E417F;
  --art-cyan: #30D1B2;
}

/* --- 4. HEADER, NAVIGATION & MOBILE MENU --- */
header {
  background: var(--accent);
  border-bottom: 3px solid var(--secondary);
  box-shadow: 0 4px 10px rgba(34,58,94,0.04);
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.main-nav a {
  padding: 8px 4px 8px 4px;
  font-size: 1rem;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--art-magenta);
  background: var(--secondary);
}
.main-nav img {
  height: 50px;
  width: auto;
  margin-right: 18px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--art-magenta);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 14px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,58,94,0.11);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  background: linear-gradient(135deg, var(--secondary) 50%, var(--art-magenta) 100%);
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.77,.2,.05,1.0);
  padding: 40px 20px 20px 20px;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--art-magenta);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,58,94,0.11);
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 14px 24px;
  color: #fff;
  border-radius: 22px 22px 0 22px;
  background: rgba(34,58,94,0.14);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--art-orange);
  color: var(--primary);
}

/* --- 5. HERO & HEADLINE ARTISTIC STYLE --- */
.hero {
  background: linear-gradient(120deg, var(--secondary) 50%, var(--art-orange) 100%);
  margin-bottom: 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 16px 54px rgba(34,58,94,0.13);
  display: flex;
  align-items: center;
  min-height: 360px;
  padding-top: 32px;
}
.hero .container {
  flex: 1 1 auto;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
  padding: 24px 0 12px 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-family: 'Montserrat', cursive, sans-serif;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 10px #ffffff99;
}
.hero .subheadline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  color: var(--art-magenta);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

/* --- 6. BUTTONS (CTA) --- */
.cta-primary {
  background: var(--art-magenta);
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 28px 10px 28px 10px;
  padding: 16px 36px;
  box-shadow: 0 6px 30px rgba(93,33,128,0.13);
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 7px #ffffff52;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 34px rgba(34,58,94,0.18);
}

/* --- 7. FLEX LAYOUT PATTERNS --- */
.card-container, .service-card-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.card, .service-card {
  background: #fff;
  border-radius: 18px 38px 18px 38px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(34, 58, 94, 0.09), 0 0.5px 2px 0 #5e417f22;
  padding: 26px 26px 22px 26px;
  flex: 1 1 280px;
  min-width: 230px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  border-left: 4px solid var(--art-orange);
}
.card:hover,
.service-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 34px rgba(34,58,94,0.20);
  border-left: 5px solid var(--art-magenta);
}
.card h3, .service-card h3 {
  margin-bottom: 10px;
  color: var(--art-magenta);
  font-size: 1.22rem;
  font-family: 'Montserrat', cursive, sans-serif;
  font-weight: 700;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.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;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  min-width: 240px;
  max-width: 420px;
  margin-bottom: 20px;
  margin-top: 20px;
  background: linear-gradient(130deg, #fff 70%, #77C4D3 100%);
  border-radius: 24px 24px 60px 24px;
  box-shadow: 0 8px 30px rgb(34 58 94 / 10%);
  font-size: 1.12rem;
  color: #183148;
  border-left: 5px solid var(--art-magenta);
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  color: #223A5E;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.testimonial-card:hover {
  box-shadow: 0 12px 54px #bd2a8033;
}

.feature-item, .advantage-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.advantage-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.advantage-icon {
  background: var(--art-cyan);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 6px #30d1b264;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 56px;
  margin-bottom: 7px;
}
.advantage-icon img {
  width: 28px;
  height: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--primary);
}
.footer-contact img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
footer {
  background: linear-gradient(95deg, #223A5E 85%, #77C4D3 100%);
  color: #fff;
  padding: 40px 0 0 0;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
  box-shadow: 0 -6px 32px #223A5E10 inset;
}
footer a { color: #fff; font-weight: 600; }
footer a:hover,footer a:focus { color: var(--art-orange); }
footer small {
  display: block;
  text-align: right;
  color: #dde6f2;
  letter-spacing: 0.04em;
  font-size: 0.91rem;
  margin: 20px 0;
}

@media (max-width: 900px) {
  .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    align-items: flex-start;
  }
}

/* --- 8. FEATURE & BLOG LIST STYLES --- */
.feature-grid li,
ul li {
  margin-bottom: 14px;
  font-size: 1.08rem;
  color: #223A5E;
  background: #FFFFFFC8;
  border-radius: 9px 28px 9px 28px;
  padding: 14px 18px;
  box-shadow: 0 1px 5px #223a5e15;
}
.blog-list li,
ul li a strong {
  color: var(--art-magenta);
}

.blog-list li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  display: inline-block;
}

/* --- 9. TABLE DESIGN (Finanční nástroje page) --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px #77c4d328;
}
thead {
  background: var(--art-magenta);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}
th, td {
  text-align: left;
  padding: 13px 18px;
  font-size: 1rem;
}
th {
  font-weight: 700;
  letter-spacing: 0.02em;
}
tr {
  border-bottom: 1px solid #dde3eb;
}
tbody tr:nth-child(even) {
  background: #f6f6f7;
}

/* --- 10. ARTISTIC MICRO-INTERACTIONS --- */
.card, .service-card, .footer-contact, .testimonial-card {
  transition: box-shadow .16s, transform .13s;
}
a, .cta-primary {
  transition: color 0.15s, box-shadow 0.18s, background 0.18s, transform 0.18s;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 16px 38px #5e417f1d;
}

/* --- 11. RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.09rem; }
  .section {
    padding: 22px 6px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-container, .service-card-grid, .feature-grid {
    gap: 14px;
  }
  .card, .service-card {
    min-width: 140px;
    padding: 18px 10px;
    margin-bottom: 12px;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  .hero {
    min-height: 190px;
    border-radius: 0 0 28px 28px;
    padding-top: 12px;
  }
}
@media (max-width: 490px) {
  .hero .content-wrapper {
    padding: 5px 0;
  }
}

/* --- 12. COOKIE CONSENT BANNER & MODAL --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
  background: linear-gradient(95deg,#ffecd2 70%,var(--secondary) 100%);
  color: #223A5E;
  box-shadow: 0 -2px 14px #223a5e13;
  padding: 24px 34px 24px 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  border-radius: 25px 25px 0 0;
  animation: banner-slide-up 0.4s cubic-bezier(.77,.2,.05,1.0);
}
@keyframes banner-slide-up {
  0% { transform: translateY(120%); }
  100% { transform: translateY(0); }
}
#cookie-banner p {
  flex: 1 1 160px;
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial,sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 2px 12px #77c4d334;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.cookie-btn.accept {
  background: var(--art-magenta);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--art-orange);
  color: var(--primary);
  transform: scale(1.055);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 12000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,58,94,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.19s ease-in;
}
@keyframes fadein { 0% { opacity:0; } 100% { opacity:1; } }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 56px #5e417f18;
  padding: 32px 30px;
  min-width: 320px;
  max-width: 94vw;
  font-family: 'Roboto', sans-serif;
  color: #223A5E;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop-in 0.25s cubic-bezier(.77,.2,.05,1.0);
}
@keyframes modal-pop-in {
  0% { transform: scale(0.89); opacity:0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #dde6f2;
  border-radius: 10px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 8px;
}
.cookie-toggle:checked {
  background: var(--art-magenta);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 1px;
  left: 1px;
  transition: left 0.18s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  min-width: 98px;
}

@media (max-width: 570px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 8px 18px 12px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 18px 10px;
    min-width: 92vw;
  }
}

/* --- 13. MISC --- */
::-webkit-input-placeholder { color: #bd2a8077; }
::-moz-placeholder { color: #bd2a8077; }
:-ms-input-placeholder { color: #bd2a8077; }
::placeholder { color: #bd2a8077; }

hr {
  border: none;
  height: 1px;
  background: #77c4d355;
  margin: 24px 0;
}

/* --- 14. FURTHER ACCESSIBILITY & SPACING --- */
.container > * + *,
.content-wrapper > * + * {
  margin-top: 18px;
}

@media (max-width: 540px) {
  h1, h2, h3, h4 { word-break: break-word; }
  .footer-contact p {
    font-size: 0.91rem;
  }
}
.contact-details img {
  width: 50px;
}

.footer-contact p {
  color: #dde6f2;
}
/* --- END --- */
