.hero {
  position: relative;
  font-family: var(--font-main);
  background: var(--color-bg-nav);
  overflow: hidden;
}
.hero * {
  box-sizing: border-box;
}

.hero__media {
  position: relative;
  height: clamp(420px, 45vw, 720px);
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(182, 146, 89, 0) 36.97%,
    #B69259 98.38%
  );
  z-index: 1;
}

/* ===== Текстовый блок поверх фона ===== */
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}
.hero__content-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0px 0px 350px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__title {
  margin: 0 0 16px;
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  font-size: 85px;
  text-transform: uppercase;
  font-family: "Montserrat", var(--font-main);
}


.hero__subtitle {
    margin: 0;
    max-width: 770px;
    font-size: 18px;
    line-height: 26px;
    color: white;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 60px;
}

.hero__cta {
      display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0px 29px;
    background: var(--color-text);
    color: var(--color-bg-nav);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: background-color .3s ease;
    width: 227px;
    height: 100px;
    justify-content: space-between;
    text-transform: uppercase;
    margin-bottom: 60px;
}
.hero__cta svg {
  width: 10px;
  height: 9px;
  transition: transform var(--transition-fast);
}
.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--color-accent);
  color: var(--color-text);
}

.hero__cta svg:hover{
  color:white;
}

.hero__cta:hover svg,
.hero__cta:focus-visible svg {
  transform: translateX(3px);
}

.hero__features {
  position: relative;
  z-index: 3;
  background: var(--color-bg-footer);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  width: 100%;
  display: block;
  overflow-x: hidden;
  padding: 0 var(--container-pad);
}
.hero__features-inner {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    box-sizing: border-box;
    min-width: 0;
}
.hero__features-inner,
.hero-feature,
.hero-feature > div,
.hero-feature__title,
.hero-feature__desc,
.hero-feature__icon {
  min-width: 0;
}
.hero-feature {
  position: relative;
  padding: 72px 0px 72px 52px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hero-feature + .hero-feature {
  border-left: 1px solid var(--color-divider);
}

.hero-feature::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  transform: translate(50%, 50%);
  z-index: 1;
  margin-bottom: 5px;
}

.hero-feature:first-child{
  padding-left: 0px;
  padding-right: 26px;
}

.hero-feature:last-child::after {
  display: none; 
}
.hero-feature__icon {
  flex: 0 0 auto;
  width: 62px;
  height: 77px;
}

.hero-feature__icon svg {
  width: 100%;
  height: 100%;
}
.hero-feature__title {
  margin: 50px 0 6px;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 100%;
  color: var(--color-text);
  text-transform: uppercase;
}
.hero-feature__desc {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.4);
  width: 240px;
  padding-top: 15px;
}

@media (max-width: 992px) {
.hero__features-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: relative;
    column-gap: 15px;
}

.hero__features{
  padding: 0;
}

.hero-feature:first-child{
  padding-left: 20px;
  padding-right: 0px;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(182, 146, 89, 0) 7%, #B69259 90%);
    z-index: 1;
}
  .hero__content-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 var(--container-pad) 32px;
  }
  .hero__cta {
    align-self: flex-start;
  }
  .hero__features-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-feature:not(:first-child)::after {
    display: none;
  }

  .hero-feature__title:first-child{
    right: 8px;
  }

  .hero__features-inner::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--color-divider);
    transform: translateX(-50%);
}

.hero__features-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--color-divider);
    transform: translateY(-50%);
}

.hero-feature {
    border: none;
    padding: 32px 24px;
}

.hero-feature::after {
    display: none;
}

.hero__features-inner {
    position: relative;
}

.hero__features-inner .center-dot {
    display: none;
}

.hero__features-inner::marker {
    display: none;
}
.features-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    transform: translate(-50%, -50%);
    z-index: 5;
}
.features-center {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 8px;
    height: 8px;

    background: var(--color-accent);

    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}
}

@media (max-width: 640px) {


.hero-feature + .hero-feature {
  border-left: none;
}

  .hero__media {
    position:static;
    aspect-ratio: 3 / 4;
    min-height: 380px;
  }

  .hero__media::after{
    background: linear-gradient(180deg, rgba(182, 146, 89, 0) 0%, #B69259 100%);
    height: cover;
  }

  .hero__content{
    position:relative;
  }

  .hero__content-inner {
    padding: 0 20px 24px;
  }
  .hero__title {
    font-size: 40px;
  }
  .hero__subtitle {
        font-size: 16px;
        border-left: 1px solid white;
        padding-left: 5px;
        margin-left: 0;
  }
  .hero__cta {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    justify-content: center;
  }
  .hero-feature {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 0px 24px 20px;
  }
  .hero-feature__icon {
    width: 34px;
    height: 42px;
  }
  .hero-feature__title {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.4;
  }
  .hero-feature__desc {
    font-size: 15px;
    width: auto;
  }
}
/* ===== Выравнивание колонок первого экрана ===== */
.hero-feature {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 24px;
}

.hero-feature:first-child {
  padding-left: 0;
  padding-right: 24px;
}

/* разделители и точки убраны — колонки разделяет воздух */
.hero-feature + .hero-feature {
  border-left: none;
}

.hero-feature::after {
  display: none;
}

.hero-feature__icon {
  margin-top: 6px;
}

.hero-feature__title {
  margin: 0;
  font-size: clamp(22px, 1.9vw, 28px);
  min-height: 2.1em;
  display: flex;
  align-items: flex-start;
}

.hero-feature__desc {
  width: 100%;
  max-width: 260px;
  padding-top: 14px;
}

@media (max-width: 992px) {
  .hero-feature__title {
    min-height: 0;
    display: block;
  }
  .hero-feature {
    padding: 32px 24px;
  }
}
/* добиваем разделители и точки */
.hero__features-inner::before,
.hero__features-inner::after,
.hero-feature::before,
.hero-feature::after,
.features-center {
  display: none !important;
}

.hero-feature,
.hero-feature + .hero-feature {
  border: none !important;
}

.hero__features {
  border-top: none;
  border-bottom: none;
}