.rgi-mobile-site-header {
  display: none;
}

.rgi-mobile-site-menu-button {
  display: none;
}

.rgi-mobile-menu-panel {
  display: none;
}

body > header,
body > footer {
  display: none !important;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    background: #f4f8fc;
  }

  #root,
  #rgi-v1-root {
    overflow-x: hidden;
    background: #f4f8fc;
  }

  #root *,
  #rgi-v1-root * {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  #root > div > div:first-child,
  #rgi-v1-root > div > div:first-child {
    display: none !important;
  }

  #root > div > div:nth-child(2),
  #rgi-v1-root > div > div:nth-child(2) {
    padding-top: 0 !important;
    background: #f4f8fc !important;
    min-height: 100vh !important;
  }

  #root > div > div:nth-child(2) > div,
  #rgi-v1-root > div > div:nth-child(2) > div {
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #f4f8fc !important;
  }

  .rgi-mobile-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 72px 12px 16px;
    background: #fff !important;
    border-bottom: 1px solid #d0e4f0 !important;
  }

  .rgi-mobile-site-header::after {
    content: "☰";
    position: absolute;
    top: 12px;
    left: clamp(312px, 84vw, 370px);
    right: auto;
    transform: translateX(-100%);
    z-index: 2147483003;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e3956;
    border-radius: 6px;
    background: #ffd400;
    color: #0e3956;
    font: 800 24px/1 Montserrat, Inter, Arial, sans-serif;
    box-shadow: 0 3px 12px rgba(14, 57, 86, 0.18);
    pointer-events: none;
  }

  .rgi-mobile-site-brand {
    display: inline-flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 60px) !important;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #0e3956;
    text-align: left;
    cursor: pointer;
    padding: 0;
  }

  .rgi-mobile-site-brand img {
    flex: 0 0 38px !important;
    width: 38px;
    height: 38px;
    display: block;
  }

  .rgi-mobile-site-brand span {
    display: block;
    min-width: 0 !important;
    font-family: Montserrat, Inter, Arial, sans-serif;
    line-height: 1.12;
  }

  .rgi-mobile-site-brand .kicker,
  .rgi-mobile-site-brand .tail {
    font-size: 10px;
    font-weight: 400;
  }

  .rgi-mobile-site-brand .name {
    font-size: 14px;
    font-weight: 800;
  }

  .rgi-mobile-site-menu-button {
    display: inline-flex !important;
    flex: 0 0 44px !important;
    position: fixed !important;
    right: auto !important;
    left: clamp(312px, 84vw, 370px) !important;
    top: 12px !important;
    margin: 0 !important;
    transform: translateX(-100%) !important;
    width: 44px;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px;
    min-height: 44px !important;
    max-height: 44px !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e3956;
    border-radius: 6px;
    background: #ffd400;
    color: #0e3956;
    cursor: pointer;
    font: 800 24px/1 Montserrat, Inter, Arial, sans-serif;
    box-shadow: 0 3px 12px rgba(14, 57, 86, 0.18);
    z-index: 2147483002 !important;
    opacity: 0 !important;
  }

  .rgi-mobile-menu-panel {
    position: fixed;
    inset: 76px 12px auto 12px;
    z-index: 2147483001;
    display: none;
    padding: 10px;
    border: 1px solid #d0e4f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(14, 57, 86, 0.18);
  }

  .rgi-mobile-menu-panel.is-open {
    display: block;
  }

  .rgi-mobile-menu-panel button {
    display: block;
    width: 100%;
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid #e6f1f9;
    background: transparent;
    color: #0e3956;
    font: 700 12px/1.2 Montserrat, Inter, Arial, system-ui, sans-serif;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
  }

  .rgi-mobile-menu-panel button:last-child {
    border-bottom: 0;
  }

  #root header + *,
  #rgi-v1-root header + * {
    clear: both;
  }

  #root header,
  #rgi-v1-root header {
    display: none !important;
  }

  #root h1,
  #rgi-v1-root h1 {
    width: 100% !important;
    max-width: 320px !important;
    font-size: 1.58rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  #root h2,
  #rgi-v1-root h2 {
    max-width: calc(100vw - 40px) !important;
    font-size: 1.72rem !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  #root h3,
  #rgi-v1-root h3 {
    max-width: calc(100vw - 40px) !important;
    font-size: 1.05rem !important;
    line-height: 1.26 !important;
    letter-spacing: 0 !important;
  }

  #root section,
  #rgi-v1-root section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #root main,
  #rgi-v1-root main {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #root [style*="max-width: 1180px"],
  #rgi-v1-root [style*="max-width: 1180px"] {
    max-width: 100% !important;
  }

  #root [style*="grid-template-columns"],
  #rgi-v1-root [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #root [style*="height: calc(100vh - 68px)"],
  #rgi-v1-root [style*="height: calc(100vh - 68px)"] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #root [style*="min-height: 520px"],
  #rgi-v1-root [style*="min-height: 520px"] {
    min-height: 0 !important;
  }

  #root [style*="padding: 100px 32px"],
  #rgi-v1-root [style*="padding: 100px 32px"] {
    padding: 64px 20px !important;
  }

  #root [style*="padding: 80px 32px"],
  #rgi-v1-root [style*="padding: 80px 32px"] {
    padding: 56px 20px !important;
  }

  #root [style*="padding: 56px 48px"],
  #root [style*="padding: 52px"],
  #rgi-v1-root [style*="padding: 56px 48px"],
  #rgi-v1-root [style*="padding: 52px"] {
    padding: 36px 20px !important;
    overflow: hidden !important;
  }

  #root [style*="padding: 44px"],
  #root [style*="padding: 40px"],
  #rgi-v1-root [style*="padding: 44px"],
  #rgi-v1-root [style*="padding: 40px"] {
    padding: 24px !important;
  }

  #root [style*="justify-content: space-between"],
  #rgi-v1-root [style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  #root [style*="height: 360px"],
  #root [style*="height: 300px"],
  #root [style*="height: 240px"],
  #rgi-v1-root [style*="height: 360px"],
  #rgi-v1-root [style*="height: 300px"],
  #rgi-v1-root [style*="height: 240px"] {
    height: auto !important;
    min-height: 220px !important;
  }

  #root img,
  #root video,
  #rgi-v1-root img,
  #rgi-v1-root video {
    max-width: 100% !important;
  }

  #root footer [style*="grid-template-columns"],
  #rgi-v1-root footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  #root footer [style*="padding: 72px 32px 40px"],
  #rgi-v1-root footer [style*="padding: 72px 32px 40px"] {
    padding: 48px 20px 32px !important;
  }
}
