/* Новый дизайн — блоки главной: города, заявка с баннером, «10 причин», «как забронировать», отзывы.
   Правила перенесены из набора дизайнера целиком, без правок (решение 20.11.2026):
   resort-kmv-docs/workstreams/design-system/kit/design-system.css (версия 1.0, 14.11.2026).
   Порядок правил внутри файла — как в наборе. Стили первого экрана — в common/critical.css.
   Чистка неиспользуемого — перед выпуском, списком для Андрея. */


/* ================= блоки главной ================= */
.ds-sec { display: grid; gap: var(--ds-space-6); }
.ds-sec__t { margin: 0; font-size: var(--ds-fs-h2); line-height: var(--ds-lh-h2); font-weight: var(--ds-fw-title); color: var(--ds-text-strong); text-wrap: balance; }
.ds-sec__t--c { text-align: center; }
.ds-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ds-sec__more { display: flex; justify-content: center; }
.ds-sec__more .ds-btn[aria-expanded="true"] .ds-ico { transform: rotate(180deg); }

/* плитки городов */
.ds-cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ds-root .ds-city { position: relative; isolation: isolate; display: grid; align-content: end; gap: 2px; min-height: 220px; padding: 20px; border-radius: var(--ds-radius-l); overflow: hidden; color: #fff; text-decoration: none; background: var(--ds-bg-dark); }
.ds-city::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--city-img) center / cover; transition: transform .5s var(--ds-ease-out); }
.ds-city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 45, 0) 30%, rgba(10, 30, 45, .78) 100%); }
.ds-root .ds-city:hover { color: #fff; }
.ds-city:hover::before { transform: scale(1.05); }
.ds-city:hover::after { background: linear-gradient(180deg, rgba(10, 30, 45, 0) 25%, rgba(10, 30, 45, .85) 100%); }
.ds-root .ds-city:focus-visible { box-shadow: var(--ds-focus); }
.ds-city__t { font-size: 24px; line-height: 28px; font-weight: 800; }
.ds-city__sub { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .88); }
.ds-city__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ds-city__qty { white-space: nowrap; padding: 3px 10px; border-radius: var(--ds-radius-s); background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; line-height: 18px; font-weight: var(--ds-fw-label); }
.ds-city__price { font-size: 17px; line-height: 22px; font-weight: var(--ds-fw-title); white-space: nowrap; }
.ds-phone .ds-cities { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; gap: 10px; }
.ds-phone .ds-cities > li { flex: 0 0 200px; scroll-snap-align: start; }
.ds-phone .ds-city { min-height: 150px; padding: 14px; }
.ds-phone .ds-city__t { font-size: 19px; line-height: 24px; }
.ds-phone .ds-cities > li { flex-basis: 230px; }
.ds-phone .ds-city__price { font-size: 15px; }
.ds-phone .ds-city__qty { font-size: 12px; padding: 2px 8px; }

/* заявка + баннер */
.ds-leadrow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: stretch; }
.ds-banner { position: relative; display: block; overflow: hidden; border-radius: var(--ds-radius-l); box-shadow: var(--ds-shadow-card); color: var(--ds-text-strong); text-decoration: none; background: #fff; }
.ds-banner img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ds-ease-out); }
.ds-banner:hover img { transform: scale(1.04); }
.ds-root .ds-banner:focus-visible { box-shadow: var(--ds-focus); }
.ds-banner .ds-promo { position: absolute; }
.ds-banner__txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 40px 20px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .94) 45%); }
.ds-banner__txt small { font-size: 14px; line-height: 20px; color: var(--ds-text-2); }
.ds-banner__txt b { color: var(--ds-text-strong); font-size: 22px; line-height: 28px; font-weight: 800; text-transform: uppercase; }
.ds-banner__txt b b { color: var(--ds-c-green-600); }
.ds-phone .ds-leadrow { grid-template-columns: 1fr; }
.ds-phone .ds-banner { aspect-ratio: 3 / 2; }

/* 10 причин */
.ds-adv, .ds-howto { padding: 36px 32px; background: var(--ds-bg-surface); border-radius: var(--ds-radius-l); box-shadow: var(--ds-shadow-card); }
.ds-adv__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.ds-adv__list li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 20px; font-weight: var(--ds-fw-label); color: var(--ds-text-strong); }
.ds-adv__list .ds-ico-tile { width: 52px; height: 52px; border-radius: 50%; }
.ds-phone .ds-adv, .ds-phone .ds-howto { padding: 24px 16px; }
.ds-phone .ds-adv__list { grid-template-columns: 1fr; gap: 12px; }
.ds-phone .ds-adv__list .ds-ico-tile { width: 44px; height: 44px; }
.ds-phone .ds-adv__list .ds-ico { width: 22px; height: 22px; }

