/* ---------------------------
   CSS RESET & BASE 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F8FAFB;
  color: #263159;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
a {
  color: #263159;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #0d1d3b;
  text-decoration: underline;
  outline: none;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ------------------------------
   BRAND FONTS & TYPOGRAPHY SCALE
-------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #263159;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.375rem;
  line-height: 1.13;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.19;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}
p {
  margin-bottom: 18px;
  color: #263159;
  font-size: 1rem;
  line-height: 1.7;
}
strong {font-weight: 600;}
em, i {font-style: italic;}

@media (min-width: 540px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
}

/* ---------------------------------------------
   FLEXBOX CONTAINERS & MANDATORY SPACING RULES
---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(38,49,89,0.04);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
}
.features-grid > div {
  background: #F6F6F8;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(38,49,89,0.06);
  padding: 24px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .18s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 20px 0 rgba(38,49,89,0.10);
  background: #f2f7fa;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(38,49,89,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .19s;
}
.card:hover {
  box-shadow: 0 6px 38px 0 rgba(38,49,89,0.10);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Testimonials with contrast */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F6F8FD;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: 0 1px 10px 0 rgba(38,49,89,0.07);
  color: #263159;
  font-size: 1.09rem;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #263159;
  font-style: italic;
  font-size: 1.13rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(38,49,89,0.13);
  background: #eaf2fb;
}
.testimonial-card img {
  display: inline-block;
  width: 23px;
  margin-right: 2px;
}
.testimonial-card > div:last-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}

/* Contact Quick Info & Info Blocks */
.contact-quick, .contact-info, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.contact-quick > div, .contact-info > div, .footer-contact > div {
  background: #F6F6F8;
  border-radius: 9px;
  padding: 16px 16px 16px 12px;
  min-width: 180px;
  font-size: 1rem;
  color: #263159;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info > div img, .footer-contact > div img, .contact-quick > div img {
  width: 22px; height: 22px; margin-right: 9px;
}

@media (max-width: 580px) {
  .contact-quick, .contact-info, .footer-contact {
    flex-direction: column;
    gap: 14px;
  }
}

/* ----------
   HEADER
----------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(38,49,89,.07);
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 20px 14px 20px;
  position: relative;
}
header .container > a img {
  height: 38px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  color: #263159;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background .12s, color .2s;
}
nav a:focus, nav a:hover {
  background: #A6C8FF;
  color: #263159;
  outline: 2px solid #A6C8FF;
}
.cta.primary {
  background: #263159;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 10px;
  padding: 12px 34px;
  font-size: 1.13rem;
  box-shadow: 0 3px 14px 0 rgba(166,200,255,0.12);
  margin-left: 14px;
  transition: background .17s, box-shadow .19s;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta.primary:hover, .cta.primary:focus {
  background: #1a2545;
  box-shadow: 0 5px 16px 0 rgba(38,49,89,0.16);
  border: 2px solid #A6C8FF;
  color: #fff;
  outline: none;
}

/* ----------
   MOBILE NAV
------------ */
.mobile-menu-toggle {
  display: none;
  background: #263159;
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  z-index: 22;
  transition: background .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #A6C8FF;
  color: #263159;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 48px 0 rgba(38,49,89,0.13);
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.77,0,.18,1);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 25px 28px 10px 0;
  background: #263159;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .17s;
  box-shadow: 0 1px 8px 0 rgba(38,49,89,0.05);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A6C8FF;
  color: #263159;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 34px;
}
.mobile-nav a {
  color: #263159;
  font-size: 1.11rem;
  padding: 18px 0 7px 0;
  width: 100%;
  border-radius: 6px;
  font-weight: 500;
  background: none;
  transition: background .12s, color .19s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #A6C8FF;
  color: #263159;
}

@media (max-width: 980px) {
  header .container nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-right: 12px;
  }
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ------------------
   MAIN & SECTIONS
------------------- */
main {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 600px) {
  section {
    padding: 26px 0;
    margin-bottom: 30px;
  }
}

.content-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(38,49,89,0.06);
  padding: 32px 20px 22px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ----------
   LISTS
----------- */
ul li, ol li {
  color: #263159;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 12px;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: #A6C8FF;
  border-radius: 50%;
  position: absolute;
  left: 0; top: 0.85em;
  margin-left: -12px;
}
ol li {
  counter-increment: section;
}
ol {
  counter-reset: section;
  margin-left: 10px;
}
ol li::before {
  content: counter(section) '.';
  color: #A6C8FF;
  padding-right: 8px;
  font-weight: 600;
  position: absolute;
  left: -18px;
  top: 0.77em;
}

