 .progress-wrap{
  position:relative;
  width:100%;
  height:10px;
  background:#f0f4f7;
  border-radius:8px;
  overflow:hidden;
}
.progress-bar{
  height:100%;
  width:0%;
  background:#599cda;
  transition:width .2s ease;
}
.progress-indeterminate{
  position:absolute;
  top:0; bottom:0;
  width:30%;
  background:#599cda;
  animation:indeterminate 1.2s infinite;
}
@keyframes indeterminate{
  0%{left:-30%}
  50%{left:50%}
  100%{left:100%}
}
/* Блокируем клики во время аплоада, чуть притемняем форму */
.upload-lock{ pointer-events:none; opacity:.8; }

    body {
      font-family: "Segoe UI", sans-serif;
      padding: 20px;
      background-color: #e6f0f3;
      margin: 0;
    }

    h1 {
      text-align: center;
      font-size: 28px;
      margin-bottom: 25px;
      color: #333;
    }

    form {
      background: #ffffff;
      padding: 30px;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(27, 67, 140, 0.12);
      max-width: 700px;
      margin: 0 auto;
      animation: fadeIn 0.5s ease;
    }

    input, select, textarea {
      width: 100%;
      padding: 14px;
      margin-bottom: 18px;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 10px;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    input:focus, select:focus, textarea:focus {
      border-color: #007bff;
      box-shadow: 0 0 6px rgba(0,123,255,0.3);
      outline: none;
    }

 button {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;

  /* такие же эффекты как у ripple-кнопок */
  background: linear-gradient(to right, #599cda, #599cda);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.3s ease;
}


    button:hover {
      transform: scale(1.02) translateY(-2px);
    }

    button:active {
      transform: scale(0.98) translateY(1px);
    }

    .file-input {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f7f7f7;
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 18px;
      border: 1px solid #ccc;
      cursor: pointer;
      transition: border-color 0.3s;
    }

    .file-input:hover {
      border-color: #007bff;
    }

    .file-input input {
      display: none;
    }

    .preview {
      display: none;
      margin-top: 10px;
      text-align: center;
    }

    .preview img {
      max-width: 100%;
      max-height: 300px;
      border-radius: 12px;
      margin-top: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 480px) {
      h1 {
        font-size: 22px;
      }
      form {
        padding: 20px;
      }
      button {
        font-size: 16px;
        padding: 12px;
      }
    }
    .home-fade-button {
  display: block;
  width: max-content;
  margin: 0 auto 25px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: bold;
  color: #599cda;
  background-color: transparent;
  border: 2px solid #599cda;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent; /* 💥 убираем квадрат при тапе на Android */
  box-shadow: none; /* 💥 убираем лишнюю тень */
}
.home-fade-button:hover {
  background-color: rgba(37, 133, 211, 0.15);
  color: white;
  transform: scale(1.05);
}
.home-fade-button:active {
  transform: scale(0.97);
  background-color: rgba(24, 136, 171, 0.25);
}


@keyframes ripple-effect {
  to {
    transform: scale(12);
    opacity: 0;
  }
}
.ripple-button {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.ripple {
  position: absolute;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
  opacity: 1;
}




/* --- Bottom Nav: скрыта на ПК --- */
.bottom-nav{ display:none }

/* Подсветка активной кнопки */
.bn-link.active { background:#1a242b; }

/* Кнопка "Закрыть" в модалке карты */
#mapCloseFrom,
#mapCloseTo {
  width: 140px;        /* фиксируем ширину */
  text-align: right;   /* текст прижат к правому краю */
}

/* --- Мобильная версия --- */
@media (max-width:780px){
  .nav{ display:none; }  /* если сверху есть .nav */

  /* НЕ скрываем bottom-nav на мобилке — убрать эту строку */
  /* .bottom-nav{ display:none } */

  /* Спейсер берёт реальную высоту панели */
  .bn-spacer{
    height: calc(var(--bn-h, 88px) + env(safe-area-inset-bottom));
  }
}  /* ← закрываем первый @media корректно */

@media (max-width:780px){
  .nav{ display:none; }

  .bottom-nav{
    position: fixed; left:0; right:0; bottom:0;
    display:flex; gap:8px;
    padding:14px 14px calc(14px + env(safe-area-inset-bottom));
    background:#202c33; border-top:1px solid #2a3942;
    overflow-x:auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    z-index:1000;
  }

  .bn-link{
    position: relative; overflow: hidden;
    flex:0 0 auto; min-width:84px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:6px; padding:12px 10px; border-radius:14px;
    text-decoration:none; color:#e9edef; font-weight:700; font-size:14px;
    -webkit-tap-highlight-color:transparent;
  }
  .bn-link span{ font-size:12px; color:#aebac1; }
}




.bn-link.active {
  background:#1a242b;
}

  

@media (max-width:780px){
  .home-fade-button{ display:none; }
}

/* вне @media */
:root{
  --safe: env(safe-area-inset-bottom, 0px);
  --bn-h: 0px;                 /* динамическая высота нижней панели */
}

/* спейсер берёт реальную высоту панели */
.bn-spacer{
  height: calc(var(--bn-h, 88px) + env(safe-area-inset-bottom));
}

/* подсветка активной кнопки */
.bn-link.active{ background:#1a242b; }

/* Красный стиль района */
.np-dist {
  color: #d32f2f;   /* насыщенный красный */
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  margin-top: 2px;
}






  