:root{
  --bg:#0f1012;
  --card:#17191c;
  --card-2:#1b1d21;
  --text:#f2f3f5;
  --muted:#9ea4ab;
  --line:#262a2f;
  --line-soft:#2f343a;
  --input:#1d2024;
  --input-hover:#22262b;
  --primary:#3a3d42;
  --primary-press:#2f3237;
  --focus:#5a5f66;
  --shadow:0 10px 30px rgba(0,0,0,.28);
  --radius:18px;
  --radius-sm:12px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  min-height:100vh;
}

main{
  max-width:920px;
  margin:32px auto;
  padding:0 16px;
}

.card{
  background:linear-gradient(180deg,var(--card),var(--card-2));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 18px;
  margin:16px 0;
  box-shadow:var(--shadow);
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.card:hover{
  border-color:var(--line-soft);
  box-shadow:0 14px 36px rgba(0,0,0,.32);
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}

.row:last-child{
  margin-bottom:0;
}

@media (max-width:720px){
  .row{
    grid-template-columns:1fr;
  }
}

label{
  display:block;
  margin:0 0 7px 2px;
  font-size:.94rem;
  font-weight:600;
  color:#d6d9de;
  letter-spacing:.1px;
}

input,
textarea,
select{
  width:100%;
  border:1px solid var(--line);
  background:var(--input);
  color:var(--text);
  padding:14px 13px;
  border-radius:var(--radius-sm);
  font:inherit;
  outline:none;
  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease,
    transform .06s ease;
}

input:hover,
textarea:hover,
select:hover{
  background:var(--input-hover);
  border-color:var(--line-soft);
}

input:focus,
textarea:focus,
select:focus{
  border-color:rgba(24,169,87,.65);
  box-shadow:0 0 0 4px rgba(24,169,87,.16);
}

input::placeholder,
textarea::placeholder{
  color:#7f8790;
}

textarea{
  min-height:96px;
  resize:vertical;
}

button,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  border:none;
  border-radius:14px;
  padding:14px 16px;
  font:inherit;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition:filter .15s ease, transform .06s ease, background .15s ease;
}

.btn.primary{
  background:var(--primary);
  color:#ffffff;
}

.btn.primary:hover,
button.btn.primary:hover{
  filter:brightness(1.04);
}

.btn.primary:active,
button.btn.primary:active{
  background:var(--primary-press);
  transform:translateY(1px);
}

.status{
  min-height:22px;
  margin-top:12px;
  font-size:.95rem;
  color:var(--muted);
}

.status.ok{
  color:#b8f5cc;
}

.status.err{
  color:#ffb4b4;
}

.footer{
  margin-top:18px;
  color:var(--muted);
  font-size:.88rem;
  text-align:right;
}

.suggest-list{
  list-style:none;
  margin:6px 0 0 0;
  padding:0;
  display:none;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  max-height:220px;
  overflow-y:auto;
  box-shadow:0 12px 26px rgba(0,0,0,.22);
}

.suggest-list.show{
  display:block;
}

.suggest-list li{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.04);
}

.suggest-list li:last-child{
  border-bottom:none;
}

.suggest-list li:hover,
.suggest-list li.active{
  background:#20242a;
}

.form-block{
  margin-bottom:14px;
}

.form-block:last-child{
  margin-bottom:0;
}