.quote-page {
  --q-text: var(--ink, #13354a); --q-line: #c9dce3; --q-muted: #486373;
  color: var(--q-text); background: #f4f9fb; margin: 0; min-height: 100vh;
}
.quote-page *, .quote-page *::before, .quote-page *::after { box-sizing: border-box; }
.quote-page [hidden] { display: none !important; }
.quote-page :focus-visible { outline: 3px solid #286b82; outline-offset: 3px; }
.q-sr, .q-trap, .q-skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.q-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 9px 14px; background: white; }
.q-wrap { width: min(calc(100% - 96px), 1200px); margin-inline: auto; }
.q-header { background: #fff; border-bottom: 1px solid var(--q-line); }
.q-header .q-wrap, .q-footer .q-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.q-header .q-wrap { min-height: 82px; }
.q-brand { display: inline-flex; align-items: center; min-height: 48px; }
.q-brand img { display: block; width: 154px; height: auto; }
.q-home, .q-mail { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; color: var(--q-text); font-weight: 600; }
.q-home { text-decoration: none; }
.q-home:hover, .q-mail:hover { text-decoration: underline; text-underline-offset: .2em; }
.q-layout {
  padding-block: clamp(50px, 6vw, 86px); display: grid; gap: 28px clamp(54px, 7vw, 116px);
  grid-template-columns: minmax(235px, .75fr) minmax(440px, 1.35fr);
  grid-template-rows: auto 1fr; grid-template-areas: "intro card" "contact card"; align-items: start;
}
.q-intro { grid-area: intro; }
.q-intro h1 { font-size: clamp(54px, 5.4vw, 82px); line-height: .97; letter-spacing: -.055em; margin: 18px 0; font-weight: 600; }
.q-intro h1 span { color: var(--blue, #479bb2); }
.q-intro > p:last-child { max-width: 33ch; color: var(--q-muted); font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; margin: 0; }
.q-region { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.q-region span { height: 2px; background: var(--blue, #479bb2); width: 28px; }
.q-contact-block { grid-area: contact; min-width: 0; }
.q-detail-img { display: block; width: min(100%, 330px); height: clamp(80px, 10vw, 146px); object-fit: cover; object-position: center; border-radius: 2px; }
.q-contact-block h2 { margin: 20px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.q-mail { font-size: 16px; gap: 8px; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.q-card { grid-area: card; min-width: 0; padding: clamp(24px, 3.5vw, 52px); background: white; border: 1px solid var(--q-line); border-top: 4px solid var(--blue, #479bb2); border-radius: 3px; }
.q-card h2 { margin: 0 0 24px; font-size: clamp(27px, 2.4vw, 37px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; }
.q-progress { display: flex; flex-wrap: nowrap; list-style: none; padding: 0 0 24px; margin: 0 0 28px; border-bottom: 1px solid var(--q-line); gap: 12px; }
.q-progress li { display: flex; align-items: center; gap: 7px; color: var(--q-muted); font-size: 15px; white-space: nowrap; }
.q-progress li:not(:last-child) { flex: 1; }
.q-progress li:not(:last-child)::after { content: ""; background: var(--q-line); height: 1px; flex: 1; min-width: 5px; margin-left: 4px; }
.q-progress li span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #91a8b2; font-size: 13px; font-variant-numeric: tabular-nums; }
.q-progress li[aria-current] { color: var(--q-text); font-weight: 600; }
.q-progress li[aria-current] span { background: var(--q-text); color: white; border-color: var(--q-text); }
.q-progress li.q-complete span { background: var(--ice, #e4f3fa); border-color: #76a6b5; }
.q-options, .q-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.q-options label {
  display: flex; align-items: center; gap: 10px; padding: 12px clamp(10px, 1.2vw, 18px);
  min-height: 55px; background: #fff; border: 1px solid #aec2cb;
  border-radius: 3px; cursor: pointer; font-size: 16px; line-height: 1.18; overflow-wrap: anywhere;
}
.q-options input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--q-text); }
.q-options label:hover { background: #f5fafc; border-color: #769aa9; }
.q-options label:has(input:checked) { background: var(--ice, #e4f3fa); border-color: #588291; color: var(--q-text); font-weight: 600; }
.q-fields { gap: 16px; }
.q-wide { grid-column: 1 / -1; }
.q-field { min-width: 0; }
.q-field label, #q-manual label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 16px; }
.q-field small { font-size: .91em; color: var(--q-muted); font-weight: 400; }
.q-field input, .q-field select, .q-field textarea, #q-draft {
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--q-text); background: white;
  display: block; width: 100%; padding: 10px 12px; min-height: 46px; border: 1px solid #91a9b5; border-radius: 3px;
}
.q-field textarea, #q-draft { resize: vertical; }
.q-field ::placeholder { color: #627783; opacity: 1; }
.q-field input[aria-invalid="true"], .q-field select[aria-invalid="true"], .q-options:has([aria-invalid="true"]) label { border-color: #9d3c34; }
.q-error { margin: 7px 0 0; font-size: 15px; line-height: 1.35; color: #902f2b; }
.q-info { margin: 18px 0 0; font-size: 16px; background: var(--ice, #e4f3fa); padding: 10px 14px; line-height: 1.4; }
.q-privacy { margin: 16px 0 0; font-size: 15px; line-height: 1.4; color: var(--q-muted); }
.q-privacy a, .q-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.q-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--q-line); }
.q-primary, .q-secondary, #q-copy-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0;
  min-height: 46px; border-radius: 3px; font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.q-primary { background: var(--q-text); color: #fff; padding: 10px 20px; margin-left: auto; }
.q-primary:hover { background: #214e64; }
.q-primary:disabled, .q-secondary:disabled { cursor: wait; opacity: .68; }
.q-primary[aria-busy="true"] .q-arrow { font-size: 0; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: q-spin .8s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .q-primary[aria-busy="true"] .q-arrow { animation: none; } }
.q-secondary, #q-copy-button { background: transparent; color: var(--q-text); padding: 6px 0; }
.q-secondary:hover, #q-copy-button { text-decoration: underline; text-underline-offset: 4px; }
.q-copy { margin-top: 8px; text-align: right; }
.q-copy p { margin: 0; font-size: 15px; line-height: 1.4; }
#q-manual { text-align: left; margin-top: 12px; }
.q-success p { max-width: 48ch; }
.q-check { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ice, #e4f3fa); font-size: 22px; margin-bottom: 18px; }
.q-footer { border-top: 1px solid var(--q-line); font-size: 15px; color: var(--q-muted); }
.q-footer .q-wrap { padding-block: 19px; }
.q-footer nav { display: flex; gap: 18px; }
.q-footer a { display: inline-flex; align-items: center; min-height: 35px; }
@media (max-width: 920px) {
  .q-wrap { width: min(calc(100% - 48px), 840px); }
  .q-layout { grid-template-columns: minmax(185px, .61fr) minmax(400px, 1.39fr); gap: 24px; }
  .q-card { padding: 22px; }
  .q-mail { display: inline; line-height: 1.7; }
}
@media (max-width: 720px) {
  .q-wrap { width: min(calc(100% - 36px), 550px); }
  .q-header .q-wrap { min-height: 66px; }
  .q-brand img { width: 132px; }
  .q-layout { padding-block: 30px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "contact"; gap: 22px; }
  .q-intro h1 { font-size: clamp(39px, 8vw, 52px); margin: 10px 0; }
  .q-intro h1 br { display: none; }
  .q-intro h1 br::after { content: " "; }
  .q-intro > p:last-child { max-width: 100%; font-size: 17px; }
  .q-contact-block { border-top: 1px solid var(--q-line); padding-top: 18px; }
  .q-contact-block h2 { margin: 0; }
  .q-detail-img { display: none; }
  .q-card h2 { margin-bottom: 18px; }
  .q-progress { margin-bottom: 20px; padding-bottom: 18px; }
  .q-actions { margin-top: 20px; padding-top: 16px; }
  .q-footer .q-wrap { flex-wrap: wrap; gap: 4px 20px; }
}
@media (max-width: 445px) {
  .q-card { padding: 17px 14px; }
  .q-options { gap: 7px; }
  .q-options label { gap: 7px; font-size: 15px; padding: 9px 7px; }
  .q-options input { width: 14px; height: 14px; }
  .q-fields { grid-template-columns: 1fr; }
  .q-progress { gap: 7px; }
  .q-progress li { gap: 4px; font-size: 14px; }
  .q-progress li span { width: 21px; height: 21px; }
  .q-primary { padding: 10px 12px; }
}
@media (max-width: 355px) {
  .q-options { grid-template-columns: 1fr; }
  .q-wrap { width: calc(100% - 24px); }
  .q-progress li:not(:last-child)::after { display: none; }
  .q-actions { flex-wrap: wrap; }
}
