:root{
  --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;
}

#yasno-auto-calculator{
  width:100%;
}

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

.ya-calc *,
.ya-calc *:before,
.ya-calc *:after{
  box-sizing:border-box;
}

.ya-card{
  background:var(--ya-white);
  padding:48px 48px 44px;
  border-radius:4px;
}

.ya-eyebrow{
  margin:0 0 14px;
  color:var(--ya-burgundy);
  font-size:12px;
  line-height:1.2;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700;
}

.ya-title{
  margin:0;
  font-family:var(--ya-serif);
  font-size:42px;
  line-height:1.06;
  font-weight:400;
  letter-spacing:-.02em;
}

.ya-subtitle{
  margin:18px 0 0;
  max-width:560px;
  color:var(--ya-muted);
  font-size:15px;
  line-height:1.55;
}

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

.ya-section + .ya-section{
  padding-top:28px;
  border-top:1px solid var(--ya-line);
}

.ya-section-head{
  margin-bottom:16px;
}

.ya-section-title{
  margin:0;
  font-size:12px;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
  color:#4c4a4d;
}

.ya-section-note{
  margin:6px 0 0;
  color:#918f91;
  font-size:13px;
  line-height:1.45;
}

.ya-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 20px;
}

.ya-label{
  display:block;
  min-width:0;
}

.ya-label-text{
  display:block;
  margin-bottom:8px;
  color:#4a484b;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.035em;
}

.ya-required{
  color:var(--ya-burgundy);
}

.ya-input,
.ya-select{
  display:block;
  width:100%;
  height:58px;
  padding:0 16px;
  border:1px solid #dedad7;
  border-radius:3px;
  outline:none;
  background:var(--ya-field);
  color:#323033;
  font:inherit;
  font-size:16px;
  transition:border-color .15s ease,background .15s ease;
}

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

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

.ya-select:disabled{
  color:#aaa6a5;
  cursor:not-allowed;
}

.ya-field-error{
  display:none;
  margin-top:6px;
  color:var(--ya-error);
  font-size:12px;
}

.ya-label.ya-invalid .ya-input,
.ya-label.ya-invalid .ya-select{
  border-color:var(--ya-error);
  background:#fffafa;
}

.ya-label.ya-invalid .ya-field-error{
  display:block;
}

.ya-features-toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:15px 0;
  border:0;
  border-top:1px solid var(--ya-line);
  border-bottom:1px solid var(--ya-line);
  background:transparent;
  color:var(--ya-text);
  cursor:pointer;
  font:inherit;
  text-align:left;
}

.ya-features-toggle strong{
  font-size:15px;
  font-weight:600;
}

.ya-features-toggle span{
  color:var(--ya-burgundy);
  font-size:13px;
  white-space:nowrap;
}

.ya-features{
  display:none;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding-top:14px;
}

.ya-features.is-open{
  display:grid;
}

.ya-feature{
  position:relative;
  display:flex;
  align-items:flex-start;
  min-height:54px;
  padding:13px 13px 13px 40px;
  border:1px solid var(--ya-line);
  border-radius:3px;
  cursor:pointer;
  color:#514f51;
  font-size:13px;
  line-height:1.35;
  transition:border-color .15s ease,background .15s ease;
}

.ya-feature input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.ya-feature:before{
  content:"";
  position:absolute;
  left:13px;
  top:15px;
  width:16px;
  height:16px;
  border:1px solid #aaa6a5;
  background:#fff;
}

.ya-feature.is-selected{
  border-color:var(--ya-burgundy);
  background:#fcf7f7;
}

.ya-feature.is-selected:before{
  border-color:var(--ya-burgundy);
  background:var(--ya-burgundy);
  box-shadow:inset 0 0 0 4px #fff;
}

.ya-actions{
  margin-top:30px;
}

.ya-btn{
  display:inline-flex;
  width:100%;
  min-height:58px;
  align-items:center;
  justify-content:center;
  padding:15px 22px;
  border:1px solid var(--ya-burgundy);
  border-radius:3px;
  background:var(--ya-burgundy);
  color:#fff;
  cursor:pointer;
  font:inherit;
  font-size:15px;
  font-weight:700;
  transition:background .15s ease,border-color .15s ease;
}

.ya-btn:hover{
  background:var(--ya-burgundy-dark);
  border-color:var(--ya-burgundy-dark);
}

