.delivery-body {
  background: #f5f7fa;
  color: #171519;
}

.delivery-main {
  display: block;
  padding: 0 0 68px;
  background: #f5f7fa;
}

.delivery-page {
  width: min(1240px, calc(100% - 40px));
  padding-top: 30px;
}

.delivery-intro {
  padding: 4px 0 28px;
}

.delivery-intro h1 {
  margin: 0;
  color: #171519;
  font-size: 42px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.8px;
}

.delivery-content {
  display: grid;
  gap: 20px;
}

.delivery-steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 32px;
}

.delivery-step:not(:last-child)::after {
  position: absolute;
  top: 40px;
  bottom: -28px;
  left: 19px;
  width: 2px;
  background: #cf0a2c;
  content: "";
}

.delivery-step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.5px solid #cf0a2c;
  border-radius: 50%;
  background: #fff;
  color: #cf0a2c;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
}

.delivery-step-content {
  min-width: 0;
}

.delivery-step-content > h2 {
  margin: 5px 0 18px;
  color: #222024;
  font-size: 21px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: -.45px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.delivery-option {
  display: flex;
  min-width: 0;
  min-height: 120px;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(45, 26, 32, .025);
}

.delivery-option-icon,
.delivery-alternative > i,
.delivery-manager > i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #fff0f3;
  color: #cf0a2c;
}

.delivery-option-icon {
  width: 56px;
  height: 56px;
  font-size: 27px;
}

.delivery-option h3 {
  margin: 0 0 5px;
  color: #262327;
  font-size: 20px;
  font-weight: 800;
  line-height: 25px;
}

.delivery-option strong {
  display: block;
  margin-bottom: 4px;
  color: #cf0a2c;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}

.delivery-option p {
  margin: 0;
  color: #302d31;
  font-size: 13px;
  font-weight: 650;
  line-height: 19px;
}

.delivery-timing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(45, 26, 32, .025);
}

.delivery-timing > section {
  min-width: 0;
  padding: 22px 26px 23px;
}

.delivery-timing > section + section {
  border-left: 1px solid #e1e5e9;
}

.delivery-timing h3 {
  margin: 0 0 13px;
  color: #2a272b;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.delivery-timing ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 18px;
}

.delivery-timing li {
  padding-left: 3px;
  color: #4e5359;
  font-size: 12px;
  font-weight: 550;
  line-height: 18px;
}

.delivery-timing li::marker {
  color: #cf0a2c;
  font-size: 1.1em;
}

.delivery-timing b {
  color: #302d31;
  font-weight: 750;
}

.payment-methods {
  display: grid;
  min-height: 80px;
  grid-template-columns: .95fr .95fr 1.1fr 1.18fr 1.24fr;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(45, 26, 32, .025);
  list-style: none;
}

.payment-method {
  display: flex;
  min-width: 0;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 16px;
}

.payment-method + .payment-method {
  border-left: 1px solid #e1e5e9;
}

.payment-method > i {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #fff0f3;
  color: #cf0a2c;
  font-size: 22px;
}

.payment-method span,
.payment-method b,
.payment-method small {
  display: block;
  min-width: 0;
}

.payment-method b {
  color: #2c292d;
  font-size: 12px;
  font-weight: 750;
  line-height: 17px;
}

.payment-method small {
  margin-top: 2px;
  color: #81878e;
  font-size: 9px;
  font-weight: 550;
  line-height: 14px;
}

.payment-method--brand {
  padding-right: 20px;
  padding-left: 20px;
}

