/* Excursion page: compact title and the «Программа экскурсии» block (restored from the v149 design). */

/* Long partner titles wrapped into 4–5 heavy lines; keep them to two or three calm lines. */
html body .kt-excursion-detail .kt-detail-topcopy h1 {
  font-size: clamp(26px, 2.25vw, 36px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.015em !important;
  font-weight: 700 !important;
  text-wrap: balance;
  margin-bottom: 12px !important;
}
@media (max-width: 600px) {
  html body .kt-excursion-detail .kt-detail-topcopy h1 {font-size: clamp(23px, 6.4vw, 29px) !important;line-height: 1.18 !important;}
}

html body .kt-excursion-detail .kte-program-section {
  padding: 30px clamp(18px, 3.4vw, 46px) !important;
}
html body .kt-excursion-detail .kte-program-section p {
  margin: 0;color: #37445a;font: 400 16px/1.65 Arial, 'Helvetica Neue', sans-serif;
}
html body .kt-excursion-detail .kte-program-section ol {list-style: none;margin: 0;padding: 0;}
html body .kt-excursion-detail .kte-program-section h4 {
  margin: 1px 0 7px;color: #202a40;font: 700 19px/1.3 Georgia, 'Times New Roman', serif;
}

/* Fully timed programme: time pills. */
html body .kt-excursion-detail .kte-timeline li {
  display: grid;grid-template-columns: 80px minmax(0, 1fr);gap: 19px;
  margin: 0 0 22px;padding: 0 0 22px;border-bottom: 1px solid #edf0f4;
}
html body .kt-excursion-detail .kte-timeline li:last-child {margin-bottom: 0;padding-bottom: 0;border-bottom: 0;}
html body .kt-excursion-detail .kte-sputnik-time {
  display: inline-flex;align-items: center;justify-content: center;align-self: start;
  min-width: 72px;padding: 9px 8px;border-radius: 10px;
  background: #fff1f6;color: #df1450;font: 800 14px/1 Arial, sans-serif;
}

/* Programme without (full) times: numbered steps on a vertical line. */
html body .kt-excursion-detail .kte-steps {position: relative;}
html body .kt-excursion-detail .kte-step {
  position: relative;display: grid;grid-template-columns: 36px minmax(0, 1fr);gap: 18px;padding: 0 0 26px;
}
html body .kt-excursion-detail .kte-step:last-child {padding-bottom: 0;}
html body .kt-excursion-detail .kte-step:not(:last-child)::before {
  content: "";position: absolute;left: 17px;top: 38px;bottom: 4px;width: 2px;border-radius: 2px;background: #f6d3df;
}
html body .kt-excursion-detail .kte-step-num {
  position: relative;z-index: 1;display: flex;align-items: center;justify-content: center;width: 36px;height: 36px;
  border: 2px solid #f8b6cb;border-radius: 50%;background: #fff1f6;color: #c4003f;font: 800 15px/1 Arial, sans-serif;
}
html body .kt-excursion-detail .kte-step h4 {display: flex;flex-wrap: wrap;align-items: baseline;gap: 4px 10px;margin-top: 6px;}
html body .kt-excursion-detail .kte-step-time {
  display: inline-block;padding: 4px 8px;border-radius: 7px;background: #fff1f6;color: #c4003f;
  font: 800 13px/1 Arial, sans-serif;transform: translateY(-2px);
}
html body .kt-excursion-detail .kte-steps.is-single .kte-step {grid-template-columns: minmax(0, 1fr);}
html body .kt-excursion-detail .kte-steps.is-single .kte-step-num,
html body .kt-excursion-detail .kte-steps.is-single .kte-step::before {display: none;}

/* Free-text programme. */
html body .kt-excursion-detail .kte-sputnik-narrative {
  padding: 21px 23px;border: 1px solid #e7edf3;border-radius: 14px;background: #f9fbfd;
}
html body .kt-excursion-detail .kte-program-more {margin-top: 12px;}
html body .kt-excursion-detail .kte-program-more summary {
  display: inline-flex;align-items: center;gap: 10px;padding: 9px 14px;cursor: pointer;list-style: none;
  border: 1px solid #f9ccda;border-radius: 10px;background: #fff6f9;color: #dd1450;font: 700 14px/1.3 Arial, sans-serif;
}
html body .kt-excursion-detail .kte-program-more summary::-webkit-details-marker {display: none;}
html body .kt-excursion-detail .kte-program-more[open] summary {margin-bottom: 14px;}

html body .kt-excursion-detail .kte-sputnik-stops {
  margin: 24px 0 0 !important;padding: 14px 17px;border-radius: 12px;background: #f8fafc;font-size: 14px !important;line-height: 1.55 !important;
}

@media (max-width: 700px) {
  html body .kt-excursion-detail .kte-program-section p {font-size: 15px;line-height: 1.6;}
  html body .kt-excursion-detail .kte-program-section h4 {font-size: 17px;}
  html body .kt-excursion-detail .kte-timeline li {display: block;margin-bottom: 20px;padding-bottom: 20px;}
  html body .kt-excursion-detail .kte-sputnik-time {margin-bottom: 10px;}
  html body .kt-excursion-detail .kte-step {grid-template-columns: 30px minmax(0, 1fr);gap: 14px;padding-bottom: 22px;}
  html body .kt-excursion-detail .kte-step-num {width: 30px;height: 30px;font-size: 13px;}
  html body .kt-excursion-detail .kte-step:not(:last-child)::before {left: 14px;top: 32px;}
  html body .kt-excursion-detail .kte-step h4 {margin-top: 3px;}
  html body .kt-excursion-detail .kte-sputnik-narrative {padding: 17px;}
}

/* 1201–1250px: the page keeps three columns, but the price box already switched to its full-width row grid
   and squeezed rating, price and button into ~60px each. Keep the desktop stack there. */
@media (min-width: 1201px) and (max-width: 1250px) {
  html body .kt-excursion-detail .kt-detail-topgrid > .kt-detail-topaside {
    display: flex !important;flex-direction: column !important;align-items: stretch !important;
    grid-column: auto !important;border-top: 0 !important;padding-top: 0 !important;
  }
  html body .kt-excursion-detail .kt-detail-topaside > * {width: 100% !important;max-width: none !important;}
}

/* «Похожие экскурсии»: titles were 23px serif on three lines and pushed prices to different heights.
   Two calm lines (full name in the link title), the same height in every card so price and button line up. */
html body .kt-excursion-detail .kte-related .kt-related-hotel-card .stay-card-body h3 {
  display: -webkit-box !important;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;
  min-height: 2.6em;max-height: 2.6em;overflow: hidden !important;margin: 0 0 10px !important;
  font: 700 18px/1.3 Georgia, 'Times New Roman', serif !important;letter-spacing: -0.01em !important;
}
html body .kt-excursion-detail .kte-related .kt-related-hotel-card .stay-card-body h3 a {color: inherit;font: inherit !important;}
html body .kt-excursion-detail .kte-related .kt-related-hotel-card .stay-card-lower {margin-top: auto;}
@media (max-width: 600px) {
  html body .kt-excursion-detail .kte-related .kt-related-hotel-card .stay-card-body h3 {font-size: 17px !important;}
}

/* Ad marking under the booking block: small and quiet, but plain readable text (not hidden). */
html body .kt-excursion-detail .kte-ad-mark {
  margin: 6px auto 0 !important;padding: 0 12px !important;text-align: center !important;
  font: 400 10.5px/1.5 Arial, Helvetica, sans-serif !important;color: #8a91a3 !important;letter-spacing: 0 !important;
}
html body .kt-excursion-detail .kte-ad-mark span {white-space: nowrap;}

/* «Что включено» / «Не включено»: an empty card is not shown, the remaining one spans the row. */
html body .kt-excursion-detail .kte-included-grid.is-single {grid-template-columns: minmax(0, 1fr) !important;}
