﻿/* =========================================
   DevReport — публичная форма
   ========================================= */

.devreport{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.devreport-hero{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:20px;
  border-radius:20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(88,216,255,.24), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(225,246,255,.72));
  border:1px solid rgba(11,99,206,.16);
  box-shadow:0 14px 36px rgba(0,0,0,.08);
}

.devreport-hero__icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:18px;
  background:rgba(11,99,206,.12);
  border:1px solid rgba(11,99,206,.20);
  font-size:30px;
}

.devreport-hero__title{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.15;
  font-weight:900;
}

.devreport-hero__text{
  margin:0;
  color:#465469;
  line-height:1.5;
}

.devreport-source{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(11,99,206,.18);
  background:rgba(11,99,206,.07);
}

.devreport-source--unknown{
  background:rgba(255,190,40,.10);
  border-color:rgba(190,130,0,.20);
}

.devreport-source__icon{
  flex:0 0 auto;
  font-size:26px;
}

.devreport-source__content{
  min-width:0;
}

.devreport-source__label{
  margin-bottom:4px;
  color:#5a687b;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.devreport-source__title{
  margin-bottom:4px;
  font-size:17px;
  font-weight:900;
}

.devreport-source__url{
  color:#0b63ce;
  font-size:13px;
  overflow-wrap:anywhere;
}

.devreport-source__status{
  margin-top:7px;
  color:#16834d;
  font-size:13px;
  font-weight:800;
}

.devreport-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.devreport-section{
  padding:20px;
  border-radius:20px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(255,255,255,.68);
  box-shadow:0 12px 30px rgba(0,0,0,.07);
}

.devreport-section__title{
  margin:0 0 18px;
  font-size:21px;
  font-weight:900;
}

.devreport-grid{
  display:grid;
  gap:16px;
}

.devreport-grid--two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.devreport-field{
  min-width:0;
}

.devreport-field--wide{
  grid-column:1 / -1;
}

.devreport-field > label,
.devreport-field--checkbox > label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:900;
}

.devreport-required{
  color:#c42626;
}

.devreport-field input[type="text"],
.devreport-field input[type="tel"],
.devreport-field input[type="email"],
.devreport-field select,
.devreport-field textarea{
  display:block;
  width:100%;
  max-width:100%;
  padding:12px 14px;
  border:1px solid rgba(11,99,206,.20);
  border-radius:14px;
  background:rgba(255,255,255,.88);
  color:#1d2430;
  font:inherit;
  outline:none;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.devreport-field input[type="text"],
.devreport-field input[type="tel"],
.devreport-field input[type="email"],
.devreport-field select{
  min-height:48px;
}

.devreport-field textarea{
  resize:vertical;
  min-height:170px;
  line-height:1.5;
}

.devreport-field input:focus,
.devreport-field select:focus,
.devreport-field textarea:focus{
  border-color:rgba(11,99,206,.55);
  box-shadow:0 0 0 4px rgba(11,99,206,.12);
  background:#fff;
}

.devreport-field__footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:7px;
  color:#687587;
  font-size:12px;
}

.devreport-field__error{
  display:none;
  margin-top:7px;
  color:#bc2525;
  font-size:13px;
  font-weight:800;
}

.devreport-field.is-invalid .devreport-field__error,
.devreport-upload.is-invalid .devreport-field__error{
  display:block;
}

.devreport-field.is-invalid input,
.devreport-field.is-invalid select,
.devreport-field.is-invalid textarea{
  border-color:rgba(190,37,37,.65);
  box-shadow:0 0 0 4px rgba(190,37,37,.10);
}

.devreport-upload input[type="file"]{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

.devreport-upload__label{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border:2px dashed rgba(11,99,206,.28);
  border-radius:18px;
  background:rgba(11,99,206,.05);
  cursor:pointer;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.devreport-upload__label:hover{
  transform:translateY(-1px);
  background:rgba(11,99,206,.09);
  border-color:rgba(11,99,206,.45);
}

.devreport-upload__icon{
  flex:0 0 auto;
  font-size:30px;
}

.devreport-upload__main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.devreport-upload__main small{
  color:#667488;
}

.devreport-upload__button{
  flex:0 0 auto;
  padding:9px 13px;
  border-radius:12px;
  background:rgba(11,99,206,.13);
  color:#0b63ce;
  font-weight:900;
}

.devreport-upload__info{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(22,131,77,.10);
  color:#146d42;
  font-size:13px;
  font-weight:800;
  overflow-wrap:anywhere;
}

.devreport-field--checkbox > label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  line-height:1.45;
}

.devreport-field--checkbox input{
  flex:0 0 auto;
  width:20px;
  height:20px;
  margin-top:1px;
}

.devreport-captcha{
  margin-top:18px;
}

.devreport-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.devreport-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:13px 24px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg, #0b63ce, #0095ff);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(11,99,206,.25);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    filter .16s ease;
}

.devreport-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(11,99,206,.32);
  filter:brightness(1.05);
}

.devreport-submit:disabled{
  opacity:.65;
  cursor:wait;
  transform:none;
}

.devreport-submit__icon{
  font-size:21px;
}

.devreport-actions__hint{
  margin:0;
  color:#677486;
  font-size:13px;
  text-align:center;
}

.devreport-result{
  padding:15px 17px;
  border-radius:16px;
  font-weight:800;
}

