/* ===== TripTea — «Доставка і оплата» page ==================================
   Combines the former separate Delivery / Payment info pages into one
   designed page (route information/delivery). Not wrapped in .container —
   #information-delivery sits at body level like the footer, so sections
   here are full-bleed by default without needing a breakout hack.
*/

#information-delivery {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "case", "cpsp";
}

#information-delivery *, #information-delivery *::before, #information-delivery *::after {
  box-sizing: border-box;
}

#information-delivery .tt-delivery__section-title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 120%;
  color: #4A3426;
}

/* ===== Hero (breadcrumb + H1 + subtitle) ================================= */

.tt-delivery-hero {
  background: #FFFFFF;
  padding: 40px 0 48px;
}

.tt-delivery-hero__inner {
  width: min(1704px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-delivery-hero__breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tt-delivery-hero__breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tt-delivery-hero__breadcrumb a {
  color: #8B5E3C;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  text-decoration: none;
}
.tt-delivery-hero__breadcrumb a:hover { text-decoration: underline; }
.tt-delivery-hero__breadcrumb-dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #E7D7C8;
}
.tt-delivery-hero__breadcrumb-current {
  color: #6B6B6B;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
}

.tt-delivery-hero__title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 120%;
  color: #4A3426;
}

.tt-delivery-hero__subtitle {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #6B6B6B;
  max-width: 720px;
}

/* ===== Shipping section =================================================== */

.tt-delivery-shipping {
  background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
  padding: 80px 0;
}

.tt-delivery-shipping__inner {
  width: min(1704px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tt-delivery-shipping__grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* ===== Method card (shipping) ============================================= */

.tt-method-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #E7D7C8;
  border-radius: 24px;
}

.tt-method-card__icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 16px;
}
.tt-method-card__icon svg { width: 100%; height: 100%; }

.tt-method-card--green  .tt-method-card__icon { background: #F1F5F1; color: #798B75; }
.tt-method-card--blue   .tt-method-card__icon { background: #F0F4F7; color: #6C8299; }

/* Nova Poshta's icon is a supplied brand asset with its own background
   baked in — the wrapper shouldn't add padding/bg on top of it. */
.tt-method-card__icon--asset {
  padding: 0;
  background: none;
}
.tt-method-card__icon--asset img { width: 100%; height: 100%; display: block; }

.tt-method-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-method-card__heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tt-method-card__title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 120%;
  color: #4A3426;
}

.tt-method-card__badge {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 140%;
}
.tt-method-card--red   .tt-method-card__badge { color: #B56357; }
.tt-method-card--green .tt-method-card__badge { color: #798B75; }
.tt-method-card--blue  .tt-method-card__badge { color: #6C8299; }

.tt-method-card__desc {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #6B6B6B;
}

.tt-method-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #EAEAEA;
}

.tt-method-card__meta-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #6B6B6B;
}
.tt-method-card__meta-value {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 140%;
  color: #4A3426;
}

/* ===== Note banner (free shipping / secure payments) ====================== */

.tt-delivery-note {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  background: #FAF7F2;
  border: 1px solid #E7D7C8;
  border-radius: 16px;
}

.tt-delivery-note__icon {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #8B5E3C;
  border-radius: 16px;
  color: #FAF7F2;
}
.tt-delivery-note__icon svg { width: 100%; height: 100%; }

.tt-delivery-note--secure .tt-delivery-note__icon {
  background: #E7D7C8;
  color: #8B5E3C;
}

/* Free-shipping / secure-payments icons are supplied assets that already
   include their own 68×68 rounded background — don't double it up. */
.tt-delivery-note__icon--asset {
  padding: 0;
  background: none;
}

.tt-delivery-note__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tt-delivery-note__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #4A3426;
}

.tt-delivery-note__desc {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #6B6B6B;
}
.tt-delivery-note__desc strong {
  font-weight: 700;
  font-size: 16px;
  color: #4A3426;
}

/* ===== Payment section ===================================================== */

.tt-delivery-payment {
  position: relative;
  background: linear-gradient(0deg, #FAF7F2 0%, #FFFFFF 100%);
  padding: 80px 0;
  overflow: hidden;
}

/* Reuse the same decorative dragon watermark as tt_articles for visual
   consistency between "content" sections across the site. */
.tt-delivery-payment::before {
  content: "";
  position: absolute;
  top: -113px;
  right: calc(50% - 850px);
  width: 958px;
  height: 1022px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 1024px) {
  .tt-delivery-payment::before {
    background-image: url('../image/articles/dragon-watermark.png');
  }
}

.tt-delivery-payment__inner {
  position: relative;
  z-index: 1;
  width: min(1704px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tt-delivery-payment__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tt-payment-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #E7D7C8;
  border-radius: 16px;
}

.tt-payment-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #F5EFE7;
  border-radius: 8px;
  color: #8B5E3C;
}
.tt-payment-card__icon svg { width: 100%; height: 100%; }

/* All 4 payment icons are supplied assets with their own 48×48 rounded
   background baked in — don't double it up. */
.tt-payment-card__icon--asset {
  padding: 0;
  background: none;
}

.tt-payment-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-payment-card__title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #4A3426;
}

.tt-payment-card__desc {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #6B6B6B;
}

/* ===== CTA banner =========================================================== */

.tt-delivery-cta {
  background: #FFFFFF;
  padding: 0 0 80px;
}

.tt-delivery-cta__inner {
  width: min(1704px, 100% - 32px);
  margin: 0 auto;
}

/* Desktop (1201+): the -32px form used by every __inner above only reaches
   a 108px gutter right at 1920px and collapses to ~16px below that.
   Flatten to exactly 108px across the whole desktop range. Tablet/mobile
   (this page's own ≤1024/≤768 rules further down) untouched. */
@media (min-width: 1201px) {
  .tt-delivery-hero__inner,
  .tt-delivery-shipping__inner,
  .tt-delivery-payment__inner,
  .tt-delivery-cta__inner {
    width: min(1704px, calc(100% - 216px));
  }
}

/* One source photo (near-square, no gradient baked in) reused at every
   breakpoint — the gradient is applied in CSS as a second background layer
   so it stays crisp and can point a different direction per breakpoint,
   instead of relying on a separate pre-cropped/pre-gradiented image per
   viewport. */
.tt-delivery-cta__banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  min-height: 239px;
  padding: 40px 56px;
  border-radius: 16px;
  background-color: #8B5E3C;
  background-image: linear-gradient(135deg, rgba(139, 94, 60, 0.92) 0%, rgba(90, 56, 33, 0.55) 45%, rgba(90, 56, 33, 0) 80%), url('../image/delivery/cta-photo.webp');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}

