.hhv2 {display:none;}
.wrapper-slider {
  padding: 60px 0 100px; /* отступы сверху/снизу */
  background: linear-gradient(
    to bottom,
    #0e0e12 0%,
    #0e0e12 66%,   /* верхние ~2/3 секции тёмные */
    #fff 66%,
    #fff 100% );
}
.hhig__stage {background: #fff !important;}
.hhig__thumb {background: #fff !important;}
.hhig__arrow {color:#000 !important;}
.hhig__dots { bottom: 5px!important;}
.hhig__dot { background: #6f6f6f !important;}
.hhig__dot .is-active {background: #000 !important;}
.hhig__arrow:before { border-top: 1px solid #000 !important; border-right: 1px solid #000 !important;}

/* ===== Hero "О нас" с параллаксом ===== */

.about-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;

  /* по умолчанию — мобильная картинка */
  background-image: url("https://hilbert-house.ru/wp-content/uploads/2025/12/designe-1.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* CSS-параллакс (фиксированный фон) */
  background-attachment: fixed;

  display: flex;
  align-items: flex-end;
  color: #ffffff;
  overflow: hidden;
}

/* затемнение */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 18, 0.15) 0%,
    rgba(14, 14, 18, 0.65) 55%,
    rgba(14, 14, 18, 0.9) 100%
  );
}

.about-hero__inner {
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding: 0 16px 32px;
  box-sizing: border-box;
	position: absolute;
    left: clamp(16px, 6vw, 80px);
    right: clamp(16px, 6vw, 80px);
    bottom: clamp(16px, 3vh, 120px);
}

/* анимация появления текста */
.about-hero__content {
  max-width: 640px;
  animation: hh-fade-in-up 0.9s ease-out both;
}

.about-hero__title {
  margin: 0 0 12px;
  font-family: var(--hh-font, "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  font-size: clamp(22px, 5vw, 48px);
}

.about-hero__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hh-font, "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 400;
  font-size: clamp(14px, 3.5vw, 18px);
  line-height: 1.4;
}

.about-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: #af0b0b;
  animation: hhv-pulse 2.2s ease-in-out infinite;
}

/* ===== Анимации ===== */

@keyframes hh-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hhv-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(175, 11, 11, 0.55);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(175, 11, 11, 0);
  }
}

/* ===== Десктоп ===== */

@media (min-width: 768px) {
  .about-hero {
    background-image: url("https://hilbert-house.ru/wp-content/uploads/2025/12/designe-1.webp");
  }

  .about-hero__inner {
    padding: 0 40px 64px;
  }

  .about-hero__title {
    font-size: clamp(30px, 2.8vw, 40px);
  }

  .about-hero__subtitle {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .about-hero__inner {
    padding: 0 0px 0px;
  }

  .about-hero__title {
    font-size: 42px;
  }
}

/* ===== Мобильные: отключаем background-attachment: fixed
   (чтобы не было багов iOS/Safari) ===== */

@media (max-width: 767.98px) {
  .about-hero {
    background-attachment: scroll;
  }
}



/* ======  Заголовок и подзаголовок  ============= */

.hh-cm-section {
  background-color: #0e0e12;
  color: #ffffff;
  padding: 80px 20px;
}

.hh-cm-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hh-cm-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 24px;
}

.hh-cm-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
}

.hh-cm-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hh-cm-text strong {
  font-weight: 600;
}

/* Адаптация под мобильные */
@media (max-width: 767px) {
  .hh-cm-section {
    padding: 56px 16px;
  }

  .hh-cm-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hh-cm-subtitle {
    font-size: 16px;
  }

  .hh-cm-text {
    font-size: 15px;
  }
}



/* ========= Галерея проектирование - 1   ======= */

.hh-split-section {
  background: #ffffff;
  padding: 80px 20px;
}

.hh-split-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  height: 80vh;
}

/* Левая колонка с галереей */
.hh-split-media {
  flex: 0 0 55%;
}

/* Правая колонка с текстом */
.hh-split-content {
  flex: 0 0 45%;
}

.hh-split-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 24px;
  color: #111111;
}

.hh-split-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #4a4a4a;
}

/* Адаптив под планшеты и телефоны */
@media (max-width: 991px) {
  .hh-split-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hh-split-media,
  .hh-split-content {
    flex: 0 0 100%;
  }

  .hh-split-title {
    font-size: 26px;
  }
}

@media (max-width: 575px) {
  .hh-split-section {
    padding: 56px 16px;
  }

  .hh-split-title {
    font-size: 22px;
  }

  .hh-split-text {
    font-size: 15px;
  }
}


/* Зеркальный вариант: картинка справа, текст слева */
.hh-split-section--reverse .hh-split-inner {
  flex-direction: row-reverse;
}

/* На мобильных снова в колонку, как обычно */
@media (max-width: 991px) {
  .hh-split-section--reverse .hh-split-inner {
    flex-direction: column;
  }
}





/* ===== Topic Explorer — wrapper ===== */
/* ===== Общий контейнер ===== */
.hh-perf{
  background:#050509;
  color:#fff;
  width:100%;
  overflow:hidden;
}

/* ===== HERO ===== */
.hh-perf-hero{
  position:relative;
  width:100%;
  min-height: min(90vh, 820px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:clamp(40px, 6vw, 80px);
  box-sizing:border-box;
}

.hh-perf-hero__media{
  position:absolute;
  inset:0;
  background-image:var(--hh-perf-hero);
  background-size:cover;
  background-position:center;
  z-index:0;
}

/* нижний градиент как у Porsche */
.hh-perf-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 50%,
    #050509 100%
  );
  z-index:1;
}

