#delivery-payment-page {
  --green: #168321;
  --text: #111;
  --muted: #555;
  --line: #dedede;
  --soft-green: #eef7e9;
}

#delivery-payment-page, #delivery-payment-page * { box-sizing: border-box; }
#delivery-payment-page { scroll-behavior: smooth; }
#delivery-payment-page { margin: 0; background: #fff; color: var(--text); font-family: Arial, "Segoe UI", sans-serif; }
#delivery-payment-page img,
#delivery-payment-page svg { max-width: 100%; }
#delivery-payment-page .svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#delivery-payment-page .delivery-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 30px; font-size: 14px; }
#delivery-payment-page .breadcrumbs { margin-bottom: 24px; color: #777; font-size: 12px; }
#delivery-payment-page .breadcrumbs span { margin: 0 10px; }
#delivery-payment-page .page-intro h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.1; }
#delivery-payment-page .page-intro p { max-width: 650px; margin: 0; line-height: 1.5; }

#delivery-payment-page .advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 18px 0; }
#delivery-payment-page .advantage-card { display: flex; gap: 18px; align-items: center; min-height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
#delivery-payment-page .feature-icon { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border-radius: 50%; background: var(--soft-green); color: var(--green); }
#delivery-payment-page .feature-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#delivery-payment-page .advantage-card h2 { margin: 0; font-size: 15px; }
#delivery-payment-page .advantage-card p { margin: 8px 0 0; line-height: 1.45; }

#delivery-payment-page .content-section { margin-top: 22px; }
#delivery-payment-page .section-title { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
#delivery-payment-page .zones-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
#delivery-payment-page .zone-card { --accent: #67b51b; display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 7px rgba(0, 0, 0, .05); }
#delivery-payment-page .zone-yellow { --accent: #ffa800; }
#delivery-payment-page .zone-blue { --accent: #1f6bff; }
#delivery-payment-page .zone-heading { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#delivery-payment-page .zone-number { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 17px; }
#delivery-payment-page .zone-heading h3 { margin: 0 0 4px; font-size: 16px; }
#delivery-payment-page .zone-heading b { color: var(--accent); font-size: 12px; }
#delivery-payment-page .zone-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(128px, .9fr); margin: 13px 0; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
#delivery-payment-page .price-part { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 5px; align-items: center; padding-right: 10px; }
#delivery-payment-page .price-part svg,
#delivery-payment-page .zone-days svg { width: 25px; height: 25px; fill: none; stroke: #111; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#delivery-payment-page .price-part small,
#delivery-payment-page .price-part strong,
#delivery-payment-page .free-part small,
#delivery-payment-page .free-part strong,
#delivery-payment-page .zone-days small,
#delivery-payment-page .zone-days strong { display: block; }
#delivery-payment-page .price-part strong,
#delivery-payment-page .free-part strong { margin-top: 4px; font-size: 15px; line-height: 1.2; }
#delivery-payment-page .free-part { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-left: 18px; border-left: 1px solid #ccc; color: var(--green); }
#delivery-payment-page .free-part small { line-height: 1.25; }
#delivery-payment-page .free-part strong { white-space: nowrap; }
#delivery-payment-page .zone-days { display: flex; gap: 13px; align-items: center; margin: 6px 0 14px; }
#delivery-payment-page .zone-days strong { margin-top: 3px; }
#delivery-payment-page .schedule-note { min-height: 51px; margin: -3px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.4; }
#delivery-payment-page .zone-card:not(.zone-green) .interval-label { margin-top: 51px; }
#delivery-payment-page .interval-label { display: block; margin-bottom: 8px; }
#delivery-payment-page .intervals { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
#delivery-payment-page .intervals span { padding: 7px 9px; border: 1px solid var(--accent); border-radius: 4px; font-size: 12px; white-space: nowrap; }
#delivery-payment-page .info-line { display: flex; gap: 11px; align-items: flex-start; margin: 10px 0 0; font-size: 12px; line-height: 1.45; }
#delivery-payment-page .info-line-icon { font-size: 17px; line-height: 1; }
#delivery-payment-page .info-line-text { min-width: 0; }

