/* RESET & BASE STYLES -- Normalize, border-box, and brand font import */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F3F5F1;
  color: #24425A;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #24425A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6CB9B6;
  outline: none;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
:focus {
  outline: 2px solid #6CB9B6;
  outline-offset: 2px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24425A;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1.25rem; line-height: 1.3; }
h5, h6 { font-size: 1.1rem; }
p, li, ul, ol { font-size: 1rem; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

/* CONTAINER & STRUCTURE */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(36,66,90,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  .section {
    padding: 22px 4px;
    margin-bottom: 32px;
  }
}

/* NAVIGATION HEADER */
header {
  width: 100%;
  background: #fff;
  border-bottom: 3.5px solid #24425A;
  position: relative;
  z-index: 105;
}
header .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header a img {
  height: 44px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a:hover::after, header nav a:focus::after {
  content: '';
  display: block;
  width: 100%;
  height: 2.5px;
  background: #6CB9B6;
  border-radius: 5px;
  position: absolute;
  left: 0; bottom: -4px;
}
header nav .btn-primary {
  margin-left: 20px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #24425A;
  cursor: pointer;
  margin-left: 18px;
  padding: 9px 16px;
  border-radius: 13px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F3F5F1;
}
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #24425A;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 3000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.76,.12,.18,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  position: absolute;
  top: 20px;
  right: 26px;
  cursor: pointer;
  z-index: 133;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 84px;
  padding: 0 32px;
  width: 100vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.045em;
  padding: 8px 0;
  transition: color 0.2s, background 0.2s;
  border-radius: 11px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #6CB9B6;
  background: #17334a;
}

@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}


/* HERO SECTIONS */
.hero {
  background: #6CB9B6;
  color: #24425A;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 10px 40px 0 rgba(33,82,130,0.04);
  margin-bottom: 48px;
  padding: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  min-height: 280px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1, .hero h2, .hero h3, .hero p {
  color: #24425A;
}
.hero h1 {
  font-size: 2.55rem;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.25rem;
}
@media (max-width: 768px) {
  .hero .container {
    min-height: 140px;
    padding-top: 18px; padding-bottom: 18px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* PRIMARY BUTTON & BUTTONS GLOBAL */
.btn-primary, .cookie-banner .btn-primary {
  background: #24425A;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  border: none;
  padding: 13px 32px;
  border-radius: 13px;
  box-shadow: 0 3px 24px rgba(36,66,90,0.11);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s, transform 0.13s;
  position: relative;
  letter-spacing: 0.05em;
  margin-top: 8px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus, .cookie-banner .btn-primary:hover {
  background: #6CB9B6;
  color: #24425A !important;
  box-shadow: 0 4px 28px rgba(108,185,182,0.19);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary, .cookie-banner .btn-secondary {
  background: #fff;
  color: #24425A !important;
  border: 2px solid #24425A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 13px;
  margin-right: 8px;
  cursor: pointer;
  transition: border 0.17s, background 0.14s, color 0.14s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #6CB9B6;
  color: #24425A !important;
  border: 2px solid #6CB9B6;
}

.btn-tertiary, .cookie-banner .btn-tertiary {
  background: none;
  color: #6CB9B6 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 24px;
  border: 2px solid #6CB9B6;
  border-radius: 13px;
  cursor: pointer;
  transition: border .16s, color .18s, background .16s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #6CB9B6;
  color: #24425A !important;
}

/* FLEXBOX LAYOUT PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(36,66,90,0.11);
  padding: 26px 28px;
  flex: 1 1 320px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 34px rgba(36,66,90,0.17);
  transform: translateY(-3px) scale(1.018);
}

.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) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* FEATURES GRID - Geometric structure */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 32px;
  align-items: flex-start;
}
.feature-icon {
  background: #6CB9B6;
  width: 56px; height: 56px;
  border-radius: 16px 4px 16px 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(108,185,182,0.18);
  margin-bottom: 12px;
}
.feature-icon img {
  width: 28px; height: 28px;
}
.feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 1rem;
  max-width: 250px;
}
.features-grid > .feature-icon + .feature-text {
  margin-right: 26px;
}
@media (max-width: 768px) {
  .features-grid {
    gap: 16px 0;
    flex-direction: column;
  }
  .feature-text {
    max-width: 100%;
    margin-right: 0;
  }
}

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

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  background: #F3F5F1;
  border-left: 7px solid #6CB9B6;
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 2px 10px rgba(36,66,90,0.09);
  font-size: 1.08rem;
  max-width: 620px;
  /* Ensuring contrast */
  color: #222D38;
}
.testimonial-card strong {
  color: #24425A;
  font-weight: 700;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #24425A;
}

/* TABLES & PRICE LISTS */
table {
  border-collapse: separate;
  width: 100%;
  margin-bottom: 16px;
  box-shadow: 0 1px 10px rgba(36,66,90,0.07);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
thead th {
  background: #24425A;
  color: #fff;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  padding: 16px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #E1E6ED;
  font-size: 1rem;
}
tbody tr:last-child td { border-bottom: none; }


/* FOOTER */
footer {
  width: 100%;
  background: #24425A;
  color: #fff;
  padding-top: 35px; padding-bottom: 28px;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #6CB9B6;
  text-decoration: underline;
}
footer .company-info {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.85);
  text-align: right;
}
footer .company-info em {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #6CB9B6;
  font-style: normal;
  font-size: 1rem;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .company-info {
    text-align: left;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #24425A;
  color: #fff;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3500;
  padding: 24px 22px 24px 22px;
  box-shadow: 0 -3px 28px rgba(36,66,90,.25);
  border-radius: 27px 27px 0 0;
  opacity: 1;
  transition: opacity 0.30s, transform 0.33s;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(98px);
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  max-width: 560px;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start; padding: 15px 9px;
    gap: 12px;
  }
  .cookie-banner .banner-actions {
    width: 100%; flex-direction: column; align-items: stretch; gap: 8px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,66,90,0.39);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 38px 32px 28px 32px;
  max-width: 400px;
  min-width: 290px;
  box-shadow: 0 6px 44px rgba(36,66,90,0.16);
  color: #24425A;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1rem;
  position: relative;
  align-items: flex-start;
}
.cookie-modal h3 {
  font-size: 1.27rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #6CB9B6;
  width: 18px; height: 18px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category.essential label {
  font-weight: 700;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.8rem;
  color: #24425A;
  background: none;
  border: none;
  cursor: pointer;
}

/* CARDS, VISUAL ELEMENTS (GEOMETRIC & STRUCTURED) */
.card, .section {
  /* Re-applying here for clarity on required flex/geometric look */
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 4px 30px rgba(36,66,90,0.11);
  background: #fff;
}

/* Responsive tables (stacked on mobile) */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  td {
    border: none;
    padding: 12px 8px;
    position: relative;
  }
  tbody tr {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(36,66,90,0.06);
    padding-bottom: 6px;
  }
}

/* FORMS (for kontakt page) - Geometric style */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 11px;
  border: 1.2px solid #6CB9B6;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 18px;
  background: #F3F5F1;
  color: #24425A;
  transition: border 0.14s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border: 1.7px solid #24425A;
  box-shadow: 0 2px 8px rgba(36,66,90,0.08);
}
label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #24425A;
  margin-bottom: 6px;
}

