/* --- базовые стили страницы --- */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}
.container {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
}
.logo {
  width: 150px;
  margin-bottom: 20px;
}
input {
  padding: 12px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
input:disabled {
  background-color: #f0f0f0;
  color: #888;
  cursor: not-allowed;
}
button {
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
  width: 100%;
}
button[disabled] {
  background-color: #bdbdbd;
  color: #6b6b6b;
  cursor: not-allowed;
}
button:hover:not([disabled]) {
  background-color: #218838;
}
p {
  margin-top: 20px;
  font-weight: bold;
  font-size: 14px;
}
.small {
  margin-top: 8px;
  font-weight: normal;
  font-size: 13px;
  color: #666;
}
#deliveryArea {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: 20px;
}
#deliveryIcon {
  font-size: 48px;
  position: absolute;
  left: -60px;
  top: 15px;
  visibility: hidden;
  opacity: 0;
  transition: left 5s linear, opacity 0.5s;
}
#deliveryIcon.animate {
  visibility: visible;
  opacity: 1;
  left: 320px;
}

/* --- стили модального окна --- */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* скрыто по умолчанию */
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.modal__content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 480px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}
.modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}
.modal__body {
  padding: 10px 6px 4px;
}
.modal__image {
  font-size: 64px;
  margin-bottom: 8px;
  transform-origin: center;
  animation: float 2.8s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.modal__content h2 {
  margin: 8px 0 6px;
  font-size: 20px;
}
.modal__content p {
  margin: 0;
  color: #333;
  font-size: 15px;
}

/* адаптив */
@media (max-width: 480px) {
  .container { padding: 24px; }
  #deliveryIcon.animate { left: 220px; }
}
