/* ============================================================
   ИИ-ОЦЕНЩИК · тёмная панель в стиле диагностического стенда
   Отдельный файл — базовую тему сайта не трогает
   ============================================================ */
.appraise { padding-block: clamp(3rem, 7vw, 5.5rem); }

.ai-panel {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(87, 200, 255, .16), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(30, 107, 255, .2), transparent 60%),
    #0e1c33;
  border-radius: 30px;
  padding: clamp(1.6rem, 4vw, 3rem);
  color: #eef4fb;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(14, 28, 51, .55);
}
.ai-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.015) 3px 4px);
}

.ai-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-hud); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: #7fd4ff; margin-bottom: 1rem;
}
.ai-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #35e06a;
  box-shadow: 0 0 12px #35e06a; animation: aiPulse 1.8s ease-in-out infinite;
}
@keyframes aiPulse { 50% { opacity: .4; } }

.ai-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.ai-sub { color: #b9c8de; margin: 1rem 0 1.4rem; font-size: 1rem; max-width: 42ch; }
.ai-facts { display: flex; flex-direction: column; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.ai-facts li {
  position: relative; padding-left: 1.5rem; color: #d7e3f4; font-size: .93rem;
}
.ai-facts li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 14px; height: 8px;
  border-left: 2.5px solid #35e06a; border-bottom: 2.5px solid #35e06a;
  transform: rotate(-45deg);
}

/* ---------- форма ---------- */
.ai-form { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 1; }
.ai-row { display: flex; flex-direction: column; gap: .5rem; }
.ai-label, .ai-field {
  font-family: var(--font-hud); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: #8fa5c4;
}
.ai-field { display: flex; flex-direction: column; gap: .4rem; }
.ai-field small { text-transform: none; letter-spacing: 0; color: #6d82a3; font-family: var(--font-body); }
.ai-field input {
  font: 600 1rem var(--font-body); color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px;
  padding: .8rem 1rem; transition: border-color .2s, background .2s;
}
.ai-field input::placeholder { color: #5f7495; font-weight: 400; }
.ai-field input:focus {
  outline: none; border-color: #57c8ff; background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(87, 200, 255, .18);
}
.ai-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.ai-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ai-chip {
  font: 700 .88rem var(--font-body); color: #c4d2e6;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  padding: .55rem 1.05rem; transition: all .2s; cursor: pointer;
}
.ai-chip:hover { border-color: #57c8ff; color: #fff; }
.ai-chip.is-on {
  background: linear-gradient(120deg, #1e6bff, #57c8ff);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 22px -8px rgba(30, 107, 255, .8);
}

.ai-btn {
  margin-top: .3rem;
  background: linear-gradient(120deg, #35e06a, #1fc95a);
  color: #06250f; font-weight: 800; font-size: 1.05rem;
  padding: 1rem 1.6rem; border-radius: 16px;
  box-shadow: 0 14px 34px -10px rgba(53, 224, 106, .55);
  transition: transform .2s, box-shadow .25s;
}
.ai-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(53, 224, 106, .7); }
.ai-note { color: #6d82a3; font-size: .74rem; }

/* ---------- загрузка ---------- */
.ai-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; min-height: 320px;
}
.ai-scan {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(87, 200, 255, .25);
  border-top-color: #57c8ff;
  animation: aiSpin 1s linear infinite;
  position: relative;
}
.ai-scan::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 3px solid rgba(53, 224, 106, .2); border-bottom-color: #35e06a;
  animation: aiSpin 1.6s linear infinite reverse;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-loading-text { font-family: var(--font-hud); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #7fd4ff; }

/* ---------- результат ---------- */
.ai-result { display: flex; flex-direction: column; justify-content: center; gap: .6rem; min-height: 320px; }
.ai-result-label { font-family: var(--font-hud); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8fa5c4; }
.ai-result-price {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, #35e06a, #57c8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-result-note { color: #b9c8de; font-size: .95rem; max-width: 44ch; }
.ai-result-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .8rem; }
.ai-again {
  background: rgba(255, 255, 255, .08); color: #d7e3f4;
  border: 1px solid rgba(255, 255, 255, .2);
}
.ai-again:hover { border-color: #57c8ff; color: #fff; }
.ai-error { color: #ffb3a7; font-size: .9rem; }

[hidden] { display: none !important; }

@media (max-width: 960px) {
  .ai-panel { grid-template-columns: 1fr; }
  .ai-grid2 { grid-template-columns: 1fr; }
  .ai-loading, .ai-result { min-height: 220px; }
}

.ai-file { padding: .6rem; }
.ai-file::file-selector-button {
  font: 700 .85rem var(--font-body); color: #0e1c33;
  background: #d7e3f4; border: 0; border-radius: 10px;
  padding: .5rem .9rem; margin-right: .8rem; cursor: pointer;
}
