/* ==========================================================================
   HOME PAGE ONLY
   В системе уже есть:
   - btn-dark
   - link-arrow--light
   - topbar-link
   - site-logo
   - hero-cover--media
   - card-service--dark
   - card-service--accent
   - cta-banner / cta-banner--promo
   - guarantees-grid

   Ниже остаётся только page-specific orchestration layer и asset-specific стили.
   ========================================================================== */

.page-home .site-wrap {
  overflow: clip;
}

.page-home main {
  display: block;
}

.home-section {
  padding: var(--section-space-y) 0;
}

.home-section--club,
.home-section--contacts {
  padding-top: 0;
}

.home-header {
  position: relative;
  z-index: var(--z-sticky);
}

.home-header__phone {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Homepage-specific hero details
   -------------------------------------------------------------------------- */

.home-hero-section .hero-cover {
  overflow: visible;
  display: flex;
  align-items: center;
}

.home-hero-section .hero-cover__content {
  align-self: flex-end;
  max-width: 100%;
  margin-top: auto;
}

.home-hero__title {
  line-height: 1.05;
  letter-spacing: 0.015em;
}

.home-hero__lead {
  position: relative;
  padding-left: 72px;
}

.home-hero__lead::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 48px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
}

.home-hero__actions {
  position: relative;
  z-index: 1;
}

.home-hero__rail {
  position: absolute;
  top: 0;
  right: -78px;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 0px;
}

.home-hero__rail-nav {
  display: grid;
  gap: 10px;
}

.home-hero__rail .btn-icon--slider i::before,
.home-hero__rail .btn-icon--slider:hover i::before,
.home-hero__rail .btn-icon--slider:focus-visible i::before {
  position: static;
  right: auto;
  vertical-align: 0;
}

.home-hero__rail-social {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

.home-hero__rail-socials {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.home-hero__rail-social-link {
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0s ease, filter 0s ease;
  transform: none;
  filter: grayscale(0) brightness(1) invert(0) !important;
}

.home-hero__rail-social-link:hover,
.home-hero__rail-social-link:focus-visible {
  opacity: 1;
  transform: none;
  filter: grayscale(1) brightness(10) invert(1) !important;
}

.home-hero__rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-2);
  line-height: 1;
  letter-spacing: 0.05em;
}

.home-hero__mobile-progress {
  display: none;
}

.home-hero-slider {
  isolation: isolate;
}

.home-hero-slider__slides {
  position: relative;
  min-height: inherit;
  width: 100%;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.home-hero-section .home-hero-slider.is-ready {
  background: transparent;
}

.home-hero-section .home-hero-slider.is-ready::after {
  opacity: 0;
}

.home-hero-slider .hero-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}

.home-hero-slider .hero-item.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.home-hero-slider .hero-item .hero-cover-wrap,
.home-hero-slider .hero-item .hero-cover__panel {
  min-height: inherit;
}

.home-hero-slider .hero-item .hero-cover__panel {
  align-items: flex-end;
}

.home-hero-slider .hero-item:not(.is-active) .hero-cover__content a,
.home-hero-slider .hero-item:not(.is-active) .hero-cover__content button {
  pointer-events: none;
}

.home-moments__title {
  line-height: 0.94;
}

.home-moments__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-moment-thumb {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-round);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2.5px var(--color-brand), var(--shadow-sm);
  background-size: cover;
  background-position: center;
}

