.mi-end01-cta,
.mi-end01-footer,
.mi-end01-cta *,
.mi-end01-footer * {
  box-sizing: border-box;
}

.mi-end01-cta,
.mi-end01-footer {
  background: #fff;
  font-family: Inter, Arial, sans-serif;
}

.mi-end01-cta {
  padding: 68px 0 50px;
}

.mi-end01-wrap {
  width: min(calc(100% - 48px), 1410px);
  margin: 0 auto;
}

.mi-end01-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, .57fr) minmax(0, 1fr);
  gap: 40px;
  min-height: 430px;
  padding: 16px;
  background: #eff7f9;
  border-radius: 20px;
}

.mi-end01-photo {
  min-width: 0;
  min-height: 398px;
  overflow: hidden;
  border-radius: 16px;
}

.mi-end01-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 398px;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.mi-end01-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 37px 30px 23px 0;
}

.mi-end01-kicker {
  display: block;
  margin-bottom: 17px;
  color: #227b94;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
}

.mi-end01-copy h2 {
  margin: 0 0 20px;
  color: #163f4a;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.mi-end01-copy p {
  max-width: 860px;
  margin: 0;
  color: #507882;
  font-size: 16px;
  line-height: 1.6;
}

.mi-end01-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
}

.mi-end01-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}

.mi-end01-button svg,
.mi-end01-mail svg {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mi-end01-phone {
  color: #fff;
  background: #227b94;
}

.mi-end01-wa {
  color: #fff;
  background: #25d366;
}

.mi-end01-contact {
  min-width: 130px;
  color: #227b94;
  background: #fff;
}

.mi-end01-button:hover {
  filter: brightness(.95);
  transform: translateY(-2px);
}

.mi-end01-phone:hover,
.mi-end01-wa:hover {
  color: #fff;
}

.mi-end01-contact:hover {
  color: #227b94;
}

.mi-end01-footer-inner {
  border-top: 1px solid #e1edf0;
}

.mi-end01-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.03fr) minmax(0, .82fr) minmax(0, 1fr);
  gap: 48px;
  padding: 44px 32px 92px;
}

.mi-end01-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #163f4a;
  text-decoration: none;
}

.mi-end01-brand:hover {
  color: #163f4a;
}

.mi-end01-brand-icon {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #227b94;
  background: #eff7f9;
  border-radius: 13px;
}

.mi-end01-brand-icon svg {
  width: 30px;
  height: 30px;
}

.mi-end01-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mi-end01-brand-text strong {
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.mi-end01-brand-text small {
  color: #507882;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
}

.mi-end01-footer p {
  margin: 0;
  color: #507882;
  font-size: 15px;
  line-height: 1.55;
}

.mi-end01-location {
  max-width: 285px;
  margin-bottom: 24px !important;
}

.mi-end01-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #507882;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.mi-end01-mail svg {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
  color: #227b94;
}

.mi-end01-mail:hover,
.mi-end01-list a:hover,
.mi-end01-bottom a:hover {
  color: #227b94;
}

.mi-end01-footer-actions {
  display: grid;
  gap: 12px;
  width: min(100%, 272px);
}

.mi-end01-footer-actions .mi-end01-button {
  min-height: 44px;
  padding: 10px 18px;
}

.mi-end01-footer h3 {
  margin: 0 0 23px;
  color: #163f4a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.mi-end01-footer h4 {
  margin: 0 0 8px;
  color: #163f4a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.mi-end01-hours {
  margin-bottom: 28px !important;
}

.mi-end01-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mi-end01-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  color: #507882;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.mi-end01-list a::before {
  flex: 0 0 auto;
  content: "›";
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
}

.mi-end01-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 100px 34px 32px;
  border-top: 1px solid #e1edf0;
}

.mi-end01-bottom p,
.mi-end01-bottom a {
  color: #507882;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.mi-end01-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 20px;
}

.mi-end01-cta a:focus-visible,
.mi-end01-footer a:focus-visible {
  outline: 3px solid #5dc2de;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (hover: hover) {
  .mi-end01-cta-panel:hover .mi-end01-photo img {
    transform: scale(1.025);
  }
}

@media (max-width: 991px) {
  .mi-end01-cta-panel {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 26px;
  }

  .mi-end01-copy {
    padding-right: 14px;
  }

  .mi-end01-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
    padding-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .mi-end01-cta {
    padding: 50px 0 38px;
  }

  .mi-end01-wrap {
    width: min(calc(100% - 32px), 560px);
  }

  .mi-end01-cta-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
  }

  .mi-end01-photo,
  .mi-end01-photo img {
    height: 260px;
    min-height: 0;
  }

  .mi-end01-copy {
    padding: 0 5px 6px;
  }

  .mi-end01-copy h2 {
    font-size: clamp(27px, 7vw, 34px);
  }

  .mi-end01-copy p {
    font-size: 15px;
    line-height: 1.6;
  }

  .mi-end01-cta-actions {
    width: 100%;
    padding-top: 26px;
  }

  .mi-end01-grid {
    padding: 36px 8px 48px;
  }

  .mi-end01-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 8px 100px;
  }

  .mi-end01-bottom-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .mi-end01-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .mi-end01-cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mi-end01-cta-actions .mi-end01-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-end01-button,
  .mi-end01-photo img {
    transition: none;
  }
}
