/* === CSS RESET & BASE === */
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 {
  background: #F8F8F8;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #2C2A29;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.64;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 16px;
}
th, td {
  border: 1px solid #E3DDD0;
  padding: 12px 16px;
  text-align: left;
  background: #fcfcfa;
  font-family: 'Georgia', serif;
}
th {
  background: #F0EFEA;
  font-weight: 700;
}
a {
  color: #2260A7;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #B2852D;
}

/* === TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #18406C;
  letter-spacing: 0.006em;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, address {
  font-family: 'Open Sans', 'Georgia', serif;
  color: #2C2A29;
  margin-bottom: 14px;
  font-size: 1rem;
}
strong, b {
  font-weight: bold;
  color: #18406C;
}

/* === CONTAINERS & LAYOUT === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

/* --- SECTION SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
}

/* === FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(34,96,167,0.10);
  overflow: hidden;
  transition: box-shadow .20s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(34,96,167,0.17);
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(34,96,167,0.07);
  border-radius: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  flex-direction: column;
  transition: box-shadow .18s, background .18s;
  border-left: 4px solid #F2CA51;
}
.testimonial-card p {
  font-style: italic;
  color: #18406C;
}
.testimonial-card strong {
  color: #2260A7;
}
.testimonial-card img {
  width: 22px;
  height: 22px;
  margin-right: 2px;
  vertical-align: middle;
  filter: brightness(0.9) saturate(1.2);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 200px;
  background: #fff;
  padding: 22px 20px 20px 20px;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(34,96,167,0.08);
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .14s;
}
.feature-item:hover {
  box-shadow: 0 4px 18px 0 rgba(34,96,167,0.13);
  transform: translateY(-2px);
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #F2CA51;
  padding: 6px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 1024px) {
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .feature-item {
    min-width: unset;
  }
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1.5px solid #EEE5CF;
  z-index: 1010;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 28px;
  padding: 3px 0;
}
.logo img {
  height: 43px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #18406C;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .17s, color .17s;
}
nav a:hover, nav a:focus {
  background: #F2CA51;
  color: #18406C;
}
.button-primary {
  font-family: 'Montserrat', serif;
  background: #2260A7;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34,96,167,0.10);
  margin-left: 18px;
  cursor: pointer;
  outline: none;
  transition: background .18s, box-shadow .18s, transform .12s;
  letter-spacing: 0.01em;
}
.button-primary:active {
  transform: translateY(1px);
}
.button-primary:hover, .button-primary:focus {
  background: #18406C;
  box-shadow: 0 6px 28px 0 rgba(34,96,167,0.12);
}
.button-secondary {
  font-family: 'Montserrat', serif;
  background: #F2CA51;
  color: #18406C;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1.03rem;
  font-weight: 600;
  margin-top: 16px;
  margin-left: 6px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(242,202,81,0.07);
  transition: background .17s, color .17s, box-shadow .19s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #FFE9A7;
  color: #18406C;
  box-shadow: 0 4px 16px 0 rgba(242,202,81,0.17);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #2260A7;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1201;
  padding: 8px 10px;
  margin-left: 18px;
  border-radius: 6px;
  transition: background .13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F2CA51;
  color: #18406C;
}
.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    position: fixed;
    z-index: 4015;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34,96,167,0.93);
    transform: translateX(100vw);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: transform .34s cubic-bezier(0.8,0,0.2,1), opacity .27s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-close {
    font-size: 2.2rem;
    background: none;
    color: #fff;
    border: none;
    padding: 22px 30px 14px 8px;
    cursor: pointer;
    z-index: 4022;
    margin-bottom: 10px;
    margin-right: 2px;
    transition: color .17s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #F2CA51;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 40px 0 40px;
    margin-top: 0;
  }
  .mobile-nav a {
    color: #fff;
    font-size: 1.25rem;
    padding: 9px 0 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    font-family: 'Montserrat', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color .15s, background .15s;
    margin-left: 0;
    border-radius: 0;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: #F2CA51;
    background: rgba(242,202,81,0.06);
  }
}

/* === FOOTER === */
footer {
  background: #E3DDD0;
  color: #222;
  border-top: 1px solid #d6d1c2;
  padding-top: 20px;
  font-size: 0.98rem;
}
footer section {
  margin-bottom: 0;
  padding: 36px 20px 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
footer nav a {
  color: #18406C;
  font-family: 'Montserrat', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color .13s;
}
footer nav a:hover {
  color: #B2852D;
}
footer img {
  height: 32px;
  margin-bottom: 8px;
}
footer address {
  font-family: 'Open Sans', serif;
  font-style: normal;
  color: #2C2A29;
  line-height: 1.6;
  margin-bottom: 0;
}
footer address img {
  height: 16px;
  width: 16px;
  vertical-align: sub;
  margin-right: 5px;
  filter: brightness(0.9);
}
footer span {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #444;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer section {
    padding: 27px 8px 16px 8px;
  }
}

/* === MAP PLACEHOLDER === */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F2CA51;
  border-radius: 9px;
  padding: 8px 15px;
  max-width: 400px;
  margin: 18px 0;
}
.map-placeholder img {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
}
.map-placeholder span {
  color: #18406C;
  font-size: 0.96rem;
  font-style: italic;
}

