@media (max-width: 1024px) {
  .modern-nav {
    display: none !important;
  }
  body .modern-header-contact {
    display: none !important;
  }
  .modern-nav.open {
  background: #ebe0c8 ;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 24px rgba(44,90,160,0.10);
  right: 0;
  left: auto;
  top: 56px;
  min-width: 70px;
  display: flex !important;
  position: absolute;
  top: 85%;
  width: 18vw;
  max-width: 70px;
  flex-direction: column;
  align-items: stretch;
  z-index: 1200;
  padding: 10px 0 10px 0;
  gap: 10px;
  justify-content: flex-start;
  }
  .burger-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    right: 20px;
    top: 10px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    outline: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2001;
  }
  .burger-menu span {
    width: 16px;
    height: 2px;
    margin: 2px 0;
    display: block;
  }
  .modern-nav.open a {
    justify-content: center;
    padding: 10px 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .modern-nav.open a span {
    display: none;
  }
  .modern-nav.open a .nav-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 0;
  }
  .modern-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    padding: 0 8px;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    position: relative;
  }
  .modern-logo {
    margin: 0;
    margin-right: auto;
    padding: 0;
    position: static !important;
    z-index: 4002;
    order: 0;
    display: flex;
    align-items: center;
    left: unset !important;
    top: unset !important;
    bottom: unset !important;
    height: auto !important;
  }
  .modern-logo img {
    height: 50px !important;
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
  }
  .df-footer {
      width: 100%;
      background: rgba(235,222,200,0.95);
      padding: 24px 0 10px 0;
      font-family: 'Comic Sans MS', cursive, sans-serif;
      font-size: 1em;
      color: #333;
      margin-top: auto;
      box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
    }
    .df-footer-main {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto 8px auto;
      padding: 0 32px;
      flex-wrap: wrap;
      gap: 18px;
    }
    .df-footer-address {
      color: #333;
      font-size: 1em;
    }
    .df-footer-links {
      display: flex;
      gap: 18px;
    }
    .df-footer-links a {
      color: #2c5aa0;
      text-decoration: none;
      transition: color 0.2s;
    }
    .df-footer-links a:hover {
      color: #1eb05a;
    }
    .df-footer-copy {
      text-align: center;
      color: #333;
      font-size: 0.98em;
      margin-top: 6px;
    }
  .footer-name,
  .footer-address-row,
  .footer-contact-row {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 0.98em;
    color: #444;
  }
  .footer-email-row {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 0.98em;
  }
  .footer-email-row a {
    color: #1a3e8a;
    text-decoration: underline;
    word-break: break-all;
  }
  .df-footer-main {
    padding: 0 18px !important;
  }
  .df-footer-links {
    justify-content: center;
    width: 100%;
    font-size: 0.95em;
    margin: 10px 0 0 0;
    gap: 14px;
  }
  .df-footer-links a {
    color: #1a3e8a;
    font-size: 1em;
  }
}

@media (max-width: 900px) {
  .modern-nav a {
    height: auto;
    padding: 8px 0;
  }
  .modern-header-inner {
    flex-direction: column;
    height: auto;
    padding: 0 12px;
  }
  .modern-nav {
    gap: 18px;
    font-size: 1em;
  }
    .modern-header-contact {
      margin-top: 8px;
    }
    .df-footer-main { flex-direction: column; align-items: flex-start; height: auto; }
    .df-footer-main { padding: 0 12px; }
  }
