/* 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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F2F5FA;
  color: #2a2a2a;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #0076A8;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #ff8400;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 600;
}
hr {
  border: none;
  border-top: 1px solid #e2e5ea;
  margin: 32px 0;
}

/* BRAND COLOR VARIABLES */
:root {
  --primary: #142D4C;
  --secondary: #0076A8;
  --accent: #F2F5FA;
  --accent2: #FFE7C2;
  --orange: #FF8400;
  --warning: #F9D678;
  --success: #58B368;
  --danger: #CD2847;
  --white: #fff;
  --text-main: #222a37;
  --text-light: #636e7b;
  --shadow-main: 0 2px 24px rgba(20, 45, 76, 0.05);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.005em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 5px; }
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}
p {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1rem;
}

/* SPACING & CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 680px) {
  .content-wrapper {
    align-items: flex-start;
  }
}

/* NAVIGATION HEADER */
header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(20, 45, 76, 0.055);
  position: sticky;
  top: 0;
  z-index: 10020;
  border-bottom: 2px solid var(--accent2);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo img {
  height: 42px;
  width: auto;
  border-radius: 0;
  transition: transform .14s;
}
.brand-logo:hover img {
  transform: scale(1.05) rotate(-3deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 14px;
  color: var(--primary);
  border-radius: 8px;
  transition: background .18s, color .18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent2);
  color: var(--orange);
}
.main-nav .cta-nav {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  margin-left: 12px;
  border-radius: 22px;
  padding: 9px 22px;
  transition: box-shadow .18s, background .18s;
  box-shadow: 0 1px 12px 0 rgba(255,132,0,0.05);
  border: none;
}
.main-nav .cta-nav:hover, .main-nav .cta-nav:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 14px 0 rgba(20,45,76,0.10);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  font-size: 1.9rem;
  background: var(--accent2);
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: none;
  margin-left: 16px;
  transition: background .16s, color .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--orange);
  color: var(--white);
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,45,76,0.97);
  z-index: 15000;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.69,.08,.43,1.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 0 0 0;
  box-shadow: 0 4px 24px 0 rgba(20,45,76,0.10);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  font-size: 2.1rem;
  border: none;
  position: absolute;
  top: 24px; right: 28px;
  cursor: pointer;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background .16s, color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  margin-top: 20px;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 13px 0;
  border-radius: 12px;
  width: 90%;
  transition: background .18s, color .18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent2);
  color: var(--primary);
}
@media (min-width:981px) {
  .mobile-menu { display: none !important; }
}

/* CTA BUTTONS */
.cta-main, .cta-section {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 40px;
  padding: 15px 40px;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(255,132,0,0.07);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .19s, color .15s, transform .12s, box-shadow .16s;
}
.cta-main:hover, .cta-main:focus, .cta-section:hover, .cta-section:focus {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 8px 28px rgba(20,45,76,0.09);
}

/* FEATURES & CARDS */
.feature-grid, .featured-posts-grid, .training-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature-grid > div, .featured-posts-grid > div, .training-list > div, .service-list > li {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-main);
  padding: 28px 22px;
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .18s, transform .16s;
}
.feature-grid > div:hover, .featured-posts-grid > div:hover, .training-list > div:hover, .service-list > li:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 38px 0 rgba(20,45,76,0.10);
}
.feature-grid img, .featured-posts-grid img, .features-icons img {
  height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
}
.features-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.features-icons img {
  background: var(--accent2);
  padding: 11px;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(255,132,0,.07);
  height: 52px;
  width: 52px;
}

/* CARD PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  padding: 28px 24px;
  min-width: 240px;
  max-width: 340px;
  flex: 1 1 240px;
  transition: box-shadow .16s, transform .16s;
}
.card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 10px 32px 0 rgba(20,45,76,0.07);
}

/* FLEX PATTERNS */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: var(--accent2);
  border-radius: 18px;
  box-shadow: 0 3px 17px 0 rgba(20,45,76,0.04);
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #232e37;
  min-width: 200px;
  max-width: 550px;
  transition: box-shadow .14s, transform .13s;
}
.testimonial-card p {
  color: #232e37;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 3px;
}
.testimonial-card:hover {
  transform: scale(1.026) translateY(-4px);
  box-shadow: 0 9px 28px 0 rgba(20,45,76,0.08);
}
@media (min-width: 600px) {
  .testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 10px;
  }
  .testimonial-card {
    min-width: 270px;
    flex: 1 1 300px;
    margin-bottom: 0;
  }
}