#delivery-payment-page .map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 25px; }
#delivery-payment-page .map-container { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f5f7f4; }
#delivery-payment-page .map-container iframe { display: block; width: 100%; height: 270px; border: 0; opacity: 0; transition: opacity .25s; }
#delivery-payment-page .map-container[data-map-state="loaded"] iframe { opacity: 1; }
#delivery-payment-page .map-status { position: absolute; inset: 0 0 36px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 24px; color: #45604a; text-align: center; }
#delivery-payment-page .map-status span:last-child { color: #6a756c; font-size: 12px; }
#delivery-payment-page .map-spinner { width: 28px; height: 28px; border: 3px solid #d4e4d2; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
#delivery-payment-page .map-container[data-map-state="loaded"] .map-status { display: none; }
#delivery-payment-page .map-container[data-map-state="error"] .map-spinner { display: none; }
#delivery-payment-page .map-container[data-map-state="error"] .map-status strong { color: #334739; }
#delivery-payment-page .map-fallback-link { position: absolute; right: 0; bottom: 0; left: 0; display: block; min-height: 36px; padding: 10px 14px; background: rgba(255,255,255,.96); color: #176b2b; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
#delivery-payment-page .map-legend { display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid var(--line); border-radius: 7px; }
#delivery-payment-page .map-legend p { display: flex; gap: 10px; align-items: center; margin: 7px 0; line-height: 1.35; }
#delivery-payment-page .map-legend div { margin-top: 16px; line-height: 1.55; }
#delivery-payment-page .legend-dot { flex: 0 0 22px; height: 22px; border-radius: 50%; }
#delivery-payment-page .green-dot { background: #65b514; }#delivery-payment-page .yellow-dot { background: #ffad00; }#delivery-payment-page .blue-dot { background: #1d6ff3; }

#delivery-payment-page .pickup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
#delivery-payment-page .pickup-grid article { min-height: 150px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
#delivery-payment-page .pickup-grid img { width: auto; height: 42px; object-fit: contain; }
#delivery-payment-page .pickup-grid img[alt="Ozon"] { height: 48px; }
#delivery-payment-page .pickup-grid img[alt="СДЭК"] { height: 70px; margin: -14px 0 -14px; }
#delivery-payment-page .pickup-grid h3 { margin: 14px 0 7px; font-size: 14px; line-height: 1.35; }
#delivery-payment-page .pickup-grid p { max-width: 270px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.45; }

#delivery-payment-page .home-delivery-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: 28px; align-items: start; }
#delivery-payment-page .home-delivery-lead { margin: 0 0 12px; font-weight: 700; line-height: 1.45; }
#delivery-payment-page .fact-list { margin: 0; padding: 0; list-style: none; }
#delivery-payment-page .fact-list li { position: relative; margin-bottom: 8px; padding-left: 28px; line-height: 1.4; }
#delivery-payment-page .fact-list li::before { position: absolute; left: 4px; color: var(--green); content: "✓"; font-weight: 700; }
#delivery-payment-page .terminal-condition { color: #155f1d; }
#delivery-payment-page .carrier-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#delivery-payment-page .carrier-logo { display: grid; place-items: center; min-width: 0; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
#delivery-payment-page .carrier-logo img { width: auto; max-width: 100%; height: 34px; object-fit: contain; }
#delivery-payment-page .carrier-logo img[alt="СДЭК"] { height: 56px; margin: -11px 0; }
#delivery-payment-page .carrier-logo:has(img[alt="Деловые Линии"]) { background: #202020; }
#delivery-payment-page .carrier-logo img[alt="КИТ"] { height: 44px; }
#delivery-payment-page .carrier-logo img[alt="ТК Энергия"] { height: 42px; }
#delivery-payment-page .carrier-logo img[alt="Байкал-Сервис"] { height: 38px; }

#delivery-payment-page .additional-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#delivery-payment-page .additional-info-grid article { display: flex; gap: 15px; align-items: center; min-width: 0; min-height: 94px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
#delivery-payment-page .info-card-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--soft-green); color: var(--green); }
#delivery-payment-page .info-card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#delivery-payment-page .additional-info-grid h3 { margin: 0; font-size: 14px; line-height: 1.35; }
#delivery-payment-page .additional-info-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
#delivery-payment-page .return-terms { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 13px; }

#delivery-payment-page .payment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
#delivery-payment-page .payment-grid article { display: flex; gap: 13px; align-items: center; min-width: 0; min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
#delivery-payment-page .payment-grid svg { flex: 0 0 36px; width: 36px; height: 36px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#delivery-payment-page .payment-grid h3 { margin: 0; font-size: 13px; line-height: 1.35; }
#delivery-payment-page .payment-grid p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
#delivery-payment-page .accepted-title { margin: 12px 0 5px; color: var(--muted); font-size: 12px; text-align: center; }
#delivery-payment-page .payment-logos { display: flex; gap: 34px; align-items: center; justify-content: center; min-height: 64px; padding: 8px; }
#delivery-payment-page .payment-logos img { width: auto; max-width: 94px; height: 34px; object-fit: contain; }


#delivery-payment-page.motion-ready .motion-zone:not(.is-visible) .motion-item,
#delivery-payment-page.motion-ready .motion-zone.motion-self:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px) scale(.995);
}

#delivery-payment-page.motion-ready .motion-zone.is-visible .motion-item,
#delivery-payment-page.motion-ready .motion-zone.motion-self.is-visible {
  animation: reveal-in .75s cubic-bezier(.22, .61, .36, 1) backwards;
}