.tt-delivery-cta__title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 120%;
  color: #FFFFFF;
}

.tt-delivery-cta__desc {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #FFFFFF;
  max-width: 492px;
}

.tt-delivery-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 36px;
  background: #FFFFFF;
  color: #8B5E3C;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 140%;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tt-delivery-cta__button:hover {
  background: #FAF7F2;
  color: #8B5E3C;
  text-decoration: none;
}

/* ===== Tablet (≤1024px) — shipping/payment grids stack ===================== */
@media (max-width: 1024px) {
  .tt-delivery-shipping__grid {
    flex-direction: column;
  }
  .tt-delivery-payment__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile (≤768px) ====================================================== */
@media (max-width: 768px) {
  .tt-delivery-hero {
    padding: 16px 0;
  }
  .tt-delivery-hero__inner {
    width: 100%;
    padding: 0 16px;
  }
  .tt-delivery-hero__title {
    font-size: 28px;
  }

  .tt-delivery-shipping,
  .tt-delivery-payment {
    padding: 48px 0;
  }
  .tt-delivery-shipping__inner,
  .tt-delivery-payment__inner {
    width: 100%;
    padding: 0 24px;
    gap: 32px;
  }
  #information-delivery .tt-delivery__section-title {
    font-weight: 700;
    font-size: 28px;
  }

  /* Note banners (free shipping / secure payments) stay a row — icon left,
     text right — same as desktop, just narrower. */

  .tt-delivery-cta {
    padding: 0 0 48px;
  }
  .tt-delivery-cta__inner {
    width: 100%;
    padding: 0 16px;
  }
  .tt-delivery-cta__banner {
    justify-content: flex-end;
    align-items: flex-start;
    aspect-ratio: 358 / 363;
    min-height: 0;
    padding: 24px;
    background-image: linear-gradient(45deg, rgba(139, 94, 60, 0.92) 0%, rgba(90, 56, 33, 0.55) 45%, rgba(90, 56, 33, 0) 80%), url('../image/delivery/cta-photo.webp');
    background-position: center;
  }
  .tt-delivery-cta__desc {
    font-size: 14px;
  }
}
