/* === 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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.55;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #101923;
  color: #e9f8fa;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #43B97F;
  text-decoration: none;
  transition: color 0.20s;
}
a:hover, a:focus {
  color: #F4ECD6;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.5em;
}

/* === BRAND COLORS === */
:root {
  --primary: #20616D;
  --primary-darker: #164651;
  --secondary: #43B97F;
  --secondary-dark: #2d965f;
  --accent: #F4ECD6;
  --accent-dark: #eee6c2;
  --bg-deep: #101923;
  --bg-card: #18232C;
  --text-main: #e9f8fa;
  --text-heading: #F4ECD6;
  --neon-cyan: #00ffe7;
  --neon-green: #43B97F;
  --shadow: rgba(0,0,0,0.17);
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text-heading);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px var(--neon-cyan);
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary);
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1em;
}
strong {
  color: var(--secondary);
  font-weight: 700;
}
.subheadline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
}

/* === GLOBAL SPACING === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  align-items: flex-start;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

/* === FLEXBOX LAYOUTS (No grid or columns allowed) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  box-shadow: 0 4px 32px -8px var(--shadow);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1.5px solid var(--primary);
  transition: box-shadow 0.19s, border-color 0.17s;
}
.card:hover {
  box-shadow: 0 6px 38px -3px var(--neon-cyan);
  border-color: var(--neon-cyan);
  z-index: 2;
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #22323a;
  border-radius: 16px;
  box-shadow: 0 4px 32px -8px var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
  border: 1.5px solid var(--primary);
  transition: box-shadow 0.17s, border-color 0.17s;
}
.testimonial-card strong {
  display: block;
  color: var(--primary);
  margin-top: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #22323a;
}
.testimonial-card:hover {
  box-shadow: 0 4px 40px 0 var(--neon-cyan);
  border-color: var(--secondary);
}

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

/* --- Hero/Future Feature Grid Special --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 36px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--bg-card);
  border: 1.5px solid var(--secondary);
  border-radius: 16px;
  box-shadow: 0 4px 32px -10px var(--shadow);
  flex: 1 1 240px;
  padding: 30px 22px;
  transition: box-shadow 0.20s, border-color 0.20s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  gap: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 56px 0 var(--neon-green);
  border-color: var(--neon-cyan);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

/* === BUTTONS & CTA === */
.btn-primary {
  background: linear-gradient(90deg, var(--secondary) 50%, var(--neon-cyan) 100%);
  color: #142027;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 14px 34px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 32px -8px var(--neon-cyan);
  text-shadow: 0 1px 12px #fff7;
  transition: background 0.17s, color 0.17s, transform 0.13s, box-shadow 0.15s;
  margin-top: 10px;
  margin-bottom: 10px;
  display: inline-block;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--neon-cyan) 30%, var(--secondary) 100%);
  color: #1d3240;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 48px 0 var(--neon-cyan);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  border-radius: 22px;
  padding: 12px 28px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: var(--secondary);
}
/* Cookie settings, consent banner, etc */
.btn-tertiary {
  background: transparent;
  color: var(--secondary);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s, background 0.15s;
  font-size: 0.97rem;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  color: var(--primary);
  background: var(--accent);
}

/* === HEADER, NAV & BURGER === */
header {
  width: 100%;
  background: #121e28;
  box-shadow: 0 0 56px 0 var(--primary-darker);
  position: sticky;
  top: 0;
  z-index: 40;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 14px;
  transition: color 0.13s, background 0.15s;
}
header nav a.btn-primary {
  margin-left: auto;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #141b21;
  text-shadow: 0 0 4px var(--neon-cyan);
}
header .mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #101923;
  font-size: 2.3rem;
  border: none;
  border-radius: 8px;
  padding: 6px 22px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 94;
  transition: background 0.1s;
  box-shadow: 0 2px 14px var(--neon-cyan);
}
header .mobile-menu-toggle:hover,
header .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}

/* --- Mobile menu off by default --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #101923ee;
  z-index: 95;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px 30px 0 30px;
  transition: transform 0.32s cubic-bezier(.5,1.87,.59,.93);
  transform: translateX(100%);
  box-shadow: 0 2px 64px 0 var(--neon-cyan);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--neon-cyan);
  color: #101923;
  font-size: 2rem;
  padding: 6px 20px;
  border: none;
  border-radius: 8px;
  margin-bottom: 24px;
  z-index: 107;
  cursor: pointer;
  box-shadow: 0 2px 16px var(--neon-cyan);
  transition: background 0.11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--accent);
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--primary-darker);
  transition: color 0.14s, background 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: #22363e;
}

/* --- Responsive Nav --- */
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1000px) {
  .mobile-menu {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #101923ee;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overscroll-behavior: contain;
  }
}

/* === MAIN & SECTION STYLES === */
main {
  padding-top: 30px;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  position: relative;
  width: 100%;
  background: none;
}

