/* ==== CSS Reset & Normalize ==== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body { background: #F9F9F9; color: #1A2833; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: #24577A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #8DC63F; text-decoration: underline; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; }

/* ==== Typography ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #173956;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.cookie-consent-banner p {
  color: white !important;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.17; }
h2 { font-size: 1.8rem; margin-bottom: 18px; line-height: 1.2; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, .text-section p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #23374D;
}
.text-section h2, .text-section h3 { margin-top: 16px; }

/* ==== Layout Containers ==== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section { max-width: 750px; }
.info-block { margin-top: 18px; padding: 16px 20px; background: #FAFBFD; border-left: 4px solid #24577A; border-radius: 8px; }

/* ==== Header & Navigation ==== */
header {
  background: #ffffff;
  border-bottom: 1px solid #E6ECF1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(36,87,122,.02);
  position: relative;
  z-index: 110;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 20px 20px;
}
header img { height: 44px; width: auto; }
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #173956;
  padding: 7px 10px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #E9F4FC;
  color: #24577A;
}
.cta-primary {
  background: #24577A;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 12px 26px;
  margin-left: 28px;
  box-shadow: 0 2px 12px rgba(36,87,122,0.10);
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.16s, transform 0.13s;
  display: inline-block;
  outline: none;
  text-align: center;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1C4360;
  box-shadow: 0 4px 18px rgba(36,87,122,0.18);
  transform: translateY(-2px) scale(1.04);
}