.devreport-result--success{
  background:rgba(22,131,77,.12);
  border:1px solid rgba(22,131,77,.25);
  color:#146d42;
}

.devreport-result--error{
  background:rgba(190,37,37,.10);
  border:1px solid rgba(190,37,37,.25);
  color:#a51f1f;
}

.devreport-notice{
  padding:13px 15px;
  border-radius:14px;
}

.devreport-notice--warning{
  background:rgba(255,190,40,.14);
  border:1px solid rgba(190,130,0,.24);
  color:#755400;
}

.devreport-honeypot{
  position:absolute !important;
  left:-10000px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Тёмная тема */

body.theme-dark .devreport-hero,
body.theme-dark .devreport-section{
  background:rgba(15,25,40,.74);
  border-color:rgba(255,255,255,.12);
  color:#e8eef7;
  box-shadow:0 14px 36px rgba(0,0,0,.28);
}

body.theme-dark .devreport-hero__text,
body.theme-dark .devreport-actions__hint,
body.theme-dark .devreport-upload__main small,
body.theme-dark .devreport-field__footer{
  color:#aebbd0;
}

body.theme-dark .devreport-source{
  background:rgba(88,216,255,.10);
  border-color:rgba(88,216,255,.22);
}

body.theme-dark .devreport-source__label{
  color:#aebbd0;
}

body.theme-dark .devreport-source__url{
  color:#8fd8ff;
}

body.theme-dark .devreport-field input[type="text"],
body.theme-dark .devreport-field input[type="tel"],
body.theme-dark .devreport-field input[type="email"],
body.theme-dark .devreport-field select,
body.theme-dark .devreport-field textarea{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.15);
  color:#f2f7ff;
}

body.theme-dark .devreport-field input::placeholder,
body.theme-dark .devreport-field textarea::placeholder{
  color:#8f9db1;
}

body.theme-dark .devreport-field select option{
  background:#111d2d;
  color:#f2f7ff;
}

body.theme-dark .devreport-upload__label{
  background:rgba(88,216,255,.07);
  border-color:rgba(88,216,255,.24);
}

body.theme-dark .devreport-upload__button{
  background:rgba(88,216,255,.13);
  color:#9bddff;
}

/* Мобильная версия */

@media (max-width:700px){

  .devreport-hero{
    padding:16px;
  }

  .devreport-hero__icon{
    width:48px;
    height:48px;
    border-radius:15px;
    font-size:24px;
  }

  .devreport-hero__title{
    font-size:22px;
  }

  .devreport-hero__text{
    font-size:14px;
  }

  .devreport-grid--two{
    grid-template-columns:1fr;
  }

  .devreport-field--wide{
    grid-column:auto;
  }

  .devreport-section{
    padding:15px;
    border-radius:17px;
  }

  .devreport-upload__label{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .devreport-upload__button{
    width:100%;
    text-align:center;
  }

  .devreport-submit{
    width:100%;
  }

}

.devreport-privacy-link{
  color:#0b63ce;
  font-weight:900;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.devreport-privacy-link:hover{
  color:#0095ff;
}

body.theme-dark .devreport-privacy-link{
  color:#8fd8ff;
}

body.theme-dark .devreport-privacy-link:hover{
  color:#c8eeff;
}

/* =========================================
   DevReport — ошибки заполнения
   ========================================= */

@keyframes devreportFieldFlash{
  0%{
    transform:translateX(0);
    box-shadow:0 0 0 0 rgba(220,45,45,0);
  }

  15%{
    transform:translateX(-6px);
    box-shadow:0 0 0 5px rgba(220,45,45,.15);
  }

  30%{
    transform:translateX(6px);
  }

  45%{
    transform:translateX(-4px);
  }

  60%{
    transform:translateX(4px);
  }

  75%{
    transform:translateX(-2px);
  }

  100%{
    transform:translateX(0);
    box-shadow:0 0 0 0 rgba(220,45,45,0);
  }
}

.devreport-field--flash{
  animation:devreportFieldFlash .65s ease;
}

.devreport-field.is-invalid input,
.devreport-field.is-invalid select,
.devreport-field.is-invalid textarea{
  border-color:#dc3434 !important;
  background:rgba(220,52,52,.06);
  box-shadow:0 0 0 4px rgba(220,52,52,.12);
}

.devreport-field.is-invalid > label{
  color:#bc2525;
}

.devreport-field.is-invalid .devreport-field__error{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(220,52,52,.10);
  border:1px solid rgba(220,52,52,.18);
  color:#b52424;
}

body.theme-dark .devreport-field.is-invalid input,
body.theme-dark .devreport-field.is-invalid select,
body.theme-dark .devreport-field.is-invalid textarea{
  background:rgba(255,75,75,.10);
  border-color:#ff6666 !important;
}

body.theme-dark .devreport-field.is-invalid > label,
body.theme-dark .devreport-field.is-invalid .devreport-field__error{
  color:#ff9292;
}

body.theme-dark .devreport-field.is-invalid .devreport-field__error{
  background:rgba(255,75,75,.10);
  border-color:rgba(255,100,100,.20);
}

.devreport-field__hint{
  margin-top:7px;
  color:#687587;
  font-size:12px;
  line-height:1.35;
}

body.theme-dark .devreport-field__hint{
  color:#aebbd0;
}

.devreport-field.is-invalid .devreport-field__hint{
  display:none;
}