/* Hero v2 — по Figma 418:6004. Меню / announce / cta-band не трогаем. */

.page-hero-v2 {
  background: #181818;
}

.page-hero-v2 .page {
  background: #181818;
}

.page-hero-v2 .announce {
  background: linear-gradient(90deg, #cbe6a3 0%, #4a9a78 32%, #4a9a78 100%);
  color: #fff;
}

.page-hero-v2 .announce__btn {
  background: #fff;
  color: #1a3d2e;
}

.page-hero-v2 .top {
  padding: 10px 0;
}

.page-hero-v2 .top__logo img {
  width: 128px;
}

.page-hero-v2 .top__nav {
  font-size: 14px;
  gap: 18px;
}

.page-hero-v2 .top__actions .btn--sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.page-hero-v2 .top__demo-short {
  display: none;
}

@media (max-width: 900px) {
  .page-hero-v2 .top {
    width: calc(100% - 24px);
    max-width: none;
    gap: 10px;
    padding: 12px 0;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-hero-v2 .top__logo {
    overflow: visible;
    min-width: 0;
  }

  .page-hero-v2 .top__logo img {
    width: 96px;
    height: auto;
  }

  .page-hero-v2 .top__actions {
    flex-direction: row;
    align-items: center;
    justify-self: end;
    min-width: 0;
  }

  .page-hero-v2 .top__actions .btn--sm {
    width: auto;
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .page-hero-v2 .top__demo-full {
    display: inline;
  }

  .page-hero-v2 .top__demo-short {
    display: none;
  }
}

.hero--v2 {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px max(24px, calc((100vw - 1480px) / 2 + 24px)) 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: left;
  overflow-x: clip;
  overflow-y: visible;
  background: #fdfdfd;
  color: #111;
  justify-items: stretch;
}

.hero--v2 .hero__rounds {
  display: none;
}

/* Декор-столбики справа */
.hero-v2__bars {
  position: absolute;
  right: max(0px, calc((100vw - 1480px) / 2 - 40px));
  top: 120px;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 360px;
  pointer-events: none;
  opacity: 0.9;
}

.hero-v2__bars span {
  display: block;
  width: 48px;
  height: calc(var(--h, 280) * 1px);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(213, 242, 204, 0.35) 0%, rgba(217, 217, 217, 0.18) 100%);
}

.hero-v2__intro {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto auto;
  gap: 0 32px;
  align-items: start;
}

.hero-v2__copy {
  display: contents;
}

.hero--v2 .badge,
.hero--v2 .badge--light {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: fit-content;
  max-width: max-content;
  margin: 0 0 22px;
  padding: 9px 17px;
  border-radius: 6px;
  border: 1px solid #f1f1f1;
  background: rgba(243, 243, 243, 0.4);
  box-shadow: none;
  white-space: nowrap;
}

.hero--v2 .badge span {
  color: #111;
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 400;
}

.hero--v2 .hero__title {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
  width: 100%;
  margin: 0 0 18px;
  text-align: left;
  font-family: var(--font);
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #111;
}

.hero-v2__chips {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.hero--v2 .hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px 12px 16px;
  border: 1px solid rgba(83, 83, 83, 0.2);
  border-radius: 9px;
  background: #181818;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero--v2 .hero__chip img {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.hero-v2__sub {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.hero-v2__sub p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  color: #111;
}

.hero-v2__check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(#4a9a78, #4a9a78) 0 0 / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 5px 0 / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 10px 0 / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 0 5px / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 5px 5px / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 10px 5px / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 0 10px / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 5px 10px / 4px 4px no-repeat,
    linear-gradient(#4a9a78, #4a9a78) 10px 10px / 4px 4px no-repeat;
}

.hero-v2__feats {
  grid-column: 1;
  grid-row: 5;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 980px;
}

.hero-v2__feats li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.2;
}

.hero-v2__feats li:last-child {
  border-right: 0;
}

.hero-v2__feat-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #111;
}

.hero-v2__feat-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero--v2 .hero__cta {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding-bottom: 2px;
  width: auto;
  max-width: none;
}

.hero--v2 .hero__cta .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #4a9a78 0%, #002224 100%);
  gap: 8px;
  white-space: nowrap;
}

.hero--v2 .hero__cta .btn__icons {
  color: #d5f2cc;
}

.hero-v2__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid #111;
  white-space: nowrap;
}

.hero-v2__link:hover {
  opacity: 0.7;
}

/* Витрина UI — зелёный почти на всю ширину */
.hero-v2__showcase {
  position: relative;
  z-index: 3;
  width: calc(100% + 2 * max(24px, calc((100vw - 1480px) / 2 + 24px)) - 24px);
  margin: 6px 0 0;
  margin-left: calc(-1 * max(24px, calc((100vw - 1480px) / 2 + 24px)) + 12px);
  margin-right: calc(-1 * max(24px, calc((100vw - 1480px) / 2 + 24px)) + 12px);
  padding: 0 0 36px;
  overflow: visible;
}

.hero-v2__plate {
  position: relative;
  width: 100%;
  padding: 40px 0 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #4a9a78 0%, #193429 100%);
  overflow: visible;
  z-index: 1;
}

