/*
  RESET & NORMALIZE
-----------------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F7F7F5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1a2233;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #123574;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

/*
  TYPOGRAPHY
-----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  color: #123574;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4,h5,h6 {
  font-weight: 500;
  margin-bottom: 8px;
}
p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #2b2c34;
}
strong {
  font-weight: 600;
}
ul, ol {
  margin-left: 28px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.55;
}
blockquote {
  font-family: 'Roboto Slab', Georgia, serif;
  font-style: italic;
  color: #222846;
  font-size: 1.18rem;
  background: #f3f5f9;
  padding: 24px 30px 24px 24px;
  border-left: 4px solid #123574;
  border-radius: 7px;
  position: relative;
  margin-bottom: 12px;
}
blockquote span {
  display: block;
  margin-top: 14px;
  color: #76809b;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/*
  LAYOUT, CONTAINER, SECTIONS, FLEXBOX
-----------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-top: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(17,35,66,0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(18,53,116,.13);
}
.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: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(18,53,116,0.09);
  margin-bottom: 22px;
  margin-top: 10px;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(18,53,116,.17);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(18,53,116,.06);
  padding: 30px 22px;
  min-width: 235px;
  max-width: 320px;
  flex: 1 1 240px;
  transition: box-shadow .22s, transform .22s;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 6px 25px 0 rgba(18,53,116,0.16);
}
.feature-item img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  justify-content: flex-start;
}
.advantages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.advantages-list ul {
  list-style: disc inside;
  margin-left: 0;
  padding-left: 0;
}

/* Brand tagline */
.brand-tagline {
  font-family: 'Roboto Slab', Georgia, serif;
  font-style: italic;
  color: #114285;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  margin-top: 18px;
  margin-bottom: 0;
  opacity: 0.89;
}

/*
  HEADER & NAVIGATION
-----------------------------------------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 10px 0 rgba(18,53,116,0.03);
  position: relative;
  z-index: 1003;
  padding: 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  min-height: 84px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.08rem;
}
.main-nav a {
  color: #123574;
  opacity: 0.98;
  padding: 5px 6px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #eceff7;
  color: #324b82;
}
.btn-primary {
  font-family: 'Roboto Slab', Georgia, serif;
  padding: 11px 28px;
  background: #123574;
  color: #fff;
  border-radius: 32px;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s, color 0.18s;
  box-shadow: 0 3px 10px 0 rgba(18,53,116,0.05);
  margin-left: 18px;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #254c91;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(18,53,116,0.14);
}

/*
  FOOTER
-----------------------------------------------------------*/
footer {
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 0;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 34px;
  padding-bottom: 22px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-family: 'Roboto Slab', Georgia, serif;
}
.footer-nav a {
  color: #324b82;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover {
  color: #123574;
  background: #eaeefd;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  color: #1d2942;
}
.footer-info address {
  font-style: normal;
  color: #6e768a;
  font-size: 0.99rem;
  margin-bottom: 2px;
}
.footer-info small {
  color: #b0b7c3;
  font-size: 0.91rem;
  margin-top: 2px;
}

