@font-face { font-family: Gilroy; src: url('../scripts2/insurance/fonts/Gilroy-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gilroy; src: url('../scripts2/insurance/fonts/Gilroy-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Gilroy; src: url('../scripts2/insurance/fonts/Gilroy-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
:root { --orange: #f28500; --ink: #202020; --muted: #747474; --line: #e7e5e2; --canvas: #f6f5f3; --danger: #c5382d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 16px/1.45 Gilroy, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -.6px; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 700; margin: 0; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #f2850060; outline-offset: 3px; }
.checkout-header { background: #171717; color: #fff; }
.header-inner { max-width: 1220px; margin: auto; min-height: 84px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.store-logo { display: flex; flex-shrink: 0; }
.store-logo img { width: 133px; height: 52px; object-fit: contain; }
.header-caption { display: none; color: #bcbcbc; font-size: 14px; }
.back-link { font-size: 14px; text-decoration: none; white-space: nowrap; padding: 8px 0; }
.back-link span { color: var(--orange); margin-right: 7px; }
.checkout-main { width: min(1180px, 100%); padding: 30px 16px 48px; margin: 0 auto; }
.checkout-heading { margin-bottom: 25px; }
.eyebrow { color: #b56600; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.7px; margin-bottom: 12px; }
.checkout-heading > p:last-child { color: var(--muted); max-width: 580px; font-size: 16px; margin-bottom: 0; }
.checkout-layout { display: grid; gap: 20px; align-items: start; }
.checkout-form { display: grid; gap: 16px; min-width: 0; }
.form-card { background: #fff; padding: 22px 18px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #fff2e3; color: #a85c00; border-radius: 50%; font-size: 15px; font-weight: 700; }
.field-grid { display: grid; gap: 17px; margin-bottom: 17px; }
.recipient-name { margin-bottom: 17px; }
.field { min-width: 0; position: relative; }
.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.optional { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.required { color: #bd6900; }
.field input, .field textarea { display: block; width: 100%; border: 1px solid #d9d7d3; background: #fff; border-radius: 9px; min-height: 50px; padding: 12px 13px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #96928e; font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #f2850015; outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 95px; }
.field-error { display: block; font-size: 13px; color: var(--danger); margin-top: 5px; }
.field-error:empty { display: none; }
.phone-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.section-footnote { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.choice-list { display: grid; gap: 10px; }
.choice-card { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; border: 1px solid var(--line); border-radius: 10px; padding: 15px 13px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice-card:has(input:checked) { border-color: var(--orange); background: #fff8ef; }
.choice-card.is-selected { border-color: var(--orange); background: #fff8ef; }
.choice-card.is-disabled { background: #fafaf9; color: #8d8b87; cursor: default; }
.choice-card input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); }
.choice-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.choice-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 16px; }
.choice-price { font-weight: 700; white-space: nowrap; font-size: 15px; }
.choice-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.unavailable-tag { display: block; font-size: 11px; color: #8d8b87; margin-top: 7px; }
.address-fields, .invoice-fields { display: grid; gap: 17px; margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.invoice-fields .field-grid { margin: 0; }
.postal-field { max-width: 260px; }
.pickup-note { margin: 18px 0 0; padding: 13px 15px; border-radius: 9px; background: #f7f6f3; font-size: 14px; color: #66635f; }
.finishing-card h2 { font-size: 18px; margin-bottom: 18px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #6d6a66; line-height: 1.5; margin-top: 20px; cursor: pointer; }
.consent-label input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); }
.checkout-consents { display: grid; gap: 16px; margin-top: 24px; }
.checkout-consents .consent-label { margin-top: 0; font-size: 13px; color: var(--ink); }
.checkout-consents a { text-decoration: underline; text-underline-offset: 3px; }
.consent-hint, .consent-policy { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 6px 0 0 28px; }
.consent-item .field-error { margin-left: 28px; }
.legal-document { padding-bottom: 30px; }
.legal-document h2 { font-size: 20px; line-height: 1.35; margin-top: 28px; }
.legal-document li { margin: 8px 0; line-height: 1.6; }
.legal-document a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-document .document-version { color: var(--muted); font-size: 13px; }
.order-summary { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; }
.summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 5px; }
.summary-heading a { font-size: 13px; color: #9a580a; }
.muted { color: var(--muted); font-size: 14px; }
#summary-count { font-size: 13px; margin-bottom: 20px; }
.summary-items { display: grid; gap: 18px; }
.summary-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary-item.has-image { grid-template-columns: 58px minmax(0, 1fr); }
.summary-item img { width: 58px; height: 70px; object-fit: contain; border-radius: 8px; background: #f6f5f3; }
.summary-item h3 { font-size: 14px; margin: 0 0 6px; overflow-wrap: anywhere; }
.summary-item p { font-size: 12px; color: var(--muted); margin: 3px 0; overflow-wrap: anywhere; }
.item-price { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.item-price span { font-size: 12px; color: var(--muted); }
.item-price strong { font-weight: 700; font-size: 14px; white-space: nowrap; }
.item-configuration { margin-top: 7px; font-size: 12px; color: var(--muted); }
.item-configuration summary { cursor: pointer; }
.summary-totals { margin: 23px 0 0; }
.summary-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0; }
.summary-totals dt { color: #6b6864; font-size: 14px; }
.summary-totals dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.discount-value { color: #48821d; }
.summary-totals .total-row { margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary-totals .total-row dt { color: var(--ink); font-size: 19px; font-weight: 700; }
.summary-totals .total-row dd { font-size: 26px; font-weight: 700; }
.quote-status { font-size: 12px; color: var(--muted); min-height: 18px; margin: 8px 0 0; }
.checkout-submit { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 25px #00000006; display: flex; align-items: center; gap: 15px; }
.primary-button { border: 0; border-radius: 10px; min-height: 51px; padding: 15px 20px; display: inline-flex; gap: 12px; align-items: center; justify-content: center; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s; }
.primary-button:hover { background: #e67b00; }
.primary-button:disabled { background: #dedad5; color: #807b75; }
.checkout-submit .primary-button { flex: 1; min-width: 0; padding: 14px 12px; }
.mobile-total { flex-shrink: 0; display: grid; gap: 1px; }
.mobile-total span { font-size: 11px; color: var(--muted); }
.mobile-total strong { font-size: 19px; line-height: 1.2; }
.summary-footnote { font-size: 12px; color: var(--muted); margin: 20px 0 16px; }
.summary-help { font-size: 13px; color: #9a580a; }
.notice { border: 1px solid #ebd1b1; border-radius: 12px; padding: 15px 18px; color: #815014; background: #fff6e8; margin-bottom: 20px; font-size: 14px; }
.suggestion-list { list-style: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 5px; margin: 6px 0 0; border: 1px solid #e3ded6; border-radius: 10px; box-shadow: 0 8px 30px #2520191f; z-index: 30; max-height: 260px; overflow-y: auto; }
.suggestion-list li { padding: 11px 10px; border-radius: 6px; font-size: 15px; cursor: pointer; overflow-wrap: anywhere; }
.suggestion-list li[aria-selected="true"], .suggestion-list li:hover { background: #fff2e0; }
.checkout-footer { padding: 0 20px 110px; max-width: 1180px; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }
.checkout-message { background: #fff; margin: 25px auto; max-width: 700px; border: 1px solid var(--line); border-radius: 20px; padding: 30px 24px; }
.checkout-message h1 { font-size: clamp(27px, 4vw, 36px); line-height: 1.2; }
.checkout-message p { line-height: 1.6; }
.checkout-message .primary-button { margin-top: 12px; }
.success-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 25px; border-radius: 50%; color: #4b8425; background: #edf7e5; font-size: 30px; }
.confirmation-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 22px 0; }
.confirmation-details div { display: grid; gap: 3px; margin: 12px 0; }
.confirmation-details dt { color: var(--muted); font-size: 13px; }
.confirmation-details dd { margin: 0; font-weight: 600; }
.confirmation-total { font-size: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (min-width: 600px) {
  .checkout-main { padding: 42px 28px 60px; }
  .header-inner { padding: 14px 28px; }
  .store-logo img { width: 155px; height: 57px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card, .order-summary { padding: 28px; }
  .checkout-submit { padding-inline: 28px; }
  .primary-button { font-size: 16px; }
  .checkout-message { padding: 42px; }
}
@media (min-width: 900px) {
  .header-caption { display: block; margin-right: auto; margin-left: 25px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; }
  .checkout-main { padding: 48px 20px 70px; }
  .checkout-heading { margin-bottom: 35px; }
  .checkout-form { gap: 20px; }
  .order-summary { position: sticky; top: 25px; padding: 26px 23px; }
  .checkout-submit { position: static; display: block; padding: 0; box-shadow: none; border: 0; margin-top: 18px; }
  .checkout-submit .primary-button { width: 100%; }
  .mobile-total { display: none; }
  .checkout-footer { padding: 0 20px 30px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* Доставка СДЭК: город, пункт выдачи */
.sdek-fields { gap: 20px; }
.point-list { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 300px; overflow-y: auto; background: #fff; }
.point-list li { padding: 11px 13px; border-bottom: 1px solid var(--line); cursor: pointer; }
.point-list li:last-child { border-bottom: 0; }
.point-list li:hover, .point-list li[aria-selected="true"] { background: #fff2e0; }
.point-list li[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--orange); }
.point-list .point-address { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.point-list .point-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.point-list .point-more { color: var(--muted); font-size: 12px; cursor: default; }
.point-list .point-more:hover { background: none; }
.point-map { height: 420px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #eef0f2; position: relative; z-index: 0; }
.point-map[hidden] { display: none; }
.point-map .leaflet-popup-content { font: 13px/1.4 inherit; margin: 10px 12px; }
.point-map .leaflet-popup-content strong { font-size: 14px; }
.point-map .point-map-chosen { color: var(--orange); font-weight: 600; }
.point-map .leaflet-tooltip { font-size: 12px; }
.point-map .marker-cluster { background: rgba(244, 123, 32, 0.25); }
.point-map .marker-cluster div { background: rgba(244, 123, 32, 0.85); color: #fff; font-weight: 600; }
@media (max-width: 600px) { .point-map { height: 320px; } }
.point-selected { margin-top: 12px; }
.point-selected strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
