/* --- CSS RESET & NORMALIZE --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F5F5F5;
  color: #21313C;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, footer, header, nav, section, main {
  display: block;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  color: #1886E0;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(.5,1.5,.77,.7);
}
a:hover,
a:focus {
  color: #E40B6D;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, textarea, button, select {
  font-family: inherit;
}

/* --- BRAND COLORS (VIBRANT ENERGETIC PALETTE) --- */
:root {
  --color-primary: #21313C;
  --color-secondary: #43FFAF;
  --color-accent: #F5F5F5;
  --color-vibrant1: #E40B6D;
  --color-vibrant2: #1886E0;
  --color-vibrant3: #FFB92E;
  --color-card-bg: #fff;
  --color-shadow: rgba(33,49,60,0.10);
  --color-footer-bg: #21313C;
  --color-nav-link: #21313C;
  --color-nav-link-active: #E40B6D;
  --color-nav-link-hover: #1886E0;
  --color-cta-bg: #E40B6D;
  --color-cta-text: #fff;
  --color-testimonial-bg: #fff;
  --color-testimonial-text: #1B2530;
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Playfair+Display:wght@700&display=swap');
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-vibrant1);
}
h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}
p, ul li, ol li, blockquote, address {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
blockquote {
  font-style: italic;
  color: var(--color-vibrant2);
  background: #e7f5fe;
  border-left: 4px solid var(--color-vibrant2);
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 12px;
  font-size: 1.125rem;
}
strong {
  font-weight: bold;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s cubic-bezier(.56,2.1,.64,.67), box-shadow .18s cubic-bezier(.56,2.1,.64,.67);
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(33,85,170,0.11);
  z-index: 1;
}
.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: 12px;
  padding: 24px 28px;
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(33,49,60,.10);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 480px;
  transition: box-shadow .15s;
  border: 1px solid #E9E9EB;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px rgba(33,49,60, .17);
  border: 1px solid var(--color-vibrant2);
}
.testimonial-author {
  font-size: 1rem;
  color: var(--color-vibrant1);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(33,49,60,0.07);
  padding: 24px 28px;
  margin-bottom: 20px;
  min-width: 250px;
  transition: box-shadow .15s;
}
.text-section:hover {
  box-shadow: 0 4px 22px rgba(228,11,109,0.08);
}

/* --- HERO SECTIONS --- */
.hero {
  background: linear-gradient(90deg, #FFB92E 0%, #43FFAF 100%);
  padding: 56px 0 50px;
  margin-bottom: 44px;
  border-bottom-left-radius: 64px 32px;
  border-bottom-right-radius: 64px 32px;
  box-shadow: 0 6px 32px 0 rgba(228,11,109,0.06);
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.7rem;
  display: inline-block;
  background: linear-gradient(90deg,#1886E0,#E40B6D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* --- CTA BUTTONS --- */
.cta {
  background: var(--color-vibrant2);
  color: #fff;
  font-weight: 900;
  font-size: 1.13rem;
  letter-spacing: 0.35px;
  border: none;
  border-radius: 24px;
  padding: 12px 36px;
  margin: 8px 0;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(24,134,224,0.11);
  transition: background .18s, transform .18s, box-shadow .17s;
  text-align: center;
  outline: none;
  position: relative;
  z-index: 0;
}
.cta.primary {
  background: var(--color-cta-bg);
  color: #fff;
  box-shadow: 0 4px 16px rgba(228,11,109,0.14);
}
.cta:hover,
.cta:focus {
  background: var(--color-vibrant3);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(34,193,195,.18);
  text-decoration: none;
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 4px 16px rgba(24,134,224,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  padding: 6px 12px;
  color: var(--color-nav-link);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: background .16s, color .12s;
}
.main-nav a:hover:not(.cta),
.main-nav a:focus:not(.cta) {
  background: var(--color-vibrant2);
  color: #fff;
}
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--color-nav-link-active);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-vibrant1);
  color: #fff;
  border: none;
  border-radius: 100%;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  z-index: 130;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-vibrant2);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 250;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(33,49,60,.14);
  transition: transform .33s cubic-bezier(.71,1.63,.73,.89), opacity .2s;
  padding: 0 0 32px 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 26px 0 0;
  background: var(--color-vibrant1);
  color: #fff;
  border: none;
  border-radius: 100%;
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  cursor: pointer;
  transition: background .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-vibrant3);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 48px 0 0 34px;
}
.mobile-nav a {
  color: var(--color-nav-link);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 0;
  border-radius: 8px;
  transition: background .16s, color .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-vibrant2);
  color: #fff;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding: 38px 0 23px;
    border-bottom-left-radius: 32px 12px;
    border-bottom-right-radius: 32px 12px;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card,
  .text-section {
    padding: 16px 10px;
    max-width: 98vw;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.35rem;
  }
}
@media (max-width: 540px) {
  .logo img {
    height: 38px;
  }
}

