.path-frontpage .main-page {
  margin: 0;
  padding: 0;
}

.path-frontpage .main-page .messages__wrapper {
  display: none;
}

.path-frontpage .main-page .section-hero {
  margin-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.path-frontpage .layout-content.container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.path-frontpage .section-hero.hm-hero {
  background-color: #000;
}

.path-frontpage .section-hero.hm-hero.has-bg {
    min-height: 98vh;
}

.path-frontpage  .landing-page .has-bg.section-hero .container {
      margin: 60vh auto 6vh auto;
}

.home_main .hm-section-title {
  font-size: 2rem;
  font-weight: var(--fw-med);
}

.home_main .hm-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
}

.home_main .hm-header-flex .project-slider-nav {
  margin-left: 0;
}

.home_main .hm-header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.home_main .header-with-controls {
  justify-content: normal;
  grid-gap: 1rem 2rem;
}

@media (max-width: 640px) {
  .home_main  .header-with-controls {
    flex-wrap: wrap;
  }
  .home_main  .header-with-controls .hm-section-title {
    width: 100%;
  }
}

.home_main  .header-with-controls .project-slider-nav {
  margin-left: auto;
}

.home_main .hm-header-left .hm-section-title {
  margin-bottom: 0;
}

.home_main .btn-small {
  background: #000;
  color: #fff;
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: var(--fw-med);
}

.home_main  .s-5 ._p._p4 {
    line-height: 1.2;
    text-align: center;
} 

/* --- FEATURES TABS SECTION --- */
.home_main .hm-features {
  margin: 6rem auto;
}

.home_main .hm-tabs-nav {
  justify-content: space-between;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 1rem;
  margin-bottom: 4rem;
}

.home_main .hm-tabs-nav .tab-btn {
  border: 1px solid #ccc;
  border-radius: 30px;
  flex: 1;
  max-width: 250px;
}

.home_main .hm-features-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 4rem;
  align-items: center;
}

.home_main .hm-features-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.home_main .hm-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.home_main .hm-feature-item h3 {
  font-size: 1.125rem;
  font-weight: var(--fw-med);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.home_main .hm-feature-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}


.hm-reviews-wrapper {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.hm-reviews-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.hm-reviews-wrapper .views-element-container,
.hm-reviews-wrapper .view-reviews {
  display: block;
  width: 100%;
}

.hm-reviews-wrapper .view-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px !important; /* Отступ между карточками */
  width: max-content !important;
  margin: 0;
  padding: 0 0 20px 0;
}

.hm-reviews-wrapper .views-row {
  flex: 0 0 auto !important;
  width: 400px !important; /* Ширина карточки */
  background-color: #e2e8ec; /* Цвет фона из дизайна */
  border: 1px solid #d4dbe0;
  border-radius: 4px;
  padding: 2rem 1.8rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  white-space: normal;
}

.hm-reviews-wrapper .views-field-field-review-text {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
}

.hm-reviews-wrapper .views-field-field-review-author .field-content p {
  margin: 0;
  line-height: 1.4;
}

.hm-reviews-wrapper .views-field-field-review-author .field-content p:first-child {
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 0.2rem;
}

.hm-reviews-wrapper .views-field-field-review-author .field-content p:nth-child(2) {
  font-weight: 400;
  font-size: 0.95rem;
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .hm-reviews-wrapper .views-row {
    width: 300px !important;
    padding: 1.5rem;
  }
}
/*.s-5__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 80vw;
}

.s-5__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  width: 100%;
}

.s-5__circle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neutral-2);
  border-radius: 50%;
  background-color: var(--neutral-0);
  transition: .3s background-color;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.s-5__icon {
  width: 50%;
  height: 50%;
  display: block;
}

.s-5__item ._p {
  margin: 0;
}

@media (min-width: 576px) {
  .s-5__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; 
  }
  
  .hm-header-flex {
    margin-bottom: 32px;
  }
}

@media (min-width: 992px) {
  .s-5__list {
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
  }
}*/