.home-moment-thumb--1 {
  background: linear-gradient(135deg, #58606f 0%, #202534 100%);
}

.home-moment-thumb--2 {
  background: linear-gradient(135deg, #7a7f89 0%, #293041 100%);
}

.home-moment-thumb--3 {
  background: linear-gradient(135deg, #7f6a58 0%, #34251d 100%);
}

.home-moment-thumb--4 {
  background: linear-gradient(135deg, #8c816a 0%, #514638 100%);
}

.home-moment-thumb--5 {
  background: linear-gradient(135deg, #5e7d72 0%, #26372f 100%);
}

.home-moment-thumb--6 {
  background: linear-gradient(135deg, #5a6577 0%, #1d2431 100%);
}

.home-search-row {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  margin-bottom: 40px;
}

.home-services__search-shell {
  position: relative;
}

.home-services__search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 15;
  overflow: hidden;
  border: 1px solid rgba(22, 20, 25, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(17, 15, 22, 0.16);
}

.home-services__search-results {
  display: grid;
}

.home-services__search-result {
  display: grid;
  gap: 2px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(22, 20, 25, 0.06);
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.home-services__search-result:last-child {
  border-bottom: 0;
}

.home-services__search-result:hover,
.home-services__search-result:focus-visible {
  background: rgba(244, 122, 32, 0.06);
}

.home-services__search-result-title {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.28;
}

.home-services__search-result-meta {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.25;
}

.home-services__search-empty {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.home-services__search-empty-title {
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.home-services__search-empty-meta {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* ==========================================================================
   HOME STORIES PATCH
   Локальное расширение блока home-moments без переписывания всего home.css
   ========================================================================== */

body.is-home-stories-open {
  overflow: hidden;
}

.home-stories .home-moments__strip {
  align-items: center;
}

.home-stories__item.home-moment-thumb {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  appearance: none;
  cursor: pointer;
  background-color: var(--color-bg-dark);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.home-stories__item.home-moment-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
          linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(11,13,22,0.02) 40%, rgba(11,13,22,0.42) 100%);
}

.home-stories__item:focus-visible {
  outline: none;
  box-shadow:
          0 0 0 2px var(--color-brand),
          0 0 0 6px rgba(244, 122, 32, 0.16),
          var(--shadow-sm);
}

.home-stories__item.is-viewed {
  box-shadow: 0 0 0 2px var(--color-border-strong), var(--shadow-sm);
}

.home-stories__item.is-active {
  box-shadow: 0 0 0 2px var(--color-brand-hover), var(--shadow-md);
}

.home-stories__preview {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.home-stories__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-bg-dark-elevated);
  transform: scale(1.01);
  opacity: 0.98;
  transition: transform 0.18s ease, opacity 0.14s ease, filter 0.14s ease;
}

.home-stories__hint {
  display: none !important;
  position: absolute;
  left: 50%;
  bottom: 50%;
  z-index: 2;
  /*display: inline-flex;*/
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(11, 13, 22, 0.42);
  backdrop-filter: blur(8px);
  color: var(--color-text-inverse);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate(-50%, 50%);
}

@media (hover: hover) and (pointer: fine) {
  .home-stories__item.home-moment-thumb:hover,
  .home-stories__item.home-moment-thumb:focus-visible {
    transform: translateY(-3px);
  }

  .home-stories__item.home-moment-thumb:hover .home-stories__poster,
  .home-stories__item.home-moment-thumb:focus-visible .home-stories__poster {
    transform: scale(1.045);
    filter: saturate(1.05);
  }
}

/* --------------------------------------------------------------------------
   Modal / viewer
   -------------------------------------------------------------------------- */

.home-stories__modal[hidden] {
  display: none;
}

.home-stories__modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(11, 13, 22, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.home-stories__modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-stories__dialog {
  width: min(100%, 760px);
  max-height: 100%;
}

.home-stories__viewer {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-text-inverse);
}

.home-stories__topbar {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 4;
  width: min(calc(100% - 28px), 420px);
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
  transform: translateX(-50%);
}

.home-stories__topbar-meta {
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: auto;
}

.home-stories__segments {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.home-stories__segment {
  position: relative;
  flex: 1 1 0;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
  overflow: hidden;
  appearance: none;
}

.home-stories__segment-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--stories-segment-progress, 0%);
  border-radius: inherit;
  background: rgba(255,255,255,0.96);
}

.home-stories__counter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: var(--font-size-helper);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-stories__status {
  min-height: 20px;
  margin: 6px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: var(--font-size-helper);
  line-height: var(--line-height-meta);
}

.home-stories__stage {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: calc(var(--radius-md) + 2px);
  background: #000;
  box-shadow: none;
}

.home-stories__viewer-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.home-stories__viewer-title {
  margin-bottom: var(--space-2);
  color: var(--color-text-inverse);
}

.home-stories__progress {
  width: 100%;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.home-stories__progress::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: var(--radius-round);
  background: rgba(255,255,255,0.38);
}

.home-stories__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px;
  height: 1px;
  margin-top: 0;
  border: 0;
  border-radius: var(--radius-round);
  background: transparent;
  box-shadow: none;
}

.home-stories__viewer-video {
  cursor: pointer;
}

.home-stories__progress::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: var(--radius-round);
  background: rgba(255,255,255,0.38);
}

.home-stories__progress::-moz-range-thumb {
  width: 1px;
  height: 1px;
  border: 0;
  border-radius: var(--radius-round);
  background: transparent;
  box-shadow: none;
}

.home-stories__time {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: var(--font-size-helper);
  line-height: 1;
}

.home-stories__modal .btn-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--color-text-inverse);
  backdrop-filter: blur(8px);
}

.home-stories__modal .btn-icon:hover,
.home-stories__modal .btn-icon:focus-visible {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  color: var(--color-text-inverse);
}

.home-stories__modal .btn-icon:disabled,
.home-stories__modal .btn-icon.disabled {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.38);
}

.home-stories__control {
  font-size: 1.25rem;
  line-height: 1;
}

.home-stories__control--close {
  pointer-events: auto;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.26);
  color: #fff;
}

.home-stories__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
}

