/* Footer */
.site-footer {
  position: relative;
  flex: 0 0 auto;
  display: block;
  visibility: visible;
  width: 100%;
  min-width: 0;
  overflow: visible;
  opacity: 1;
  border-top: 0;
  color: rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 10% 0%, rgba(78, 169, 90, 0.2), transparent 30%),
    #123b36;
  box-shadow: none;
}

body > .site-footer {
  margin-top: 0;
}

.footer-container {
  max-width: 1180px;
  justify-content: space-between;
  gap: 44px;
  padding: 58px 24px 48px;
  text-align: left;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-col.footer-brand {
  flex-basis: 330px;
}

.footer-col h4 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col p {
  max-width: 360px;
  margin: 0;
  line-height: 1.7;
}

.footer-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.footer-install-button[hidden] {
  display: none;
}

.footer-install-button:hover,
.footer-install-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.footer-install-button:active {
  transform: translateY(1px);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-col a:hover {
  color: #a9e4b0;
}

.footer-logo {
  display: inline-flex;
  padding: 7px 10px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
}

.footer-logo img {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.08);
}

.footer-bottom p {
  margin: 0;
}

.install-app-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 520px);
  height: max-content;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid rgba(21, 61, 96, 0.14);
  border-radius: 22px;
  color: #1f4367;
  background: #fff;
  box-shadow: 0 28px 80px rgba(9, 35, 55, 0.24);
}

.install-app-dialog::backdrop {
  background: rgba(10, 31, 44, 0.58);
  backdrop-filter: blur(3px);
}

.install-app-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  gap: 1rem;
  padding: 1.4rem;
}

.install-app-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.install-app-dialog-eyebrow {
  margin: 0 0 0.3rem;
  color: #2f7d32;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.install-app-dialog h2 {
  margin: 0;
  color: #1f4367;
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  line-height: 1.2;
}

.install-app-dialog > p {
  margin: 0;
  color: #526d87;
  line-height: 1.6;
}

.install-app-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(21, 61, 96, 0.12);
  border-radius: 999px;
  color: #1f4367;
  background: #f5f9fc;
  font-size: 1.35rem;
  cursor: pointer;
}

.install-app-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.35rem;
  color: #284866;
}

.install-app-steps li {
  padding-left: 0.2rem;
  line-height: 1.5;
}

.install-app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.install-app-dialog-actions .ui-button {
  width: auto;
  min-height: 44px;
  padding: 0.65rem 1rem;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .footer-install-button {
    display: none;
  }
}