/* ==== Mobile Navigation ==== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 140;
  padding: 10px 14px;
  background: #24577A;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.12s;
  box-shadow: 0 2px 10px rgba(36,87,122,0.07);
}
.mobile-menu-toggle:active {
  background: #1C4360;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 130;
  box-shadow: -2px 0 16px 0 rgba(36,87,122,0.10);
  transition: transform 0.34s cubic-bezier(.38,.68,.52,1.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
  transform: translateX(100vw);
}
.mobile-menu.open {
  left: 0;
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 28px 0 16px 20px;
  background: transparent;
  border: none;
  color: #24577A;
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.15s;
  padding: 2px 8px;
  border-radius: 5px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #f1f8fb;
  color: #8DC63F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 24px 0 32px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #173956;
  padding: 14px 0;
  border-bottom: 1px solid #EEF2F6;
  transition: color 0.17s, background 0.17s;
  border-radius: 0;
  width: 100%;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #E9F4FC;
  color: #24577A;
  text-decoration: none;
}

/* ==== Hero Section ==== */
.hero-section {
  background: linear-gradient(90deg,#F7FAFC 0%,#E9F1F7 100%);
  padding: 48px 0 48px 0;
  margin-bottom: 60px;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero-section h1 {
  color: #24577A;
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 0;
}
.hero-section p {
  font-size: 1.15rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23374D;
}
.hero-section .cta-primary {
  margin-top: 16px;
  font-size: 1.07rem;
}

/* ==== Section Layouts ==== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 0;
}
.cta-section {
  background: #24577A;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(36,87,122,0.06);
  margin-bottom: 60px;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .cta-primary {
  background: #8DC63F;
  color: #173956 !important;
  margin-top: 16px;
}
.cta-section .cta-primary:hover, .cta-section .cta-primary:focus {
  background: #6ea223;
}
.success-section {
  background: #F4FFE3;
  border: 1px solid #C6F2A9;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== Feature Grid ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 18px 0 rgba(36,87,122,0.09);
  padding: 28px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 290px;
  transition: box-shadow 0.17s, transform 0.19s;
  margin-bottom: 20px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 28px 0 rgba(36,87,122,0.18);
  transform: translateY(-3px) scale(1.03);
}
.feature-item img {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
}
.feature-item h3 {
  color: #24577A;
  font-size: 1.23rem;
  margin-bottom: 0;
}
.feature-item p {
  color: #23374D;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ==== Card Patterns ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(36,87,122,0.06);
  padding: 26px 24px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==== Testimonials ==== */
.testimonials {
  background: #F7F9FB;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid #E6ECF1;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(36,87,122,0.08);
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 390px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(36,87,122,0.13);
  transform: scale(1.025);
}
.testimonial-card p {
  color: #1A2833;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: #24577A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
}
.rating-summary p {
  color: #24577A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  margin-top: 8px;
}

/* ==== Footer ==== */
footer {
  background: #F3F6F8;
  border-top: 1px solid #E6ECF1;
  padding: 44px 0 32px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}
footer img { height: 36px; width: auto; margin-bottom: 14px; }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #24577A;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus { color: #8DC63F; }
.footer-contact p, .footer-contact a {
  color: #23374D;
  font-size: 0.96rem;
  margin-bottom: 8px;
  line-height: 1.7;
}
.footer-contact a { text-decoration: underline; }

/* ==== Responsive Layouts ==== */
@media (max-width: 1050px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-grid { justify-content: center; }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-slider {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .feature-item,.testimonial-card {
    min-width: 160px;
    max-width: 100%;
    flex: 1 1 85vw;
  }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; padding: 18px 14px 18px 14px; }
  header nav, .cta-primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .feature-grid { gap: 20px; }
  .testimonial-slider { gap: 16px; }
  .card-container, .content-grid { gap: 16px; }
  section, .section, .success-section { padding: 28px 6px; margin-bottom: 32px; }
  .cta-section, .success-section { padding: 28px 8px; margin-bottom: 34px; }
  .hero-section {
    padding: 34px 0;
    min-height: 180px;
  }
  .hero-section h1 { font-size: 2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .feature-item, .testimonial-card { padding: 20px 12px; }
  .mobile-menu {
    width: 100vw;
    left: 100vw;
    transition: transform 0.34s cubic-bezier(.38,.68,.52,1.02);
    border-left: 2px solid #E6ECF1;
  }
  .mobile-menu.open { left: 0; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.35rem; }
  .feature-item { padding: 14px 8px; }
  .testimonial-card { padding: 14px 8px; }
  .footer-contact p { font-size: .92rem; }
}

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

/* ==== Cookie Consent Banner ==== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: #1E2731;
  color: #fff;
  z-index: 150;
  box-shadow: 0 -4px 24px 0 rgba(36,87,122,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 22px 18px;
  flex-wrap: wrap;
  gap: 18px;
  transition: transform 0.34s cubic-bezier(.5,.68,.52,.91);
}
.cookie-consent-banner.hide { transform: translateY(130%); }
.cookie-consent-banner p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 1.04rem;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: #8DC63F;
  color: #173956;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 0.99rem;
  box-shadow: 0 2px 6px rgba(36,87,122,0.06);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.settings { background: #F9F9F9; color: #24577A; border: 1px solid #EEF2F6; }
.cookie-btn.reject { background: #E0E6EB; color: #24577A; }
.cookie-btn:hover, .cookie-btn:focus { background: #6ea223; color: #fff; }
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: #e9f4fc; color: #24577A; }
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #c7d7e3; color: #24577A; }

/* ==== Cookie Preference Modal ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 160;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,87,122,.23);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 46px 0 rgba(36,87,122,.17);
  padding: 36px 29px 27px 29px;
  max-width: 415px;
  width: 96%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalIn .22s cubic-bezier(.17,.67,.54,1.04);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(45px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  color: #24577A;
  font-size: 1.31rem;
  margin-bottom: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #E6ECF1;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-toggle {
  pointer-events: none;
  opacity: 0.6;
}
.cookie-toggle.enabled {
  pointer-events: none;
  opacity: 1.0;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #24577A;
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 8px;
}
.cookie-modal-close:focus,.cookie-modal-close:hover {
  background: #f1f8fb;
  color: #8DC63F;
}

/* ==== Transitions & Microinteractions ==== */
button, .cta-primary, .cookie-btn {
  transition: background 0.18s, color 0.15s, box-shadow 0.14s, transform 0.13s;
}

/* ==== Utility ==== */
.mt-4 { margin-top: 16px!important; }
.mb-4 { margin-bottom: 16px!important; }
.mb-8 { margin-bottom: 32px!important; }
.w-100 { width: 100%!important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }

/* ==== Accessibility ==== */
:focus {
  outline: 2px solid #8DC63F;
  outline-offset: 2px;
}
/* Hide focus for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* ==== End of CSS ==== */