#yasno-auto-offer-form{
  --ya-burgundy:#7a1822;
  --ya-burgundy-dark:#64121b;
  --ya-text:#242326;
  --ya-muted:#777579;
  --ya-line:#dedbd8;
  --ya-field:#f5f2f0;
  --ya-error:#a52530;
  --ya-white:#ffffff;
  --ya-serif:Georgia,"Times New Roman",serif;

  width:100%;
}

#yasno-auto-offer-form *{
  box-sizing:border-box;
}

.ya-offer{
  width:100%;
  max-width:1160px;
  margin:0 auto;
  color:var(--ya-text);
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.45;
}

.ya-offer-card{
  width:100%;
  padding:54px 62px 50px;
  background:#fff;
  border:1px solid #e4e0dd;
  border-radius:8px;
}

.ya-offer-eyebrow{
  margin:0 0 10px;
  color:var(--ya-burgundy);
  font-size:12px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.ya-offer-title{
  margin:0;
  max-width:820px;
  color:var(--ya-text);
  font-family:var(--ya-serif);
  font-size:40px;
  line-height:1.08;
  font-weight:400;
}

.ya-offer-subtitle{
  max-width:720px;
  margin:16px 0 0;
  color:var(--ya-muted);
  font-size:16px;
  line-height:1.6;
}

.ya-offer-section{
  margin-top:34px;
}

.ya-offer-grid,
.ya-offer-contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 22px;
}

.ya-offer-field{
  min-width:0;
}

.ya-offer-label{
  display:block;
  margin-bottom:9px;
  color:#494649;
  font-size:13px;
  font-weight:700;
}

.ya-offer-required{
  margin-left:2px;
  color:var(--ya-burgundy);
}

.ya-offer-input,
.ya-offer-select,
.ya-offer-picker-button,
.ya-offer-textarea{
  display:block;
  width:100%;
  border:1px solid #dedad7;
  border-radius:3px;
  outline:none;
  background:var(--ya-field);
  color:#323033;
  font:inherit;
  font-size:18px;
  transition:
    border-color .15s ease,
    background .15s ease;
}

.ya-offer-input,
.ya-offer-select,
.ya-offer-picker-button{
  height:64px;
  padding:0 18px;
}

.ya-offer-textarea{
  min-height:132px;
  padding:16px 18px;
  resize:vertical;
  line-height:1.5;
}

.ya-offer-input::placeholder,
.ya-offer-textarea::placeholder{
  color:#aaa6a5;
}

.ya-offer-input:focus,
.ya-offer-select:focus,
.ya-offer-picker-button:focus,
.ya-offer-textarea:focus{
  border-color:var(--ya-burgundy);
  background:#fff;
}

.ya-offer-input[type="number"]{
  -moz-appearance:textfield;
}

.ya-offer-input[type="number"]::-webkit-inner-spin-button,
.ya-offer-input[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.ya-offer-comment-meta{
  margin-top:7px;
  color:var(--ya-muted);
  font-size:12px;
}

.ya-offer-field-error{
  min-height:18px;
  margin-top:6px;
  color:var(--ya-error);
  font-size:12px;
}

.ya-offer-field.has-error
.ya-offer-input,
.ya-offer-field.has-error
.ya-offer-select,
.ya-offer-field.has-error
.ya-offer-picker-button{
  border-color:var(--ya-error);
}

.ya-offer-picker{
  position:relative;
}

.ya-offer-picker-button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  cursor:pointer;
  text-align:left;
}

.ya-offer-picker-button:disabled{
  color:#aaa6a5;
  cursor:default;
}

.ya-offer-picker-value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ya-offer-picker-arrow{
  flex:0 0 auto;
  color:#777;
  font-size:22px;
  transition:transform .15s ease;
}

.ya-offer-picker.is-open
.ya-offer-picker-arrow{
  transform:rotate(180deg);
}

.ya-offer-picker-panel{
  position:absolute;
  z-index:40;
  top:calc(100% + 6px);
  left:0;
  width:100%;
  max-height:380px;
  overflow:hidden;
  border:1px solid #d9d5d2;
  border-radius:4px;
  background:#fff;
  box-shadow:
    0 14px 38px rgba(34,29,29,.14);
}

