/* Existing below-hero styles preserved unchanged. */
.home-corporate .home-value-grid { gap: 16px; }
.home-corporate .home-service-card { background: var(--color-white); border: 1px solid var(--line-2); border-radius: 8px; padding: 24px; }
.home-corporate .home-service-card:hover { border-color: var(--green-deep); background: var(--color-surface-info); }
.home-automation .home-automation-example { margin-top: 32px; padding: 32px; background: var(--color-surface-info); border: 1px solid var(--color-border); border-radius: 12px; }
.home-automation-example > h3 { font-size: 24px; line-height: 1.25; }
.home-automation .home-ai-config blockquote { background: var(--color-white); padding: 24px; border-radius: 8px; }
.home-automation .home-ai-context { color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.home-deployment .home-value-grid { gap: 0; padding: 24px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.home-deployment .home-value-grid > article { border: 0; padding: 8px 24px; }
.home-deployment .home-value-grid > article + article { border-left: 1px solid var(--line-2); }
.home-deployment .home-value-grid > article:first-child { padding-left: 0; }
.home-model-example { padding: 24px; border-left: 3px solid var(--green); background: var(--color-surface-info); }
@media (max-width: 640px) {
.home-corporate .home-value-grid { gap: 12px; }
.home-corporate .home-service-card { padding: 20px; }
.home-automation .home-automation-example { padding: 20px; margin-top: 24px; }
.home-automation-example > h3 { font-size: 21px; }
.home-automation .home-ai-config blockquote { padding: 16px; }
.home-deployment .home-value-grid { padding: 0; }
.home-deployment .home-value-grid > article,
  .home-deployment .home-value-grid > article:first-child { padding: 20px 0; }
.home-deployment .home-value-grid > article + article { border-left: 0; border-top: 1px solid var(--line-2); }
.home-model-example { padding: 20px; }
.home-model-example ol { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.home-model-example ol li { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.home-model-example ol li > span[aria-hidden] { display: block; align-self: center; transform: rotate(90deg); }
.home-model-example .home-model-step { width: 100%; text-align: center; }
.home-corporate.sec, .home-automation.sec, .home-deployment.sec { padding-block: 40px; }
}
@media (max-width:640px) {
.home-value .home-model-example ol { display: flex; flex-direction: column; }
.home-value .home-model-example ol li { display: flex; flex-direction: column; width: 100%; padding: 0; }
.home-value .home-model-example ol li > span[aria-hidden] { align-self: center; }
}
@media (max-width:640px) {
.home-value .home-model-example ol li > span[aria-hidden] { position: static; width: auto; height: auto; margin: 0; }
}

/* Homepage hero: shared site tokens, fixed media geometry, compact stage navigation. */
#heroSection {
  padding: 18px 0 24px; background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
#heroSection > .wrap-wide { max-width: var(--maxw); }
#heroSection .p-hero-positioning { margin: 0 0 16px; }
#heroSection .p-hero-kicker {
  display: block; margin: 0 0 8px; font: 500 14px/1.4 "Golos Text", sans-serif;
  letter-spacing: 0; text-transform: none; color: var(--muted);
}
#heroSection .p-hero-kicker::before { display: none; }
#heroSection .p-hero-claim {
  margin: 0; max-width: 1128px; font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 700; line-height: 1.14; letter-spacing: -.03em; text-wrap: wrap;
  color: var(--ink); animation: none;
}
#heroSection .p-hero-title-line { display: block; }
#heroSection .p-hero-direction { box-shadow: none; }
#heroSection .p-hero-descriptions { margin-top: 14px; }
#heroSection .p-hero-summary { max-width: 1080px; margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
#heroSection .p-hero-flexibility { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
#heroSection .p-switch { display: block; margin: 0 0 16px; }
#heroSection #heroTabs {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0;
  width: 100%; padding: 0; overflow: visible; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: var(--paper);
}
#heroSection #heroTabs .p-switch-tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 4px; width: 100%; min-width: 0; min-height: 72px; padding: 10px 16px;
  border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  color: var(--ink-2); background: transparent; text-align: left; white-space: normal;
  transition: background-color .15s ease, border-color .15s ease;
}
#heroSection #heroTabs .p-switch-tab + .p-switch-tab { border-left: 0; }
#heroSection #heroTabs .p-switch-name { font-size: 16px; line-height: 1.25; font-weight: 600; }
#heroSection #heroTabs .p-switch-desc { display: block; font-size: 14px; line-height: 1.35; font-weight: 400; color: var(--muted); }
#heroSection #heroTabs .p-switch-tab:hover { background: var(--paper-2); }
#heroSection #heroTabs .p-switch-tab[aria-selected=true] { background: transparent; border-bottom-color: var(--green); box-shadow: none; color: var(--ink); }
#heroSection #heroTabs .p-switch-tab[aria-selected=true] .p-switch-desc { color: var(--ink-2); }
#heroSection :is(button,a,[tabindex]):focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
#heroSection #heroTabs .p-switch-tab:focus-visible { outline-offset: -4px; }
#heroSection .p-hero-grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.9fr);
  gap: 28px; align-items: center; min-width: 0;
}
/* Direction changes keep the composition stationary; screen fades stay inside their viewport. */
#heroSection .p-hero-grid.is-from-left, #heroSection .p-hero-grid.is-from-right { animation: none; }
#heroSection .p-hero-text { padding-top: 0; min-width: 0; }
#heroSection #heroH1 { margin: 0; max-width: 24ch; min-height: 2.36em; font-size: 28px; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
#heroSection .p-hero-lead { margin: 14px 0 0; max-width: 46ch; min-height: 6em; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
#heroSection .p-hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
#heroSection .p-hero-acts .btn { min-height: 44px; font-size: 14px; border-radius: var(--r); }
#heroSection .p-quiet-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
#heroSection .p-hero-catalog { margin: 12px 0 0; }
#heroSection .p-hero-catalog a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
#heroSection .p-stage { min-width: 0; }
#heroSection .p-tour { border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 4px 16px rgba(21,24,27,.06); overflow: hidden; }
#heroSection #heroTour .p-tour-viewport { width: 100%; height: auto; aspect-ratio: 16/9; background: var(--paper); }
#heroSection #heroTour .p-tour-cap { height: 54px; min-height: 54px; align-items: center; gap: 12px; padding: 4px 8px 2px 12px; background: var(--paper-2); }
#heroSection #heroTour .p-tour-thesis { font-size: 14px; line-height: 1.4; margin: 0; }
#heroSection #heroTour .p-tour-meta { padding: 0 8px 4px; background: var(--paper-2); }
#heroSection #heroTour :is(.p-tour-mark,.p-tour-auto,.p-tour-video-control) { min-height: 44px; }
#heroSection #heroTour .p-tour-video-control { min-width: 44px; }
#heroSection .p-proofbar {
  display: grid; grid-template-columns: 160px minmax(0,1fr) max-content;
  align-items: center; gap: 16px; margin: 20px 0 0; padding: 16px 0 0;
  border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent;
}
#heroSection .p-proofbar-lab { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--muted); }
#heroSection .p-logos { display: flex; flex-wrap: nowrap; justify-content: space-around; align-items: center; gap: 18px; min-width: 0; }
#heroSection .p-logos img { display: block; object-fit: contain; width: 110px; max-width: 110px; height: 30px; max-height: 30px; }
#heroSection .p-proofbar-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1100px) {
  #heroSection .p-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0,1.6fr); gap: 24px; }
  #heroSection #heroH1 { font-size: 25px; }
  #heroSection .p-proofbar { grid-template-columns: 1fr auto; gap: 10px 20px; }
  #heroSection .p-logos { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 24px; }
  #heroSection .p-proofbar-link { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 768px) {
  #heroSection { padding-top: 18px; padding-bottom: 20px; }
  #heroSection .p-hero-claim { font-size: 32px; }
  #heroSection .p-hero-positioning { margin-bottom: 16px; }
  #heroSection .p-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  #heroSection .p-hero-text { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding-top: 0; }
  #heroSection #heroH1 { font-size: 26px; min-height: 0; max-width: 100%; }
  #heroSection .p-hero-lead { margin: 0; min-height: 0; max-width: 100%; grid-column: 1; }
  #heroSection .p-hero-acts { grid-column: 2; grid-row: 1 / 3; align-content: start; margin: 0; }
  #heroSection .p-hero-catalog { grid-column: 2; margin: 0; }
  #heroSection .p-proofbar { grid-template-columns: 1fr auto; gap: 10px; }
  #heroSection .p-logos { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  #heroSection .p-proofbar-link { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  #heroSection .p-hero-kicker { max-width: 320px; margin-bottom: 8px; font-size: 14px; }
  #heroSection .p-hero-claim { font-size: clamp(25px, 6.67vw, 32px); line-height: 1.16; letter-spacing: -.025em; }
  #heroSection .p-hero-descriptions { margin-top: 12px; }
  #heroSection .p-hero-summary { font-size: 16px; line-height: 1.45; }
  #heroSection .p-hero-flexibility { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  #heroSection .p-switch { margin-bottom: 16px; }
  #heroSection #heroTabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #heroSection #heroTabs .p-switch-tab { align-items: center; justify-content: center; min-height: 48px; padding: 12px 2px; text-align: center; }
  #heroSection #heroTabs .p-switch-name { font-size: 14px; letter-spacing: -.025em; }
  /* The full description remains available to assistive technology via aria-describedby. */
  #heroSection #heroTabs .p-switch-desc { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  #heroSection .p-hero-text { display: block; }
  #heroSection #heroH1 { font-size: 24px; min-height: 2.36em; max-width: 28ch; text-wrap: wrap; }
  #heroSection .p-hero-lead { font-size: 16px; line-height: 1.45; min-height: 5.8em; margin-top: 10px; }
  #heroSection .p-hero-acts { display: flex; gap: 4px 16px; margin-top: 14px; }
  #heroSection .p-hero-acts .btn { width: 100%; }
  #heroSection .p-hero-catalog { margin: 0; }
  #heroSection .p-hero-catalog a { min-height: 36px; }
  #heroSection .p-proofbar { margin-top: 16px; padding-top: 12px; }
  #heroSection .p-logos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  #heroSection .p-logos img { width: 100%; max-width: 100px; height: 28px; justify-self: center; }
  #heroSection .p-proofbar-link { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #heroSection *, #heroSection *::before, #heroSection *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}