#delivery-payment-page.motion-ready .motion-zone.is-visible .motion-item:nth-child(2) { animation-delay: 100ms; }
#delivery-payment-page.motion-ready .motion-zone.is-visible .motion-item:nth-child(3) { animation-delay: 200ms; }
#delivery-payment-page.motion-ready .motion-zone.is-visible .motion-item:nth-child(4) { animation-delay: 300ms; }
#delivery-payment-page.motion-ready .motion-zone.is-visible .motion-item:nth-child(5) { animation-delay: 400ms; }
#delivery-payment-page.motion-ready .motion-zone.is-visible .motion-item:nth-child(6) { animation-delay: 500ms; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  #delivery-payment-page .advantage-card,
#delivery-payment-page .zone-card,
#delivery-payment-page .pickup-grid article,
#delivery-payment-page .carrier-logo,
#delivery-payment-page .additional-info-grid article,
#delivery-payment-page .payment-grid article,
#delivery-payment-page .map-legend {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }

  #delivery-payment-page .advantage-card:hover,
#delivery-payment-page .zone-card:hover,
#delivery-payment-page .pickup-grid article:hover,
#delivery-payment-page .additional-info-grid article:hover,
#delivery-payment-page .payment-grid article:hover,
#delivery-payment-page .map-legend:hover {
    transform: translateY(-3px) scale(1.005);
    border-color: #cbdac8;
    box-shadow: 0 7px 18px rgba(22, 94, 33, .09);
  }

  #delivery-payment-page .carrier-logo:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #cbdac8;
    box-shadow: 0 5px 14px rgba(22, 94, 33, .08);
  }
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #delivery-payment-page .map-spinner { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  #delivery-payment-page .motion-ready .motion-zone,
#delivery-payment-page .motion-ready .motion-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  #delivery-payment-page .advantages,
#delivery-payment-page .zones-grid { gap: 16px; }
  #delivery-payment-page .zone-price { grid-template-columns: 1fr 1fr; }
  #delivery-payment-page .payment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #delivery-payment-page .home-delivery-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr); }
}

@media (max-width: 820px) {
  #delivery-payment-page .advantages { grid-template-columns: 1fr; gap: 10px; }
  #delivery-payment-page .advantage-card { min-height: 88px; }
  #delivery-payment-page .zones-grid,
#delivery-payment-page .map-layout,
#delivery-payment-page .pickup-grid { grid-template-columns: 1fr; }
  #delivery-payment-page .zone-card { min-height: auto; padding: 20px; }
  #delivery-payment-page .zone-card:not(.zone-green) .interval-label { margin-top: 0; }
  #delivery-payment-page .schedule-note { min-height: 0; }
  #delivery-payment-page .map-container iframe { height: 390px; }
  #delivery-payment-page .home-delivery-layout { grid-template-columns: 1fr; }
  #delivery-payment-page .carrier-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #delivery-payment-page .additional-info-grid { grid-template-columns: 1fr; }
  #delivery-payment-page .payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  #delivery-payment-page .delivery-page { width: calc(100% - 24px); padding-top: 12px; }
  #delivery-payment-page .breadcrumbs { margin-bottom: 17px; }
  #delivery-payment-page .page-intro h1 { font-size: 29px; }
  #delivery-payment-page .section-title { font-size: 18px; }
  #delivery-payment-page .content-section { margin-top: 26px; }
  #delivery-payment-page .zone-card { padding: 16px; }
  #delivery-payment-page .zone-price { grid-template-columns: minmax(0, 1fr) minmax(125px, .9fr); }
  #delivery-payment-page .free-part { padding-left: 13px; }
  #delivery-payment-page .intervals { gap: 6px; }
  #delivery-payment-page .intervals span { padding: 7px 8px; }
  #delivery-payment-page .map-container { min-height: 360px; }
  #delivery-payment-page .map-container iframe { height: 324px; }
  #delivery-payment-page .map-legend { padding: 18px; }
  #delivery-payment-page .info-line-text strong { display: block; margin-top: 5px; }
  #delivery-payment-page .payment-grid { grid-template-columns: 1fr; }
  #delivery-payment-page .carrier-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #delivery-payment-page .payment-grid article { min-height: 86px; }
  #delivery-payment-page .payment-logos { gap: 20px; flex-wrap: wrap; }
}

@media (min-width: 1200px) {
  #delivery-payment-page .delivery-page {
    width: min(1280px, calc(100vw - 80px));
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 370px) {
  #delivery-payment-page .zone-price { grid-template-columns: 1fr; gap: 12px; }
  #delivery-payment-page .free-part { padding: 12px 0 0; border-top: 1px solid #ddd; border-left: 0; }
}

/* Скрываем штатный заголовок OpenCart только на странице доставки */
.breadcrumb-h1 > h1 {
    display: none !important;
}

#delivery-payment-page .delivery-page {
    margin-top: 0;
}

@media (min-width: 1200px) {
    #delivery-payment-page .delivery-page {
        margin-top: -30px;
    }
}

body:has(#delivery-payment-page) footer {
    margin-top: 0;
}

@media (min-width: 1200px) {
    body:has(#delivery-payment-page) footer {
        margin-top: -70px;
    }
}