.ya-offer-picker-panel[hidden]{
  display:none;
}

.ya-offer-picker-search-wrap{
  padding:12px;
  border-bottom:1px solid #ebe7e4;
  background:#fff;
}

.ya-offer-picker-search{
  display:block;
  width:100%;
  height:46px;
  padding:0 13px;
  border:1px solid #dedad7;
  border-radius:3px;
  outline:none;
  background:#f8f6f5;
  color:#333;
  font:inherit;
  font-size:16px;
}

.ya-offer-picker-search:focus{
  border-color:var(--ya-burgundy);
  background:#fff;
}

.ya-offer-picker-options{
  max-height:310px;
  overflow:auto;
  overscroll-behavior:contain;
}

.ya-offer-picker-option{
  display:block;
  width:100%;
  min-height:48px;
  padding:12px 15px;
  border:0;
  border-bottom:1px solid #f0edeb;
  background:#fff;
  color:#333;
  cursor:pointer;
  font:inherit;
  font-size:16px;
  text-align:left;
}

.ya-offer-picker-option:hover,
.ya-offer-picker-option:focus{
  outline:none;
  background:#f7f2f2;
}

.ya-offer-picker-option.is-selected{
  color:var(--ya-burgundy);
  font-weight:700;
}

.ya-offer-picker-option[hidden]{
  display:none;
}

.ya-offer-slider-wrap{
  margin-top:11px;
}

.ya-offer-range{
  width:100%;
  height:24px;
  margin:0;
  accent-color:var(--ya-burgundy);
  cursor:pointer;
}

.ya-offer-range:disabled{
  cursor:default;
  opacity:.45;
}

.ya-offer-scale{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:2px;
  color:#8b8789;
  font-size:11px;
}

.ya-offer-help{
  margin:5px 0 0;
  color:var(--ya-muted);
  font-size:12px;
  line-height:1.4;
}

.ya-offer-photo-block{
  padding:24px;
  border:1px solid #e2ddda;
  border-radius:6px;
  background:#faf8f7;
}

.ya-offer-photo-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
}

.ya-offer-photo-title{
  margin:0;
  color:var(--ya-text);
  font-family:var(--ya-serif);
  font-size:21px;
  line-height:1.25;
  font-weight:400;
}

.ya-offer-photo-copy{
  max-width:650px;
  margin:7px 0 0;
  color:var(--ya-muted);
  font-size:14px;
  line-height:1.5;
}

.ya-offer-photo-limit{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:20px;
  background:#eee8e6;
  color:#6e6869;
  font-size:11px;
  white-space:nowrap;
}

.ya-offer-photo-picker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  margin-top:18px;
  padding:0 17px;
  border:1px solid var(--ya-burgundy);
  border-radius:3px;
  background:#fff;
  color:var(--ya-burgundy);
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

.ya-offer-photo-picker:hover{
  background:#f8f1f2;
}