.ya-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ya-btn-secondary{
  width:auto;
  min-height:auto;
  padding:0;
  border:0;
  border-bottom:1px solid #b9b6b7;
  border-radius:0;
  background:transparent;
  color:#6f6c6f;
  font-size:13px;
  font-weight:400;
}

.ya-btn-secondary:hover{
  background:transparent;
  border-color:var(--ya-burgundy);
  color:var(--ya-burgundy);
}

.ya-form-error{
  min-height:20px;
  margin:10px 0 0;
  color:var(--ya-error);
  font-size:13px;
}

/* calculation */

.ya-loading-card{
  min-height:620px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.ya-vehicle-summary{
  margin-top:16px;
  color:#777477;
  font-size:14px;
}

.ya-progress-wrap{
  margin-top:54px;
}

.ya-progress-number{
  margin-bottom:12px;
  font-family:var(--ya-serif);
  color:#d8b7bb;
  font-size:74px;
  line-height:.9;
  font-weight:400;
}

.ya-progress-track{
  width:100%;
  height:2px;
  background:#e0dcda;
  overflow:hidden;
}

.ya-progress-bar{
  display:block;
  width:3%;
  height:100%;
  background:var(--ya-burgundy);
  transition:width .35s linear;
}

.ya-loading-stage{
  margin:22px 0 0;
  font-family:var(--ya-serif);
  font-size:28px;
  line-height:1.2;
  font-weight:400;
}

.ya-loading-note{
  margin:10px 0 0;
  color:#8b888a;
  font-size:14px;
}

.ya-loading-percent{
  margin-top:28px;
  color:#989597;
  font-size:12px;
  letter-spacing:.08em;
}

/* result */

.ya-result-card{
  padding-bottom:48px;
}

.ya-price{
  margin:22px 0 8px;
  font-family:var(--ya-serif);
  font-size:48px;
  line-height:1.04;
  font-weight:400;
  letter-spacing:-.025em;
}

.ya-result-comment{
  margin:16px 0 0;
  color:#666367;
  font-size:15px;
  line-height:1.55;
}

.ya-info{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--ya-line);
}

.ya-info strong{
  display:block;
  margin-bottom:7px;
  font-size:14px;
}

.ya-info p{
  margin:0;
  color:#858285;
  font-size:13px;
  line-height:1.55;
}

.ya-lead{
  margin-top:34px;
  padding-top:30px;
  border-top:1px solid var(--ya-line);
}

.ya-lead-title{
  margin:0;
  font-family:var(--ya-serif);
  font-size:29px;
  line-height:1.15;
  font-weight:400;
}

.ya-lead-copy{
  margin:12px 0 20px;
  color:#777477;
  font-size:14px;
  line-height:1.55;
}

.ya-contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

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

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

.ya-contact-message{
  min-height:20px;
  margin-top:10px;
  font-size:13px;
}

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

.ya-contact-message.is-success{
  color:#35613f;
}

.ya-result-footer{
  margin-top:24px;
}

/* preview page only */

.ya-preview-page{
  margin:0;
  background:var(--ya-burgundy);
}

.ya-preview-shell{
  width:min(1280px,calc(100% - 64px));
  margin:0 auto;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(500px,680px);
  gap:72px;
  align-items:start;
  padding:90px 0;
}

.ya-preview-copy{
  padding-top:14px;
  color:#fff;
}