/* Hero section (with light accent background) */
section:first-of-type {
  background: linear-gradient(110deg,var(--primary) 45%, var(--primary-darker) 100%);
  border-bottom: 2px solid var(--secondary);
  box-shadow: 0 4px 44px 3px var(--shadow);
}

/* Cards (for gallery or ceník if used) */
.card-container, .feature-grid {
  margin-bottom: 36px;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: #121e28;
  color: var(--accent);
  padding: 34px 0 24px 0;
  box-shadow: 0 -2px 44px -12px var(--primary-darker);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: #101923;
}
footer p {
  text-align: center;
  color: var(--accent-dark);
  font-size: 0.97rem;
  margin-top: 10px;
}

/* === RESPONSIVE DESIGN (Mobile First) === */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 10px;
  }
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 8px;
  }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: unset;
    padding: 22px 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper, .text-section {
    gap: 14px;
  }
}
@media (max-width: 450px) {
  h1 {
    font-size: 1.33rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  nav a, .btn-primary, .btn-secondary {
    font-size: 0.99rem;
  }
}

/* === MICRO-INTERACTIONS AND ANIMATION === */
.btn-primary, .btn-secondary, .btn-tertiary, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.17s, border-color 0.18s, background 0.17s, color 0.17s, transform 0.14s;
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* === SCROLLBAR FUTURISTIC === */
::-webkit-scrollbar {
  width: 9px;
  background: #19232b;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary), var(--neon-cyan));
  border-radius: 8px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #18232C;
  color: var(--accent);
  box-shadow: 0 -2px 44px -10px var(--neon-cyan);
  padding: 22px 28px 18px 28px;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  animation: cookiebannerfadein 0.8s cubic-bezier(.66,1.3,.46,1) 1;
}
@keyframes cookiebannerfadein {
  from{transform:translateY(120%); opacity:0;}
  to{transform:translateY(0); opacity:1;}
}
.cookie-banner p {
  flex: 1 1 240px;
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--accent);
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-tertiary {
  margin: 0 6px 0 0;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 98vw;
  width: 440px;
  background: #19232b;
  color: var(--accent);
  border-radius: 18px;
  box-shadow: 0 8px 54px 0 var(--neon-cyan);
  z-index: 250;
  padding: 32px 30px 22px 30px;
  transform: translate(-50%,-50%) scale(1);
  animation: cookiemodalfadein 0.4s cubic-bezier(.34,1.46,.5,1) 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes cookiemodalfadein {
  from{opacity:0;transform: translate(-50%,-38%) scale(0.9);}
  to{opacity:1;transform:translate(-50%,-50%) scale(1);}
}
.cookie-modal h4 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 18px;
  position: relative;
  background: #22323a;
  border: 1.5px solid var(--secondary);
  cursor: pointer;
  margin-left: auto;
  transition: background 0.14s;
}
.cookie-toggle[data-enabled="true"] {
  background: var(--neon-green);
  border-color: var(--neon-cyan);
}
.cookie-toggle::before {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: left 0.17s, background 0.17s;
}
.cookie-toggle[data-enabled="true"]::before {
  left: 22px;
  background: #fff;
}
.cookie-toggle[data-disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary, .cookie-modal .btn-tertiary {
  margin-top: 12px;
  min-width: 150px;
}
.cookie-modal .cookie-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  background: transparent;
  font-size: 1.5rem;
  color: var(--accent);
  border: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity 0.12s;
}
.cookie-modal .close-modal:hover {
  opacity: 0.9;
  color: var(--secondary);
}
@media (max-width: 500px) {
  .cookie-modal {
    width: 93vw;
    padding: 18px 9px;
  }
}

/* === FORM FIELDS, INPUT, LABELS === */
input, textarea, select {
  background: #26323c;
  color: var(--accent);
  border: 1.5px solid var(--primary);
  border-radius: 9px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.14s, background 0.13s;
  width: 100%;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  background: #18232C;
}
label {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  display: block;
}

/* === MISC FUTURISTIC DECORATIVE === */
[data-neon] {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 22px var(--neon-cyan);
}

/* === SPACING HELPERS === */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* === UTILITY CLASSES === */
.hide { display: none !important; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* === FUTURISTIC LINE/NEON DECOR FOR SECTIONS === */
section:not(:first-of-type) h2 {
  border-left: 4px solid var(--neon-cyan);
  padding-left: 18px;
  box-shadow: 0 0 8px var(--neon-cyan);
  margin-bottom: 22px;
}

/* === OVERRIDES for TABLES (if used) === */
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
th, td {
  border: 1.5px solid var(--primary);
  padding: 12px 10px;
  color: var(--accent);
}
th { background: var(--bg-card); font-family: 'Montserrat', Arial, sans-serif; }

/* === ACCESSIBILITY === */
:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* === PRINT OVERRIDE === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { color: #000; background: #fff; }
}
