/* ====================================================== */
/*                    CSS RESET & NORMALIZE               */
/* ====================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #FAF9F6;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #30525D;
  background: #F8FAFB;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
a {
  color: #23506B;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #A4BFA7;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.3em;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
:focus {
  outline: 2px solid #A4BFA7;
  outline-offset: 2px;
}

/* ====================================================== */
/*      COLOR VARIABLES + SOFT PASTEL PALETTE BASE        */
/* ====================================================== */
:root {
  --primary: #23506B;
  --primary-tint: #3582A6;
  --secondary: #A4BFA7;
  --accent: #F2EBDF;
  --bg-soft: #FAF9F6;
  --bg-card: #FFFDF8;
  --pastel-pink: #F3D8E9;
  --pastel-blue: #C7E1F5;
  --pastel-lavender: #E6DEFB;
  --pastel-mint: #E1F7EC;
  --pastel-peach: #FFE9D6;
  --text: #30525D;
  --text-dark: #21415C;
  --text-accent: #7A8D9C;
  --shadow: 0 4px 24px rgba(32,94,145,0.08), 0 1.5px 4px rgba(82,108,130,0.03);
  --radius: 16px;
  --transition: 0.23s cubic-bezier(.34,1.56,.64,1);
}

/* ====================================================== */
/*                TYPOGRAPHY - SOFT FONTS                */
/* ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(235,251,255,0.2);
}
h1 { font-size: 2.375rem; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.18rem; margin-bottom: 14px; }
h4 { font-size: 1.08rem; margin-bottom: 10px; }
p, ul, ol, li, .text-section {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
}
.subtitle {
  color: var(--text-accent);
  font-size: 1.17rem;
  font-weight: 500;
  margin-bottom: 28px;
}
strong, b { font-weight: 700; }

/* Headings Gradients (optional for dreamy effect) */
h1, h2 {
  background: linear-gradient(100deg, var(--primary), var(--secondary), var(--pastel-lavender), var(--primary-tint));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ====================================================== */
/*                GLOBAL CONTAINERS & LAYOUTS            */
/* ====================================================== */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(174,207,228,0.07);
  position: relative;
}
.section:last-child { margin-bottom: 0; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 32px rgba(35,80,107,0.13);
  transform: translateY(-4px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(98deg, var(--pastel-peach) 60%, #FFFDF8 100%);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(164,191,167,0.063);
  min-width: 220px;
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(35,80,107,0.11);
  background: linear-gradient(100deg, var(--pastel-pink) 60%, #FFFDF8 100%);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: .98rem;
  letter-spacing: .06em;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.faq-section {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 24px;
}
.faq-item {
  background: var(--pastel-blue);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(113,190,207,0.06);
  padding: 18px 16px;
  flex: 1 1 255px;
  min-width: 180px;
  transition: box-shadow var(--transition);
}
.faq-item h3 {
  font-size: 1.09rem;
  color: var(--primary);
}
.faq-item p {
  color: var(--text);
  font-size: .97rem;
}

/* Course List in 'kurzy' page */
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.course-list .text-section h3 span {
  color: var(--secondary);
  font-weight: 400;
  margin-left: 10px;
  font-size: 1rem;
}

/* Cards for stories, profile, courses */
.card, .text-section, .faq-item, .testimonial-card {
  box-shadow: var(--shadow);
  background: var(--bg-card);
  border-radius: var(--radius);
}

/* =================================================================== */
/*                    HEADER & NAVIGATION SYSTEM                       */
/* =================================================================== */
header {
  background: linear-gradient(98deg, var(--pastel-peach) 70%, var(--pastel-lavender) 100%);
  box-shadow: 0 2px 16px rgba(164,191,167,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid #F2EBDF;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 60px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  font-size: 1.08rem;
}
nav a {
  padding: 7px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  color: var(--primary);
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Burger / Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(164,191,167,0.09);
  cursor: pointer;
}
.mobile-menu-toggle:active {
  background: var(--primary);
  color: var(--accent);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(242,235,223, 0.95);
  box-shadow: 0 6px 48px rgba(35,80,107,0.09);
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-self: flex-end;
  margin: 22px 22px 8px 0;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-close:active {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-content: flex-start;
  margin: 40px 30px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 600;
  padding: 11px 0;
  width: 100%;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Show/hide menu for mobile/desktop */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =================================================================== */
/*                       CALL TO ACTION BUTTONS                        */
/* =================================================================== */
.cta-button,.faq-section .cta-button, .contact-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(85deg, var(--secondary) 70%, var(--primary-tint) 100%);
  border: none;
  border-radius: 32px;
  color: var(--primary);
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  padding: 13px 36px;
  box-shadow: 0 2px 14px rgba(164,191,167,0.075);
  text-decoration: none;
  letter-spacing: .03em;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(100deg, var(--pastel-pink) 60%, var(--secondary) 100%);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(110, 180, 170, 0.14);
}

/* =================================================================== */
/*                            LISTS & TABLES                           */
/* =================================================================== */
ul, ol {
  padding-left: 28px;
}
ul li, ol li {
  margin-bottom: 7px;
}
ul li strong {
  color: var(--primary);
}

/* =================================================================== */
/*                               FOOTER                                */
/* =================================================================== */
footer {
  background: linear-gradient(95deg, var(--bg-soft) 40%, var(--pastel-mint) 95%);
  border-top: 2px solid #F2EBDF;
  box-shadow: 0 -1px 8px #A4BFA722;
  padding: 40px 0 18px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: .95rem;
}
footer nav a {
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 4px;
}
footer nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}
footer p {
  margin-top: 14px;
  color: var(--text-accent);
  font-size: .94rem;
}

/* =================================================================== */
/*        COOKIE BANNER & CONSENT POPUP (MODAL)                        */
/* =================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: linear-gradient(100deg, var(--pastel-mint), var(--pastel-peach));
  color: var(--primary);
  padding: 18px 16px 14px 16px;
  box-shadow: 0 -2px 20px rgba(35,80,107,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.03rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: slideUp .83s cubic-bezier(.23,1,0.32,1);
}
@keyframes slideUp {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}
.cookie-banner p { color: var(--primary); margin-bottom: 0; }
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
.cookie-button, .cookie-settings-btn {
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 1.5em;
  padding: 9px 18px;
  font-size: 1.03rem;
  font-weight: 600;
  border: none;
  margin-left: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-button:active, .cookie-button:hover, .cookie-settings-btn:active, .cookie-settings-btn:hover {
  background: var(--pastel-blue);
  color: var(--primary-tint);
}
/* Cookie modal popup */
.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(35,80,107,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: linear-gradient(102deg, var(--pastel-peach) 70%, var(--pastel-mint) 100%);
  border-radius: 22px;
  max-width: 398px;
  width: 93vw;
  box-shadow: 0 8px 36px rgba(35,80,107,0.13);
  padding: 32px 26px 26px 26px;
  animation: fadeIn .45s cubic-bezier(.32,1.12,.64,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes fadeIn {
  from { transform: scale(.96) translateY(30px); opacity: 0; }
  to { transform: none; opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 18px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.15rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal-close:active, .cookie-modal-close:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal h3 {
  font-size: 1.2rem; color: var(--primary); margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-weight: 500; color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  width: 21px; height: 21px;
  accent-color: var(--secondary);
  margin-right: 6px;
}
.cookie-category.essential label {
  opacity: 0.55;
}
.cookie-category.essential input[type="checkbox"] {
  display: none;
}

/* =================================================================== */
/*                            RESPONSIVENESS                           */
/* =================================================================== */
@media (max-width: 1024px) {
  .container { max-width: 900px; }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; padding: 0 7vw; }
  .course-list, .card-container, .content-grid {
    gap: 16px;
  }
  .testimonial-card, .faq-item, .text-section, .card {
    padding-left: 10px; padding-right: 10px;
  }
  section, .section {
    padding: 30px 9px;
  }
}
@media (max-width: 768px) {
  .content-wrapper { gap: 11px; }
  .container { padding: 0 2vw; }
  h1 { font-size: 1.59rem; }
  h2 { font-size: 1.32rem; }
  .section { margin-bottom: 36px; padding: 24px 4px; }
  .card, .testimonial-card, .text-section, .faq-item {
    padding: 14px 7px;
    font-size: .98rem;
  }
  .card-container, .course-list, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .faq-section {
    flex-direction: column;
    gap: 12px;
  }
  .mobile-nav {
    gap: 13px;
    margin: 30px 12px;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 1.19rem; }
  h2 { font-size: 1.07rem; }
  .container { padding-left: 4vw; padding-right: 4vw; }
  footer { padding: 28px 0 12px 0; }
  .section { padding-left: 4px; padding-right: 4px; }
  .card, .testimonial-card, .text-section, .faq-item {
    padding-left: 3px; padding-right: 3px;
    font-size: .94rem;
  }
}

/* =================================================================== */
/*                      MICRO-ANIMATIONS & STATES                      */
/* =================================================================== */
.card, .testimonial-card, .faq-item, .cta-button { will-change: transform, box-shadow; }
.card:active, .testimonial-card:active { box-shadow: 0 8px 32px rgba(35,80,107,0.15); transform: scale(0.99); }
.cta-button:active { transform: scale(0.97); }

/* =================================================================== */
/*                CUSTOM LIST/CONTENT STYLES FOR DREAMY LOOK           */
/* =================================================================== */
ul {
  list-style-type: disc;
  margin-bottom: 13px;
}
ol {
  list-style-type: decimal;
  margin-bottom: 13px;
}
.text-section ul {
  background: none;
  border: none;
  box-shadow: none;
  padding-left: 20px;
}
.text-section ul li {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: .99rem;
  font-weight: 500;
}

/* =================================================================== */
/*                         SOCIAL ICONS STYLING                        */
/* =================================================================== */
.text-section ul li img {
  width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; border-radius: 0;
}
.text-section ul li {
  display: flex; align-items: center; gap: 7px;
}

/* =================================================================== */
/*                     GENERAL SPACING & GAPS                          */
/* =================================================================== */
/* All .card, .card-container, .content-grid, .feature-item, .testimonial-card spacing done above as per brief */

/* Prevent content overlap near fixed cookie banner */
body { padding-bottom: 64px; }

/* =================================================================== */
/*                   HIDE COOKIE UI IF NOT PRESENT                     */
/* =================================================================== */
.cookie-banner, .cookie-modal-backdrop { display: none; }
.cookie-banner.active, .cookie-modal-backdrop.open { display: flex; }

/* =================================================================== */
/*                   SCROLLBAR STYLING - subtle, pastel                */
/* =================================================================== */
::-webkit-scrollbar { width: 9px; background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--pastel-blue);
  border-radius: 18px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pastel-mint);
}

/* =================================================================== */
/*                    MISCELLANEOUS, FORMATS                           */
/* =================================================================== */
@media (max-width: 400px) {
  .cookie-banner { flex-direction: column; gap: 8px; text-align: left; }
}

/* =================================================================== */
/*                     PRINT FRIENDLY (optional)                       */
/* =================================================================== */
@media print { body, html, .container, .content-wrapper, .section, .card, .testimonial-card, .faq-item, .text-section { background: #fff !important; color: #000 !important; box-shadow: none !important; } }