.ya-preview-copy .ya-preview-eyebrow{
  color:#d7b3b6;
  font:700 12px Arial,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ya-preview-copy h1{
  margin:18px 0 0;
  max-width:560px;
  color:#fff;
  font-family:var(--ya-serif);
  font-size:54px;
  line-height:1.06;
  font-weight:400;
}

.ya-preview-copy p{
  max-width:520px;
  margin:26px 0 0;
  color:#d4b8bb;
  font:16px/1.6 Arial,sans-serif;
}

.ya-preview-points{
  margin-top:42px;
  max-width:520px;
  border-top:1px solid rgba(255,255,255,.18);
}

.ya-preview-points div{
  padding:15px 0;
  border-bottom:1px solid rgba(255,255,255,.18);
  color:#d7bfc1;
  font:14px Arial,sans-serif;
}

@media(max-width:900px){
  .ya-preview-shell{
    width:min(100% - 32px,680px);
    grid-template-columns:1fr;
    gap:36px;
    padding:48px 0;
  }

  .ya-preview-copy h1{
    font-size:44px;
  }

  .ya-card{
    padding:36px 30px 34px;
  }
}

@media(max-width:640px){
  .ya-calc{
    font-size:15px;
  }

  .ya-card{
    padding:30px 20px 28px;
    border-radius:3px;
  }

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

  .ya-grid,
  .ya-contact-grid,
  .ya-features{
    grid-template-columns:1fr;
  }

  .ya-price{
    font-size:38px;
  }

  .ya-progress-number{
    font-size:62px;
  }

  .ya-loading-stage{
    font-size:25px;
  }

  .ya-loading-card{
    min-height:520px;
  }

  .ya-preview-copy h1{
    font-size:39px;
  }
}

/* ===== V2 visual refinement 2026-08-09 ===== */

/* Форме отдаём чуть больше визуального приоритета */
.ya-preview-shell{
  grid-template-columns:minmax(0,.92fr) minmax(520px,680px);
  gap:76px;
}

.ya-preview-copy h1{
  max-width:510px;
  font-size:49px;
  line-height:1.065;
}

/* Чуть компактнее основной экран */
.ya-card{
  padding:44px 46px 40px;
}

.ya-section{
  margin-top:30px;
}

.ya-section + .ya-section{
  padding-top:25px;
}

.ya-actions{
  margin-top:27px;
}

/* Не показываем стандартную синюю browser focus-рамку */
.ya-features-toggle:focus{
  outline:none;
}

.ya-features-toggle:focus-visible{
  outline:1px solid var(--ya-burgundy);
  outline-offset:3px;
}

/* Особенности — спокойнее и компактнее */
.ya-features{
  gap:9px 10px;
  padding-top:12px;
}

.ya-feature{
  min-height:50px;
  padding:11px 12px 11px 38px;
  font-size:12.5px;
}

.ya-feature:before{
  left:12px;
  top:13px;
}

/* На результате телефон должен визуально быть главным действием */
.ya-lead{
  margin-top:30px;
  padding-top:27px;
}

@media(max-width:900px){
  .ya-preview-copy h1{
    max-width:580px;
    font-size:43px;
  }

  .ya-preview-shell{
    grid-template-columns:1fr;
    gap:34px;
  }
}

@media(max-width:640px){
  .ya-card{
    padding:28px 20px 27px;
  }

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

  .ya-preview-copy h1{
    font-size:37px;
  }
}


/* ===== Automatically determined vehicle parameter ===== */

.ya-auto-parameter{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 16px;
  border:1px solid #dedad7;
  border-radius:3px;
  background:#faf8f7;
}

.ya-auto-parameter strong{
  color:#323033;
  font-size:16px;
  font-weight:400;
}

.ya-auto-parameter span{
  max-width:105px;
  color:var(--ya-burgundy);
  font-size:10px;
  line-height:1.25;
  text-align:right;
}

@media(max-width:640px){
  .ya-auto-parameter{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:2px;
  }

  .ya-auto-parameter span{
    max-width:none;
    text-align:left;
  }
}


/* ===== Mileage slider V2 ===== */

.ya-mileage-slider{
  margin-top:13px;
}

.ya-mileage-range{
  display:block;
  width:100%;
  height:20px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  accent-color:var(--ya-burgundy);
}

.ya-mileage-range:focus{
  outline:none;
}

.ya-mileage-range:focus-visible{
  outline:1px solid var(--ya-burgundy);
  outline-offset:3px;
}

.ya-mileage-scale{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:1px;
  color:#9a9798;
  font-size:10px;
  line-height:1.3;
}

.ya-mileage-help{
  margin:6px 0 0;
  color:#999597;
  font-size:10px;
  line-height:1.4;
}

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

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


/* ===== Wide calculator + vehicle options V2.1 ===== */

/*
  На desktop калькулятор занимает почти всю полезную ширину страницы.
  Две колонки сохраняем только внутри самой формы.
*/

.ya-calc{
  max-width:1160px;
}

.ya-card{
  padding:54px 62px 50px;
}

.ya-title{
  font-size:46px;
}

.ya-subtitle{
  max-width:780px;
  font-size:16px;
}

.ya-section{
  margin-top:36px;
}

.ya-section + .ya-section{
  padding-top:30px;
}

.ya-grid{
  gap:22px 28px;
}

.ya-label-text{
  margin-bottom:9px;
  font-size:13px;
}

.ya-input,
.ya-select{
  height:64px;
  padding:0 18px;
  font-size:18px;
}

.ya-auto-parameter{
  min-height:64px;
  padding:0 18px;
}

.ya-auto-parameter strong{
  font-size:18px;
}

.ya-btn{
  min-height:64px;
  font-size:16px;
}

/* Дополнительные характеристики */

.ya-primary-params{
  margin-top:2px;
}

.ya-more-params-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:20px;
  padding:16px 0;
  border:0;
  border-top:1px solid var(--ya-line);
  border-bottom:1px solid var(--ya-line);
  background:transparent;
  color:var(--ya-text);
  cursor:pointer;
  font:inherit;
  text-align:left;
}

