.delivery-page.festive-page {
  padding-top: var(--site-header-height, 128px);
}

body.home-festive .delivery-page__main {
  padding-top: 0;
}

.delivery-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

body.home-festive .delivery-page__main .delivery-main {
  padding-top: 0;
}

body.home-festive .delivery-hero-banner.hero {
  width: calc(100% - 100px);
  max-width: calc(100% - 100px);
  margin-inline: auto;
  min-height: 0 !important;
  height: auto;
  padding-bottom: 0;
}

body.home-festive .delivery-hero-banner .hero-image::after {
  display: none;
}

body.home-festive .delivery-hero-banner .hero-slider {
  min-height: 0 !important;
  height: auto;
}

body.home-festive .delivery-hero-banner .hero-image {
  min-height: 0 !important;
  height: auto;
  line-height: 0;
}

/* Как на главной: картинка задаёт высоту, без cover-обрезки */
body.home-festive .delivery-hero-banner .hero-image__media,
body.home-festive .delivery-hero-banner .delivery-hero-banner__media {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: auto !important;
  max-width: none;
  object-fit: unset;
  filter: none;
}

body.home-festive .delivery-hero-banner__stub {
  display: none;
}

.delivery-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.delivery-hero--compact {
  min-height: clamp(200px, 24vw, 280px);
}

.delivery-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.delivery-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(43, 20, 12, 0.82) 0%, rgba(126, 38, 37, 0.55) 52%, rgba(43, 20, 12, 0.35) 100%);
}

.delivery-hero:not(.delivery-hero--compact) {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(122, 15, 18, 0.78), rgba(177, 18, 23, 0.48)),
    url("/images/stock/about-06.jpg") center/cover;
}

.delivery-hero__overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px);
  animation: deliverySnow 13s linear infinite;
}

.delivery-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 28px;
  max-width: 860px;
}

.delivery-hero__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.delivery-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
}

.delivery-hero--compact h1 {
  font-size: clamp(26px, 3.2vw, 38px);
}

.delivery-hero p {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  max-width: 640px;
}

.delivery-section {
  margin-top: 24px;
  border: 1px solid #efb8ba;
  border-radius: 14px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(177, 18, 23, 0.08);
}

.delivery-section--order {
  background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
}

.delivery-order-guide__intro {
  margin: 4px 0 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: #4a342c;
  max-width: 720px;
}

.delivery-order-guide__layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

.delivery-order-guide__tabs {
  display: grid;
  gap: 10px;
}

.delivery-order-tab {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 165, 116, 0.45);
  background: #fff;
  color: #4a342c;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.delivery-order-tab:hover {
  transform: translateX(4px);
  border-color: rgba(177, 18, 23, 0.35);
  box-shadow: 0 8px 18px rgba(43, 20, 12, 0.08);
}

.delivery-order-tab.active {
  border-color: #b11217;
  background: linear-gradient(135deg, #fff5f6 0%, #ffeef0 100%);
  box-shadow: 0 10px 22px rgba(177, 18, 23, 0.12);
}

.delivery-order-tab__num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #b11217, #7a0f12);
}

.delivery-order-tab__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #7e2625;
  background: rgba(243, 228, 215, 0.9);
}

.delivery-order-tab__label {
  font-size: 14px;
  font-weight: 800;
}

.delivery-order-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 22px);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 14px;
  border: 1px solid rgba(239, 184, 186, 0.9);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 236, 214, 0.45) 0%, transparent 42%),
    linear-gradient(145deg, #fffefb 0%, #fff5f6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: deliveryPanelIn 0.32s ease both;
}

.delivery-order-panel__badge {
  width: clamp(64px, 6vw, 76px);
  height: clamp(64px, 6vw, 76px);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 2.2vw, 30px);
  color: #fff;
  background: linear-gradient(135deg, #b11217, #7a0f12);
  box-shadow: 0 12px 24px rgba(126, 38, 37, 0.25);
}

.delivery-order-panel__step {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d3e34;
}

.delivery-order-panel h4 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  color: #2b140c;
}

.delivery-order-panel__text {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.62;
  color: #4a342c;
}

.delivery-order-panel__hint {
  margin: 12px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #571316;
}

.delivery-order-panel__cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #7e2625 0%, #9f3634 100%);
  box-shadow: 0 10px 22px rgba(126, 38, 37, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.delivery-order-panel__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(126, 38, 37, 0.3);
}