.hh-perf-hero__content{
  position:relative;
  z-index:2;
  max-width: min(1100px, 90vw);
  text-align:center;
  margin-inline:auto;
}

.hh-perf-hero__title{
  margin:0 0 16px;
  font-size:clamp(26px, 3.4vw, 38px);
  font-weight:700;
  letter-spacing:0.01em;
}

.hh-perf-hero__text{
  margin:0;
  font-size:clamp(14px, 1.4vw, 16px);
  line-height:1.55;
  color:rgba(255,255,255,0.85);
}

/* мобильный hero */
@media (max-width: 768px){
  .hh-perf-hero{
    min-height: min(75vh, 640px);
    padding:32px 16px 40px;
  }

  .hh-perf-hero__content{
    text-align:left;
  }
}

/* ===== SLIDER WRAPPER ===== */

/* фон как на скрине: сверху чёрный, снизу белый */
.hh-perf-slider{
  background:linear-gradient(#050509 0, #050509 55%, #ffffff 55%, #ffffff 100%);
  padding:0 0 80px;
}

.hh-perf-slider__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}

/* верхняя панель: подпись + стрелки */
.hh-perf-slider__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 0 16px;
  color:#ffffff;
}

.hh-perf-slider__label{
  font-size:14px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  opacity:0.65;
}

/* стрелки */
.hh-perf-slider__arrows{
  display:flex;
  gap:16px;
}

.hh-perf-slider__arrow{
  border:none;
  padding:0;
  background:transparent;
  cursor:pointer;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  transition:background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  color:#ffffff;
}

.hh-perf-slider__arrow--prev{
  opacity:0.35; /* как «заглушенная» левая стрелка на первом слайде */
}

.hh-perf-slider__arrow svg{
  width:22px;
  height:22px;
}

.hh-perf-slider__arrow:hover{
  background:rgba(255,255,255,0.12);
}



/* ===== Слайдер (scroll + arrows) ===== */

.hh-perf-slider__inner{
  position: relative;
}

.hh-perf-slider__viewport{
  position: relative;
  /* старые строки оставляем закомментированными как референс */
/*  overflow-x:auto;
    overflow-y:visible;
    scroll-snap-type:x mandatory; */

  /* рабочие настройки */
  overflow-x: auto;          /* нужна горизонтальная прокрутка для JS */
  overflow-y: visible;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;

  /* полностью прячем горизонтальный скроллбар */
  scrollbar-width: none;     /* Firefox */
}

.hh-perf-slider__viewport::-webkit-scrollbar{
  display: none;             /* Chrome / Safari */
}

.hh-perf-slider__track{
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* карточка */
.hh-perf-card{
  flex: 0 0 85%;
  max-width: 520px;
  background: #050509;
  color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  /* scroll-snap-align:center; */
  display: flex;
  flex-direction: column;
}

.hh-perf-card__media{
  position: relative;
  width: 100%;
  padding-top: 120%; /* соотношение сторон */
  overflow: hidden;
}

.hh-perf-card__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hh-perf-card__footer{
  padding: 18px 20px 20px;
}

.hh-perf-card__title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* 2 карточки рядом на десктопе */
@media (min-width: 900px){
  .hh-perf-card{
    flex: 0 0 calc(50% - 12px);
  }
}

/* ===== Dots ===== */

.hh-perf-slider__dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

.hh-perf-slider__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.16);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hh-perf-slider__dot.is-active{
  width: 18px;
  background: #ffffff;
}

/* ===== Arrows (белые, как на скрине) ===== */

.hh-perf-slider__arrows{
  position: absolute;
  right: 40px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 5;
}

.hh-perf-slider__arrow{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 48px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hh-perf-slider__arrow[disabled]{
  cursor: default;
}

.hh-perf-arrow-svg{
  width: 40px;
  height: 16px;
}

.hh-perf-arrow-svg line,
.hh-perf-arrow-svg polyline{
  stroke: #ffffff;
  stroke-width: 1.5;
  fill: none;
}

.hh-perf-slider__arrow[disabled] .hh-perf-arrow-svg line,
.hh-perf-slider__arrow[disabled] .hh-perf-arrow-svg polyline{
  opacity: 0.35;
}

/* адаптив для мобилок */
@media (max-width: 768px){
  .hh-perf-slider__inner{
    padding: 0 16px;
  }

  .hh-perf-card{
    flex: 0 0 90%;
  }

  .hh-perf-slider__arrows{
    right: 24px;
    top: 16px;
  }
}

/* общий контейнер слайдера */
.hh-perf-slider{
  width: 100%;
}

/* на десктопе прижимаем слайдер вправо */
@media (min-width: 1024px){
  .hh-perf-slider__inner{
    max-width: 1440px;          /* или твое значение */
    margin-right: 0;
    margin-left: auto;          /* вот это и прижимает вправо */
    padding-right: 40px;        /* отступ от правого края страницы */
    padding-left: 0;            /* чтобы слева не было лишнего поля */
  }
}

/* мобильная версия — по центру с нормальными отступами */
@media (max-width: 1023px){
  .hh-perf-slider__inner{
    margin: 0;
    padding: 0 16px;
  }
}