.ya-more-params-toggle strong{
  font-size:15px;
  font-weight:600;
}

.ya-more-params-toggle span{
  color:var(--ya-burgundy);
  font-size:13px;
  white-space:nowrap;
}

.ya-more-params-toggle:focus{
  outline:none;
}

.ya-more-params-toggle:focus-visible{
  outline:1px solid var(--ya-burgundy);
  outline-offset:3px;
}

.ya-more-params{
  display:none;
  margin-top:20px;
}

.ya-more-params.is-open{
  display:grid;
}

.ya-reset-params{
  display:block;
  margin:16px 0 0 auto;
  padding:0;
  border:0;
  border-bottom:1px solid #c8c4c5;
  background:transparent;
  color:#858184;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  line-height:1.6;
}

.ya-reset-params:hover{
  color:var(--ya-burgundy);
  border-color:var(--ya-burgundy);
}

/* Preview теперь не делится пополам */

.ya-preview-shell{
  display:block;
  width:min(1180px,calc(100% - 56px));
  min-height:100vh;
  padding:68px 0 78px;
}

.ya-preview-copy{
  max-width:960px;
  padding:0 6px 38px;
}

.ya-preview-copy h1{
  max-width:900px;
  margin-top:18px;
  font-size:58px;
  line-height:1.04;
}

.ya-preview-copy p{
  max-width:760px;
  margin-top:22px;
  font-size:17px;
  line-height:1.6;
}

.ya-preview-calculator{
  width:100%;
}

.ya-preview-points{
  max-width:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:28px 6px 0;
  border-top:1px solid rgba(255,255,255,.18);
}

.ya-preview-points div{
  padding:16px 18px 16px 0;
  border-bottom:1px solid rgba(255,255,255,.18);
  color:#d7bfc1;
  font:14px/1.4 Arial,sans-serif;
}

.ya-preview-points div + div{
  padding-left:22px;
  border-left:1px solid rgba(255,255,255,.12);
}

/* Планшет */

@media(max-width:900px){
  .ya-preview-shell{
    width:min(100% - 32px,820px);
    padding:46px 0 58px;
  }

  .ya-preview-copy{
    padding-bottom:30px;
  }

  .ya-preview-copy h1{
    max-width:760px;
    font-size:46px;
  }

  .ya-card{
    padding:40px 34px 38px;
  }

  .ya-title{
    font-size:40px;
  }
}

/* Телефон */

@media(max-width:640px){
  .ya-preview-shell{
    width:calc(100% - 24px);
    padding:32px 0 42px;
  }

  .ya-preview-copy{
    padding:0 4px 24px;
  }

  .ya-preview-copy h1{
    font-size:37px;
    line-height:1.06;
  }

  .ya-preview-copy p{
    margin-top:17px;
    font-size:15px;
  }

  .ya-card{
    padding:30px 20px 28px;
  }

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

  .ya-input,
  .ya-select{
    height:60px;
    font-size:17px;
  }

  .ya-auto-parameter{
    min-height:60px;
  }

  .ya-more-params{
    margin-top:16px;
  }

  .ya-preview-points{
    grid-template-columns:1fr;
    margin-top:22px;
  }

  .ya-preview-points div{
    padding:13px 0;
  }

  .ya-preview-points div + div{
    padding-left:0;
    border-left:0;
  }
}


/* ===== Year slider + popular selects V2.2 ===== */