/* -----------
   FOOTER
------------ */
footer {
  background: #fff;
  border-top: 1.5px solid #F0F3F9;
  margin-top: 24px;
  padding: 32px 0 18px 0;
  position: relative;
  z-index: 10;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.04rem;
  color: #263159;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 6px;
}
.brand-info img {
  width: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  margin-top: 2px;
}
.footer-nav a {
  color: #263159;
  opacity: 0.92;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background .11s, color .15s;
}
.footer-nav a:focus, .footer-nav a:hover {
  background: #F8D477;
  color: #263159;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}
.footer-contact > div {
  background: #F6F6F8;
  border-radius: 9px;
  padding: 11px 13px;
  min-width: 155px;
  font-size: .99rem;
  color: #263159;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 830px) {
  footer .container {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

/* --------------------
   BUTTONS and LINKS
--------------------- */
button, .cta.primary {
  cursor: pointer;
  outline: none;
}
button:disabled, .cta.primary:disabled {
  opacity: 0.7;
  pointer-events: none;
}
button.secondary {
  background: #fff;
  color: #263159;
  border: 2px solid #A6C8FF;
  border-radius: 10px;
  padding: 10px 26px;
  font-size: 1.06rem;
  font-weight: 600;
  transition: background .14s, color .18s;
}
button.secondary:hover, button.secondary:focus {
  background: #A6C8FF;
  color: #263159;
}

/* ---------------------
   COOKIE CONSENT BANNER
---------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2.5px solid #A6C8FF;
  box-shadow: 0 -2px 18px rgba(38,49,89,.10);
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 22px 10px;
  z-index: 2000;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform .35s, opacity .24s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__message {
  color: #263159;
  max-width: 440px;
  flex: 1 1 240px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  font-weight: 700;
  color: #263159;
  background: #A6C8FF;
  transition: background .14s, color .15s;
}
.cookie-banner button.accept {
  background: #263159;
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #0d1d3b;
  color: #fff;
}
.cookie-banner button.reject {
  background: #F8D477;
  color: #263159;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #ffe9ab;
  color: #263159;
}
.cookie-banner button.settings {
  background: #A6C8FF;
  color: #263159;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #e2f0ff;
  color: #263159;
}
@media (max-width: 660px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
    gap: 10px;
  }
}

.cookie-modal-overlay {
  z-index: 2025;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,49,89,0.19);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 18px 0 rgba(38,49,89,.13);
  max-width: 420px;
  width: 95vw;
  padding: 30px 26px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInUp .35s;
  z-index: 2030;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.36rem;
  margin-bottom: 9px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-modal__category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #A6C8FF;
  border-radius: 6px;
  border: 1.5px solid #A6C8FF;
  margin: 0 5px 0 0;
}
.cookie-modal__category.essential input[type=checkbox] {
  display: none;
}
.cookie-modal__category.essential label::before {
  content: '✓';
  color: #263159;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1.5px solid #A6C8FF;
  background: #F6F6F8;
  margin-right: 7px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal__close {
  position: absolute;
  top: 17px; right: 22px;
  background: transparent;
  color: #263159;
  border: none;
  font-size: 1.20rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .18s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  opacity: 1;
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ---------------------------
   MICROS & EFFECTS
---------------------------- */
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow .18s, background .18s;
}
.card:focus-within, .features-grid > div:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 0 0 3px #A6C8FF;
}
button, .cta.primary, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .18s, color .17s, box-shadow .18s;
}

/* Subtle background shapes */
body::before {
  content: "";
  position: fixed;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 45%;
  background: #A6C8FF;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  left: -80px; bottom: -120px;
  width: 270px; height: 270px;
  border-radius: 50%;
  background: #F8D477;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* ----------
   RESPONSIVE
----------- */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  .content-wrapper {
    padding: 16px 6px 12px 6px;
  }
  nav {
    gap: 9px;
  }
  .section {
    padding: 26px 4px;
    margin-bottom: 34px;
  }
  .features-grid > div {
    min-width: 95vw;
    max-width: 98vw;
    padding: 22px 10px;
  }
}
@media (max-width: 500px) {
  .card {
    padding: 14px 7px 9px 7px;
  }
}

/* ----------
   UTILITIES
----------- */
.hide { display: none !important; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ----------
   ACCESSIBILITY FOCUS
----------- */
:focus-visible, button:focus-visible, a:focus-visible, .cta.primary:focus-visible {
  outline: 2px solid #A6C8FF;
  outline-offset: 1.5px;
  z-index: 2;
}

::-webkit-selection { background: #A6C8FF; color: #263159; }
::selection { background: #A6C8FF; color: #263159; }

/* ---------------
 SCROLLBAR LIGHT
----------------- */
::-webkit-scrollbar { width: 11px; background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #A6C8FF; border-radius: 12px; }

/* -------------
   PRINT TWEAKS
-------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 96vw; }
}