.ya-offer-photo-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.ya-offer-photo-previews{
  display:grid;
  grid-template-columns:
    repeat(5,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.ya-offer-photo-previews:empty{
  display:none;
}

.ya-offer-photo-preview{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border:1px solid #ded9d6;
  border-radius:4px;
  background:#eeeae8;
}

.ya-offer-photo-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.ya-offer-photo-generic{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  color:#857f80;
  font-size:12px;
}

.ya-offer-photo-remove{
  position:absolute;
  top:5px;
  right:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(35,31,32,.78);
  color:#fff;
  cursor:pointer;
  font-size:21px;
  line-height:1;
}

.ya-offer-photo-counter,
.ya-offer-photo-message{
  margin-top:8px;
  color:var(--ya-muted);
  font-size:12px;
}

.ya-offer-photo-message.is-error{
  color:var(--ya-error);
}

.ya-offer-consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:20px;
  color:#777477;
  cursor:pointer;
  font-size:12px;
  line-height:1.45;
}

.ya-offer-consent input{
  margin-top:2px;
  accent-color:var(--ya-burgundy);
}

.ya-offer-message{
  min-height:20px;
  margin-top:11px;
  color:#35613f;
  font-size:13px;
}

.ya-offer-message.is-error{
  color:var(--ya-error);
}

.ya-offer-submit{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:64px;
  margin-top:4px;
  padding:14px 24px;
  border:0;
  border-radius:3px;
  background:var(--ya-burgundy);
  color:#fff;
  cursor:pointer;
  font:inherit;
  font-size:16px;
  font-weight:700;
  transition:background .15s ease;
}

.ya-offer-submit:hover{
  background:var(--ya-burgundy-dark);
}

.ya-offer-submit:disabled{
  cursor:wait;
  opacity:.7;
}

.ya-offer-reassurance{
  margin:9px 0 0;
  color:var(--ya-muted);
  font-size:12px;
  text-align:center;
}

.ya-offer-success{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

.ya-offer-success-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  margin:0 auto 18px;
  border-radius:50%;
  background:#edf4ee;
  color:#35613f;
  font-size:24px;
  font-weight:700;
}

.ya-offer-success
.ya-offer-title{
  margin:0 auto;
}

.ya-offer-success-copy{
  max-width:560px;
  margin:16px auto 0;
  color:var(--ya-muted);
  font-size:16px;
  line-height:1.6;
}

.ya-offer-success-photo{
  margin:18px 0 0;
  color:#35613f;
  font-size:14px;
  font-weight:700;
}

.ya-offer-photo-retry{
  max-width:520px;
  margin:22px auto 0;
  padding:18px;
  border:1px solid #eadfda;
  border-radius:5px;
  background:#faf7f5;
}

.ya-offer-photo-retry p{
  margin:0 0 12px;
  color:var(--ya-muted);
  font-size:13px;
}

.ya-offer-secondary{
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--ya-burgundy);
  border-radius:3px;
  background:#fff;
  color:var(--ya-burgundy);
  cursor:pointer;
  font:inherit;
  font-size:13px;
  font-weight:700;
}

@media (max-width:820px){
  .ya-offer-card{
    padding:38px 32px 36px;
  }

  .ya-offer-title{
    font-size:34px;
  }

  .ya-offer-grid,
  .ya-offer-contact-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .ya-offer-photo-previews{
    grid-template-columns:
      repeat(4,minmax(0,1fr));
  }
}