.delivery-order-guide__track {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.delivery-order-track__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(177, 18, 23, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.delivery-order-track__dot.active {
  transform: scale(1.25);
  background: #b11217;
}

@keyframes deliveryPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delivery-section--details {
  background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
}

.delivery-requirements__lead {
  margin: 6px 0 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: #4a342c;
  font-weight: 600;
}

.delivery-requirements {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: delivery-req;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.delivery-requirements li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  border: 1px solid rgba(212, 165, 116, 0.4);
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #4a342c;
  counter-increment: delivery-req;
}

.delivery-requirements li::before {
  content: counter(delivery-req);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #b11217, #7a0f12);
}

.delivery-notice-strip {
  margin-top: 20px;
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 22px);
  border-radius: 12px;
  border: 1px solid rgba(177, 18, 23, 0.22);
  background: linear-gradient(135deg, #fff5f6 0%, #ffeef0 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.delivery-notice-strip__primary {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 800;
  color: #571316;
}

.delivery-notice-strip__secondary {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #6b534c;
}

.delivery-info-board {
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.45);
  box-shadow: 0 12px 28px rgba(43, 20, 12, 0.08);
}

.delivery-info-board__head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(135deg, #7e2625 0%, #571316 100%);
}

.delivery-info-board__head-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  color: #fff;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 800;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.delivery-info-board__head-cell:last-child {
  border-right: 0;
}

.delivery-info-board__head-cell i {
  font-size: 16px;
  opacity: 0.95;
}

.delivery-info-board__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}

.delivery-info-board__col {
  padding: clamp(18px, 2vw, 22px);
  border-right: 1px solid rgba(212, 165, 116, 0.35);
}

.delivery-info-board__col:last-child {
  border-right: 0;
}

.delivery-info-board__col h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #2b140c;
}

.delivery-info-board__col h4 + p + h4 {
  margin-top: 14px;
}

.delivery-info-board__col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: #5d4f4b;
}

.delivery-info-board__intro {
  margin-bottom: 12px !important;
}

.delivery-info-board__col ul {
  margin: 0;
  padding-left: 18px;
  color: #5d4f4b;
  font-size: 14px;
  line-height: 1.55;
}

.delivery-info-board__col li + li {
  margin-top: 4px;
}

.delivery-info-board__note {
  margin-top: 12px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #6b534c !important;
}

.delivery-extra-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-extra-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 165, 116, 0.4);
  background: #fff;
}

.delivery-extra-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #571316;
}

.delivery-extra-card ul {
  margin: 0;
  padding-left: 18px;
  color: #5d4f4b;
  font-size: 14px;
  line-height: 1.55;
}

.delivery-extra-card li + li {
  margin-top: 6px;
}

.delivery-extra-card__alert {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  color: #b11217;
}

.delivery-page-sections {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 24px 0;
}

.delivery-section--contacts,
.delivery-section--map {
  margin-top: 24px;
}

.delivery-section--contacts {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.delivery-contacts-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

.delivery-contacts-panel__info,
.delivery-contacts-panel__form-wrap {
  height: 100%;
  min-height: 100%;
}

.delivery-contacts-panel__info {
  display: flex;
  flex-direction: column;
}

.delivery-contacts-panel__form-wrap {
  display: flex;
  flex-direction: column;
}

.delivery-contacts-panel__info,
.delivery-contacts-panel__form-wrap {
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 20, 12, 0.07);
  padding: clamp(22px, 2.4vw, 28px);
}

.delivery-contacts-panel__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  color: #2b140c;
}

.delivery-contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.delivery-contacts-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.delivery-contacts-list i {
  margin-top: 2px;
  font-size: 18px;
  color: #7e2625;
}

.delivery-contacts-list__label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d3e34;
}

.delivery-contacts-list p,
.delivery-contacts-list a {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4a342c;
}

.delivery-contacts-list a {
  font-weight: 700;
  text-decoration: none;
}

.delivery-contacts-list a:hover {
  color: #b11217;
}

.delivery-contacts-panel__pickup {
  margin: auto 0 0;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 800;
  color: #b11217;
}

.delivery-contacts-panel__form-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f7f3ee 0%, #efe6dc 100%);
}

.delivery-contacts-panel__form-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 8%, rgba(177, 18, 23, 0.07) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 18%, rgba(177, 18, 23, 0.05) 0 2px, transparent 3px);
  pointer-events: none;
}

.delivery-contacts-panel__form-wrap h3,
.delivery-contacts-panel__form-lead,
.delivery-contacts-form {
  position: relative;
  z-index: 1;
}

