/* Delivery page (theme: prostore) */

.delivery-page {
  --d-bg: #0b1020;
  --d-surface: #ffffff;
  --d-text: #1a1e2b;
  --d-muted: rgba(26, 30, 43, 0.7);
  --d-border: rgba(26, 30, 43, 0.10);
  --d-primary: #2a6bff;
  --d-primary-2: #7c3aed;
  --d-shadow: 0 18px 50px rgba(17, 25, 40, 0.14);
  --d-radius: 16px;
  --d-soft: #f6f8fb;
  --d-soft-2: #eef2ff;
}

/* Scroll progress */
.delivery-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 999;
  background: rgba(26, 30, 43, 0.06);
  pointer-events: none;
}
.delivery-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(42, 107, 255, 0.95), rgba(124, 58, 237, 0.90));
  box-shadow: 0 0 0 1px rgba(42, 107, 255, 0.18);
  transform-origin: 0 50%;
}

/* Reveal animation */
.delivery-page [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.delivery-page [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .delivery-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Headings */
.delivery-section {
  margin: 34px 0;
}
.delivery-section__head {
  margin-bottom: 18px;
}
.delivery-section__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.delivery-section__subtitle {
  margin: 10px 0 0;
  color: var(--d-muted);
  max-width: 72ch;
}
.delivery-section__h3 {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* HERO */
.delivery-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 480px at 8% -10%, rgba(124, 58, 237, 0.22), transparent 58%),
              radial-gradient(900px 360px at 85% 0%, rgba(42, 107, 255, 0.26), transparent 58%),
              linear-gradient(180deg, #0b1020 0%, #121a34 100%);
  border-radius: calc(var(--d-radius) + 8px);
  padding: 28px 22px;
  box-shadow: var(--d-shadow);
  color: #fff;
}
.delivery-hero__bg {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08), transparent 48%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.06), transparent 44%);
  opacity: .75;
  animation: deliveryGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes deliveryGlow {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6px,-4px,0) scale(1.015); }
}
.delivery-hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.delivery-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.delivery-hero__badge-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .95;
}
.delivery-hero__lead {
  margin: 14px 0 10px;
  color: rgba(255, 255, 255, 0.86);
}
.delivery-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.delivery-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  white-space: nowrap;
}
.delivery-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Buttons (scope only inside delivery page) */
.delivery-page .ui-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.delivery-page .ui-btn:hover {
  transform: translate3d(0, -2px, 0);
  filter: saturate(1.02);
}
.delivery-page .ui-btn:active {
  transform: translate3d(0, 0, 0);
}
.delivery-hero__right {
  display: grid;
  align-items: end;
}
.delivery-hero__card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--d-radius);
  padding: 18px 18px 16px;
  backdrop-filter: blur(10px);
}
.delivery-hero__card-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.delivery-hero__card-text {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
}
.delivery-hero__card-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92em;
}

/* Cards (options) */
.delivery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.delivery-card {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 18px 18px 16px;
  box-shadow: 0 14px 30px rgba(17, 25, 40, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.delivery-card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 18px 40px rgba(17, 25, 40, 0.10);
  border-color: rgba(42, 107, 255, 0.22);
}
.delivery-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42, 107, 255, 0.12), rgba(124, 58, 237, 0.10));
  border: 1px solid rgba(42, 107, 255, 0.16);
}
.delivery-card__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--d-primary);
}
.delivery-card__title {
  margin: 12px 0 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.delivery-card__text {
  margin: 10px 0 0;
  color: var(--d-muted);
}
.delivery-card__list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--d-muted);
}
.delivery-card__list:last-child {
  margin-bottom: 0;
}
.delivery-card__list li {
  margin: 6px 0;
}
.delivery-card__link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--d-primary);
  margin-top: auto;
  padding-top: 10px;
}
.delivery-card__link:hover {
  text-decoration: underline;
}