/* как мы работаем */
.ds-howto__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ds-howto__list li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.ds-howto__list li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: calc(50% + 48px); right: calc(-50% + 48px); border-top: 2px dashed var(--ds-c-blue-200); }
.ds-howto__ic { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ds-icon-tile); }
.ds-howto__ic .ds-ico { width: 36px; height: 36px; color: var(--ds-c-blue-500); --ds-ico-hole: var(--ds-icon-tile); }
.ds-howto__n { position: absolute; top: 0; left: calc(50% + 20px); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ds-c-blue-600); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px #fff; }
.ds-howto__txt { font-size: 15px; line-height: 20px; font-weight: var(--ds-fw-label); color: var(--ds-text-strong); max-width: 180px; }
.ds-phone .ds-howto__list { grid-template-columns: 1fr; gap: 14px; }
.ds-phone .ds-howto__list li { grid-template-columns: 56px 1fr; justify-items: start; align-items: center; text-align: left; gap: 14px; }
.ds-phone .ds-howto__list li:not(:last-child)::after { top: 60px; bottom: -12px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--ds-c-blue-200); }
.ds-phone .ds-howto__ic { width: 56px; height: 56px; }
.ds-phone .ds-howto__ic .ds-ico { width: 28px; height: 28px; }
.ds-phone .ds-howto__n { left: 38px; top: -4px; width: 22px; height: 22px; font-size: 12px; }

/* отзывы */
.ds-reviews__list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -12px -12px; padding: 12px; scroll-padding: 12px; }
.ds-reviews__list > * { scroll-snap-align: start; }
.ds-sec__nav { display: flex; align-items: center; gap: 8px; }
.ds-sec__nav .ds-link { margin-right: 12px; }
.ds-sec__arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--ds-bg-surface); box-shadow: inset 0 0 0 1px var(--ds-line); color: var(--ds-c-blue-700); cursor: pointer; }
.ds-sec__arrow:hover:not(:disabled) { background: var(--ds-c-blue-50); }
.ds-sec__arrow:disabled { color: var(--ds-text-3); opacity: .5; cursor: default; }
.ds-sec__arrow .ds-ico { width: 20px; height: 20px; color: currentColor; }
.ds-phone .ds-sec__arrow { display: none; }
.ds-review > * { min-width: 0; }
.ds-review { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 20px; background: var(--ds-bg-surface); border-radius: var(--ds-radius-l); box-shadow: var(--ds-shadow-card); }
.ds-review__t { margin: 0; font-size: 17px; line-height: 24px; font-weight: var(--ds-fw-title); }
.ds-root .ds-review__t a { color: var(--ds-text-strong); text-decoration: none; }
.ds-root .ds-review__t a:hover { color: var(--ds-link); }
.ds-review__city { display: flex; align-items: center; gap: 4px; margin-top: -6px; font-size: 14px; color: var(--ds-text-2); }
.ds-review__city .ds-ico { width: 16px; height: 16px; }
.ds-review__rates { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 0; padding: 10px 12px; list-style: none; border-radius: var(--ds-radius-m); background: var(--ds-c-blue-50); }
.ds-review__rates li { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ds-text-2); }
.ds-review__rates .ds-rating__stars .ds-ico { width: 13px; height: 13px; }
.ds-review__text { align-self: start; max-height: 110px; margin: 0; font-size: 15px; line-height: 22px; color: var(--ds-text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ds-review__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--ds-line-soft); font-size: 14px; line-height: 20px; }
.ds-review__who { display: flex; align-items: center; gap: 6px; color: var(--ds-text-2); }
.ds-review__who .ds-ico { width: 18px; height: 18px; }
.ds-phone .ds-review__rates { grid-template-columns: 1fr; }
.ds-phone .ds-reviews__list { grid-auto-columns: 290px; margin: -8px -16px; padding: 8px 16px 16px; scroll-padding: 16px; gap: 12px; }

/* ================= телефон: до 767 px ================= */
/* Те же правила, что у превью .ds-phone в документах. */
@media (max-width: 767px) {
  .ds-cities {display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; gap: 10px;}
  .ds-cities > li {flex: 0 0 200px; scroll-snap-align: start;}
  .ds-city {min-height: 150px; padding: 14px;}
  .ds-city__t {font-size: 19px; line-height: 24px;}
  .ds-cities > li {flex-basis: 230px;}
  .ds-city__price {font-size: 15px;}
  .ds-city__qty {font-size: 12px; padding: 2px 8px;}
  .ds-leadrow {grid-template-columns: 1fr;}
  .ds-banner {aspect-ratio: 3 / 2;}
  .ds-adv, .ds-howto {padding: 24px 16px;}
  .ds-adv__list {grid-template-columns: 1fr; gap: 12px;}
  .ds-adv__list .ds-ico-tile {width: 44px; height: 44px;}
  .ds-howto__list {grid-template-columns: 1fr; gap: 14px;}
  .ds-howto__list li {grid-template-columns: 56px 1fr; justify-items: start; align-items: center; text-align: left; gap: 14px;}
  .ds-howto__list li:not(:last-child)::after {top: 60px; bottom: -12px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--ds-c-blue-200);}
  .ds-howto__ic {width: 56px; height: 56px;}
  .ds-howto__ic .ds-ico {width: 28px; height: 28px;}
  .ds-howto__n {left: 38px; top: -4px; width: 22px; height: 22px; font-size: 12px;}
  .ds-sec__arrow {display: none;}
  .ds-review__rates {grid-template-columns: 1fr;}
  .ds-reviews__list {grid-auto-columns: 290px; margin: -8px -16px; padding: 8px 16px 16px; scroll-padding: 16px; gap: 12px;}
}