.payment-method .payment-brand-logo {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.payment-brand-logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.payment-brand-logo--kaspi img {
  max-width: 126px;
  max-height: 29px;
}

.payment-brand-logo--halyk img {
  max-width: 116px;
  max-height: 40px;
}

.delivery-support {
  display: grid;
  min-height: 104px;
  grid-template-columns: 1.18fr 1fr;
  margin-left: 72px;
  overflow: hidden;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(45, 26, 32, .025);
}

.delivery-alternative,
.delivery-manager {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.delivery-alternative {
  background: #fff9fa;
}

.delivery-alternative > i,
.delivery-manager > i {
  width: 52px;
  height: 52px;
  font-size: 25px;
}

.delivery-alternative p {
  margin: 0;
  color: #62676e;
  font-size: 11px;
  font-weight: 550;
  line-height: 17px;
}

.delivery-alternative strong {
  color: #2d2a2e;
  font-weight: 750;
}

.delivery-manager {
  border-left: 1px solid #e1e5e9;
}

.delivery-manager > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.delivery-manager span {
  color: #7a8087;
  font-size: 10px;
  font-weight: 550;
  line-height: 15px;
}

.delivery-manager a {
  color: #222024;
  font-size: 16px;
  font-weight: 800;
  line-height: 21px;
  text-decoration: none;
  white-space: nowrap;
}

.delivery-manager button {
  min-height: 44px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 17px;
  border: 1px solid #cf0a2c;
  border-radius: 9px;
  background: #cf0a2c;
  color: #fff;
  font: 750 11px Manrope, sans-serif;
  cursor: pointer;
}

.delivery-manager button:hover {
  background: #ad0624;
}

.delivery-manager button:focus-visible,
.delivery-manager a:focus-visible,
.delivery-legal-note a:focus-visible {
  outline: 2px solid #cf0a2c;
  outline-offset: 3px;
}

.delivery-legal-note {
  margin: 0 4px 0 76px;
  color: #7c8289;
  font-size: 10px;
  font-weight: 500;
  line-height: 17px;
}

.delivery-legal-note a {
  color: #bd0828;
  font-weight: 750;
  text-decoration: none;
}

.delivery-legal-note a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .delivery-options,
  .delivery-timing {
    grid-template-columns: 1fr;
  }

  .delivery-timing > section + section {
    border-top: 1px solid #e1e5e9;
    border-left: 0;
  }

  .payment-methods {
    grid-template-columns: 1fr 1fr;
  }

  .payment-method:nth-child(odd) {
    border-left: 0;
  }

  .payment-method:nth-child(n + 3) {
    border-top: 1px solid #e1e5e9;
  }

  .payment-method:last-child {
    grid-column: 1 / -1;
  }

  .delivery-support {
    grid-template-columns: 1fr;
  }

  .delivery-manager {
    border-top: 1px solid #e1e5e9;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .delivery-main {
    padding-bottom: 38px;
  }

  .delivery-page {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .delivery-intro {
    padding: 0 0 18px;
  }

  .delivery-intro h1 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -1px;
  }

  .delivery-content {
    gap: 14px;
  }

  .delivery-steps {
    gap: 22px;
  }

  .delivery-step {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px;
  }

  .delivery-step:not(:last-child)::after {
    top: 32px;
    bottom: -22px;
    left: 15px;
  }

  .delivery-step-marker {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .delivery-step-content > h2 {
    margin: 3px 0 14px;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -.25px;
  }

  .delivery-option {
    min-height: 0;
    gap: 13px;
    padding: 16px;
  }

  .delivery-option-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .delivery-option h3 {
    font-size: 17px;
    line-height: 22px;
  }

  .delivery-option p,
  .delivery-option strong {
    font-size: 11px;
    line-height: 16px;
  }

  .delivery-timing > section {
    padding: 18px;
  }

  .delivery-timing li {
    font-size: 11px;
    line-height: 17px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .payment-method {
    min-height: 68px;
    justify-content: flex-start;
    padding: 10px 14px;
  }

  .payment-method + .payment-method,
  .payment-method:nth-child(n + 3) {
    border-top: 1px solid #e1e5e9;
    border-left: 0;
  }

  .payment-method:last-child {
    grid-column: auto;
  }

  .payment-method--brand {
    justify-content: center;
  }

  .delivery-support {
    margin-left: 0;
  }

  .delivery-alternative,
  .delivery-manager {
    align-items: flex-start;
    padding: 16px;
  }

  .delivery-alternative > i,
  .delivery-manager > i {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .delivery-manager {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .delivery-manager button {
    width: 100%;
    grid-column: 1 / -1;
    margin: 0;
  }

  .delivery-legal-note {
    margin: 0 2px;
  }
}