@media (max-width:560px){
  .ya-offer-card{
    padding:28px 18px 30px;
    border-radius:4px;
  }

  .ya-offer-title{
    font-size:29px;
  }

  .ya-offer-subtitle{
    font-size:14px;
  }

  .ya-offer-section{
    margin-top:28px;
  }

  .ya-offer-label{
    font-size:12px;
  }

  .ya-offer-input,
  .ya-offer-select,
  .ya-offer-picker-button{
    height:58px;
    font-size:16px;
  }

  .ya-offer-textarea{
    min-height:122px;
    font-size:16px;
  }

  .ya-offer-picker-panel{
    max-height:62vh;
  }

  .ya-offer-picker-search-wrap{
    padding:10px;
  }

  .ya-offer-picker-search{
    height:44px;
    font-size:16px;
  }

  .ya-offer-picker-options{
    max-height:calc(62vh - 66px);
    -webkit-overflow-scrolling:touch;
  }

  .ya-offer-picker-option{
    min-height:46px;
    padding:12px 14px;
    font-size:16px;
  }

  .ya-offer-range{
    height:24px;
  }

  .ya-offer-photo-block{
    padding:18px 15px;
  }

  .ya-offer-photo-head{
    display:block;
  }

  .ya-offer-photo-limit{
    display:inline-block;
    margin-top:10px;
  }

  .ya-offer-photo-picker{
    display:flex;
    width:100%;
  }

  .ya-offer-photo-previews{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .ya-offer-submit{
    min-height:58px;
  }
}


/* OFFER_FORM_V3_EXTRA_PARAMS */

.ya-offer-grid-spacer{
  min-height:1px;
}

.ya-offer-extra-section{
  margin-top:26px;
}

.ya-offer-extra{
  overflow:hidden;
  border:1px solid #e4e0dd;
  border-radius:4px;
  background:#faf8f7;
}

.ya-offer-extra-summary{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:58px;
  padding:0 18px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  list-style:none;
  user-select:none;
}

.ya-offer-extra-summary::-webkit-details-marker{
  display:none;
}

.ya-offer-extra-plus{
  font-size:21px;
  font-weight:400;
  line-height:1;
  transition:transform .15s ease;
}

.ya-offer-extra[open]
.ya-offer-extra-plus{
  transform:rotate(45deg);
}

.ya-offer-extra-body{
  padding:2px 18px 18px;
}

@media (max-width:760px){
  .ya-offer-grid-spacer{
    display:none;
  }
}


/* OFFER_FORM_POPULAR_GROUPS_V1 */

.ya-offer-picker-group-title{
  padding:10px 15px 8px;
  border-bottom:1px solid #ebe7e4;
  background:#f7f4f3;
  color:#817b7c;
  font-size:11px;
  font-weight:700;
  line-height:1.25;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ya-offer-picker-group-title[hidden]{
  display:none;
}


/* OFFER_FORM_TYPOGRAPHY_V7_FINAL */

/* Верх */

.ya-offer-eyebrow{
  font-size:14px !important;
}

.ya-offer-title{
  font-size:40px !important;
  line-height:1.1 !important;
}

.ya-offer-subtitle{
  font-size:17px !important;
  line-height:1.5 !important;
}


/* Подписи */

.ya-offer-label{
  font-size:16px !important;
  line-height:1.35 !important;
  margin-bottom:9px !important;
}

.ya-offer-required{
  font-size:16px !important;
}


/* Поля */

.ya-offer-input,
.ya-offer-select,
.ya-offer-picker-button,
.ya-offer-picker-search{
  font-size:17px !important;
  line-height:1.4 !important;
}

.ya-offer-input,
.ya-offer-select,
.ya-offer-picker-button{
  min-height:58px !important;
  padding-top:12px !important;
  padding-bottom:12px !important;
}

.ya-offer-input::placeholder,
.ya-offer-picker-search::placeholder,
.ya-offer-textarea::placeholder{
  font-size:16px !important;
}


/* Марки / модели */

.ya-offer-picker-option{
  min-height:47px !important;
  padding-top:11px !important;
  padding-bottom:11px !important;
  font-size:16px !important;
}

.ya-offer-picker-group-title{
  font-size:12px !important;
}


/* Год / пробег */

.ya-offer-scale{
  font-size:13px !important;
}

.ya-offer-help{
  font-size:14px !important;
  line-height:1.5 !important;
}


/* Дополнительные параметры */

.ya-offer-extra-summary{
  min-height:62px !important;
  font-size:16px !important;
}

.ya-offer-extra-plus{
  font-size:22px !important;
}

.ya-offer-extra-body .ya-offer-label{
  font-size:15px !important;
}

.ya-offer-textarea{
  min-height:130px !important;
  padding:14px !important;
  font-size:16px !important;
  line-height:1.5 !important;
}

.ya-offer-comment-meta{
  font-size:13px !important;
}


/* Фото */

.ya-offer-photo-title{
  font-size:19px !important;
}

.ya-offer-photo-copy{
  font-size:14px !important;
  line-height:1.5 !important;
}

.ya-offer-photo-limit{
  font-size:12px !important;
}

.ya-offer-photo-upload,
.ya-offer-photo-button{
  font-size:14px !important;
}


/* Контакты / согласие */

.ya-offer-consent{
  font-size:14px !important;
  line-height:1.5 !important;
}


/* Сообщения */

.ya-offer-field-error,
.ya-offer-message,
.ya-offer-photo-message,
.ya-offer-photo-counter{
  font-size:13px !important;
}


/* CTA */

.ya-offer-submit{
  min-height:60px !important;
  font-size:17px !important;
}

.ya-offer-reassurance{
  font-size:13px !important;
}


/* Mobile */

@media (max-width:760px){

  .ya-offer-title{
    font-size:32px !important;
  }

  .ya-offer-subtitle{
    font-size:16px !important;
  }

  .ya-offer-label{
    font-size:15px !important;
  }

  .ya-offer-input,
  .ya-offer-select,
  .ya-offer-picker-button,
  .ya-offer-picker-search{
    font-size:16px !important;
  }

  .ya-offer-help{
    font-size:13px !important;
  }
}