/* FEATURE ITEM PATTERN */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* UTILITY */
.mt16 { margin-top: 16px; }
.mb24 { margin-bottom: 24px; }
.mb32 { margin-bottom: 32px; }

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  margin-top: 60px;
  padding: 0 0 0 0;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 24px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
  min-width: 210px;
  max-width: 250px;
}
.footer-logo-contact img {
  max-width: 70px;
  height: auto;
  margin-bottom: 6px;
  border-radius: 0;
}
footer address {
  font-style: normal;
  color: var(--warning);
  font-size: 1rem;
  line-height: 1.65;
}
footer a { color: #ffd299; transition: color .13s; }
footer a:hover, footer a:focus { color: var(--orange); }
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  font-size: 1rem;
}
.footer-nav {
  font-weight: 600;
}
.footer-legal {
  color: #d0e3fa;
  font-size: 0.98rem;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.footer-social img {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent2);
  padding: 3px;
  transition: background .12s, transform .14s;
}
.footer-social img:hover {
  background: var(--orange);
  transform: scale(1.12) rotate(-8deg);
}
@media (max-width: 880px) {
  .footer-content {
    gap: 28px;
    flex-wrap: wrap;
  }
}
@media (max-width:560px){
  .footer-content{
    flex-direction:column;
    gap: 20px;
    padding: 0 5px;
  }
  footer .container{
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* CONTACT DETAILS & MAP */
.contact-details {
  margin-bottom: 18px;
}
.location-map {
  background: var(--accent2);
  border-radius: 16px;
  padding: 18px 14px;
  color: var(--secondary);
  text-align: center;
  font-style: italic;
  font-size: 1.08rem;
  margin-bottom: 16px;
  box-shadow: 0 1.5px 10px 0 rgba(255,132,0,0.08);
}

/* NEWS & BLOG */
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 22px 0 8px 0;
  padding: 0;
}
.categories-list li {
  background: var(--accent2);
  color: var(--primary);
  border-radius: 14px;
  padding: 6px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  transition: background .14s, color .14s;
}
.categories-list li:hover {
  background: var(--orange);
  color: var(--white);
}

/* NEWSLETTER CTA */
.newsletter-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}

/* GENERAL ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  a, .cta-main, .cta-section, .main-nav a, .footer-social img, .card, .feature-grid > div, .testimonial-card, .categories-list li {
    transition: background .17s, color .16s, transform .11s, box-shadow .12s;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 6vw 18px 6vw;
  box-shadow: 0 -3px 26px 0 rgba(20,45,76,0.16);
  border-radius: 20px 20px 0 0;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform .55s cubic-bezier(.66,0,.36,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(160%);
}
.cookie-banner .cookie-text {
  flex: 1 1 300px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 7px 25px;
  cursor: pointer;
  margin-left: 0;
  transition: background .16s, color .12s, box-shadow .10s;
  box-shadow: 0 2px 9px 0 rgba(255,132,0,0.10);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary); color: #fff;
}
.cookie-btn.reject {
  background: #ffcebc;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid #ffb39b;
}
.cookie-btn.reject:hover{
  background: var(--danger);
  color: var(--white);
  border: 1px solid var(--danger);
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}
.cookie-btn.settings:hover{ background: var(--warning); color:var(--primary); }
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px 10px 14px 10px;
    font-size: .96rem;
    align-items: flex-start;
  }
  .cookie-banner .cookie-buttons { width: 100%; gap: 11px; }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 30001;
  background: rgba(20,45,76,0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: var(--white);
  color: var(--primary);
  border-radius: 24px;
  max-width: 420px;
  width: 96vw;
  padding: 32px 28px 20px 28px;
  box-shadow: 0 6px 24px 0 rgba(20,45,76,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal h3 {
  font-size: 1.25rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: var(--accent2);
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--primary);
  min-height: 42px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--orange);
  width: 20px; height: 20px;
  margin-right: 6px;
}
.cookie-category .locked {
  color: var(--secondary);
  font-size: 1rem;
  padding-left: 8px;
}

/* RESPONSIVE FLEX LAYOUTS */
@media (max-width: 820px) {
  .feature-grid, .featured-posts-grid, .training-list {
    flex-direction: column;
    align-items: center;
  }
  .feature-grid > div, .featured-posts-grid > div, .training-list > div {
    max-width: 99vw;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
}

/* FORM ELEMENTS (for kontakt page, future-proof) */
input, textarea, select {
  padding: 10px 12px;
  border: 1.5px solid var(--accent2);
  border-radius: 11px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 16px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1.5px 9px 0 rgba(20,45,76,0.03);
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ACCESSIBILITY SUPPORTS */
:focus-visible {
  outline: 2px dashed var(--secondary) !important;
  outline-offset: 2px;
}

/* CUSTOM SCROLLBAR (optional, warm style) */
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--warning);
  border-radius: 8px;
}

/* WARM FRIENDLY STYLE CARD BORDERS */
.feature-grid > div, .testimonial-card, .service-list > li, .card, .training-list > div {
  border: 2px solid var(--accent2);
}

/* ENHANCED VISUAL HIERARCHY */
h1, h2 {
  margin-top: 20px;
  margin-bottom: 24px;
}
.content-wrapper > p:first-of-type {
  font-size: 1.13rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* WARM MICRO-INTERACTIONS */
.feature-grid > div:active, .service-list > li:active, .testimonial-card:active {
  transform: scale(0.995) translateY(1px);
  box-shadow: 0 2px 11px 0 rgba(20,45,76,0.10);
}

/* PREVENT OVERLAPS AND ENSURE SPACING */
section, .card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}
section:last-child, .content-wrapper:last-child { margin-bottom: 0; }

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