/* ====================================================================
   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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #EAA800;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #313131;
  outline: none;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}

/* ====================================================================
   BRAND COLOR PALETTE & FONTS
==================================================================== */
:root {
  --primary: #313131;
  --secondary: #F3F3F3;
  --accent: #EAA800;
  --vibrant-blue: #198CFF;
  --vibrant-pink: #FF3981;
  --vibrant-green: #13D38E;
  --dark: #131313;
  --light: #ffffff;

  --display-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
}

/* ====================================================================
   BODY & TYPOGRAPHY
==================================================================== */
body {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--body-font);
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
}

p, ul li, ol li {
  font-size: 1rem;
}
strong { font-weight: bold; }
.subheadline {
  color: var(--vibrant-blue);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

/* ====================================================================
   BUTTONS & INTERACTIVE
==================================================================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.14rem;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(25,140,255,0.09), 0 1.5px 4px rgba(234,168,0,0.06);
  letter-spacing: 0.06em;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent) 0%, var(--vibrant-pink) 100%);
  box-shadow: 0 4px 16px -4px var(--vibrant-pink, #FF3981);
  border-bottom: 3px solid var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--vibrant-blue), var(--accent));
  color: #fff;
  transform: translateY(-2px) scale(1.042);
  box-shadow: 0 6px 32px -6px var(--vibrant-blue, #198CFF);
}

.btn-secondary {
  color: var(--primary);
  background: var(--vibrant-green);
  border-bottom: 3px solid var(--vibrant-blue);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--vibrant-blue);
  color: #fff;
  transform: translateY(-1px) scale(1.028);
}

/* General link styling (except nav and buttons) */
section a:not(.btn-primary):not(.btn-secondary):not(.mobile-menu-close) {
  color: var(--vibrant-blue);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}
section a:not(.btn-primary):not(.btn-secondary):hover {
  color: var(--vibrant-pink);
  text-decoration: underline;
}

/* ====================================================================
   LAYOUT CONTAINERS (MOBILE FIRST FLEXBOX)
==================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
  margin-bottom: 8px;
}
.features-grid > div {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 20px -4px rgba(25,140,255,0.10);
  padding: 34px 24px;
  flex: 1 1 245px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.23s, transform 0.18s;
  border: 2.5px solid transparent;
  position: relative;
}
.features-grid > div:hover, .features-grid > div:focus {
  border-color: var(--accent);
  box-shadow: 0 14px 32px -7px var(--vibrant-pink, #FF3981);
  transform: translateY(-4px) scale(1.036);
}
.features-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  filter: brightness(1.2) drop-shadow(0 2px 8px var(--vibrant-blue, #198CFF));
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px -5px #198CFF20, 0 1.5px 6px rgba(234,168,0,0.05);
  position: relative;
  overflow: hidden;
}

.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;
}

.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #181818;
  box-shadow: 0 4px 24px -7px #31313125, 0 1.5px 8px rgba(234,168,0,0.06);
  padding: 28px 28px 22px 28px;
  border-radius: 24px;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 290px;
  border-left: 5px solid var(--accent);
  font-size: 1.08rem;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 10px 32px -4px #EAA80066, 0 2px 16px #FF398133;
  transform: translateY(-5px) scale(1.025);
}
.testimonial-text {
  font-size: 1.11rem;
  font-style: italic;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.testimonial-meta {
  font-family: var(--display-font);
  font-weight: bold;
  color: var(--vibrant-blue);
  letter-spacing: 0.01em;
  font-size: 1rem;
}

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

.text-section {
  background: #fff;
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 3px 25px -8px #13D38E40;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.text-section ul li:before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.cta {
  position: relative;
  background: var(--vibrant-pink);
  color: #fff;
  padding: 52px 0 54px 0;
  border-radius: 32px;
  box-shadow: 0 8px 28px -10px #FF398155;
  margin: 60px 0 0 0;
  overflow: hidden;
}
.cta h2, .cta p {
  color: #fff;
}

/* FAQ DESIGN (kontakt.html) */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 6px;
}
.faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px;
  box-shadow: 0 6px 18px -5px #198CFF24;
  margin-bottom: 8px;
}
.faq-item h3 {
  font-size: 1.07rem;
  color: var(--vibrant-pink);
  margin-bottom: 4px;
  font-family: var(--display-font);
}
.faq-item p { color: var(--primary); font-size: 1rem; }

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  padding: 54px 0 28px 0;
  margin-top: 48px;
  border-radius: 38px 38px 0 0;
}
footer a {
  color: var(--accent);
  font-weight: 700;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0 18px 0;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 22px;
  margin-top: 5px;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 24px;
  height: 24px;
  filter: invert(0.87) sepia(0.88) saturate(4.9) hue-rotate(2deg) brightness(1.25);
}
.footer-copy {
  font-size: 0.97rem;
  color: #e0e0e0;
  margin-top: 13px;
  letter-spacing: 0.01em;
}