/* Accordion */
.delivery-accordion {
  display: grid;
  gap: 10px;
}
.delivery-acc {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(17, 25, 40, 0.05);
}
.delivery-acc__summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: background-color 180ms ease;
}
.delivery-acc__summary:hover {
  background: rgba(26, 30, 43, 0.03);
}
.delivery-acc__summary::-webkit-details-marker { display: none; }
.delivery-acc__title {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.delivery-acc__chev {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(26, 30, 43, 0.55);
  border-bottom: 2px solid rgba(26, 30, 43, 0.55);
  transform: rotate(45deg);
  transition: transform 220ms ease;
  flex: 0 0 auto;
}
.delivery-acc[open] .delivery-acc__chev {
  transform: rotate(-135deg);
}
.delivery-acc__body {
  padding: 0 16px 16px;
  color: var(--d-muted);
}
.delivery-acc__body p {
  margin: 10px 0 0;
}

/* Notes */
.delivery-note {
  position: relative;
  margin-top: 12px;
  padding: 12px 14px 12px 44px;
  border-radius: 14px;
  border: 1px solid rgba(26, 30, 43, 0.10);
  background: var(--d-soft);
  color: rgba(26, 30, 43, 0.86);
  box-shadow: 0 10px 22px rgba(17, 25, 40, 0.04);
}
.delivery-note::before {
  content: "i";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(42, 107, 255, 0.95);
  background: rgba(42, 107, 255, 0.10);
  border: 1px solid rgba(42, 107, 255, 0.18);
}
.delivery-note strong {
  color: rgba(26, 30, 43, 0.92);
}
.delivery-note--soft {
  background: #f7f7fb;
}
.delivery-note--soft::before {
  content: "!";
  color: rgba(26, 30, 43, 0.75);
  background: rgba(26, 30, 43, 0.06);
  border-color: rgba(26, 30, 43, 0.10);
}
.delivery-note--link::before {
  content: "↗";
  font-size: 11px;
}
.delivery-note--link a {
  color: var(--d-primary);
  font-weight: 700;
  text-decoration: none;
}
.delivery-note--link a:hover { text-decoration: underline; }

/* Pricing grid */
.delivery-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}
.delivery-panel {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 16px 16px;
  box-shadow: 0 12px 30px rgba(17, 25, 40, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.delivery-panel:not(.delivery-panel--map) {
  justify-content: center;
}
.delivery-panel__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.delivery-panel__list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--d-muted);
}
.delivery-panel__text {
  margin: 12px 0 0;
  color: var(--d-muted);
}

/* Map */
.delivery-panel--map {
  padding: 10px;
}
.delivery-map__frame {
  position: relative;
  min-height: 300px;
  height: 100%;
  border-radius: calc(var(--d-radius) - 2px);
  overflow: hidden;
  background: radial-gradient(560px 220px at 20% 20%, rgba(42, 107, 255, 0.08), transparent 58%),
              rgba(26, 30, 43, 0.035);
  border: 1px solid var(--d-border);
}
.delivery-map__skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.0) 100%);
  transform: translateX(-60%);
  animation: deliverySkeleton 1.3s ease-in-out infinite;
  opacity: .55;
}
@keyframes deliverySkeleton {
  from { transform: translateX(-60%); }
  to { transform: translateX(60%); }
}
.delivery-map__hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(26, 30, 43, 0.08);
  color: rgba(26, 30, 43, 0.75);
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.delivery-map__frame.is-map-loaded .delivery-map__skeleton,
.delivery-map__frame.is-map-loaded .delivery-map__hint {
  display: none;
}

/* Tariffs table */
.delivery-tariffs {
  margin-top: 18px;
}
.delivery-table {
  overflow: auto;
  border-radius: var(--d-radius);
  border: 1px solid var(--d-border);
  background: var(--d-surface);
  box-shadow: 0 10px 26px rgba(17, 25, 40, 0.05);
}
.ui-table-delivery {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin: 0 !important;
  line-height: 1.4 !important;
}
.ui-table-delivery thead th {
  text-align: left;
  font-weight: 800;
  padding: 15px 20px !important;
  background: rgba(26, 30, 43, 0.035);
  border-bottom: 1px solid var(--d-border);
  min-width: 120px !important;
}
.ui-table-delivery tbody td {
  padding: 15px 20px !important;
  border-bottom: 1px solid var(--d-border);
  color: rgba(26, 30, 43, 0.82);
}
.ui-table-delivery tbody tr:hover td {
  background: rgba(42, 107, 255, 0.04);
}
.ui-table-delivery thead th:nth-child(3),
.ui-table-delivery tbody td:nth-child(3) {
  width: 18px;
  padding: 0;
  background: rgba(26, 30, 43, 0.02);
  border-left: 1px solid var(--d-border);
  border-right: 1px solid var(--d-border);
}
.ui-table-delivery thead th:nth-child(3) {
  border-bottom: 1px solid var(--d-border);
}

.delivery-outside {
  margin-top: 18px;
}
.delivery-outside__list {
  margin: 0;
  padding-left: 18px;
  padding-bottom: 10px;
  color: var(--d-muted);
}
.delivery-outside__list li {
  margin: 8px 0;
}

/* CTA */
.delivery-cta {
  margin-top: 36px;
}
.delivery-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  border-radius: calc(var(--d-radius) + 6px);
  border: 1px solid rgba(26, 30, 43, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.96));
  box-shadow: 0 18px 50px rgba(17, 25, 40, 0.10);
}
.delivery-cta__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.delivery-cta__subtitle {
  margin: 8px 0 0;
  color: var(--d-muted);
}
.delivery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .delivery-hero__content {
    grid-template-columns: 1fr;
  }
  .delivery-hero__right {
    align-items: start;
  }
  .delivery-grid {
    grid-template-columns: 1fr;
  }
  .delivery-panel:not(.delivery-panel--map) {
    justify-content: flex-start;
  }
}
@media (max-width: 767.98px) {
  .delivery-hero {
    padding: 22px 16px;
  }
  .delivery-cards {
    grid-template-columns: 1fr;
  }
  .delivery-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .delivery-cta__actions {
    width: 100%;
  }
}
