/* --- 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F2ED;
  color: #26365A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img, picture {
  max-width: 100%;
  height: auto;
  border: 0;
  display: inline-block;
}
a {
  color: #1373D1;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ef384a;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 12px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111a2a;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }

p {
  color: #26365A;
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}

strong { font-weight: 700; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* --- FLEXBOX LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(30,60,180,0.08);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(30,60,200,0.15);
  transform: translateY(-8px) scale(1.025);
  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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #26365A;
  box-shadow: 0 2px 14px rgba(38,54,90,0.09);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
}
.testimonial-card p {
  margin-bottom: 8px;
  color: #26365A;
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
}
.testimonial-meta {
  font-size: 1rem;
  color: #1373D1;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.services-list, .faq-list, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0;
}
.services-list > div, .faq-list > div, .news-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(38,54,90,0.08);
  padding: 30px 24px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s, transform 0.18s;
  margin-bottom: 20px;
}
.services-list > div:hover, .faq-list > div:hover, .news-item:hover {
  box-shadow: 0 8px 28px rgba(30,60,180,0.16);
  transform: translateY(-5px) scale(1.02);
}
.news-list { gap: 24px; }
.news-item h3 { color: #ef384a; margin-bottom: 12px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #97BBC7;
  font-size: 1rem;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(38,54,90,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 0;
  justify-content: space-between;
  padding: 8px 16px 8px 16px;
  min-height: 68px;
}
header img {
  height: 50px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #26365A;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  position: relative;
  z-index: 10;
}
.main-nav a:hover, .main-nav a:focus {
  background: #1373D1;
  color: #fff;
}
.main-nav .cta-btn {
  background: #ef384a;
  color: #fff;
  border-radius: 99px;
  padding: 10px 26px !important;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px 0 rgba(239,56,74,0.12);
  transition: background 0.22s, box-shadow 0.22s, transform 0.17s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #26365A;
  color: #fff;
  box-shadow: 0 5px 20px 0 rgba(38,54,90,0.12);
  transform: scale(1.06) translateY(-1px);
}
.mobile-menu-toggle {
  display: none;
  background: #ef384a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
  z-index: 50;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #26365A;
  transform: scale(1.08);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg, #fff 65%, #97BBC7 100%);
  padding: 54px 0 42px 0;
  margin-bottom: 36px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 6px 48px 0 rgba(38,54,90,0.09);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  font-size: 2.4rem;
  color: #ef384a;
  text-shadow: 1px 2px 0 #fff, 2.5px 6.5px 18px rgba(239,56,74,0.17);
  font-weight: 900;
  line-height: 1.13;
  margin-bottom: 7px;
  letter-spacing: -1.5px;
}
.hero p {
  font-size: 1.2rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #26365A;
  margin-bottom: 12px;
}
.hero .cta-btn {
  margin-top: 10px;
}

/* --- BUTTONS --- */
.cta-btn {
  background: #1373D1;
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 12px 27px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, transform 0.14s;
  box-shadow: 0 3px 16px 0 rgba(19,115,209,0.21);
  letter-spacing: 1.5px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ef384a;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(239,56,74,0.15);
  transform: scale(1.08);
}
/* Extra button styles for cookie/modal usage */
.cookie-banner .cookie-btn,
.cookie-modal .cookie-btn {
  background: #1373D1;
  color: #fff;
  border-radius: 99px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 8px 23px;
  margin: 0 8px 0 0;
  border: none;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, transform 0.14s;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #ececec;
  color: #ef384a;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus,
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #26365A;
  color: #fff;
  transform: scale(1.05);
}

/* --- ICONS IN LISTS --- */
li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  width: 22px;
  height: 22px;
}

/* --- FOOTER --- */
footer {
  background: #26365A;
  color: #fff;
  padding: 36px 0 22px 0;
  margin-top: 40px;
  position: relative;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #97BBC7;
  opacity: 0.95;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: color 0.19s, text-decoration 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ef384a;
  text-decoration: underline;
}
.contact-details {
  gap: 6px;
  color: #97BBC7;
}
.contact-details img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}
footer p {
  color: #97BBC7;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  box-shadow: 1px 0 36px 0 rgba(38,54,90,0.23), 0px 0px 0 9999px rgba(38,54,90,0.07);
  transform: translateX(-110%);
  transition: transform 0.33s cubic-bezier(0.87,0,0.13,1);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 18px 24px;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef384a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #26365A;
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #26365A;
  padding: 13px 10px 13px 7px;
  border-radius: 9px;
  background: none;
  transition: background 0.17s, color 0.16s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1373D1;
  color: #fff;
}