/* ANIMATIONS, TRANSITIONS, MICRO-INTERACTIONS */
.section, .card, .testimonial-card, .btn-primary, .btn-secondary, .btn-tertiary {
  transition: box-shadow 0.18s, background 0.17s, transform 0.13s, color 0.17s;
}

.card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 38px rgba(36,66,90,0.16);
  transform: translateY(-2px);
}

/* UTILITY: SPACING & CONSISTENT GAPS */
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }

/* MISC: EMPHASIS */
em {
  font-style: normal;
  color: #6CB9B6;
}
strong {
  font-weight: 700;
  color: #24425A;
}

/* SHAPES & DECORATIVE ELEMENTS */
.geometric-block {
  width: 60px;
  height: 60px;
  background: #6CB9B6;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  margin-right: 16px;
}
@media (max-width: 700px) {
  .geometric-block {
    width: 32px; height: 32px;
  }
}

/* RESPONSIVE FLEX DIRECTION SWITCHES */
@media (max-width: 768px) {
  .card-container, .content-grid, .features-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    padding: 18px 6px;
  }
}

/* PRINT & SELECTION */
::selection {
  background: #6CB9B6;
  color: #fff;
}

/* Hidden utility class */
.d-none { display: none !important; }

/* ENSURE GAPS ON MAIN SECTIONS & CONTENT BLOCKS */
section {
  margin-bottom: 60px;
}
@media (max-width: 700px) {
  section {
    margin-bottom: 34px;
  }
}

/* Keep root content with enough breathing room */
main {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
@media (max-width: 900px) {
  main { gap: 34px; }
}

/* --- END OF CSS --- */
