/* Hero — Changan layout structure, TENET visual */
.sm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tenet-ink);
  color: #fff;
  font-family: Montserrat, "Open Sans", Inter, sans-serif;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.sm-hero__stage {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--sm-header-offset, 124px));
  min-height: 650px;
  max-height: 760px;
}

@media (max-width: 1023px) {
  .sm-hero__stage {
    height: auto;
    min-height: 560px;
    max-height: none;
  }
}

.sm-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sm-hero__bg--desktop img {
  object-position: 56% 48%;
}

.sm-hero__bg--mobile img {
  object-position: center 42%;
}

.sm-hero__bg--desktop {
  display: none;
}

.sm-hero__bg--mobile {
  display: block;
}

@media (min-width: 1024px) {
  .sm-hero__bg--mobile {
    display: none;
  }

  .sm-hero__bg--desktop {
    display: block;
  }
}

.sm-hero__overlay--mobile {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 15, 25, 0.88) 0%,
    rgba(5, 15, 25, 0.55) 38%,
    rgba(5, 15, 25, 0.12) 58%,
    rgba(5, 15, 25, 0) 72%
  );
}

@media (min-width: 1024px) {
  .sm-hero__overlay--mobile {
    display: none;
  }
}

.sm-hero__overlay--desktop {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 15, 25, 0.82) 0%,
    rgba(5, 15, 25, 0.55) 28%,
    rgba(5, 15, 25, 0.12) 52%,
    rgba(5, 15, 25, 0) 70%
  );
}

@media (min-width: 1024px) {
  .sm-hero__overlay--desktop {
    display: block;
  }
}

.sm-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 9% 20px 180px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .sm-hero__content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .sm-hero__content {
    padding: 8% 32px 170px;
  }
}

.sm-hero__inner {
  max-width: 540px;
  width: 100%;
}

.sm-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.sm-hero__kicker-line {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.sm-hero__title {
  margin: 16px 0 0;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sm-hero__title-line {
  display: block;
  font-size: clamp(38px, 4vw, 76px);
}

.sm-hero__price {
  margin: 14px 0 0;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
}

.sm-hero__price-accent {
  color: var(--tenet-accent);
}

.sm-hero__subtitle {
  margin: 12px 0 0;
  max-width: 32rem;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.sm-hero__features {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.sm-hero__features i {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.sm-hero__perks {
  display: none;
}

/* —— Desktop lead form (Changan-style bar) —— */
.sm-hero__form-desk {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 10;
  width: min(1400px, calc(100% - 64px));
}

@media (min-width: 1024px) {
  .sm-hero__form-desk {
    display: block;
  }
}

.sm-hero__form-panel {
  background: rgba(15, 18, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 18px 12px;
  box-sizing: border-box;
}

.sm-hero__form-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.sm-hero__form-intro h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.sm-hero__form-intro p {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.sm-hero__form-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  text-decoration: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .sm-hero__form-phone {
    display: inline-flex;
  }
}

.sm-hero__form-phone small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
}

.sm-hero__form-phone strong {
  font-size: 15px;
  color: #fff;
  margin-top: 2px;
}

.sm-hero__form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .sm-hero__form-grid {
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: stretch;
  }
}

.sm-hero__form-grid input {
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--tenet-ink);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
}

.sm-hero__form-grid input:focus {
  border-color: var(--tenet-accent);
}

.sm-hero__form-submit {
  height: 52px;
  padding: 0 28px;
  border: none;
  background: var(--tenet-btn);
  color: var(--tenet-on-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.2s;
}

.sm-hero__form-submit:hover:not(:disabled) {
  background: var(--tenet-btn-hover);
}

.sm-hero__form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sm-hero__form-note {
  margin: 8px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.sm-hero__form-note a {
  color: inherit;
  text-decoration: underline;
}

.sm-hero__form-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--tenet-accent-soft);
}

.sm-hero__form-success {
  text-align: center;
  padding: 12px 0;
}

.sm-hero__form-success strong {
  display: block;
  color: var(--tenet-accent);
  font-size: 16px;
}

.sm-hero__form-success span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* —— Mobile —— */
.sm-hero__mobile-card {
  position: relative;
  z-index: 10;
  width: calc(100% - 16px);
  max-width: 380px;
  margin: -40px auto 24px;
  padding: 12px;
  text-align: center;
  background: rgba(15, 18, 20, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
  .sm-hero__mobile-card {
    display: none;
  }
}

.sm-hero__mobile-card > p {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.sm-hero__countdown {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sm-hero__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  padding: 8px 0;
  border-radius: 8px;
  background: var(--tenet-ink);
}

.sm-hero__countdown-unit strong {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sm-hero__countdown-unit span {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.sm-hero__mobile-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  background: #fff;
  color: var(--tenet-ink);
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.sm-hero__mobile-form input:focus {
  outline: 2px solid var(--tenet-accent);
}

.sm-hero__mobile-form button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: var(--tenet-btn);
  color: var(--tenet-on-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
}

.sm-hero__mobile-form button:disabled {
  opacity: 0.6;
}

.sm-hero__mobile-form .sm-hero__form-note {
  text-align: left;
  margin-top: 8px;
}

.sm-hero__mobile-tel {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tenet-accent);
  text-decoration: none;
}

.masthead.sm-header + #main .sm-hero {
  margin-top: 0;
}

#main.sidebar-none {
  overflow-x: clip;
}

@media (max-width: 768px) {
  .sm-hero__title-line {
    font-size: clamp(38px, 10vw, 44px);
  }

  .sm-hero__content {
    padding-bottom: 120px;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .sm-hero__inner {
    max-width: 480px;
  }

  .sm-hero__bg--desktop img {
    object-position: 58% 50%;
  }
}