.ya-year-slider{
  margin-top:13px;
}

.ya-mileage-range:disabled{
  opacity:.38;
  cursor:not-allowed;
}

.ya-select optgroup{
  font-weight:700;
}


/* ===== Custom make/model pickers V2.3 ===== */

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

.ya-native-picker-select{
  display:none !important;
}

.ya-picker-button{
  width:100%;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 18px;
  border:1px solid #dedad7;
  border-radius:3px;
  background:var(--ya-field);
  color:#323033;
  cursor:pointer;
  font:inherit;
  font-size:18px;
  text-align:left;
}

.ya-picker-button:focus{
  outline:none;
  border-color:var(--ya-burgundy);
  background:#fff;
}

.ya-picker-button:disabled{
  color:#aaa6a5;
  cursor:not-allowed;
}

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

.ya-picker-arrow{
  flex:0 0 auto;
  font-size:24px;
  line-height:1;
}

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

.ya-picker-panel{
  position:absolute;
  z-index:1000;
  top:calc(100% + 7px);
  left:0;
  width:100%;
  max-height:430px;
  display:none;
  overflow:hidden;
  border:1px solid #d8d3d0;
  border-radius:4px;
  background:#fff;
  box-shadow:0 14px 34px rgba(45,35,37,.16);
}

.ya-vehicle-picker.is-open .ya-picker-panel{
  display:block;
}

.ya-picker-search-wrap{
  padding:12px;
  border-bottom:1px solid var(--ya-line);
}

.ya-picker-search{
  width:100%;
  height:46px;
  padding:0 14px;
  border:1px solid #ddd8d5;
  border-radius:3px;
  outline:none;
  background:#f7f4f2;
  color:#302e30;
  font:inherit;
  font-size:15px;
}

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

.ya-picker-options{
  max-height:360px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:5px 0 10px;
}

.ya-picker-group-title{
  padding:14px 16px 7px;
  color:#999395;
  font-size:11px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.ya-picker-option{
  width:100%;
  min-height:44px;
  display:block;
  padding:10px 16px;
  border:0;
  background:transparent;
  color:#363335;
  cursor:pointer;
  font:inherit;
  font-size:15px;
  line-height:1.3;
  text-align:left;
}

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

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

.ya-picker-group[hidden],
.ya-picker-option[hidden]{
  display:none !important;
}

@media(max-width:640px){
  .ya-picker-button{
    height:60px;
    font-size:17px;
  }

  .ya-picker-panel{
    max-height:390px;
  }

  .ya-picker-options{
    max-height:320px;
  }
}


/* ===== Final mobile polish V2.4 ===== */

@media(max-width:640px){

  .ya-preview-page{
    overflow-x:hidden;
  }

  .ya-preview-shell{
    width:calc(100% - 20px);
    padding:24px 0 34px;
  }

  .ya-preview-copy{
    padding:0 2px 20px;
  }

  .ya-preview-copy h1{
    max-width:none;
    font-size:32px;
    line-height:1.07;
    letter-spacing:-.025em;
  }

  .ya-preview-copy p{
    margin-top:14px;
    font-size:14px;
    line-height:1.5;
  }

  .ya-card{
    padding:24px 16px 24px;
  }

  .ya-eyebrow{
    margin-bottom:10px;
    font-size:11px;
  }

  .ya-title{
    font-size:30px;
    line-height:1.08;
  }

  .ya-subtitle{
    margin-top:14px;
    font-size:14px;
    line-height:1.5;
  }

  .ya-section{
    margin-top:24px;
  }

  .ya-section + .ya-section{
    padding-top:22px;
  }

  .ya-section-head{
    margin-bottom:13px;
  }

  .ya-grid,
  .ya-contact-grid{
    gap:14px;
  }

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

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

  .ya-auto-parameter{
    min-height:58px;
    font-size:15px;
  }

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

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

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

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

  .ya-picker-group-title{
    padding:12px 14px 6px;
  }

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

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

  .ya-mileage-help{
    font-size:12px;
    line-height:1.4;
  }

  .ya-more-params{
    margin-top:14px;
  }

  .ya-features-toggle{
    gap:12px;
    padding:14px 0;
  }

  .ya-features-toggle strong{
    font-size:14px;
  }

  .ya-features-toggle span{
    font-size:12px;
  }

  .ya-features{
    gap:8px;
  }

  .ya-feature{
    min-height:52px;
    padding:12px 12px 12px 38px;
    font-size:13px;
  }

  .ya-actions{
    margin-top:24px;
  }

  .ya-btn{
    min-height:56px;
    padding:14px 16px;
    font-size:16px;
  }

  .ya-loading-card{
    min-height:460px;
  }

  .ya-progress-number{
    font-size:52px;
  }

  .ya-loading-stage{
    font-size:22px;
  }

  .ya-price{
    font-size:34px;
    line-height:1.08;
  }

  .ya-result-card{
    padding-bottom:28px;
  }

  .ya-result-comment{
    font-size:14px;
  }

  .ya-lead{
    margin-top:24px;
    padding-top:22px;
  }

  .ya-result-footer{
    margin-top:20px;
  }
}

@media(max-width:380px){

  .ya-preview-copy h1{
    font-size:29px;
  }

  .ya-card{
    padding-left:14px;
    padding-right:14px;
  }

  .ya-title{
    font-size:28px;
  }
}

/* ===== Mobile text containment V2.5 ===== */

@media(max-width:640px){

  #yasno-auto-calculator,
  #yasno-auto-calculator .ya-calc,
  #yasno-auto-calculator .ya-card,
  #yasno-auto-calculator .ya-loading-card,
  #yasno-auto-calculator .ya-result-card{
    min-width:0;
    max-width:100%;
  }

  #yasno-auto-calculator .ya-title,
  #yasno-auto-calculator .ya-loading-stage,
  #yasno-auto-calculator .ya-loading-note,
  #yasno-auto-calculator .ya-result-comment,
  #yasno-auto-calculator .ya-info,
  #yasno-auto-calculator .ya-info strong,
  #yasno-auto-calculator .ya-info p,
  #yasno-auto-calculator .ya-lead,
  #yasno-auto-calculator .ya-lead-copy{
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  #yasno-auto-calculator .ya-price{
    min-width:0;
    max-width:100%;
    font-size:clamp(27px,7.5vw,32px);
    line-height:1.12;
    letter-spacing:-.03em;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
  }
}