/* ====================================================================
   HEADER & NAVIGATION (MOBILE & DESKTOP)
==================================================================== */
header {
  background: #fff;
  box-shadow: 0 8px 36px -12px #EAA80028, 0 3px 20px -8px #FF398119;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  position: sticky;
  top: 0;
  z-index: 1002;
  border-radius: 0 0 26px 26px;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.07rem;
  color: var(--primary);
  border-radius: 6px;
  padding: 7px 14px;
  transition: background 0.16s, color 0.22s;
}
header nav a:hover, header nav a.active {
  background: var(--accent);
  color: #fff;
}

header .btn-primary {
  margin-left: 16px;
  padding: 10px 22px;
  font-size: 1rem;
}

/* MOBILE NAVIGATION BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--vibrant-blue);
  color: #fff;
  font-size: 2.3rem;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 1502;
  position: fixed;
  right: 22px;
  top: 18px;
  box-shadow: 0 4px 12px -5px #13D38E33;
  transition: background 0.18s, color 0.14s, box-shadow 0.21s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 10px 32px -6px #EAA80055;
  z-index: 2000;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(.57,.21,.69,1.25);
  display: flex;
  flex-direction: column;
  padding: 32px 14px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 14px 54px -3px #FF398122;
}

.mobile-menu-close {
  align-self: flex-end;
  background: var(--vibrant-pink);
  color: #fff;
  border-radius: 50%;
  font-size: 2.0rem;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  box-shadow: 0 4px 19px -5px #FF398133;
  transition: background 0.15s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--display-font);
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--primary);
  font-weight: 700;
  padding: 13px 0 13px 10px;
  border-left: 3.5px solid transparent;
  border-radius: 3px;
  transition: color 0.16s, border-left 0.22s, background 0.22s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--vibrant-blue);
  border-left: 3.5px solid var(--vibrant-blue);
  background: var(--secondary);
}

/* Hide navigation on mobile, show burger */
@media (max-width:1020px) {
  header nav, header .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 11px 8px;
  }
  header img { height: 35px; }
}