.home-stories__nav--prev {
  left: 14px;
}

.home-stories__nav--next {
  right: 14px;
}

.home-stories__nav-touch {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 36%;
  border: 0;
  background: transparent;
  appearance: none;
  opacity: 0;
}

.home-stories__nav-touch--prev {
  left: 0;
}

.home-stories__nav-touch--next {
  right: 0;
}


/* --------------------------------------------------------------------------
   Stories attention animation
   Первичный entrance-эффект без остаточного свечения в финале
   -------------------------------------------------------------------------- */

.home-stories {
  --stories-attention-stagger: 90ms;
  --stories-attention-rise: 8px;
  --stories-attention-ring-opacity-active: 0.96;
}

.home-stories__item.home-moment-thumb {
  will-change: transform;
}

.home-stories__item.home-moment-thumb::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transform: rotate(18deg) scale(1);
  background:
          conic-gradient(
                  from 210deg,
                  rgba(244, 122, 32, 0) 0deg,
                  rgba(244, 122, 32, 0.18) 44deg,
                  rgba(255, 196, 86, 0.92) 92deg,
                  rgba(244, 122, 32, 0.3) 142deg,
                  rgba(244, 122, 32, 0) 220deg,
                  rgba(244, 122, 32, 0) 360deg
          );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.home-stories__item.is-viewed::after,
.home-stories__item.is-active::after {
  opacity: 0;
}

/* Одноразовый attention-run */
.home-stories.is-attention-fired .home-stories__item:not(.is-viewed):not(.is-active) {
  animation: homeStoriesAttentionLift 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stories-order, 0) * var(--stories-attention-stagger));
}

.home-stories.is-attention-fired .home-stories__item:not(.is-viewed):not(.is-active)::after {
  opacity: var(--stories-attention-ring-opacity-active);
  animation:
          homeStoriesAttentionRing 900ms cubic-bezier(0.22, 1, 0.36, 1) both,
          homeStoriesAttentionGlow 900ms ease-out both;
  animation-delay: calc(var(--stories-order, 0) * var(--stories-attention-stagger));
}

