@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', sans-serif;
  color: #2d3748;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('./images/img1.png') center/cover no-repeat fixed;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}

.toggle-btn button,
.language-selector select {
  padding: 8px 16px;
  border: 2px solid #1e40af;
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  color: #1e40af;
  font-weight: 500;
  cursor: pointer;
}

.container {
  width: 420px;
  max-width: 94vw;
  margin: 100px auto 40px;
  padding: 32px 24px;
  background: rgba(255,255,255,0.28);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

h1 {
  font-size: 1.8rem;
  color: #1e40af;
  text-align: center;
  margin-bottom: 28px;
}

select:not(.language-selector select) {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 1.05rem;
}

#pathResult {
  margin-top: 28px;
  padding: 18px;
  background: #ecfdf5;
  border-left: 5px solid #10b981;
  border-radius: 10px;
  min-height: 60px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.case {
  margin-top: 30px;
  text-align: center;
}

.case a {
  display: inline-block;
  margin: 0 12px;
  padding: 10px 20px;
  border: 2px solid #1e40af;
  border-radius: 10px;
  color: #1e40af;
  text-decoration: none;
  background: rgba(255,255,255,0.6);
}

.hidden-block { display: none !important; }

/* Мобильная адаптация */
@media (max-width: 500px) {
  .container { margin: 90px 10px 30px; padding: 24px 18px; }
  h1 { font-size: 1.45rem; }
}
.search-form {
  display: flex;
  gap: 10px;
}