/* ====================================================================
   HERO SECTIONS
==================================================================== */
.hero {
  background: linear-gradient(90deg, var(--vibrant-blue) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 0 0 42px 42px;
  min-height: 270px;
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  justify-content: center;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 40px;
}
.hero h1, .hero h2, .hero p { color: #fff; }
.hero .btn-primary {
  margin-top: 22px;
  font-size: 1.15rem;
  padding: 16px 40px;
}

/* ====================================================================
   COOKIE CONSENT BANNER AND MODAL
==================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: #fff;
  padding: 20px 18px;
  box-shadow: 0 -4px 32px -8px #0006;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1.03rem;
  animation: cookieSlideUp 0.6s cubic-bezier(.47,1.64,.41,.87) forwards;
}
@keyframes cookieSlideUp {
  from { transform: translateY(85px); opacity: 0; }
  to {   transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 20px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  font-size: 0.97rem;
  padding: 9px 23px;
  border-radius: 18px;
  min-width: 110px;
}
.cookie-banner .btn-secondary {
  background: var(--light);
  color: var(--vibrant-blue);
  border-bottom: 0;
  border: 1.5px solid var(--vibrant-blue);
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: var(--vibrant-blue);
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(18,19,30,0.72);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade 0.5s cubic-bezier(.45,1.43,.32,.92) forwards;
}
@keyframes cookieModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 24px;
  box-shadow: 0 8px 60px -9px #198CFF50;
  max-width: 440px;
  padding: 42px 32px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalPopIn 0.4s cubic-bezier(.42,1.24,.54,1.02) forwards;
}
@keyframes modalPopIn {
  from { transform: scale(0.7) translateY(60px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: var(--accent);
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-weight: bold;
  font-size: 1.04rem;
}
.cookie-modal .category-toggle {
  width: 40px;
  height: 22px;
  border-radius: 16px;
  background: var(--secondary);
  border: 1.1px solid var(--vibrant-blue);
  position: relative;
  transition: background 0.21s;
  margin-right: 8px;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 5px -2px #EAA80029;
}
.cookie-modal .category-toggle:checked {
  background: var(--vibrant-green);
  border-color: var(--vibrant-green);
}
.cookie-modal .category-toggle:disabled {
  background: #eee;
  filter: grayscale(0.6);
  cursor: default;
}
.cookie-modal .close-cookie-modal {
  position: absolute; right: 22px; top: 19px;
  background: var(--vibrant-pink);
  color: #fff;
  border-radius: 50%;
  font-size: 1.14rem;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.15s;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  margin-top: 6px;
  font-size: 0.99rem;
  padding: 9px 28px;
}

/* ====================================================================
   MEDIA QUERIES FOR RESPONSIVENESS
==================================================================== */
@media (max-width: 1050px) {
  .features-grid > div {
    min-width: 180px;
    padding: 24px 12px;
  }
}
@media (max-width: 900px) {
  .features-grid { gap: 16px; }
  .testimonials-wrapper { gap: 18px; }
  .card-container { gap: 12px; }
}
@media (max-width: 768px) {
  .container { padding: 0 5px; }
  .section { padding: 24px 5px; margin-bottom: 32px; }
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 96vw;
  }
  .testimonials-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    max-width: 100vw;
    padding: 18px 10px 18px 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .content-wrapper {
    padding: 0 1px;
    gap: 9px;
  }
  .content-grid, .card-container, .features-grid {
    flex-direction: column;
    gap: 10px;
  }
  .text-section {
    padding: 20px 8px;
    margin-bottom: 12px;
  }
  .cta {
    padding: 32px 0 32px 0;
    border-radius: 24px;
  }
  .hero {
    border-radius: 0 0 20px 20px;
    min-height: 130px;
    margin-bottom: 22px;
  }
  .hero .container {
    padding-top: 21px;
    padding-bottom: 22px;
    min-height: 110px;
  }
  footer {
    border-radius: 19px 19px 0 0;
    padding: 28px 0 12px 0;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .features-grid > div, .cta, .text-section, .faq-item, .testimonial-card {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .cookie-modal {
    padding: 25px 7px;
  }
}

/* ====================================================================
   MICRO-INTERACTIONS & ANIMATION EFFECTS
==================================================================== */
section, .hero, .features-grid > div, .cta, .testimonial-card, .faq-item, .text-section {
  animation: fadeInSection 0.7s cubic-bezier(.42,.68,.32,1.02);
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(38px) scale(0.987); }
  to { opacity: 1; transform: none; }
}

.btn-primary, .btn-secondary {
  will-change: background,color,box-shadow,transform;
}

/* ====================================================================
   UTILITIES
==================================================================== */
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* Fix all cards/sections have min 20px spacing (last line of defense) */
section + section, .content-wrapper + .content-wrapper, .features-grid + .features-grid {
  margin-top: 22px;
}
.card + .card, .card-container > .card + .card, .testimonial-card + .testimonial-card {
  margin-left: 20px;
}

/* Ensure no overlap on small screens */
[class*='container'],
.content-wrapper, .card-container, .features-grid, .footer-contact, .testimonials-wrapper {
  box-sizing: border-box;
}

/* ====================================================================
   COLOR ACCESSIBILITY FIXES
==================================================================== */
.testimonial-card, .testimonial-text, .testimonial-meta {
  color: #1a1a1a !important;
}
.testimonial-card { background: #fff !important; }

/* ====================================================================
   END OF CSS
==================================================================== */
