.foyer-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.72);
}

.foyer-popup-container {
  position: relative;
  width: min(100%, 520px);
  margin: auto;
  padding: 22px 18px 25px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #00558f 0%, #0072b8 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.foyer-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.foyer-popup-close.is-visible {
  opacity: 0.92;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.foyer-popup-close:hover,
.foyer-popup-close:focus {
  opacity: 1;
}

.foyer-popup-logo {
  display: block;
  width: min(100%, 172px);
  height: auto;
  margin: 0 auto 14px;
}

.foyer-popup-heading {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.3rem, 4.3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.foyer-popup-subtitle {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  font-weight: 300;
  line-height: 1.3;
}

.foyer-popup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.foyer-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-right: 12px;
  background-color: #fff;
  color: #012b52;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(1, 24, 43, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foyer-option-label {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-width: 0;
}

.foyer-option:hover,
.foyer-option:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(1, 24, 43, 0.24);
}

.foyer-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background-color: #012b52;
  color: #fff;
  font-size: 1.2rem;
}

.foyer-option-title {
  display: block;
  min-width: 0;
  text-align: left;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 700;
  line-height: 1.12;
}

.foyer-option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  background-color: #f6871f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.foyer-option-button-mobile {
  display: none;
}

.foyer-option:hover .foyer-option-button,
.foyer-option:focus .foyer-option-button {
  background-color: #e67813;
}

@media (max-width: 900px) {
  .foyer-popup-container {
    padding: 20px 16px 22px;
  }

  .foyer-option {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    min-height: 48px;
  }

  .foyer-option-label {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .foyer-option-icon {
    width: 46px;
    height: 46px;
    margin-left: -23px;
    font-size: 1.05rem;
  }

  .foyer-option-button {
    min-height: 38px;
    font-size: 0.78rem;
  }
}

@media (max-width: 680px) {
  .foyer-popup-overlay {
    padding: 0;
  }

  .foyer-popup-container {
    width: 100%;
    padding: 24px 20px 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .foyer-popup-logo {
    width: min(100%, 220px);
    margin-bottom: 12px;
  }

  .foyer-popup-subtitle {
    margin-bottom: 16px;
  }

  .foyer-popup-options {
    width: 100%;
    max-width: none;
    gap: 12px;
  }

  .foyer-option {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 0;
    justify-items: stretch;
  }

  .foyer-option-label {
    display: none;
  }

  .foyer-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0 10px 0 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
  }

  .foyer-option-title {
    display: none;
  }

  .foyer-option-button {
    width: 100%;
    min-height: 60px;
    padding: 14px 18px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foyer-option-button-desktop {
    display: none;
  }

  .foyer-option-button-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foyer-popup-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }
}

@media (max-width: 420px) {
  .foyer-popup-container {
    padding: 20px 16px 18px;
  }

  .foyer-popup-logo {
    width: min(100%, 200px);
    margin-bottom: 10px;
  }

  .foyer-popup-subtitle {
    margin-bottom: 14px;
  }

  .foyer-popup-options {
    gap: 10px;
  }

  .foyer-option-button {
    min-height: 56px;
    padding: 12px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }

  .foyer-option-icon {
    font-size: 1rem;
    margin-right: 8px;
  }
}