/* Hero variant: panes (template/blocks/hero/panes.twig) — a folding screen: the slider pane (slides 1…N−2, the photo across the
   pane, the text on the empty side of the shot, page-coloured scrim behind it) spans two rows, two offer panes stand beside it
   (the last two slides, the cut-out photo on the right). Gaps — --et-seam (preset), corners — the media radius. Tokens only. */
.et-panes { display: grid; gap: var(--et-seam, 0.75rem); padding-block: var(--space-lg, 1.5rem); }
.et-panes--side { grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
.et-panes__main { grid-row: span 2; min-width: 0; }
.et-panes .et-hero { padding: 0; height: 100%; }
.et-panes .et-hero > .container { max-width: none; height: 100%; padding: 0; }
.et-panes .et-hero__slider { height: 100%; min-height: clamp(26rem, 38vw, 34rem); border-radius: var(--et-media-radius, var(--et-radius)); background: var(--et-surface-2); }
.et-panes .et-hero__slider::before { display: none; }
.et-panes .et-hero__slide { padding: 0; align-items: stretch; }
.et-panes .et-hero__slide-image { position: absolute; inset: 0; z-index: 0; display: block; }
.et-panes .et-hero__slide-image :is(picture, img) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.et-panes .et-hero__slide-content {
  position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
  width: min(52%, 34rem); padding: clamp(1.5rem, 3.6vw, 3.25rem); padding-bottom: 4.5rem; color: var(--et-text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--et-bg) 78%, transparent) 55%, transparent);
}
.et-panes .et-hero__slide-badge { align-self: flex-start; margin: 0 0 0.75rem; padding: 0; border: 0; background: none; backdrop-filter: none; color: var(--et-accent-text); }
.et-panes .et-hero__slide-badge i { display: none; }
.et-panes .et-hero__slide-title { font-family: var(--et-font-display); font-weight: var(--et-heading-weight, 400); font-size: var(--et-text-4xl); letter-spacing: var(--et-heading-tracking, 0); text-wrap: balance; }
.et-panes .et-hero__slide-text { max-width: 26em; color: var(--et-text-secondary); opacity: 1; font-size: var(--et-text-lg); }
.et-panes .et-hero__slide-btn { align-self: flex-start; }
.et-panes .et-hero__slide-btn:hover { box-shadow: none; transform: none; }
.et-panes .et-hero__arrow { background: color-mix(in srgb, var(--et-bg) 80%, transparent); color: var(--et-text); }
.et-panes .et-hero__dots { position: absolute; left: clamp(1.5rem, 3.6vw, 3.25rem); bottom: 0.75rem; z-index: 3; margin: 0; }
.et-panes .et-hero { position: relative; }

.et-panes__pane {
  position: relative; display: grid; align-content: end; gap: 0.25rem; min-height: 12.5rem; padding: 1.25rem 42% 1.25rem 1.375rem;
  overflow: hidden; border: var(--et-border-width, 1px) solid var(--et-border); border-radius: var(--et-media-radius, var(--et-radius));
  background: var(--et-surface); color: var(--et-text); text-decoration: none; transition: border-color var(--et-transition);
}
a.et-panes__pane:hover { border-color: var(--et-text-muted); color: var(--et-text); }
a.et-panes__pane:focus-visible { outline: 2px solid var(--et-accent); outline-offset: 2px; }
.et-panes__pane img { position: absolute; right: -4%; top: 50%; width: 48%; height: auto; aspect-ratio: 1; object-fit: contain; transform: translateY(-50%); transition: transform var(--et-motion-base, 0.3s); }
a.et-panes__pane:hover img { transform: translate(-6px, -50%); }
.et-panes__k { font-size: var(--et-text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--et-accent-text); }
.et-panes__pane--1 .et-panes__k { color: var(--et-sale, var(--et-accent-text)); }
.et-panes__h { position: relative; font: var(--et-heading-weight, 400) var(--et-text-xl)/1.25 var(--et-font-display); }
.et-panes__t { position: relative; font-size: var(--et-text-sm); color: var(--et-text-secondary); }