/*
  LINKS & BUTTONS
-----------------------------------------------------------*/
.button,
.btn,
.btn-primary {
  outline: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible {
  outline: 2px dashed #123574;
  outline-offset: 2px;
}

/*
  HERO SECTION
-----------------------------------------------------------*/
.hero {
  background: linear-gradient(120deg, #eaf0f8 65%, #f7f7f5 100%);
  padding: 58px 0 44px 0;
  margin-bottom: 58px;
  border-bottom: 1px solid #e2eaf4;
  box-shadow: 0 2px 14px 0 rgba(18,53,116,0.04);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #123574;
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.17rem;
  color: #1d2942;
  margin-bottom: 20px;
  max-width: 510px;
}

/*
  LISTS, TABLES
-----------------------------------------------------------*/
.content-wrapper ul, .content-wrapper ol {
  margin-bottom: 18px;
}
.content-wrapper ul li::marker {
  color: #123574;
}
.content-wrapper ul li strong {
  color: #1a2233;
}
/*
  ICONS IN CONTACT
-----------------------------------------------------------*/
.content-wrapper li img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  margin-bottom: -2px;
}

/*
  MOBILE BURGER MENU
-----------------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: #123574;
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 1031;
  padding: 8px 12px;
  transition: background 0.17s;
  border-radius: 6px;
  cursor: pointer;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #eaf0fa;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.53,.04,.46,1.37);
  box-shadow: 0 6px 38px 0 rgba(18,53,116,.14);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: #123574;
  background: none;
  border: none;
  padding: 13px 18px 13px 10px;
  margin: 18px 12px 4px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.21s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #edf2fd;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin: 0 28px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #123574;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.20rem;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.17s, color 0.16s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover {
  background: #eaf0fa;
  color: #29345a;
}
@media (max-width: 1100px) {
  header .container {
    min-height: 74px;
    height: 74px;
  }
  .main-nav {
    font-size: 1rem;
    gap: 11px;
  }
  .btn-primary {
    padding: 9px 18px;
    font-size: 1.02rem;
    margin-left: 11px;
  }
}
@media (max-width: 900px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding-right: 52px;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 94vw;
    padding: 0 10px;
  }
  .features-grid,
  .advantages-list {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 2vw;
  }
  .main-nav {
    display: none;
  }
  .hero {
    padding: 34px 0 24px 0;
  }
}
@media (max-width: 768px) {
  /* Mobile-first column layouts */
  .content-grid,
  .features-grid,
  .advantages-list,
  .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .footer-info, .footer-nav {
    align-items: flex-start;
  }
  .footer-nav {
    gap: 8px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.43rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 8px 13px;
  }
  .brand-tagline {
    font-size: .98rem;
  }
}
/* For .text-image-section vertical stacking on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}

/*
  COOKIE BANNER & MODAL
-----------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #f3f7fb;
  color: #123574;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  box-shadow: 0 -2px 22px 0 rgba(26,34,51,.13);
  z-index: 9999;
  font-size: 1.01rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  justify-content: space-between;
  animation: cookieIn 0.5s cubic-bezier(.54,.04,.36,1.33);
}
@keyframes cookieIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__content {
  flex: 1 1 300px;
  max-width: 600px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn,
.cookie-btn-primary {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.02rem;
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-btn-primary {
  background: #123574;
  color: #fff;
  font-weight: 700;
}
.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
  background: #254c91;
}
.cookie-btn {
  background: #eaf3fd;
  color: #123574;
  font-weight: 500;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #d7e6fa;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 130%);
  width: 98vw;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px 0 rgba(18,53,116,.15);
  z-index: 10001;
  padding: 32px 24px 24px 24px;
  color: #123574;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.54,.04,.36,1.33), opacity 0.3s;
}
.cookie-modal.open {
  transform: translate(-50%,0);
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.17rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal__group {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee8f4;
}
.cookie-modal__group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cookie-modal__group strong {
  font-size: 1.07rem;
  color: #123574;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  border-radius: 12px;
  background: #e8edf0;
  position: relative;
  outline: none;
  vertical-align: middle;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 14px;
}
.cookie-toggle:checked {
  background: #123574;
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.19s;
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .cookie-modal {
    padding: 18px 10px 16px 10px;
    bottom: 10px;
  }
}

/*
  ACCESSIBILITY/HOVER/FOCUS
-----------------------------------------------------------*/
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px solid #89B2D1;
  outline-offset: 2px;
}
a:active {
  color: #254c91;
}
@media (hover: hover) {
  .main-nav a:hover, .main-nav a:focus { background: #eceff7; color: #123574; }
  .btn-primary:hover, .btn-primary:focus { background: #254c91; color: #fff; }
  .footer-nav a:hover { background: #eaf0fa; color: #123574; }
  .cookie-btn:hover, .cookie-btn-primary:hover { filter: brightness(1.07); }
}

/*
  MICRO-ANIMATIONS
-----------------------------------------------------------*/
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.18s;
}
.btn-primary, .button, .cookie-btn, .cookie-btn-primary {
  transition: background 0.15s, color 0.16s, box-shadow 0.2s;
}
@media (min-width: 901px) {
  .main-nav, .btn-primary { display: flex; }
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
/*
  SPACING HELPERS (gap is mandatory for flex)
-----------------------------------------------------------*/
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/*
  MINIMUM MARGINS BETWEEN CARDS/SECTIONS
-----------------------------------------------------------*/
.card, .testimonial-card, .feature-item, .section, main > section {
  margin-bottom: 20px !important;
}

/*
  Z-INDEX OVERLAP CONTROL
-----------------------------------------------------------*/
header,
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 2120;
}

/*
  SCROLL BAR STYLING (for elegance)
-----------------------------------------------------------*/
::-webkit-scrollbar {
  width: 11px;
  background: #e9eaea;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #d9deeb;
  border-radius: 8px;
}

/*
  GENERAL UTILITY
-----------------------------------------------------------*/
.sr-only { position: absolute !important; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/*
  PRINT SUPPORT
-----------------------------------------------------------*/
@media print {
  *, *:before, *:after { background: #fff !important; color: #111 !important; box-shadow: none !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