/* ===== Mobile price layout V2.6 ===== */

@media(max-width:640px){

  #yasno-auto-calculator .ya-price{
    display:block;
    max-width:100%;
    font-size:clamp(27px,7.2vw,31px);
    line-height:1.16;
    overflow:visible;
    white-space:normal;
  }

  #yasno-auto-calculator .ya-price-line{
    display:block;
    max-width:100%;
    white-space:nowrap;
  }

  #yasno-auto-calculator .ya-price-to{
    margin-top:3px;
  }
}


/* ===== Optional post-lead photos V2.7 ===== */

.ya-photo-before-note{
  margin:12px 0 0;
  font-size:12px;
  line-height:1.45;
  color:var(--ya-muted,#6b7280);
  text-align:center;
}

.ya-lead-success{
  width:100%;
}

.ya-lead-success-head{
  display:flex;
  align-items:flex-start;
  gap:13px;
}

.ya-lead-success-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#edf7f0;
  color:#25733d;
  font-size:19px;
  font-weight:800;
  line-height:1;
}

.ya-lead-success-title{
  margin:0;
  font-size:20px;
  line-height:1.2;
}

.ya-lead-success-copy{
  margin:6px 0 0;
  font-size:14px;
  line-height:1.5;
  color:var(--ya-muted,#6b7280);
}

.ya-photo-offer{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid var(--ya-border,#e6e1df);
}

.ya-photo-offer-title{
  margin:0;
  font-size:18px;
  line-height:1.3;
}

.ya-photo-offer-copy{
  margin:8px 0 0;
  max-width:620px;
  font-size:14px;
  line-height:1.55;
  color:var(--ya-muted,#6b7280);
}

.ya-photo-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:48px;
  margin-top:16px;
  padding:11px 17px;
  border:1px solid var(--ya-border,#d9d4d1);
  border-radius:12px;
  background:#fff;
  color:var(--ya-text,#262222);
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.ya-photo-open:hover{
  border-color:var(--ya-burgundy,#7f2633);
  background:#fcf8f8;
}

.ya-photo-open:active{
  transform:translateY(1px);
}

.ya-photo-optional{
  margin-top:8px;
  font-size:12px;
  line-height:1.4;
  color:var(--ya-muted,#777);
}

.ya-photo-panel{
  margin-top:18px;
  padding:17px;
  border:1px solid var(--ya-border,#e5dfdc);
  border-radius:14px;
  background:#faf9f8;
}

.ya-photo-panel[hidden],
.ya-photo-send[hidden],
.ya-photo-open[hidden]{
  display:none !important;
}

.ya-photo-panel-head{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ya-photo-panel-head strong{
  font-size:15px;
  line-height:1.35;
}

.ya-photo-panel-head span{
  font-size:12px;
  line-height:1.45;
  color:var(--ya-muted,#6b7280);
}

.ya-photo-picker{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  margin-top:14px;
  padding:12px 16px;
  border:1px dashed #bcb3af;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}

.ya-photo-picker:hover{
  border-color:var(--ya-burgundy,#7f2633);
  background:#fcf8f8;
}

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

.ya-photo-picker-text{
  font-size:14px;
  line-height:1.3;
  font-weight:700;
  color:var(--ya-burgundy,#7f2633);
}

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

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

.ya-photo-thumb{
  position:relative;
  min-width:0;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:10px;
  background:#eee;
}

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

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

.ya-photo-counter{
  margin-top:9px;
  font-size:12px;
  color:var(--ya-muted,#6b7280);
}

.ya-photo-message{
  min-height:0;
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
}

.ya-photo-message:empty{
  display:none;
}

.ya-photo-message.is-error{
  color:#a52b38;
}

.ya-photo-message.is-success{
  color:#25733d;
}

.ya-photo-send{
  width:100%;
  margin-top:14px;
}

.ya-photo-reassurance{
  margin:11px 0 0;
  font-size:12px;
  line-height:1.45;
  color:var(--ya-muted,#6b7280);
  text-align:center;
}

.ya-photo-success{
  display:flex;
  align-items:flex-start;
  gap:11px;
}

.ya-photo-success-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#edf7f0;
  color:#25733d;
  font-size:17px;
  font-weight:800;
}

.ya-photo-success strong{
  display:block;
  font-size:15px;
  line-height:1.35;
}

.ya-photo-success p{
  margin:4px 0 0;
  font-size:13px;
  line-height:1.45;
  color:var(--ya-muted,#6b7280);
}

@media(max-width:640px){
  .ya-photo-before-note{
    margin-top:10px;
    padding:0 4px;
  }

  .ya-lead-success-head{
    gap:11px;
  }

  .ya-photo-offer{
    margin-top:20px;
    padding-top:20px;
  }

  .ya-photo-open{
    width:100%;
    min-height:52px;
  }

  .ya-photo-optional{
    text-align:center;
  }

  .ya-photo-panel{
    margin-left:-2px;
    margin-right:-2px;
    padding:14px;
  }

  .ya-photo-picker{
    min-height:56px;
  }

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

  .ya-photo-remove{
    width:28px;
    height:28px;
  }
}


/* ===== Photo offer emphasis V2.8 ===== */

.ya-photo-offer{
  margin-top:24px;
  padding:22px;
  border:1px solid #eadcdd;
  border-radius:16px;
  background:#fcf8f8;
}

.ya-photo-offer-title{
  font-size:20px;
  line-height:1.25;
}

.ya-photo-offer-copy{
  margin-top:9px;
  max-width:680px;
  color:#625d5d;
}

.ya-photo-open{
  min-height:52px;
  margin-top:18px;
  padding:13px 20px;
  border:1px solid var(--ya-burgundy,#7f2633);
  background:var(--ya-burgundy,#7f2633);
  color:#fff;
  box-shadow:0 5px 14px rgba(95,30,40,.12);
}

.ya-photo-open:hover{
  border-color:var(--ya-burgundy,#7f2633);
  background:var(--ya-burgundy,#7f2633);
  color:#fff;
  filter:brightness(.96);
}

.ya-photo-optional{
  margin-top:9px;
  color:#777;
}

.ya-photo-panel{
  border-color:#e2d6d6;
  background:#fff;
}

@media(max-width:640px){
  .ya-photo-offer{
    margin-top:20px;
    padding:18px 16px;
  }

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

  .ya-photo-open{
    width:100%;
    min-height:54px;
    font-size:15px;
  }
}