@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .main-nav { gap: 15px; }
  .card-container, .services-list, .faq-list, .news-list {
    gap: 14px;
  }
}
/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .container {
    padding: 0 6vw;
    max-width: 100vw;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    margin-bottom: 42px;
    padding: 24px 0;
  }
  .hero {
    padding: 38px 0 24px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 11px;
  }
  .hero p { font-size: 1rem; }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  .card, .testimonial-card {
    padding: 23px 10px;
  }
  .services-list, .faq-list, .news-list, .card-container, .content-grid {
    gap: 12px;
    flex-direction: column;
  }
  .services-list > div, .faq-list > div, .news-item {
    min-width: 0;
    width: 100%;
    padding: 20px 10px;
  }
  .content-grid {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 13px 8px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .footer-nav {
    gap: 16px;
    margin-bottom: 8px;
  }
  .contact-details {
    font-size: 0.98rem;
  }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 1.08rem; }
  h2 { font-size: 1.05rem; margin-bottom: 14px; }
  .cta-btn, .main-nav .cta-btn { font-size: 1rem; padding: 9px 16px; }
}

/* --- SPACING & ALIGNMENT (MANDATORY) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #26365A;
  color: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(38,54,90,0.20);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  gap: 26px;
  font-size: 1rem;
  animation: slideUpCookie 0.45s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p { color: #fff; margin-bottom: 0; margin-right: 12px; }
.cookie-banner .cookie-btn {
  margin-right: 9px;
  min-width: 112px;
  min-height: 40px;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #F5F2ED;
  color: #26365A;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #1373D1;
  color: #fff;
}
@media (max-width: 575px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 8px;
    font-size: 0.97rem;
  }
}
/* ---- COOKIE MODAL ---- */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,44,74,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeInCookieBg 0.24s cubic-bezier(.41,-0.02,0,1.0);
}
@keyframes fadeInCookieBg {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 44px 0 rgba(19,115,209,0.14);
  max-width: 92vw;
  min-width: 320px;
  width: 390px;
  padding: 26px 24px 19px 24px;
  color: #26365A;
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: popInCookie 0.35s cubic-bezier(.45,1.44,.38,1.01);
  position: relative;
  z-index: 10001;
}
@keyframes popInCookie {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: #ef384a;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 11px; right: 17px;
  background: transparent;
  color: #ef384a;
  border: none;
  font-size: 1.44rem;
  cursor: pointer;
  z-index: 10010;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #1373D1;
  width: 20px;
  height: 20px;
}
.cookie-modal-content .cookie-btn {
  margin-top: 12px;
  min-width: 110px;
}
@media (max-width: 540px) {
  .cookie-modal-content {
    width: 98vw;
    min-width: 0;
    padding: 13px 8px 13px 8px;
  }
  .cookie-modal-content h3 { font-size: 1.06rem; }
}

/* --- ANIMATIONS --- */
.card, .services-list>div, .faq-list>div, .news-item, .testimonial-card {
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover, .services-list>div:hover, .faq-list>div:hover, .news-item:hover, .testimonial-card:hover {
  box-shadow: 0 10px 28px 0 rgba(239,56,74,0.18), 0 2px 24px rgba(38,54,90,0.10);
  transform: translateY(-4px) scale(1.035);
  z-index: 5;
}
.cta-btn, .main-nav .cta-btn, .cookie-btn {
  transition: background 0.22s, color 0.19s, box-shadow 0.17s, transform 0.17s;
}
.cta-btn:active {
  transform: scale(0.97);
}

/* --- OTHER SMALL COMPONENTS --- */
::-webkit-input-placeholder { color: #97BBC7; }
::-moz-placeholder { color: #97BBC7; }
:-ms-input-placeholder { color: #97BBC7; }
::placeholder { color: #97BBC7; }

/* --- Accessibility: focus-visible styles --- */
a:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #ef384a;
  outline-offset: 2px;
}

/* --- Z-index PREVENTIONS --- */
header, .mobile-menu, .mobile-menu-close, .cookie-banner, .cookie-modal { z-index: 9999 !important; }
.card, .services-list>div, .faq-list>div, .news-item { z-index: 10; }
.hero { z-index: 5; }

/* --- General Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.001ms !important;
  }
}