/* One centered text group on desktop; preserve the mobile copy / media / actions order. */
#heroSection .p-hero-flexibility { max-width: none; }
#heroSection .p-hero-grid { grid-template-areas: "copy media"; }
#heroSection .p-hero-text { grid-area: copy; }
#heroSection .p-stage { grid-area: media; }
#heroSection .p-hero-catalog { display: flex; justify-content: flex-start; margin: 4px 0 0; text-align: left; }
#heroSection .p-hero-catalog a { min-height: 36px; font-weight: 400; border: 0; text-decoration: none; box-shadow: none; }
#heroSection .p-hero-catalog a:hover { color: var(--green-deep); }
#heroSection #heroTour .p-tour-auto {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 auto; width: auto; padding: 0 8px; margin-left: auto;
  font-size: 12px; white-space: nowrap;
}
#heroSection #heroTour .p-tour-thesis { flex: 1; min-width: 0; }
#heroSection #heroTour .p-tour-meta .p-tour-marks { flex: 1 1 100%; gap: 1px; }
#heroSection #heroTour .p-tour-mark { padding-inline: 4px; }
@media (max-width:768px) {
  #heroSection .p-hero-grid { grid-template-areas: "copy" "media" "actions" "catalog"; row-gap: 16px; }
  #heroSection .p-hero-text { display: contents; }
  #heroSection .p-hero-copy { grid-area: copy; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: 96px; }
  #heroSection .p-hero-lead { grid-column: 2; margin-top: 0; }
  #heroSection .p-hero-acts { grid-area: actions; margin: 0; gap: 12px 20px; }
  #heroSection .p-hero-catalog { grid-area: catalog; margin-top: -8px; text-align: left; }
}
@media (max-width:600px) {
  #heroSection .p-hero-copy { display: block; }
  #heroSection .p-hero-lead { margin-top: 10px; }
  #heroSection #heroTabs { grid-template-columns: 1.15fr 1fr 1fr; }
  #heroSection #heroTabs .p-switch-name { white-space: nowrap; }
  #heroSection .p-hero-grid { row-gap: 14px; }
  #heroSection .p-hero-acts { gap: 4px 16px; }
  #heroSection #heroTour .p-tour-cap { position: relative; height: 70px; min-height: 70px; gap: 6px; }
  #heroSection #heroTour .p-tour-auto { position: absolute; right: 8px; bottom: -44px; padding-inline: 2px; font-size: 12px; }
  #heroSection #heroTour .p-tour-meta { padding-right: 102px; }
}
@media(max-width:360px) {
  #heroSection #heroTabs { display: flex; overflow-x: auto; }
  #heroSection #heroTabs .p-switch-tab { flex: 0 0 auto; width: auto; padding-inline: 10px; }
}
#heroSection .p-proofbar-lab { grid-column: 1; grid-row: 1; }