.hero-v2__frame {
  position: relative;
  width: min(1428px, 94%);
  margin: 0 auto;
  border-radius: 12px 12px 0 0;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

.hero-v2__frame > picture {
  display: block;
  width: 100%;
}

.hero-v2__ui {
  display: block;
  width: 100%;
  height: auto;
  min-height: 360px;
  max-height: 628px;
  object-fit: cover;
  object-position: top left;
}

.hero-v2__tip {
  position: absolute;
  z-index: 3;
  height: auto;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(18, 27, 39, 0.28);
  filter: none;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
  transform-origin: center center;
}

.hero-v2__tip--left {
  left: max(12px, 2%);
  top: 16%;
  width: min(320px, 26%);
  transform: rotate(3.8deg) scale(1);
}

.hero-v2__tip--right {
  right: max(12px, 3%);
  top: -22px;
  width: min(340px, 28%);
  transform: rotate(3.8deg) scale(1);
}

.hero-v2__tip--mid {
  left: 38%;
  bottom: -72px;
  width: min(320px, 26%);
  z-index: 5;
  transform: rotate(-3.2deg) scale(1);
}

/* Покой: без задержки, чтобы при уходе схлопывались сразу */
.hero-v2__tip--right { transition-delay: 0.12s; }
.hero-v2__tip--left { transition-delay: 0.06s; }
.hero-v2__tip--mid { transition-delay: 0s; }

.hero-v2__plate.is-hot .hero-v2__tip--right,
.hero-v2__plate:hover .hero-v2__tip--right,
.hero-v2__plate:focus-within .hero-v2__tip--right {
  transform: rotate(3.8deg) scale(1.07);
  transition-delay: 0s;
}

.hero-v2__plate.is-hot .hero-v2__tip--left,
.hero-v2__plate:hover .hero-v2__tip--left,
.hero-v2__plate:focus-within .hero-v2__tip--left {
  transform: rotate(3.8deg) scale(1.07);
  transition-delay: 0.09s;
}

.hero-v2__plate.is-hot .hero-v2__tip--mid,
.hero-v2__plate:hover .hero-v2__tip--mid,
.hero-v2__plate:focus-within .hero-v2__tip--mid {
  transform: rotate(-3.2deg) scale(1.07);
  transition-delay: 0.18s;
}

/* Поинты под UI — без бегущей полосы */
.hero-v2__points {
  position: relative;
  z-index: 2;
  width: min(1428px, 94%);
  max-width: none;
  margin: 104px auto 0;
  padding-bottom: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  color: #111;
}

.hero-v2__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 56px;
}

.hero-v2__feat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero-v2__mark {
  width: 37px;
  height: 7px;
  display: block;
  object-fit: contain;
}

.hero-v2__feat-title {
  margin: 0;
  padding: 4px 0 0;
  max-width: none;
  font-family: var(--font);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-v2__bars {
    display: none;
  }

  .hero-v2__intro {
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 20px 28px;
  }

  .hero--v2 .hero__chip {
    font-size: 20px;
  }

  .hero-v2__sub p {
    font-size: 24px;
  }
}

@media (max-width: 900px) {
  .hero--v2 {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 16px 36px;
    overflow-x: clip;
  }

  .hero-v2__intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero-v2__copy {
    display: contents;
  }

  .hero--v2 .badge,
  .hero--v2 .badge--light {
    order: 1;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 8px 12px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .hero--v2 .hero__title {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.12;
  }

  .hero-v2__chips {
    order: 3;
    gap: 8px;
    margin: 0 0 14px;
  }

  .hero--v2 .hero__chip {
    padding: 9px 14px 10px 12px;
    font-size: 18px;
    gap: 7px;
  }

  .hero--v2 .hero__chip img {
    height: 22px;
  }

  .hero-v2__sub {
    order: 4;
    margin: 0 0 16px;
  }

  .hero-v2__sub p {
    font-size: 18px;
    gap: 10px;
  }

  .hero--v2 .hero__cta {
    order: 5;
    width: 100%;
    max-width: 100%;
    margin: 22px 0 18px;
    padding: 0;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero--v2 .hero__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    white-space: normal;
  }

  .hero-v2__link {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 10px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hero-v2__feats {
    order: 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 10px 12px;
  }

  .hero-v2__feats li {
    border-right: 0;
    padding-right: 0;
    width: auto;
    min-width: 0;
    font-size: 12px;
    gap: 8px;
  }

  .hero-v2__feat-ico {
    width: 18px;
    height: 18px;
  }

  .hero-v2__showcase {
    width: calc(100% + 32px);
    margin: 22px -16px 0;
    padding: 0;
  }

  .hero-v2__plate {
    overflow: hidden;
    border-radius: 0;
    padding: 14px 12px 0;
  }

  .hero-v2__frame {
    width: 100%;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
  }

  .hero-v2__ui {
    min-height: 0;
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }

  .hero-v2__tip {
    display: none;
  }

  .hero-v2__points {
    width: 100%;
    margin: 40px auto 0;
    padding-bottom: 0;
  }

  .hero-v2__rail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-v2__feat {
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  .hero-v2__feat-title {
    max-width: 22ch;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.3;
    padding: 0;
    text-align: center;
  }

  .hero-v2__feats li {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero--v2 {
    padding: 16px 14px 28px;
  }

  .hero-v2__showcase {
    width: calc(100% + 28px);
    margin: 20px -14px 0;
  }

  .hero--v2 .hero__chip {
    font-size: 16px;
    padding: 8px 12px 9px;
  }

  .hero-v2__chips {
    gap: 6px;
  }
}