.delivery-contacts-panel__form-wrap h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  color: #2b140c;
}

.delivery-contacts-panel__form-lead {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6b534c;
}

.delivery-contacts-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.delivery-contacts-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-contacts-form input,
.delivery-contacts-form textarea {
  width: 100%;
  border: 1px solid rgba(212, 165, 116, 0.55);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: #4a342c;
}

.delivery-contacts-form textarea {
  resize: vertical;
  min-height: 110px;
}

.delivery-contacts-form input:focus,
.delivery-contacts-form textarea:focus {
  outline: 2px solid rgba(177, 18, 23, 0.35);
  border-color: #b11217;
}

.delivery-contacts-form__submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #b11217 0%, #8f1a1a 100%) !important;
}

.delivery-contacts-form__status[data-ok="true"] {
  color: #2d6b3a;
}

.delivery-contacts-form__status[data-ok="false"] {
  color: #b11217;
}

.delivery-map__address {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #4a342c;
}

.delivery-map__frame {
  margin-top: 14px;
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 12px;
  overflow: hidden;
  min-height: 360px;
}

.delivery-map__frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.delivery-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.delivery-grid.two {
  grid-template-columns: 1fr 1fr;
}

.delivery-grid.three {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.delivery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #efb8ba;
  border-radius: 12px;
  background: #fff5f6;
  padding: 16px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.delivery-card::before,
.receive-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -42%;
  width: 34%;
  height: 100%;
  opacity: 0;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 224, 228, 0.8), rgba(255, 255, 255, 0));
}

.delivery-card:hover::before,
.receive-item:hover::before {
  opacity: 1;
  animation: deliveryShine 0.72s ease;
}

.delivery-card:hover,
.receive-item:hover {
  transform: translateY(-4px);
  border-color: #d9464b;
  box-shadow: 0 12px 24px rgba(177, 18, 23, 0.12);
}

.delivery-card h4 {
  margin: 0 0 10px;
}

.delivery-card ul {
  margin: 0;
  padding-left: 18px;
  color: #68191d;
  line-height: 1.55;
}

.delivery-card li + li {
  margin-top: 6px;
}

.delivery-note {
  margin: 12px 0 0;
  color: #68191d;
}

.icon-card i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #b11217, #7a0f12);
}

.icon-card p {
  margin: 0;
  color: #68191d;
  line-height: 1.55;
}

.delivery-receive {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.receive-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #efb8ba;
  border-radius: 12px;
  background: #fff5f6;
  padding: 16px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.receive-item b {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #b11217;
}

.receive-item p {
  margin: 10px 0 0;
  color: #68191d;
  line-height: 1.55;
}

.receive-item.alert {
  background: linear-gradient(135deg, #b11217, #7a0f12);
  border-color: transparent;
}

.receive-item.alert p,
.receive-item.alert b {
  color: #fff;
}

.receive-item.alert b {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes deliverySnow {
  from { transform: translateY(0); }
  to { transform: translateY(34px); }
}

@keyframes deliveryShine {
  from { transform: translateX(0) skewX(-20deg); }
  to { transform: translateX(470%) skewX(-20deg); }
}

@media (max-width: 980px) {
  .delivery-order-guide__layout {
    grid-template-columns: 1fr;
  }
  .delivery-order-guide__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .delivery-requirements {
    grid-template-columns: 1fr;
  }
  .delivery-info-board__head,
  .delivery-info-board__body {
    grid-template-columns: 1fr;
  }
  .delivery-info-board__head-cell,
  .delivery-info-board__col {
    border-right: 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.35);
  }
  .delivery-info-board__head-cell {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    justify-content: flex-start;
    text-align: left;
  }
  .delivery-info-board__head-cell:last-child,
  .delivery-info-board__col:last-child {
    border-bottom: 0;
  }
  .delivery-extra-grid,
  .delivery-contacts-panel {
    grid-template-columns: 1fr;
  }
  .delivery-grid.two,
  .delivery-grid.three,
  .delivery-receive {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.home-festive .delivery-page__main .delivery-main {
    padding-inline: 16px;
  }
  .delivery-section {
    padding: 20px;
  }
  .delivery-order-guide__tabs {
    grid-template-columns: 1fr;
  }
  .delivery-order-panel {
    grid-template-columns: 1fr;
  }
  .delivery-order-panel__badge {
    width: 56px;
    height: 56px;
    font-size: 22px;
    border-radius: 14px;
  }
  .delivery-contacts-form__row {
    grid-template-columns: 1fr;
  }
}
