:root {
  --scene-paper: #FBFAF6;
  --scene-green: #006447;
  --scene-ink: #19362b;
  --scene-muted: #465c50;
  --scene-line: #d9e2d8;
}

body.scene-page {
  margin: 0;
  padding-bottom: 0;
  background: var(--scene-paper);
  color: var(--scene-ink);
}

.scene-header, .scene-footer, .hero-scene__inner {
  width: min(100% - 64px, 1248px);
  margin-inline: auto;
}

.scene-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  border-bottom: 1px solid var(--scene-line);
}

.scene-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--scene-green);
  text-decoration: none;
}

.scene-brand__mark {
  display: block;
  width: 30px;
  height: 62px;
  flex-shrink: 0;
}

.scene-brand__type {
  display: grid;
  gap: 3px;
  font-family: "KarmaFriendly", "Manrope", sans-serif;
  font-weight: 400;
  line-height: 1;
}

.scene-brand__name {
  font-size: 31px;
  letter-spacing: 5px;
  color: #18382f;
}

.scene-brand__subtitle {
  padding-left: 2px;
  font-size: 10px;
  letter-spacing: 10px;
  margin-right: -10px;
}
.scene-header .site-menu { margin-inline-start: auto; }
.scene-header .site-menu a, .scene-footer a { color: var(--scene-green); }
.scene-header .site-menu-toggle:not([hidden]) { display: none; }

.scene-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--scene-green);
  border-radius: 11px;
  background: var(--scene-green);
  color: white;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
}

.scene-cta:hover { background: #00513a; color: white; }
.scene-cta:focus-visible, .scene-header a:focus-visible, .hero-scene__photo:focus-visible {
  outline: 3px solid #247955;
  outline-offset: 4px;
}

.scene-header .scene-cta {
  gap: 8px;
  background: transparent;
  color: var(--scene-green);
  min-height: 42px;
}

.scene-header .scene-cta:hover { background: #e9f2eb; }

.hero-scene {
  position: relative;
  isolation: isolate;
  background: var(--scene-paper);
  overflow: clip;
}

.hero-scene__inner {
  display: grid;
  align-items: center;
  min-height: clamp(385px, 36vw, 540px);
  position: relative;
}

.hero-scene__image {
  position: absolute;
  inset: 0 0 0 25%;
  z-index: -1;
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(to left, #000 45%, transparent 95%);
}
.hero-scene__image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: right center; }
.hero-scene__copy {
  width: min(55%, 670px);
  padding: clamp(38px, 6vw, 84px) 0;
}
.hero-scene__copy h1 {
  margin: 0 0 14px;
  max-width: 16ch;
  color: var(--scene-ink);
  font-size: clamp(35px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-scene__copy h1 em { font: inherit; }
.hero-scene__lead { color: var(--scene-muted); font-size: clamp(16px, 1.5vw, 20px); max-width: 44ch; line-height: 1.55; margin: 0 0 19px; }
.hero-scene__response { margin: 9px 0 0; color: var(--scene-muted); font-size: .88rem; }
.hero-scene .hero-directory-search { margin-top: 20px; }
.hero-scene .hero-directory-search .button { background: var(--scene-green); border-radius: 10px; }
.hero-scene--product .hero-scene__image {
  display: grid;
  align-items: center;
  justify-items: end;
  background: radial-gradient(ellipse at 76% 49%, #e8f0e7 5%, #caddce 100%);
  pointer-events: none;
}
.hero-scene--product .hero-scene__photo {
  display: grid;
  place-items: center;
  width: min(40vw, 510px);
  height: min(29vw, 395px);
  margin-right: 8%;
  pointer-events: auto;
  cursor: zoom-in;
}
.hero-scene--product .hero-scene__photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.scene-page .directory-detail { max-width: 100%; }
.scene-page .guide > .guide-heading:empty { display: none; }
.scene-page .guide > .guide-heading h2 { margin-top: 0; }
.scene-page .guide { padding-top: clamp(30px, 5vw, 60px); }
.scene-footer { padding-block: 24px; border-top: 1px solid var(--scene-line); }
.scene-footer, .scene-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.scene-footer nav { margin-inline-start: auto; }
.scene-footer a { font-size: .875rem; }
.scene-mobile-telegram { display: none; }
.scene-manufacturers { margin-block: 18px 30px; }
.scene-manufacturers ul { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: 1.2em; }
.scene-contact { padding-bottom: 50px; }
.scene-contact form { max-width: 100%; }
.scene-contact .message-example { width: 100%; }
.scene-demo-privacy { max-width: 60ch; }

@media (max-width: 850px) {
  .scene-header { flex-wrap: wrap; gap: 8px; padding-block: 8px; min-height: 60px; }
  .scene-header .scene-brand { margin-inline-end: auto; }
  .scene-header .site-menu-toggle:not([hidden]) { display: inline-block; }
  .scene-header .site-menu { margin-inline-start: 0; }
}

@media (max-width: 700px) {
  body.scene-page { padding-bottom: calc(71px + env(safe-area-inset-bottom)); }
  .scene-header, .scene-footer, .hero-scene__inner { width: calc(100% - 32px); }
  .scene-header .scene-cta { min-height: 40px; padding: 8px 12px; font-size: .85rem; }
  .scene-brand__mark { width: 25px; height: 51px; }
  .scene-brand__name { font-size: 25px; letter-spacing: 3.8px; }
  .scene-brand__subtitle { font-size: 9px; letter-spacing: 7.8px; margin-right: -7.8px; }
  .hero-scene__inner { display: block; min-height: 0; }
  .hero-scene__image {
    position: relative;
    inset: auto;
    z-index: auto;
    width: calc(100% + 32px);
    height: clamp(185px, 55vw, 275px);
    margin-inline: -16px;
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero-scene__image img { object-position: center 42%; }
  .hero-scene__copy { width: 100%; position: relative; padding: 4px 0 32px; }
  .hero-scene__copy h1 { max-width: 20ch; font-size: clamp(29px, 8vw, 44px); }
  .hero-scene__lead { margin-bottom: 15px; }
  .hero-scene--product .hero-scene__image { justify-items: center; }
  .hero-scene--product .hero-scene__photo { width: 80%; height: 100%; margin: 0; }
  .hero-scene--product .hero-scene__photo img { max-height: 210px; padding-bottom: 8px; }
  .scene-footer nav { margin-inline-start: 0; }
  .scene-mobile-telegram {
    display: flex;
    justify-content: center;
    z-index: 20;
    position: fixed;
    inset: auto 0 0;
    padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--scene-line);
    background: var(--scene-paper);
  }
  .scene-mobile-telegram .scene-cta { width: min(100%, 560px); min-height: 48px; }
}

@media (min-width: 701px) and (max-width: 850px) {
  .scene-header .site-menu { width: 100%; }
}

.hero-scene__help {
  margin-top: 12px;
  font-size: .92rem;
}

.hero-scene__help a, .scene-card-return a {
  color: var(--scene-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scene-extra-example {
  margin-block: 28px 18px;
  padding: 18px 22px;
  border: 1px solid var(--scene-line);
  border-radius: 14px;
  background: #eff5ee;
}

.scene-extra-example p {
  margin: 7px 0 0;
}

@media (max-width: 360px) {
  .scene-header .scene-brand { gap: 8px; }
  .scene-header .scene-brand__mark { width: 21px; height: 43px; }
  .scene-header .scene-brand__name { font-size: 23px; letter-spacing: 3px; }
  .scene-header .scene-brand__subtitle { letter-spacing: 6.5px; margin-right: -6.5px; }
}