/* === RESPONSIVE UTILS === */
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 6px;
  }
}

/* === TABLES === */
table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
tr:nth-child(even) td {
  background: #F8F8F8;
}
td:first-child {
  font-weight: 600;
}

/* === MICROINTERACTIONS === */
.button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .18s, color .17s, box-shadow .18s, transform .13s;
}
.feature-item, .testimonial-card, .card {
  transition: box-shadow .21s, transform .11s;
}

/* === WHITE SPACE & ALIGNMENT === */
.content-wrapper > * {
  margin-bottom: 0;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}
section > .container:not(:last-child) {
  margin-bottom: 20px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 2.5px solid #F2CA51;
  box-shadow: 0 -2px 28px 0 rgba(34,96,167,0.07);
  padding: 28px 15px 22px 15px;
  z-index: 6000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: cookieBannerIn .6s cubic-bezier(0.7,0,0.25,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(128px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.03rem;
  color: #2C2A29;
  font-family: 'Open Sans', serif;
  max-width: 490px;
  margin: 0 28px 0 0;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', serif;
  border-radius: 999px;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  margin-right: 6px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 8px 0 rgba(34,96,167,0.06);
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-accept {
  background: #2260A7;
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #18406C;
}
.cookie-banner .cookie-settings {
  background: #F2CA51;
  color: #18406C;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFE9A7;
}
.cookie-banner .cookie-reject {
  background: #fff1db; color: #B2852D; border: 1.2px solid #F2CA51;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #FFFBF1;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 6100;
  background: rgba(34,96,167,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 38px 0 rgba(34,96,167,0.16);
  padding: 38px 36px 28px 36px;
  min-width: 310px;
  max-width: 99vw;
  max-height: 95vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookieModalIn .4s cubic-bezier(0.7,0,0.25,1);
  position: relative;
}
@keyframes cookieModalIn {
  0% { transform: scale(0.96) translateY(90px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.27rem; color: #2260A7; margin-bottom: 4px;
}
.cookie-modal-content .cookie-category {
  display: flex; align-items: center; gap: 13px; margin-bottom: 12px;
  font-family: 'Open Sans', serif;
}
.cookie-modal-content .cookie-switch {
  width: 34px; height: 20px; background: #F2CA51; border-radius: 999px; position: relative; transition: background .18s;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(34,96,167,0.06);
}
.cookie-modal-content .cookie-switch[data-on="false"] {
  background: #ddd;
}
.cookie-modal-content .cookie-switch::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%; background: #fff;
  transition: left .18s;
}
.cookie-modal-content .cookie-switch[data-on="true"]::before {
  left: 17px;
}
.cookie-modal-content .cookie-btn {
  margin-top: 22px;
  margin-right: 8px;
  font-size: 1.01rem;
}
.cookie-modal-content .cookie-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none;
  color: #2260A7; font-size: 1.41rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .17s;
  border-radius: 6px;
}
.cookie-modal-content .cookie-close:hover, .cookie-modal-content .cookie-close:focus {
  color: #F2CA51;
}

@media (max-width: 430px) {
  .cookie-modal-content {
    min-width: 90vw;
    padding: 21px 10px 18px 10px;
  }
  .cookie-modal-content .cookie-close {
    top: 5px; right: 7px;
  }
}

/* === MISCELLANEOUS === */
::-webkit-input-placeholder { color: #A0977E; }
::-moz-placeholder { color: #A0977E; }
:-ms-input-placeholder { color: #A0977E; }
::placeholder { color: #A0977E; }

/* === INLINE ICONS === */
li img, address img, ul img, .feature-item img {
  display: inline-block; vertical-align: text-bottom;
  margin: 0 8px 0 0;
}

/* === FORM/INTERACTIVE === */
input, textarea, select {
  border-radius: 7px;
  border: 1px solid #dac672;
  padding: 9px 13px;
  font-family: 'Open Sans', serif;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fff;
  transition: border .16s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #2260A7;
  outline: none;
  box-shadow: 0 1px 6px 0 rgba(34,96,167,0.15);
}

/* === VISUAL SECTIONS IN CARDS === */
.card {
  padding: 22px 18px;
}

/* === MEDIA QUERIES FOR LAYOUT === */
@media (max-width: 1024px) {
  header .container {
    height: 68px;
  }
}
@media (max-width: 820px) {
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 13px;
  }
}

/* === VISUAL EFFECTS === */
.card, .feature-item, .testimonial-card {
  box-shadow: 0 2px 10px 0 rgba(34,96,167,0.07);
}
.card:hover, .feature-item:hover {
  box-shadow: 0 4px 22px 0 rgba(34,96,167,0.15);
  transform: translateY(-3px);
}

/* === Z-INDEX FOR POPUPS === */
.cookie-modal, .cookie-banner, .mobile-menu {
  z-index: 9950;
}
header {
  z-index: 999;
}

/* === PRINT === */
@media print {
  * {
    background: none !important;
    color: #000;
    box-shadow: none !important;
  }
  nav, .mobile-menu, .mobile-menu-toggle, footer, .cookie-banner, .cookie-modal { display: none !important; }
}
