/* MontStell concept v2: visual navigation experiment. */
:root {
  --concept-racks: #eaf1f0;
  --concept-service: #f4eee5;
  --concept-fitout: #f4f0e6;
  --concept-auto: #e8eff4;
  --concept-projects: #ecedeb;
  --context-surface: #ecebe7;
  --context-ink: #111;
}

/* The choice is visible before the marketing headline. */
.inner-kicker {
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  margin-bottom: 26px;
  padding: 10px 14px 10px 12px;
  border: 1px solid var(--context-ink);
  background: var(--context-surface);
  box-shadow: inset 4px 0 0 var(--context-ink);
  color: var(--context-ink);
  font-size: clamp(.72rem, .66rem + .18vw, .88rem);
  letter-spacing: .09em;
  line-height: 1.25;
}
.inner-kicker::before { display: none; }
.inner-hero__copy { position: relative; }
.inner-hero__copy::after {
  content: "ВЫБРАННОЕ РЕШЕНИЕ";
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--context-surface);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}
.inner-hero .breadcrumbs { opacity: .82; }

/* Distinct page families: one system, different reading states. */
body[data-concept-family="racks"] .inner-main { background: var(--concept-racks); }
body[data-concept-family="service"] .inner-main { background: var(--concept-service); }
body[data-concept-family="fitout"] .inner-main { background: var(--concept-fitout); }
body[data-concept-family="automation"] .inner-main { background: var(--concept-auto); }
body[data-concept-family="projects"] .inner-main { background: var(--concept-projects); }
body[data-concept-family="racks"] { --context-surface: var(--concept-racks); }
body[data-concept-family="service"] { --context-surface: var(--concept-service); }
body[data-concept-family="fitout"] { --context-surface: var(--concept-fitout); }
body[data-concept-family="automation"] { --context-surface: var(--concept-auto); }
body[data-concept-family="projects"] { --context-surface: var(--concept-projects); }
body[data-concept-family] .inner-section:not(.inner-section--dark):not(.inner-section--steel) { background: transparent; }
body[data-concept-family] .inner-section:nth-of-type(2n):not(.inner-section--dark):not(.inner-section--steel) { background: rgba(255,255,255,.46); }
body[data-concept-family] .inner-heading > div { position: relative; }
body[data-concept-family] .inner-heading > div::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  width: 5px;
  height: 28px;
  background: var(--context-ink);
}