/* Compact desktop rhythm scales with window height, without scaling product media. */
@media (min-width: 769px) {
  #heroSection { padding-top: clamp(12px, calc(3.333vh - 18px), 18px); }
  #heroSection .p-hero-descriptions { margin-top: clamp(10px, calc(2.222vh - 10px), 14px); }
  #heroSection .p-hero-flexibility { margin-top: 4px; }
  #heroSection .p-hero-positioning,
  #heroSection .p-switch { margin-bottom: clamp(8px, calc(4.444vh - 32px), 16px); }
  #heroSection #heroTabs .p-switch-tab { min-height: 64px; padding-block: 8px; }
  #heroSection .p-proofbar { margin-top: 6px; padding-top: 8px; }
}
@media (min-width: 1101px) and (pointer: fine) {
  #heroSection #heroTour .p-tour-cap { height: 46px; min-height: 46px; padding-block: 3px; }
  #heroSection #heroTour .p-tour-auto { height: 36px; min-height: 36px; }
  #heroSection #heroTour .p-tour-mark { min-height: 36px; padding-block: 4px; }
  #heroSection #heroTour .p-tour-meta { padding-bottom: 2px; }
}
@media (max-width: 768px) {
  #heroSection .p-proofbar { margin-top: 12px; padding-top: 10px; }
}