@keyframes homeStoriesAttentionLift {
  0% {
    transform: translateY(var(--stories-attention-rise)) scale(0.96);
  }
  40% {
    transform: translateY(-4px) scale(1.035);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes homeStoriesAttentionRing {
  0% {
    transform: rotate(-42deg) scale(0.9);
    opacity: 0;
  }
  35% {
    transform: rotate(8deg) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: rotate(34deg) scale(1);
    opacity: 0;
  }
}

@keyframes homeStoriesAttentionGlow {
  0% {
    filter: brightness(1) saturate(1);
  }
  35% {
    filter: brightness(1.1) saturate(1.08);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}

/* После завершения attention-эффекта кольцо полностью убирается */
.home-stories.is-attention-complete .home-stories__item::after {
  opacity: 0;
}

/* Hover/focus остаются только по интеракции */
@media (hover: hover) and (pointer: fine) {
  .home-stories__item.home-moment-thumb:hover::after,
  .home-stories__item.home-moment-thumb:focus-visible::after {
    opacity: 0.52;
    transform: rotate(28deg) scale(1.02);
  }
}

@media (max-width: 767.98px) {
  .home-stories {
    --stories-attention-stagger: 70ms;
    --stories-attention-rise: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stories__item.home-moment-thumb,
  .home-stories__item.home-moment-thumb::after {
    animation: none !important;
    transition: none !important;
  }

  .home-stories.is-attention-fired .home-stories__item:not(.is-viewed):not(.is-active) {
    transform: none;
  }

  .home-stories.is-attention-fired .home-stories__item::after,
  .home-stories.is-attention-complete .home-stories__item::after {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Mobile-first refinement layer
   Локальные мобильные улучшения без переписывания базовых компонентов
   -------------------------------------------------------------------------- */

.home-mobile-rail {
  --mobile-rail-card-width: min(78vw, 320px);
  --mobile-rail-gap: 16px;
  --mobile-rail-peek-offset: clamp(16px, 5vw, 24px);
}

@media (max-width: 991.98px) {
  .home-stories .home-moments__strip.ps-5 {
    padding-left: 2px !important;
  }

  .home-footer .ui-heading-5.mt-5.pt-2 {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }

  .home-vacancies-slider__nav {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .home-hero__title br,
  .home-hero__lead br {
    display: none;
  }

  .home-hero__title {
    max-width: 14ch;
  }

  .home-hero__lead {
    max-width: 100%;
    padding-left: 0;
  }

  .home-hero__lead::before {
    display: none;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

  .home-search-row {
    margin-bottom: 0;
  }

  .home-services {
    padding-top: 32px;
  }

  .home-section .section-heading > .btn,
  .home-section .section-heading > .d-flex {
    width: 100%;
  }

  .home-section .section-heading > .d-flex {
    justify-content: flex-start;
  }

  .home-mobile-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--mobile-rail-gap);
    width: auto;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    padding-right: var(--mobile-rail-peek-offset);
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scroll-padding-right: var(--mobile-rail-peek-offset);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-mobile-rail::-webkit-scrollbar {
    display: none;
  }

  .home-mobile-rail > [class*="col-"] {
    flex: 0 0 var(--mobile-rail-card-width);
    width: var(--mobile-rail-card-width);
    max-width: var(--mobile-rail-card-width);
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  .home-mobile-rail > [class*="col-"] > * {
    height: 100%;
  }

  .home-mobile-rail--services {
    --mobile-rail-card-width: min(74vw, 280px);
  }

  .home-mobile-rail--offers,
  .home-mobile-rail--reviews,
  .home-mobile-rail--vacancies {
    --mobile-rail-card-width: min(78vw, 320px);
  }
}

.home-vacancies-slider__nav {
  align-items: center;
}

.home-vacancies-slider__nav .btn-icon--slider {
  --btn-height: 52px;
}

.home-vacancies-slider__nav .btn[disabled] {
  opacity: 0.45;
  box-shadow: none;
}

@media (min-width: 992px) {
  .home-vacancies-slider__viewport {
    width: calc(100% + 24px);
    margin: -16px -12px;
    padding: 16px 12px 20px;
    overflow: hidden;
  }

  .home-vacancies-slider__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-vacancies-slider__track::-webkit-scrollbar {
    display: none;
  }

  .home-vacancies-slider__track > [class*="col-"] {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  .home-vacancies-slider__track > [class*="col-"] > * {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-mobile-rail,
  .home-vacancies-slider__track {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .home-stories__modal {
    padding: var(--space-4);
  }

  .home-stories__viewer {
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .home-stories__hint {
    display: none !important;
  }

  .home-stories__modal {
    padding: 0;
  }

  .home-stories__dialog {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .home-stories__viewer {
    height: 100%;
  }

  .home-stories__topbar {
    top: max(8px, env(safe-area-inset-top, 0px));
    width: calc(100% - 12px);
    gap: 8px;
  }

  .home-stories__stage {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .home-stories__modal .btn-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .home-stories__nav {
    display: none;
  }

  .home-stories__nav-touch {
    display: block;
  }

  .home-stories__viewer-video {
    cursor: default;
  }

  .home-stories__segments {
    gap: 4px;
  }

  .home-stories__segment {
    height: 2px;
  }
}

@media (min-width: 768px) {
  .home-stories__nav-touch {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Homepage-only wrappers and asset placeholders
   -------------------------------------------------------------------------- */

.home-services {
  padding: 72px 0 72px;
  background: #151419;
}

.home-section.home-section--about{
  padding: 56px 0 56px;
  background: #151419;
}

.home-media--team {
  background:
    radial-gradient(circle at 58% 20%, rgba(255,255,255,0.18), transparent 16%),
    linear-gradient(135deg, #7a7f87 0%, #2f333b 100%);
}

.home-about__photo {
  --lazy-bg-position: 50% 50%;
  --lazy-bg-repeat: no-repeat;
  --lazy-bg-size: cover;

  background-image:
          radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 16%),
          linear-gradient(135deg, #a2a9b4 0%, #4b5563 100%);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  border-radius: 24px 0px 24px 24px;
  width: 100%;
}

.home-footer {
  margin-top: 0;
}
.home-footer {
  margin-top: 0;
}

.home-footer__top {
  align-items: flex-start;
}

.home-footer__brand-logo img {
  display: block;
  width: 155px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.home-footer__services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 12px;
}

.home-footer__services-col,
.home-footer__nav {
  display: grid;
  gap: 12px;
  align-content: start;
}

.home-footer__divider {
  margin: 40px 0 24px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.home-footer__bottom {
  align-items: start;
}

.home-footer__policy {
  display: inline-block;
  margin-top: 8px;
}

.home-footer__socials .btn-icon {
  box-shadow: none;
}

.home-footer__souz img {
  display: block;
  max-width: min(100%, 175px);
  height: auto;
  margin-left: auto;
}

.home-footer__socials {
  gap: 12px;
}

.home-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  transition:
          background-color 0.2s ease,
          color 0.2s ease,
          transform 0.2s ease,
          box-shadow 0.2s ease,
          opacity 0.2s ease;
}

.home-footer__social-link:hover,
.home-footer__social-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-footer__social-link.topbar-icon {
  font-size: 1.5rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-footer__social-link {
    transition: none;
  }
}

@media (max-width: 991.98px) {
  .home-footer__services-grid {
    column-gap: 24px;
  }

  .home-footer__divider {
    margin: 32px 0 24px;
  }
}

@media (max-width: 767.98px) {
  .home-footer__services-grid {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .home-footer__divider {
    margin: 28px 0 20px;
  }

  .home-footer__souz img {
    margin-left: 0;
    max-width: 45%;
  }
}

.home-footer__contacts {
  display: grid;
  gap: 6px;
}

.home-footer__phone {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.home-footer__phone:hover,
.home-footer__phone:focus-visible {
  color: #fff;
  opacity: 0.82;
}

@media (max-width: 767.98px) {
  .home-footer__phone {
    font-size: clamp(1.2rem, 4.8vw, 1.5rem);
    line-height: 1.15;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1399.98px) {
  .home-hero__rail {
    right: -58px;
  }
}

@media (max-width: 1199.98px) {
  .home-hero-section .hero-cover__content {
    max-width: 560px;
  }

  .home-hero__rail {
    right: -42px;
  }

}

@media (max-width: 991.98px) {
  .home-section {
    padding: 32px 0;
  }

  .home-hero__rail {
    display: none;
  }

  .home-moments__strip {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .home-header__phone {
    font-size: 1rem;
  }

  .home-moment-thumb {
    width: 62px;
    height: 62px;
  }

  .home-search-row {
    margin-bottom: 36px;
  }

  .home-services {
    padding-top: 56px;
  }

  .home-hero__title {
    max-width: none;
  }

  .home-hero__lead {
    display: none;
  }

  .home-hero__lead::before {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   Mobile first-screen and stories hotfix
   Точечные правки для первого экрана и блока сторис без перестройки системы
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  body.page-home {
    overflow-x: clip;
  }

  .page-home .site-header-demo__main {
    padding: 12px 0 10px;
  }

  .page-home .site-header__row {
    gap: 4px 14px !important;
  }

  .page-home .site-header__row > .d-flex.align-items-center.gap-3:first-child {
    width: 100%;
    justify-content: space-between;
  }

  .page-home .site-header__row > .d-flex.align-items-center.gap-3:last-child {
    width: 100%;
  }

  .home-header__phone {
    display: block;
    font-size: clamp(1.375rem, 5.6vw, 1.9rem);
    line-height: 1.05;
  }

  .home-hero-section {
    padding-top: 12px !important;
  }

  .home-hero-section .container {
    overflow-x: clip;
  }

  .home-hero-section .hero-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 750 / 1100;
    min-height: 0;
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
  }

  .hero-cover--media,
  .home-hero {
    aspect-ratio: 750 / 1100;
    min-height: 0;
  }

  .hero-cover__panel,
  .home-hero__panel {
    min-height: 100%;
    padding: clamp(72px, 20vw, 88px) 24px 142px;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .hero-cover__panel,
  .home-hero__panel{
    position: relative;
    height: 100%;
  }
  .hero-cover__panel:before,
  .home-hero__panel:before{
    content: "";
    position: absolute;
    left: 0;
    pointer-events: none;
    top: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.78) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.18) 100%);
  }

  .home-hero-section .hero-cover__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  .home-hero__title {
    max-width: 100%;
    margin-bottom: 0 !important;
    font-size: clamp(2.35rem, 10.4vw, 3.1rem);
    line-height: 0.92;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .home-hero__lead {
    display: block;
    max-width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-size: clamp(1rem, 4.1vw, 1.12rem);
    line-height: 1.34;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .home-hero__lead::before {
    display: none;
  }

  .home-hero__actions {
    margin-top: 0px !important;
    padding-top: 0px;
  }

  .home-hero__actions .btn {
    width: 100%;
    min-height: 64px;
    padding-inline: 20px;
    font-size: clamp(1.12rem, 4.6vw, 1.42rem);
    border-radius: 8px;
  }

  .hero-cover--media .hero--bimage img {
    object-position: 56% 28%;
  }

  .home-hero-slider__slides {
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    min-width: 0;
    min-height: 0;
  }

  .home-hero-slider .hero-item {
    height: 100%;
    min-height: 100%;
  }

  .home-hero-section .hero-cover__content {
    max-width: 100%;
  }

  .home-hero__rail {
    position: absolute;
    top: auto;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 4;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "progress nav";
    align-items: center;
    gap: 0 16px;
    min-height: 0;
    padding: 0;
    transform: none;
    isolation: isolate;
    pointer-events: none;
  }

  .home-hero__rail::before {
    display: none;
  }

  .home-hero__rail-nav {
    position: relative;
    grid-area: nav;
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    pointer-events: auto;
  }

  .home-hero__rail .btn-icon--slider {
    --btn-height: 44px;
    width: 44px;
    min-width: 44px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    color: #fff;
    background: rgba(18, 19, 27, 0.94);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  }

  .home-hero__rail .btn-icon--slider i,
  .home-hero__rail .btn-icon--slider i::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
  }

  .home-hero__rail .btn-icon--slider-primary {
    border-color: var(--color-brand);
    background: var(--color-brand);
  }

  .home-hero__mobile-progress {
    position: relative;
    grid-area: progress;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    pointer-events: none;
  }

  .home-hero__mobile-progress-dot {
    display: block;
    width: 11px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  }

  .home-hero__mobile-progress-dot.is-active {
    width: 50px;
    background: var(--color-brand);
  }

  .home-hero__rail-social {
    position: relative;
    grid-area: social;
    display: none;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
    min-width: 0;
    pointer-events: auto;
  }

  .home-hero__rail-socials {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .home-hero__rail-social-link {
    opacity: 0.9;
    filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.42)) !important;
  }

  .home-hero__rail-text {
    display: block;
    min-width: 0;
    writing-mode: initial;
    transform: none;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.56);
  }

  .home-moments {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .home-moments .row {
    row-gap: 0px !important;
  }
  .home-moments .row .col-lg-9{
    padding-right: 0px;
  }


  .home-moments__title {
    max-width: 100%;
    margin-bottom: 0;
  }

  .home-stories .home-moments__strip:not(.home-mobile-rail--stories-3),
  .home-moments__strip:not(.home-mobile-rail--stories-3) {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
    padding-left: 0 !important;
  }

  .home-stories__item.home-moment-thumb,
  .home-moment-thumb {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--color-brand), var(--shadow-sm);
  }
}

@media (max-width: 767.98px) {
  .home-section--club .cta-banner__content > .d-flex {
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }

  .home-section--club .cta-banner__content > .d-flex .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 14px;
    white-space: nowrap;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .home-section--club .ui-display-page {
    font-size: clamp(2.2rem, 9vw, 3.8rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-wrap: balance;
  }

  .home-section--club .ui-body-2 {
    font-size: clamp(0.92rem, 2.6vw, 1.18rem);
    line-height: 1.42;
  }
}

@media (max-width: 767.98px) {
  .home-mobile-rail--stories-3 {
    --mobile-rail-gap: 10px;
    --mobile-rail-peek-offset: 28px;

    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: var(--mobile-rail-gap);

    padding-top: 4px;
    padding-left: 4px !important;
    padding-right: var(--mobile-rail-peek-offset);
    padding-bottom: 4px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-left: 4px;
    scroll-padding-right: var(--mobile-rail-peek-offset);
  }

  .home-mobile-rail--stories-3::-webkit-scrollbar {
    display: none;
  }

  .home-mobile-rail--stories-3 > .home-stories__item {
    flex: 0 0 calc((100% - (var(--mobile-rail-gap) * 2) - var(--mobile-rail-peek-offset)) / 3);
    width: calc((100% - (var(--mobile-rail-gap) * 2) - var(--mobile-rail-peek-offset)) / 3);
    max-width: calc((100% - (var(--mobile-rail-gap) * 2) - var(--mobile-rail-peek-offset)) / 3);
    min-width: calc((100% - (var(--mobile-rail-gap) * 2) - var(--mobile-rail-peek-offset)) / 3);
    scroll-snap-align: start;
  }

  .home-mobile-rail--stories-3 > .home-stories__item.home-moment-thumb {
    width: calc((100% - (var(--mobile-rail-gap) * 2) - var(--mobile-rail-peek-offset)) / 3);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-mobile-rail--stories-3 .home-stories__preview {
    width: 100%;
    height: 100%;
  }

  .home-mobile-rail--stories-3 .home-stories__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-mobile-rail--stories-3 .home-stories__hint {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

@media (max-width: 767.98px) {
  .home-mobile-rail--news {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-mobile-rail--news::-webkit-scrollbar {
    display: none;
  }

  .home-mobile-rail--news > [class*="col-"] {
    flex: 0 0 86%;
    max-width: 86%;
  }
}

@media (max-width: 767.98px) {
  .home-header__phone {
    display: none;
  }
}

.guarantees-accordion__item,
.guarantees-accordion__item:first-of-type,
.guarantees-accordion__item:last-of-type {
  border-radius: var(--radius-md) !important;
}

.guarantees-accordion__item .accordion-button,
.guarantees-accordion__item:first-of-type .accordion-button,
.guarantees-accordion__item:last-of-type .accordion-button,
.guarantees-accordion__item:first-of-type .accordion-button.collapsed,
.guarantees-accordion__item:last-of-type .accordion-button.collapsed {
  border-radius: var(--radius-md) !important;
}

.guarantees-accordion__item .accordion-button:not(.collapsed) {
  border-top-left-radius: var(--radius-md) !important;
  border-top-right-radius: var(--radius-md) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.guarantees-accordion__item .accordion-collapse,
.guarantees-accordion__item:first-of-type .accordion-collapse,
.guarantees-accordion__item:last-of-type .accordion-collapse {
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  overflow: hidden;
}

.guarantees-accordion__item {
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
}

.guarantees-accordion__item + .guarantees-accordion__item {
  margin-top: 8px;
}

.guarantees-accordion__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 12px;
  padding: 16px 18px;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  box-shadow: none;
}

.guarantees-accordion__button:focus {
  box-shadow: none;
}

.guarantees-accordion__button::after {
  margin-left: 0;
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-position: center;
  align-self: center;
  justify-self: end;
}

.guarantees-accordion__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guarantees-accordion__term {
  font-family: var(--font-family-display);
  font-size: clamp(2rem, 7vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.guarantees-accordion__label {
  font-size: var(--font-size-body-2);
  line-height: 1.25;
  color: var(--color-text-secondary);
}

.guarantees-accordion__body {
  padding: 0 18px 16px;
  background: var(--color-bg-surface);
}

.guarantees-accordion__body .ui-body-3 {
  margin-bottom: 0;
}

.guarantees-accordion__body .ui-meta {
  margin-top: 8px;
  margin-bottom: 0;
}

.guarantees-accordion__button:not(.collapsed) {
  background: var(--color-brand);
  color: #fff;
  box-shadow: none;
}

.guarantees-accordion__button:not(.collapsed) .guarantees-accordion__term,
.guarantees-accordion__button:not(.collapsed) .guarantees-accordion__label {
  color: #fff;
}

.guarantees-accordion__button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.guarantees-accordion__item .accordion-collapse.show .guarantees-accordion__body {

}

.guarantees-accordion__item .accordion-collapse.show .ui-meta {

}

@media (max-width: 767.98px) {
  .guarantees-accordion__button {
    padding: 14px 16px;
    column-gap: 10px;
  }

  .guarantees-accordion__term {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  .guarantees-accordion__label {
    font-size: 0.88rem;
  }

  .guarantees-accordion__body {
    padding: 12px 16px 14px;
  }
}

.home-guarantees-slider__nav {
  align-items: center;
}

.home-guarantees-slider__nav .btn-icon--slider {
  --btn-height: 52px;
}

.home-guarantees-slider__nav .btn[disabled] {
  opacity: 0.45;
  box-shadow: none;
}

@media (min-width: 992px) {
  .home-guarantees-slider__viewport {
    width: calc(100% + 24px);
    margin: -16px -12px;
    padding: 16px 12px 20px;
    overflow: hidden;
  }

  .home-guarantees-slider__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: auto;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-guarantees-slider__track::-webkit-scrollbar {
    display: none;
  }

  .home-guarantees-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-guarantees-slider__track {
    scroll-behavior: auto;
  }
}

@media (min-width: 992px) {
  .home-guarantees-slider__slide {
    align-self: flex-start;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 {
    grid-template-rows: 176px 149px;
    align-content: start;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__item--electrics {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__item--tire {
    grid-column: 2;
    grid-row: 1;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__item--restored {
    grid-column: 2;
    grid-row: 2;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__item--diagnostic {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__item--alignment {
    grid-column: 4;
    grid-row: 1;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__item--other {
    grid-column: 4;
    grid-row: 2;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .card-guarantee {
    padding: 18px;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .ui-heading-1 {
    font-size: 2.15rem;
    line-height: 0.94;
    margin-bottom: 10px !important;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .ui-body-3 {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .ui-meta {
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__illust--1 {
    width: 92px;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__illust--2 {
    width: 102px;
    right: 8px;
    bottom: 8px;
  }

  .home-guarantees-slider__slide .guarantees-grid--slide-2 .guarantees-grid__illust--3 {
    width: 38px;
    margin-bottom: 8px !important;
  }
}