/* The video is the first-screen proof, not incidental background motion. */
.hero--video .hero__media { background: #081f22; }
.hero-video__teaser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,18,19,.94) 0%, rgba(7,18,19,.76) 32%, rgba(7,18,19,.24) 69%, rgba(7,18,19,.18) 100%), linear-gradient(0deg, rgba(7,18,19,.72) 0%, transparent 34%);
}
.hero-video__frame {
  position: absolute;
  inset: clamp(1.25rem, 3vw, 3.5rem);
  border: 1px solid rgba(255,255,255,.22);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-video__caption {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 184px;
  display: grid;
  gap: 7px;
  min-width: 240px;
  padding: 13px 16px;
  border-left: 4px solid rgba(255,255,255,.92);
  background: rgba(6,30,32,.95);
  color: #fff;
}
.hero-video__caption::before { content: "ВИДЕО ОБЪЕКТА"; color: rgba(255,255,255,.64); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.hero-video__caption span,
.hero-video__caption small { font-size: .66rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero-video__caption small { color: rgba(255,255,255,.64); }
.hero-video__play {
  position: absolute;
  z-index: 4;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 295px;
  min-width: min(290px, calc(100% - 2.5rem));
  min-height: 90px;
  padding: 14px 22px 14px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #111;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.hero-video__play i {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #111;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}
.hero-video__play i::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: .2rem;
  border-top: .45rem solid transparent;
  border-bottom: .45rem solid transparent;
  border-left: .72rem solid var(--orange);
}
.hero-video__play span { display: grid; gap: .3rem; }
.hero-video__play strong { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero-video__play small { color: rgba(17,17,17,.68); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-video__play:hover,
.hero-video__play:focus-visible { background: #111; color: var(--orange); transform: translateY(-4px); outline: 0; }
.hero-video__play:hover i,
.hero-video__play:focus-visible i { background: var(--orange); }
.hero-video__play:hover i::before,
.hero-video__play:focus-visible i::before { border-left-color: #111; }
.hero-video__play:hover small,
.hero-video__play:focus-visible small { color: rgba(255,255,255,.64); }
.project--video-proof { min-height: 0; background: #fff; }
.project--video-proof .project-video__content { max-width: 1480px; margin: 0 auto; }

/* Commercial conditions appear at the point of contact, not on every product block. */
.commercial-terms {
  min-width: 0;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.commercial-terms__label {
  display: block;
  margin-bottom: .75rem;
  color: var(--orange);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.commercial-terms__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
}
.commercial-terms__grid > div {
  min-width: 0;
  min-height: 6.25rem;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: .55rem;
  border-right: 1px solid rgba(255,255,255,.14);
}
.commercial-terms__grid > div:last-child { border-right: 0; }
.commercial-terms strong {
  color: #fff;
  font-size: .86rem;
  line-height: 1.2;
}
.commercial-terms__grid span {
  color: rgba(255,255,255,.58);
  font-size: .7rem;
  line-height: 1.45;
}
.commercial-terms--orange { margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.commercial-terms--orange .commercial-terms__label { color: rgba(17,17,17,.62); }
.commercial-terms--orange .commercial-terms__grid {
  border-color: rgba(17,17,17,.26);
  background: rgba(255,255,255,.14);
}
.commercial-terms--orange .commercial-terms__grid > div { border-color: rgba(17,17,17,.2); }
.commercial-terms--orange strong { color: #111; }
.commercial-terms--orange .commercial-terms__grid span { color: rgba(17,17,17,.68); }

/* Navigation retains the compact engineering feel but offers a clear current state. */
@media (min-width: 1025px) {
  :root { --rail: 276px; }
  .mega-menu__head { padding-inline: 18px; }
  .mega-menu__head .eyebrow { font-size: .66rem; }
  .mega-menu__body { padding-inline: 14px; }
  .menu-group > button { font-size: .79rem; }
  .menu-group > div a { padding: .38rem 0; font-size: .71rem; }
  .menu-group > div a[aria-current="page"] {
    margin-left: -8px;
    padding-left: 8px;
    border-left: 3px solid var(--context-ink);
    background: var(--context-surface);
    color: var(--context-ink);
  }
}

@media (max-width: 760px) {
  .commercial-terms__grid { grid-template-columns: 1fr 1fr; }
  .commercial-terms__grid > div { border-bottom: 1px solid rgba(255,255,255,.14); }
  .commercial-terms__grid > div:nth-child(2n) { border-right: 0; }
  .commercial-terms__grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .commercial-terms--orange .commercial-terms__grid > div { border-bottom-color: rgba(17,17,17,.2); }
  .inner-kicker { min-height: 34px; padding: 8px 10px; font-size: .67rem; }
  .inner-hero__copy::after { font-size: 7px; }
  .inner-hero .breadcrumbs { margin-bottom: 38px; }
  body[data-concept-family] .inner-heading > div::before { left: -10px; width: 3px; }
  .hero--video { min-height: 820px; }
  .hero-video__shade { background: linear-gradient(180deg, rgba(7,18,19,.68) 0%, rgba(7,18,19,.28) 33%, rgba(7,18,19,.86) 72%, rgba(7,18,19,.96) 100%); }
  .hero-video__frame { inset: 12px; }
  .hero-video__caption { right: 18px; left: 18px; bottom: 85px; min-width: 0; }
  .hero-video__play { right: 18px; left: 18px; bottom: 185px; width: auto; min-width: 0; }
  .hero--video .hero__content { padding-top: 126px; }
  .hero--video .hero__facts { display: none; }
  .project--video-proof .project-video__content { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .commercial-terms__grid { grid-template-columns: 1fr; }
  .commercial-terms__grid > div,
  .commercial-terms__grid > div:nth-child(2n),
  .commercial-terms__grid > div:nth-last-child(-n+2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .commercial-terms__grid > div:last-child { border-bottom: 0; }
  .commercial-terms--orange .commercial-terms__grid > div { border-bottom-color: rgba(17,17,17,.2); }
}