/* --- BLOG, POLICIES, THANK YOU, ETC. --- */
.blog-hero, .policy, .thank-you {
  background: #fff3fb;
  padding: 48px 0 34px;
  margin-bottom: 44px;
  border-bottom-left-radius: 64px 22px;
  border-bottom-right-radius: 64px 22px;
  box-shadow: 0 6px 32px 0 rgba(228,11,109,0.05);
}
.policy ul {
  list-style-type: disc;
  padding-left: 1.6em;
}
.policy a {
  color: var(--color-vibrant2);
  font-weight: 700;
}
.policy a:hover {
  color: var(--color-vibrant1);
}

/* --- LIST STYLES --- */
ul {
  margin-bottom: 12px;
}
ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
}
ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg,#1886E0 55%,#E40B6D 100%);
  border-radius: 50%;
  display: inline-block;
}

ul li img {
  margin-right: 8px;
  vertical-align: middle;
  display: inline;
  height: 18px;
  width: 18px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  color: #fff;
  padding: 48px 0 30px;
  box-shadow: 0 -6px 32px 0 rgba(36,198,220,0.04);
  position: relative;
  z-index: 1;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: underline;
  opacity: 0.86;
  transition: color .16s, opacity .12s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-vibrant3);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .99rem;
  align-items: center;
  opacity: .97;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .99rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-hours {
  font-size: .95rem;
  opacity: .89;
  margin: 2px 0 6px 0;
}
.footer-copy {
  font-size: .89rem;
  opacity: .65;
}
@media (max-width: 768px) {
  footer {
    padding: 34px 0 16px;
  }
  .footer-nav {
    gap: 12px;
    flex-direction: column;
    margin-bottom: 0;
  }
  .footer-contact {
    flex-direction: column;
    gap: 2px;
    font-size: 0.97rem;
  }
}

/* --- COOKIES BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 16px rgba(33,49,60,.12);
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
  min-height: 68px;
  transition: transform .28s cubic-bezier(.66,2.3,.56,.85), opacity .14s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1 1 320px;
  min-width: 200px;
  max-width: 540px;
  font-size: 1.08rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: var(--color-vibrant2);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  padding: 8px 26px;
  margin: 0 2px;
  cursor: pointer;
  transition: background .17s, color .14s, transform .1s;
  font-size: 1rem;
}
.cookie-btn.primary {
  background: var(--color-vibrant1);
  color: #fff;
}
.cookie-btn.rejected {
  background: #E5E5E8;
  color: var(--color-primary);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--color-vibrant3);
  color: var(--color-primary);
  transform: scale(1.05);
}
.cookie-btn.settings {
  background: var(--color-vibrant2);
  color: #fff;
  font-weight: 700;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 8px 18px 8px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 410;
  background: rgba(33,49,60,0.37);
  justify-content: center;
  align-items: center;
  transition: opacity .18s;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn .22s .01s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 22px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: 0 10px 36px rgba(33,49,60,0.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: slideUp .22s cubic-bezier(.31,2.07,.77,.97);
}
@keyframes slideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: var(--color-vibrant1);
  color: #fff;
  border: none;
  border-radius: 100%;
  width: 38px;
  height: 38px;
  font-size: 1.45rem;
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-vibrant2);
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  padding: 6px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
}
.cookie-switch input[type="checkbox"] {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #E9E9EB;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .11s;
}
.cookie-switch input[type="checkbox"]:checked {
  background: var(--color-vibrant2);
}
.cookie-switch input[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(33,49,60,.05);
  transition: left .13s;
}
.cookie-switch input[type="checkbox"]:checked:before {
  left: 18px;
}
.cookie-switch input[type="checkbox"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

/* --- INTERACTIONS & MICRO-ANIMATIONS --- */
.card, .testimonial-card, .cta, .cookie-btn {
  transition: box-shadow .15s, transform .13s, background .18s, color .16s;
}
.card:hover, .testimonial-card:hover, .cta:hover, .cookie-btn:hover,
.card:focus, .testimonial-card:focus, .cta:focus, .cookie-btn:focus {
  z-index: 2;
  box-shadow: 0 6px 32px rgba(24,134,224,0.16);
  transform: translateY(-2px) scale(1.02);
}

/* --- Z-INDEX LAYERS --- */
header { z-index: 100; }
.mobile-menu { z-index: 250; }
.cookie-banner { z-index: 400; }
.cookie-modal { z-index: 410; }

/* --- RESPONSIVE FLEX CONTAINERS --- */
@media (max-width: 1024px) {
  .content-grid,
  .card-container,
  .text-image-section,
  .footer-nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .text-image-section,
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .testimonial-card, .card, .text-section {
    min-width: 90vw;
    max-width: 100vw;
  }
}

/* --- FORMS & FAQ (kontakt.html) --- */
.contact ul,
.faq ul {
  margin-bottom: 16px;
}
.contact ul li,
.faq ul li {
  padding-left: 32px;
  margin-bottom: 10px;
}
.faq ul li strong {
  color: var(--color-vibrant1);
  font-weight: 900;
}

/* --- ACCESSIBILITY & USABILITY --- */
:focus {
  outline: 2px solid var(--color-vibrant2);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 9px;
  background: #e8e8ea;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,#1886E0 20%,#E40B6D 80%);
  border-radius: 9px;
}

/* --- UTILITY CLASSES --- */
.mt-20 { margin-top: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.text-center { text-align: center; }

/* --- END --- */