@media (max-width: 991.98px) {
  .et-panes--side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .et-panes__main { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .et-panes .et-hero__slider { min-height: 0; height: auto; aspect-ratio: auto; }
  .et-panes .et-hero__slide { position: absolute; flex-direction: column; }
  .et-panes .et-hero__slide--active { position: relative; }
  .et-panes .et-hero__slide-image { position: relative; order: -1; aspect-ratio: 16 / 10; }
  .et-panes .et-hero__slide-content { width: auto; padding: 1.25rem 1.25rem 3.5rem; background: var(--et-surface); text-align: start; align-items: flex-start; }
  .et-panes .et-hero__slide-title { font-size: var(--et-text-3xl); }
  .et-panes--side { grid-template-columns: minmax(0, 1fr); }
  .et-panes__pane { min-height: 9.5rem; padding-right: 38%; }
}
@media (prefers-reduced-motion: reduce) { .et-panes__pane img { transition: none; } }

/* ---- frame = monitor (port-75): the programme monitor of an editing suite ---- */
.et-panes--monitor .et-panes__main { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0.625rem; border-radius: calc(var(--et-media-radius, var(--et-radius)) + 6px);
  background: var(--et-surface); box-shadow: inset 0 0 0 var(--et-border-width, 1px) var(--et-border); }
.et-panes__hud { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0.5rem 0.625rem;
  font: 500 0.875rem/1 var(--et-font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--et-text-secondary); }
.et-panes__rec { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--et-text); }
.et-panes__rec::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--et-rec, #ff3b30); animation: et-panes-rec 1.6s steps(1) infinite; }
@keyframes et-panes-rec { 50% { opacity: 0.25; } }
/* the screen: always dark, a safe-area frame of four corners */
.et-panes--monitor .et-hero__slider { position: relative; isolation: isolate; background: #101114; color: #f2efe9; }
.et-panes--monitor .et-hero__slider::after { content: ""; position: absolute; inset: 18px; z-index: 2; pointer-events: none; border: 2px solid rgb(255 255 255 / 0.18); border-radius: 6px;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 34px 34px no-repeat, linear-gradient(#000 0 0) 100% 0 / 34px 34px no-repeat, linear-gradient(#000 0 0) 0 100% / 34px 34px no-repeat, linear-gradient(#000 0 0) 100% 100% / 34px 34px no-repeat;
  mask: linear-gradient(#000 0 0) 0 0 / 34px 34px no-repeat, linear-gradient(#000 0 0) 100% 0 / 34px 34px no-repeat, linear-gradient(#000 0 0) 0 100% / 34px 34px no-repeat, linear-gradient(#000 0 0) 100% 100% / 34px 34px no-repeat; }
.et-panes--monitor .et-hero__slide-content { color: #f2efe9; background: linear-gradient(90deg, rgb(16 17 20 / 0.86) 55%, transparent); }
.et-panes--monitor .et-hero__slide-text { color: #d8d5ce; }
.et-panes--monitor .et-hero__slide-badge { color: #9ff0e9; font-family: var(--et-font-mono, inherit); text-transform: uppercase; letter-spacing: 0.02em; }
/* the dots — clips of the V1 track: the current one is lit, the playhead runs over it for the slide interval */
.et-panes--monitor .et-hero__dots { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.375rem; }
.et-panes--monitor .et-hero__dots::before { content: "V1"; display: grid; place-items: center; min-width: 2.75rem; border-radius: 0.375rem; background: color-mix(in srgb, var(--et-clip-v, #2fd1c5) 30%, #101114); color: #f2efe9; font: 600 0.8125rem/1 var(--et-font-mono, monospace); }
.et-panes--monitor .et-hero__dot { position: relative; width: auto; height: 1.75rem; min-width: 0; margin: 0; border: 0; border-radius: 0.375rem; overflow: hidden; opacity: 1;
  background: color-mix(in srgb, var(--et-clip-v, #2fd1c5) 18%, #1c1e23); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.et-panes--monitor .et-hero__dot--active { background: color-mix(in srgb, var(--et-clip-v, #2fd1c5) 38%, #1c1e23); box-shadow: inset 0 0 0 2px var(--et-clip-v, #2fd1c5); }
.et-panes--monitor .et-hero__dot--active::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--et-rec, #ff3b30) 0 3px, rgb(255 59 48 / 0.35) 3px, transparent 12px); animation: et-panes-scrub var(--et-pane-interval, 7s) linear both; }
@keyframes et-panes-scrub { from { transform: translateX(0); } to { transform: translateX(calc(100% - 3px)); } }
.et-panes--monitor .et-hero:hover .et-hero__dot--active::after, .et-panes--monitor .et-hero:focus-within .et-hero__dot--active::after { animation-play-state: paused; }
/* the scope pane: a vectorscope, its trace in the two colours of the current look */
.et-panes__pane--scope { align-content: center; grid-template-columns: 8.25rem minmax(0, 1fr); column-gap: 0.875rem; padding: 1rem; }
.et-panes__pane--scope > :not(.et-panes__scope) { grid-column: 2; }
.et-panes__scope { grid-row: 1 / span 4; width: 8.25rem; height: 8.25rem; border-radius: 50%; background: radial-gradient(circle, #15171b 0 62%, #0d0e11 100%); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.1); }
.et-panes__ring { fill: none; stroke: rgb(255 255 255 / 0.22); stroke-width: 2; }
.et-panes__ring.is-in { stroke-dasharray: 6 6; }
.et-panes__cross { stroke: rgb(255 255 255 / 0.14); stroke-width: 2; }
.et-panes__skin { stroke: rgb(255 210 170 / 0.55); stroke-width: 3; stroke-linecap: round; }
.et-panes__targets rect { fill: none; stroke: rgb(255 255 255 / 0.4); stroke-width: 2; }
.et-panes__scope .et-grade-scope__trace { mix-blend-mode: screen; }
.et-panes__scope ellipse { fill: rgb(47 209 197 / 0.85); filter: blur(5px); }
.et-panes__scope .is-b { fill: rgb(255 170 120 / 0.85); }
.et-panes__scope .is-core { fill: rgb(255 255 255 / 0.7); filter: blur(4px); }
.et-panes__look { justify-self: start; padding: 0.1875rem 0.5rem; border-radius: 0.375rem; font: 600 var(--et-text-xs)/1.2 var(--et-font-mono, monospace); color: var(--et-text);
  background: linear-gradient(90deg, rgb(var(--et-grade-a, 47 209 197) / 0.35), rgb(var(--et-grade-b, 255 170 120) / 0.35)); }
@media (max-width: 767.98px) {
  .et-panes--monitor .et-hero__dots { left: 1rem; right: 1rem; bottom: 1rem; }
  .et-panes--monitor .et-hero__slide-content { background: #101114; }
  .et-panes__pane--scope { grid-template-columns: 6rem minmax(0, 1fr); }
  .et-panes__scope { width: 6rem; height: 6rem; }
}
@media (prefers-reduced-motion: reduce) { .et-panes__rec::before, .et-panes--monitor .et-hero__dot--active::after { animation: none; } }
html[data-motion="none"] :is(.et-panes__rec::before, .et-panes--monitor .et-hero__dot--active::after) { animation: none; }

/* frame lane «Нічна смуга» (port-76, prototype 76 «Смуга»): the product stands on a road in perspective (an inline SVG under the cut-out
   photo), the first side pane is a radar LED board ([data-et-led], js/blocks/hero/panes.js), the second has a reflective tape on top;
   the «My route» field under the slider ([data-et-range-quick], js/elbuz_range.js). Rims light under the headlight (--et-hl). */
.et-panes--lane .et-hero__slide-image { left: 40%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 420' preserveAspectRatio='none'%3E%3Cpath d='M250 0h100l250 420H0z' fill='%230f1113' fill-opacity='.72'/%3E%3Cpath d='M254 0 8 420M346 0l246 420' stroke='%23fafaf5' stroke-width='6' stroke-opacity='.85' fill='none'/%3E%3Cpath d='M300 0v420' stroke='%23e3ff70' stroke-width='8' stroke-dasharray='34 30' fill='none'/%3E%3C/svg%3E") center 8% / 102% 92% no-repeat; }
.et-panes--lane .et-hero__slide-image :is(picture, img) { object-fit: contain; object-position: center bottom; padding: 4% 8% 3%; filter: drop-shadow(0 30px 24px rgb(0 0 0 / .55)); }
.et-panes--lane .et-hero__slide-content { background: none; width: min(44%, 34rem); }
.et-panes--lane .et-hero__slider { min-height: clamp(30rem, 40vw, 36rem); background: color-mix(in srgb, var(--et-surface) 82%, transparent); }
.et-panes--lane .et-hero__slide-title { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3rem); line-height: 1.02; }
.et-panes--lane .et-hero__slide-text { font-size: var(--et-text-base, 1rem); }
.et-panes__main:has(.et-panes__route) { display: flex; flex-direction: column; }
.et-panes__main:has(.et-panes__route) > .et-hero { flex: 1; height: auto; }
.et-panes__route { position: relative; z-index: 3; flex: none; display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem 0.75rem; margin-top: var(--et-seam, 0.75rem); padding: 0.875rem 1rem;
  border-radius: var(--et-media-radius, var(--et-radius)); background: var(--et-surface); box-shadow: inset 0 0 0 1px var(--et-border); }
.et-panes__route label { display: grid; gap: 0.25rem; font-weight: 700; color: var(--et-text-secondary, var(--et-text)); }
.et-panes__route-f { display: inline-flex; align-items: center; gap: 0.375rem; height: 3.25rem; padding: 0 1rem 0 0.375rem; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--et-text); font: 800 1.2rem/1 var(--et-font-display); color: var(--et-text-muted); }
.et-panes__route-f input { width: 4.5rem; height: 100%; border: 0; background: none; color: var(--et-text); font: 800 1.75rem/1 var(--et-font-display); text-align: right; -moz-appearance: textfield; }
.et-panes__route-f input::-webkit-inner-spin-button { -webkit-appearance: none; }
.et-panes__route-f input[aria-invalid="true"] { color: var(--et-danger, var(--et-sale)); }
.et-panes__route .et-btn { min-height: 3.25rem; }
.et-panes__route output { flex-basis: 100%; min-height: 1.4em; font-weight: 700; color: var(--et-text); }
.et-panes--lane .et-panes__pane--1 { padding-right: 40%; background: #0b0c0d; color: #f4f4f1;
  box-shadow: inset 0 0 0 3px #0b0c0d, inset 0 0 0 6px color-mix(in srgb, #fff calc(var(--et-hl, 0) * 100%), #e9b100), 0 20px 40px -26px rgb(0 0 0 / .9); }
.et-panes--lane .et-panes__pane--1 .et-panes__k { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: #ffd36a; letter-spacing: .1em; }
.et-panes__timer { padding: 0.3rem 0.5rem; border-radius: 5px; background: #1d2023; color: #ffd36a; font: 700 0.9375rem/1 var(--et-font-display); letter-spacing: .04em; }
.et-panes--lane .et-panes__pane--1 .et-panes__h { font: italic 800 3.6rem/1 var(--et-font-display); letter-spacing: .02em; color: #d4ff3a; white-space: nowrap;
  filter: drop-shadow(0 0 6px rgb(212 255 58 / .7));
  -webkit-mask: radial-gradient(circle at center, #000 1.7px, transparent 2.2px) 0 0 / 5px 5px; mask: radial-gradient(circle at center, #000 1.7px, transparent 2.2px) 0 0 / 5px 5px; }
.et-panes--lane .et-panes__pane--1 .et-panes__t { color: #c9ccce; }
.et-panes--lane .et-panes__pane--2 { padding-top: 1.75rem; }
.et-panes--lane .et-panes__pane--2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, #fff calc(var(--et-hl, 0) * 100%), var(--et-tape, #fff)) 0 12px, var(--et-sale-bg, #ffb547) 12px 24px); }
@media (max-width: 767.98px) {
  .et-panes--lane .et-hero__slide-image { left: 0; top: 45%; }
  .et-panes--lane .et-hero__slide-content { width: 100%; }
  .et-panes--lane .et-panes__pane--1 .et-panes__h { font-size: 3rem; }
}
