.q-page { background: #FDFDFC; min-height: 100vh; display: flex; flex-direction: column; }
.q-hint a, .q-fine a, .q-alert-text a { color: #2D6BE0; }
.q-page .v1-nav { width: 100%; }
.q-home { display: flex; align-items: center; gap: 11px; text-decoration: none; }

.q-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 32px 104px; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 76px); align-items: start; }

.q-intro { position: sticky; top: 40px; padding-top: 18px; }
.q-pill { display: inline-flex; align-items: center; background: #EDF2FA; color: #1C53BC; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 8px 16px; }
.q-h1 { margin: 24px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.q-lead { margin: 20px 0 0; max-width: 440px; font-size: 17px; line-height: 1.58; font-weight: 500; color: #5E7B76; text-wrap: pretty; }
.q-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

.q-card { background: #FFFFFF; border: 1.5px solid #C9D6ED; border-radius: 26px; box-shadow: 0 12px 28px rgba(16,63,150,0.10); padding: clamp(22px, 3vw, 40px); }

.q-section + .q-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid #EDEDE8; }
.q-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.q-section-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.q-num { width: 30px; height: 30px; border-radius: 9px; background: #EDF2FA; color: #1C53BC; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.q-grid { display: grid; gap: 12px; }
.q-grid--two { grid-template-columns: 1fr 1fr; }
.q-grid--vehicle { grid-template-columns: 120px 1fr 1fr; }
.q-grid + .q-grid, .q-grid + .q-field, .q-field + .q-grid, .q-field + .q-field { margin-top: 14px; }
.q-grid > .q-field + .q-field { margin-top: 0; }

.q-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #5E7B76; }
.q-input, .q-select { display: block; width: 100%; height: 52px; border: 1.5px solid #E4E4E0; border-radius: 14px; background: #FFFFFF; padding: 0 15px; font-family: inherit; font-size: 15px; font-weight: 600; color: #0F2A27; outline: none; -webkit-appearance: none; appearance: none; transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.q-input::placeholder { color: #9AA8A4; opacity: 1; }
.q-input:not([type="date"]):not(:placeholder-shown), .q-select:valid, .q-input[type="date"]:valid { border-color: #2D6BE0; }
.q-input:focus, .q-select:focus { border-color: #2D6BE0; box-shadow: inset 0 0 0 0.5px #2D6BE0, 0 4px 14px rgba(45,107,224,0.14); }
.q-select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' stroke='%235E7B76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
.q-select:invalid { color: #9AA8A4; }
.q-select option { color: #0F2A27; }
.q-input[type="date"] { min-width: 0; }
.q-input[type="date"]:invalid { color: #9AA8A4; }
.q-input:disabled { background: #F7F7F5; color: #9AA8A4; cursor: not-allowed; }

.q-error { display: none; margin-top: 5px; font-size: 11.5px; font-weight: 600; line-height: 1.4; color: #921334; }
.q-field.is-invalid .q-error { display: block; }
.q-field.is-invalid .q-input, .q-field.is-invalid .q-select { border-color: #DC2655; background-color: #FEF4F6; }
.q-field.is-invalid .q-input:focus, .q-field.is-invalid .q-select:focus { box-shadow: inset 0 0 0 0.5px #DC2655, 0 4px 14px rgba(220,38,85,0.16); }

.q-hint { margin: 9px 0 0; font-size: 12px; font-weight: 500; line-height: 1.45; color: #9AA8A4; }
.q-hint a { font-weight: 700; text-decoration: none; }

.q-vehicle { background: #F5F8FC; border: 1px solid #E4E4E0; border-radius: 18px; padding: 16px; }
.q-vehicle + .q-vehicle { margin-top: 12px; }
.q-vehicle-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.q-vehicle-head .q-label { margin: 0; color: #0F2A27; }
.q-remove { border: 0; background: none; padding: 0; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #B61D45; cursor: pointer; }
.q-remove[hidden] { display: none; }
.q-add { display: block; width: 100%; margin-top: 12px; padding: 13px; border: 1.5px dashed #CFD9D5; border-radius: 13px; background: #FFFFFF; font-family: inherit; font-size: 13px; font-weight: 700; color: #2D6BE0; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; }
.q-add:hover { background: #F5F8FC; border-color: #C9D6ED; }
.q-add[hidden] { display: none; }

.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chips--pair { flex-wrap: nowrap; }
.q-chips--pair .q-chip { flex: 1; }
.q-chip { position: relative; cursor: pointer; }
.q-chip input { position: absolute; opacity: 0; pointer-events: none; }
.q-chip span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #E4E4E0; border-radius: 11px; background: #FFFFFF; font-size: 13px; font-weight: 600; color: #0F2A27; white-space: nowrap; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.q-chips--pair .q-chip span { height: 52px; border-radius: 14px; padding: 0 10px; }
.q-chip input:checked + span { background: #EDF2FA; border-color: #2D6BE0; color: #1C53BC; font-weight: 700; }
.q-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(45,107,224,0.22); }

.q-combo { position: relative; }
.q-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; margin: 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; background: #FFFFFF; border: 1px solid #E4E4E0; border-radius: 14px; box-shadow: 0 14px 30px rgba(16,63,150,0.16); }
.q-suggest[hidden] { display: none; }
.q-suggest-item { display: flex; align-items: center; gap: 11px; padding: 11px 15px; cursor: pointer; }
.q-suggest-item + .q-suggest-item { border-top: 1px solid #F2F2EE; }
.q-suggest-item.is-active { background: #F5F8FC; }
.q-suggest-pin { display: flex; flex-shrink: 0; }
.q-suggest-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: #18181B; }
.q-suggest-secondary { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #9AA8A4; }

.q-option { position: relative; display: block; cursor: pointer; }
.q-option input { position: absolute; opacity: 0; pointer-events: none; }
.q-option-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 44px 16px 16px; border: 1.5px solid #E4E4E0; border-radius: 16px; background: #FFFFFF; transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.q-option-body::after { content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid #D6DEDB; background: #FFFFFF; transition: border-color 0.12s ease, background 0.12s ease; }
.q-option input:checked + .q-option-body { background: #F5F8FC; border-color: #2D6BE0; box-shadow: 0 4px 14px rgba(45,107,224,0.14); }
.q-option input:checked + .q-option-body::after { border-color: #2D6BE0; background: #2D6BE0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5' stroke='%23FFFFFF' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.q-option input:focus-visible + .q-option-body { box-shadow: 0 0 0 3px rgba(45,107,224,0.22); }
.q-option-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 800; }
.q-option-text { font-size: 12.5px; font-weight: 500; line-height: 1.45; color: #5E7B76; }
.q-ribbon { background: #FDECF1; color: #B61D45; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; }

.q-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 600; color: #0F2A27; cursor: pointer; }
.q-check input { position: absolute; opacity: 0; pointer-events: none; }
.q-check-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #D6DEDB; background: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.12s ease, border-color 0.12s ease; }
.q-check-box svg { opacity: 0; }
.q-check input:checked + .q-check-box { background: #2D6BE0; border-color: #2D6BE0; }
.q-check input:checked + .q-check-box svg { opacity: 1; }
.q-check input:focus-visible + .q-check-box { box-shadow: 0 0 0 3px rgba(45,107,224,0.22); }

.q-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.q-submit-area { margin-top: 30px; }
.q-alert { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 13px 14px; background: rgba(220,38,85,0.06); border: 1px solid rgba(220,38,85,0.25); border-radius: 13px; }
.q-alert[hidden] { display: none; }
.q-alert svg { flex-shrink: 0; }
.q-alert-title { font-size: 13px; font-weight: 700; color: #921334; }
.q-alert-text { margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; color: #5E7B76; }
.q-alert-text a { font-weight: 700; text-decoration: none; }

.q-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border: 0; border-radius: 16px; background: #2D6BE0; color: #FFFFFF; font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(45,107,224,0.30); transition: background 0.15s ease, transform 0.15s ease; }
.q-submit:hover { background: #1C53BC; }
.q-submit:disabled { background: #D5DEEE; color: #90A1C1; box-shadow: none; cursor: default; }
.q-spinner { display: none; width: 18px; height: 18px; border-radius: 99px; border: 2.5px solid rgba(144,161,193,0.4); border-top-color: #90A1C1; animation: q-spin 0.8s linear infinite; }
.q-submit.is-busy .q-spinner { display: block; }
@keyframes q-spin { to { transform: rotate(360deg); } }

.q-fine { margin: 14px 0 0; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.5; color: #9AA8A4; text-wrap: pretty; }
.q-fine a { font-weight: 700; text-decoration: none; }
.q-fine + .q-fine { margin-top: 6px; }
.q-page .grecaptcha-badge { visibility: hidden; }

.q-result[hidden] { display: none; }
.q-result { text-align: center; padding: 14px 0 6px; }
.q-result-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 99px; background: #EDF2FA; display: flex; align-items: center; justify-content: center; }
.q-result-icon--warn { background: #FDECF1; }
.q-result-chip { display: inline-block; margin-top: 20px; background: #EDF2FA; color: #1C53BC; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 6px 13px; }
.q-result-title { margin: 14px auto 0; max-width: 520px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.q-result-route { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: #0F2A27; }
.q-result-text { margin: 12px auto 0; max-width: 470px; font-size: 15px; font-weight: 500; line-height: 1.55; color: #5E7B76; text-wrap: pretty; }
.q-result-text strong { color: #0F2A27; font-weight: 700; }

.q-prices { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; text-align: left; }
.q-price { position: relative; padding: 18px 18px 16px; border: 1.5px solid #E4E4E0; border-radius: 18px; background: #FFFFFF; }
.q-price--selected { background: #F5F8FC; border-color: #2D6BE0; box-shadow: 0 4px 14px rgba(45,107,224,0.14); }
.q-price-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.q-price-name { font-size: 14px; font-weight: 800; }
.q-price-tag { background: #2D6BE0; color: #FFFFFF; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.q-price-amount { margin-top: 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: #1C53BC; font-variant-numeric: tabular-nums; }
.q-price-deposit { margin-top: 4px; font-size: 12px; font-weight: 600; color: #5E7B76; }
.q-deposit-note { margin: 16px auto 0; max-width: 480px; font-size: 13px; font-weight: 500; line-height: 1.5; color: #5E7B76; text-wrap: pretty; }
.q-deposit-note strong { color: #0F2A27; font-weight: 700; }

.q-next { margin-top: 26px; padding: 22px; background: #F5F8FC; border: 1px solid #E4E4E0; border-radius: 18px; text-align: left; }
.q-next-title { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #5E7B76; }
.q-next-row { display: flex; gap: 13px; align-items: flex-start; margin-top: 14px; }
.q-next-row .v1-feed-icon { background: #EDF2FA; }
.q-next-row-title { font-size: 14px; font-weight: 800; }
.q-next-row-text { margin-top: 2px; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: #5E7B76; overflow-wrap: anywhere; }
.q-next .v1-store-row { margin-top: 14px; justify-content: flex-start; }
.q-next .v1-store { width: 172px; padding: 10px 16px; }

.q-result-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.q-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 16px; font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.q-button--primary { border: 0; background: #2D6BE0; color: #FFFFFF; font-weight: 800; box-shadow: 0 10px 22px rgba(45,107,224,0.30); }
.q-button--secondary { border: 1.5px solid #C9D6ED; background: #FFFFFF; color: #2D6BE0; }

@media (max-width: 860px) {
  .q-main { grid-template-columns: 1fr; padding: 36px 20px 64px; gap: 28px; }
  .q-intro { position: static; padding-top: 0; }
  .q-h1 { margin-top: 18px; }
  .q-lead { font-size: 16px; }
  .q-points { margin-top: 20px; }
  .q-card { padding: 20px 16px; border-radius: 22px; }
  .q-section + .q-section { margin-top: 26px; padding-top: 26px; }
  .q-section-head h2 { font-size: 17px; }
  .q-grid--two { grid-template-columns: 1fr; }
  .q-grid--two > .q-field + .q-field { margin-top: 2px; }
  .q-grid--vehicle { grid-template-columns: 1fr 1fr; }
  .q-grid--vehicle > .q-field:first-child { grid-column: 1 / -1; }
  .q-chips--pair .q-chip span { font-size: 12.5px; }
  .q-vehicle { padding: 14px; }
  .q-prices { grid-template-columns: 1fr; }
  .q-next { padding: 18px 16px; }
  .q-next .v1-store { width: 100%; justify-content: center; }
  .q-result-actions .q-button { width: 100%; }
}

@media (min-width: 2200px) {
  .q-page { min-height: calc(100vh / 1.25); }
}

@media (min-width: 3400px) {
  .q-page { min-height: calc(100vh / 1.6); }
}
