/* Sergey Solutions — Creative Engineering Workbench
   Home-page-only visual layer. Existing shared styles remain untouched. */

.home-workbench {
    --wb-display: 'Syne', 'Heebo', system-ui, sans-serif;
    --wb-mono: 'DM Mono', 'Heebo', ui-monospace, monospace;
    --wb-body: Inter, 'Segoe UI', Arial, sans-serif;
    --wb-accent: #00e8d4;
    --wb-warning: #f5c842;
    --wb-danger: #ff4f72;
    --wb-panel: rgba(12, 15, 22, .90);
    --wb-panel-2: rgba(17, 21, 30, .84);
    --wb-line: rgba(255, 255, 255, .10);
    --wb-soft: rgba(255, 255, 255, .055);
    --wb-ink: #f3f6ff;
    --wb-muted: #8b93a7;
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-top: 1px;
}

[data-theme="light"] .home-workbench {
    --wb-panel: rgba(255, 255, 255, .94);
    --wb-panel-2: rgba(247, 249, 252, .94);
    --wb-line: rgba(8, 15, 26, .12);
    --wb-soft: rgba(8, 15, 26, .055);
    --wb-ink: #111723;
    --wb-muted: #687083;
}

body {
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(0, 232, 212, .025) 50%, transparent calc(50% + 1px)),
        var(--bg);
}

.home-workbench .matrix-canvas {
    opacity: .12;
}

/* Home navigation shell */
nav {
    top: 14px;
    left: clamp(16px, 2.5vw, 44px);
    right: clamp(16px, 2.5vw, 44px);
    width: auto;
    padding: .72rem .85rem .72rem 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
}

nav.sc {
    background: rgba(7, 9, 14, .80);
    border-color: var(--wb-line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

[data-theme="light"] nav.sc {
    background: rgba(255, 255, 255, .88);
}

.nav-logo {
    font-family: var(--wb-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .035em;
}

.logo-box {
    border-radius: 4px;
    transform: rotate(-3deg);
}

.nav-links {
    gap: clamp(.9rem, 1.65vw, 1.7rem);
}

.nav-links a {
    font-family: var(--wb-mono);
    font-size: .72rem;
    letter-spacing: .06em;
}

.nav-cta {
    border-radius: 5px;
    padding: .58rem .9rem;
}

/* Shared home section system */
.home-workbench section,
.home-workbench .wb-section {
    width: min(1600px, calc(100% - clamp(40px, 7vw, 132px)));
    max-width: none;
    margin: 0 auto;
    padding: clamp(88px, 8vw, 142px) 0;
}

.home-workbench .divider {
    width: min(1600px, calc(100% - clamp(40px, 7vw, 132px)));
    margin: 0 auto;
    background: var(--wb-line);
}

.home-workbench .s-label,
.home-workbench .hero-label {
    font-family: var(--wb-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
}

.home-workbench .s-title,
.home-workbench .hero-title {
    font-family: var(--wb-display);
    letter-spacing: -.055em;
}

.home-workbench .s-title {
    max-width: 900px;
    font-size: clamp(3rem, 5.8vw, 6rem);
    line-height: .93;
    margin-bottom: 1.25rem;
}

.home-workbench .s-sub {
    max-width: 620px;
    margin-bottom: 0;
    font-family: var(--wb-body);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.7;
}

.wb-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(42px, 5vw, 76px);
}

.wb-section-code {
    display: grid;
    gap: .35rem;
    min-width: 170px;
    padding: 1rem 0 1rem 1.2rem;
    border-left: 1px solid var(--wb-line);
    font-family: var(--wb-mono);
    font-size: .68rem;
    letter-spacing: .13em;
    color: var(--wb-muted);
    text-align: left;
}

[dir="rtl"] .wb-section-code {
    padding: 1rem 1.2rem 1rem 0;
    border-left: 0;
    border-right: 1px solid var(--wb-line);
    text-align: right;
}

/* Hero */
#hero.wb-hero {
    width: min(1740px, calc(100% - clamp(30px, 4vw, 72px)));
    max-width: none;
    min-height: min(960px, 100svh);
    margin: 0 auto;
    padding: clamp(118px, 12vh, 160px) clamp(10px, 2vw, 28px) 68px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: visible;
}

.wb-hero-layout {
    display: grid;
    grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
    gap: clamp(50px, 6vw, 108px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.wb-hero-copy.hero-in {
    width: auto;
    margin: 0;
    padding: 0;
    max-width: 700px;
}

.home-workbench .hero-label {
    margin-bottom: 1.55rem;
}

.home-workbench .hero-title {
    font-size: clamp(4.6rem, 7.35vw, 8.6rem);
    line-height: .83;
    max-width: 780px;
    margin-bottom: 1.8rem;
}

[lang="he"] .home-workbench .hero-title {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(3.65rem, 6.1vw, 7.1rem);
    letter-spacing: -.045em;
    line-height: .91;
}

.home-workbench .hero-title em {
    color: var(--wb-accent);
    -webkit-text-stroke: 0;
    position: relative;
}

.home-workbench .hero-title em::after {
    content: '';
    position: absolute;
    inset-inline: 2px;
    bottom: -.08em;
    height: .045em;
    background: var(--wb-accent);
    opacity: .55;
}

.home-workbench .hero-sub {
    max-width: 640px;
    margin-bottom: 2rem;
    font-family: var(--wb-body);
    font-size: clamp(1.08rem, 1.35vw, 1.34rem);
    line-height: 1.65;
    color: var(--wb-muted);
}

.home-workbench .hero-tags {
    gap: .5rem;
    margin-bottom: 2rem;
}

.home-workbench .htag {
    border-radius: 4px;
    padding: .42rem .65rem;
    font-family: var(--wb-mono);
    font-size: .66rem;
    letter-spacing: .045em;
    color: var(--wb-muted);
    background: var(--wb-soft);
}

.home-workbench .btn-p,
.home-workbench .btn-s {
    min-height: 48px;
    border-radius: 5px;
    padding: .82rem 1.15rem;
    font-family: var(--wb-mono);
    font-size: .78rem;
    letter-spacing: .035em;
}

.home-workbench .btn-p {
    box-shadow: 0 0 0 1px rgba(0, 232, 212, .18) inset;
}

.wb-hero-signature {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: .7rem 1.25rem;
    margin-top: 2.9rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--wb-line);
    font-family: var(--wb-mono);
    font-size: .61rem;
    letter-spacing: .14em;
    color: var(--wb-muted);
}

.wb-hero-signature span::before {
    content: '■';
    color: var(--wb-accent);
    font-size: .55em;
    margin-inline-end: .55rem;
}

.wb-engine {
    min-width: 0;
    border: 1px solid var(--wb-line);
    background: var(--wb-panel);
    box-shadow: 0 38px 110px rgba(0, 0, 0, .34);
    position: relative;
}

.wb-engine::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 88px;
    height: 3px;
    background: var(--wb-accent);
    z-index: 4;
}

.wb-engine__bar {
    min-height: 46px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--wb-line);
    font-family: var(--wb-mono);
    font-size: .62rem;
    letter-spacing: .115em;
    color: var(--wb-muted);
}

.wb-engine__id {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--wb-ink);
}

.wb-engine__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wb-accent);
    box-shadow: 0 0 16px rgba(0, 232, 212, .8);
}

.wb-engine__state {
    color: var(--wb-accent);
}

.wb-engine__screen {
    margin: clamp(10px, 1.3vw, 18px);
    position: relative;
    aspect-ratio: 16 / 8.9;
    overflow: hidden;
    background: #05070a;
}

.home-workbench .hero-cinematic {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #05070a;
}

.home-workbench .hero-cinematic__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82) contrast(1.08) brightness(.88);
}

.wb-engine__screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 232, 212, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 232, 212, .055) 1px, transparent 1px);
    background-size: 44px 44px;
    mix-blend-mode: screen;
}

.wb-engine__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.wb-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--wb-accent);
    opacity: .88;
}

.wb-corner--tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.wb-corner--tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.wb-corner--bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.wb-corner--br { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

.wb-engine__readout {
    position: absolute;
    inset-inline: 16px;
    bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--wb-mono);
    font-size: .56rem;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .68);
}

.wb-pipeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto .75fr auto .75fr auto 1fr;
    align-items: stretch;
    border-top: 1px solid var(--wb-line);
}

.wb-pipeline__stage {
    min-width: 0;
    min-height: 72px;
    padding: .85rem .75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    font-family: var(--wb-mono);
    font-size: .64rem;
    letter-spacing: .08em;
    color: var(--wb-muted);
    transition: color .3s ease, background-color .3s ease;
}

.wb-pipeline__stage.is-active {
    color: var(--wb-ink);
    background: rgba(0, 232, 212, .07);
}

.wb-pipeline__stage.is-active .wb-pipeline__n {
    color: var(--wb-accent);
}

.wb-pipeline__n {
    font-size: .54rem;
    color: color-mix(in srgb, var(--wb-muted) 70%, transparent);
}

.wb-pipeline__arrow {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--wb-muted) 50%, transparent);
    font-family: var(--wb-mono);
}

.wb-hero-index {
    position: absolute;
    left: clamp(12px, 2vw, 28px);
    right: clamp(12px, 2vw, 28px);
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--wb-mono);
    font-size: .56rem;
    letter-spacing: .13em;
    color: var(--wb-muted);
}

/* Services */
.home-workbench .svc-grid.wb-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--wb-line);
    border-radius: 0;
    background: var(--wb-line);
    overflow: hidden;
}

.home-workbench .svc-card.wb-service-card {
    height: auto;
    min-height: 560px;
    padding: 0;
    display: grid;
    grid-template-rows: auto 190px 1fr auto;
    background: var(--wb-panel);
    overflow: hidden;
    isolation: isolate;
}

.home-workbench .svc-card.wb-service-card::after {
    display: none;
}

.wb-service-card::before {
    content: '';
    position: absolute;
    inset: var(--spot-y, 50%) auto auto var(--spot-x, 50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 232, 212, .055);
    filter: blur(60px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: -1;
}

.wb-service-card:hover::before {
    opacity: 1;
}

.wb-service-top {
    min-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1.1rem;
    border-bottom: 1px solid var(--wb-line);
    font-family: var(--wb-mono);
    font-size: .59rem;
    letter-spacing: .1em;
    color: var(--wb-muted);
}

.wb-service-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.wb-service-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--wb-accent);
}

.wb-service-visual {
    min-height: 190px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--wb-line);
    background:
        linear-gradient(var(--wb-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--wb-soft) 1px, transparent 1px);
    background-size: 32px 32px;
}

.wb-service-copy {
    padding: clamp(1.5rem, 2vw, 2.25rem);
}

.home-workbench .svc-card h3 {
    margin-bottom: .75rem;
    font-family: var(--wb-display);
    font-size: clamp(1.85rem, 2.1vw, 2.65rem);
    letter-spacing: -.045em;
    line-height: 1;
}

.home-workbench .svc-card p {
    max-width: 640px;
    margin-bottom: 1.3rem;
    font-family: var(--wb-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wb-muted);
}

.home-workbench .svc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1.5rem;
}

.home-workbench .svc-list li,
.home-workbench .svc-card:hover ul li {
    padding-inline-start: 1rem;
    font-family: var(--wb-mono);
    font-size: .72rem;
    line-height: 1.55;
    color: var(--wb-muted);
}

.home-workbench .svc-list li::before {
    content: '+';
    color: var(--wb-accent);
}

[dir="rtl"] .home-workbench .svc-list li::before {
    content: '+';
}

.wb-service-linkout {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: 0 1.1rem;
    border-top: 1px solid var(--wb-line);
}

.wb-service-linkout:has(a[href=""]) {
    display: none;
}

/* Service visual: code */
.wb-terminal {
    width: min(82%, 470px);
    border: 1px solid var(--wb-line);
    background: rgba(0, 0, 0, .28);
    box-shadow: 12px 12px 0 rgba(0, 232, 212, .045);
}

.wb-terminal__bar {
    height: 30px;
    padding: 0 .7rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--wb-line);
}

.wb-terminal__bar span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wb-muted);
    opacity: .45;
}

.wb-terminal__line {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: .7rem;
    padding: .36rem .75rem;
    font-family: var(--wb-mono);
    font-size: .65rem;
    color: var(--wb-muted);
}

.wb-terminal__line b {
    font-weight: 400;
    opacity: .4;
}

.wb-terminal__line.is-accent span {
    color: var(--wb-accent);
}

/* Service visual: automation */
.wb-flow {
    width: min(84%, 540px);
    display: grid;
    grid-template-columns: 1fr minmax(28px, .45fr) 1fr minmax(28px, .45fr) 1fr;
    align-items: center;
}

.wb-flow__node {
    min-height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--wb-line);
    background: var(--wb-panel);
    font-family: var(--wb-mono);
    font-size: .64rem;
    color: var(--wb-muted);
}

.wb-flow__node.is-core {
    border-color: rgba(0, 232, 212, .55);
    color: var(--wb-accent);
    box-shadow: 0 0 32px rgba(0, 232, 212, .08);
}

.wb-flow__line {
    height: 1px;
    background: var(--wb-line);
    position: relative;
}

.wb-flow__line::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--wb-accent);
    border-right: 1px solid var(--wb-accent);
    transform: translateY(-50%) rotate(45deg);
}

/* Service visual: AI frames */
.wb-frames {
    width: min(76%, 420px);
    height: 120px;
    position: relative;
}

.wb-frame {
    position: absolute;
    width: 58%;
    height: 86px;
    display: flex;
    align-items: flex-end;
    padding: .65rem;
    border: 1px solid var(--wb-line);
    background: var(--wb-panel);
    font-family: var(--wb-mono);
    font-size: .59rem;
    letter-spacing: .08em;
    color: var(--wb-muted);
}

.wb-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(0, 232, 212, .22);
}

.wb-frame--back { left: 5%; top: 2px; opacity: .55; }
.wb-frame--mid { left: 21%; top: 17px; opacity: .78; }
.wb-frame--front { left: 37%; top: 32px; color: var(--wb-accent); border-color: rgba(0, 232, 212, .48); }

.wb-cube {
    width: min(72%, 410px);
    color: var(--wb-accent);
    filter: drop-shadow(0 0 18px rgba(0, 232, 212, .16));
}

/* Process */
.wb-process-output {
    min-width: 270px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    font-family: var(--wb-mono);
    font-size: .63rem;
    letter-spacing: .1em;
    color: var(--wb-muted);
}

.wb-process-output i {
    height: 1px;
    background: var(--wb-line);
    position: relative;
}

.wb-process-output i::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--wb-accent);
    border-right: 1px solid var(--wb-accent);
    transform: rotate(45deg);
}

.home-workbench .proc-steps.wb-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--wb-line);
    background: var(--wb-line);
}

.home-workbench .proc-steps.wb-process::before {
    display: none;
}

.home-workbench .proc-step {
    min-width: 0;
    padding: clamp(1.6rem, 2.3vw, 2.5rem);
    text-align: start;
    background: var(--wb-panel);
    border-inline-end: 1px solid var(--wb-line);
}

.home-workbench .proc-step:last-child {
    border-inline-end: 0;
}

.home-workbench .step-c {
    width: auto;
    height: auto;
    margin: 0 0 4rem;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--wb-mono);
    font-size: .67rem;
    color: var(--wb-accent);
}

.home-workbench .proc-step:hover .step-c {
    background: transparent;
    color: var(--wb-accent);
    box-shadow: none;
}

.home-workbench .proc-step h3 {
    font-family: var(--wb-display);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: .8rem;
}

.home-workbench .proc-step p {
    font-family: var(--wb-body);
    font-size: .95rem;
    color: var(--wb-muted);
}

/* Contact */
.wb-contact-wrap.ct-wrap {
    grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.22fr);
    gap: clamp(50px, 7vw, 120px);
    align-items: center;
}

.wb-contact-intro .s-sub {
    margin-bottom: 2.2rem;
}

.wb-contact-route {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    max-width: 650px;
    gap: .55rem;
}

.wb-contact-route div {
    display: grid;
    gap: .2rem;
    font-family: var(--wb-mono);
}

.wb-contact-route div span {
    font-size: .54rem;
    color: var(--wb-accent);
}

.wb-contact-route div b {
    font-size: .61rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--wb-muted);
}

.wb-contact-route i {
    height: 1px;
    background: var(--wb-line);
}

.home-workbench .ct-form.wb-brief-panel {
    padding: 0;
    border-radius: 0;
    border-color: var(--wb-line);
    background: var(--wb-panel);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .24);
}

.home-workbench .ct-form.wb-brief-panel::before {
    display: none;
}

.wb-brief-panel__bar {
    min-height: 45px;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--wb-line);
    font-family: var(--wb-mono);
    font-size: .58rem;
    letter-spacing: .11em;
    color: var(--wb-muted);
}

.home-workbench #fContent,
.home-workbench .f-ok {
    padding: clamp(1.65rem, 2.8vw, 3rem);
}

.home-workbench .ft {
    font-family: var(--wb-display);
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    letter-spacing: -.045em;
}

.home-workbench .fs {
    font-family: var(--wb-body);
    font-size: .96rem;
    color: var(--wb-muted);
}

.home-workbench .fg label {
    font-family: var(--wb-mono);
    font-size: .64rem;
}

.home-workbench .fg input,
.home-workbench .fg textarea,
.home-workbench .fg select {
    min-height: 48px;
    border-radius: 2px;
    background: var(--wb-soft);
    border-color: var(--wb-line);
    font-family: var(--wb-body);
    cursor: text;
}

.home-workbench .fg textarea {
    min-height: 125px;
}

.home-workbench .fsub {
    min-height: 50px;
    border-radius: 3px;
    font-family: var(--wb-mono);
    font-size: .78rem;
    letter-spacing: .05em;
}

.home-workbench .fnote {
    font-family: var(--wb-mono);
    font-size: .6rem;
}

/* Optional sections inherit the same system */
.home-workbench .pf-card,
.home-workbench .ts-card,
.home-workbench .ab-card {
    border-radius: 0;
    border-color: var(--wb-line);
    background: var(--wb-panel);
}

/* Footer continuity (CSS only loads on Home) */
footer {
    width: min(1600px, calc(100% - clamp(40px, 7vw, 132px)));
    margin: 0 auto;
    padding: 2rem 0 2.8rem;
    border-top-color: var(--wb-line);
}

footer .f-logo {
    font-family: var(--wb-display);
}

footer .f-copy,
footer .f-links a {
    font-family: var(--wb-mono);
}

/* Active nav state set by home-workbench.js */
.nav-links a.wb-nav-active {
    color: var(--wb-accent);
}

/* 1366–1440 and compact desktops */
@media (max-width: 1440px) {
    #hero.wb-hero {
        width: calc(100% - 42px);
        min-height: 860px;
        padding-top: 120px;
    }

    .wb-hero-layout {
        grid-template-columns: minmax(360px, .86fr) minmax(500px, 1.14fr);
        gap: 48px;
    }

    .home-workbench .hero-title {
        font-size: clamp(4rem, 7vw, 6.8rem);
    }

    .home-workbench .svc-card.wb-service-card {
        min-height: 530px;
    }
}

@media (max-width: 1120px) {
    .wb-hero-layout {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    #hero.wb-hero {
        min-height: auto;
        padding-bottom: 88px;
    }

    .wb-hero-copy.hero-in {
        max-width: 850px;
    }

    .home-workbench .hero-title {
        max-width: 900px;
    }

    .wb-engine {
        max-width: 900px;
    }

    .home-workbench .svc-grid.wb-services {
        grid-template-columns: 1fr;
    }

    .home-workbench .proc-steps.wb-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-workbench .proc-step:nth-child(2) {
        border-inline-end: 0;
    }

    .home-workbench .proc-step:nth-child(-n+2) {
        border-bottom: 1px solid var(--wb-line);
    }

    .wb-contact-wrap.ct-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: .65rem .75rem;
    }

    #hero.wb-hero {
        width: calc(100% - 24px);
        max-width: none;
        margin-top: 0;
        padding: 110px 0 68px;
        display: grid;
    }

    .wb-hero-layout {
        gap: 36px;
    }

    .wb-hero-copy.hero-in {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .home-workbench .hero-label {
        font-size: .62rem;
        margin-bottom: 1rem;
    }

    .home-workbench .hero-title {
        font-size: clamp(3.3rem, 15vw, 5.2rem);
        line-height: .86;
        margin-bottom: 1.25rem;
    }

    [lang="he"] .home-workbench .hero-title {
        font-size: clamp(3rem, 13vw, 4.7rem);
        line-height: .94;
    }

    .home-workbench .hero-sub {
        font-size: 1rem;
        margin-bottom: 1.4rem;
    }

    .home-workbench .hero-tags {
        margin-bottom: 1.4rem;
    }

    .wb-hero-signature {
        grid-template-columns: repeat(2, max-content);
        margin-top: 2rem;
    }

    .wb-engine {
        width: 100%;
    }

    .wb-engine__bar {
        min-height: 40px;
        font-size: .53rem;
    }

    .wb-engine__screen {
        aspect-ratio: 16 / 10;
        margin: 8px;
    }

    .wb-pipeline {
        grid-template-columns: repeat(5, 1fr);
    }

    .wb-pipeline__arrow {
        display: none;
    }

    .wb-pipeline__stage {
        min-height: 60px;
        padding: .65rem .35rem;
        font-size: .48rem;
        text-align: center;
        align-items: center;
        border-inline-end: 1px solid var(--wb-line);
    }

    .wb-pipeline__stage:last-child {
        border-inline-end: 0;
    }

    .wb-hero-index {
        position: static;
        margin-top: 22px;
        font-size: .48rem;
    }

    .home-workbench section,
    .home-workbench .wb-section {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        padding: 78px 0;
    }

    .home-workbench .divider {
        width: calc(100% - 28px);
        margin: 0 auto;
    }

    .wb-section-head {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-bottom: 34px;
    }

    .wb-section-code,
    [dir="rtl"] .wb-section-code {
        width: 100%;
        min-width: 0;
        padding: .85rem 0 0;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--wb-line);
        grid-template-columns: auto auto;
        justify-content: space-between;
        text-align: start;
    }

    .home-workbench .s-title {
        font-size: clamp(2.7rem, 13vw, 4.4rem);
    }

    .home-workbench .svc-card.wb-service-card {
        min-height: 0;
        grid-template-rows: auto 165px 1fr auto;
    }

    .home-workbench .svc-list {
        grid-template-columns: 1fr;
    }

    .wb-service-copy {
        padding: 1.4rem;
    }

    .home-workbench .proc-steps.wb-process {
        grid-template-columns: 1fr;
    }

    .home-workbench .proc-step,
    .home-workbench .proc-step:nth-child(2),
    .home-workbench .proc-step:nth-child(-n+2) {
        border-inline-end: 0;
        border-bottom: 1px solid var(--wb-line);
    }

    .home-workbench .proc-step:last-child {
        border-bottom: 0;
    }

    .home-workbench .step-c {
        margin-bottom: 2rem;
    }

    .wb-process-output {
        min-width: 0;
        width: 100%;
    }

    .wb-contact-wrap.ct-wrap {
        gap: 40px;
    }

    .wb-contact-route {
        grid-template-columns: repeat(4, 1fr);
    }

    .wb-contact-route i {
        display: none;
    }

    .wb-contact-route div {
        padding-inline-end: .45rem;
        border-inline-end: 1px solid var(--wb-line);
    }

    .wb-contact-route div:last-child {
        border-inline-end: 0;
    }

    .home-workbench #fContent,
    .home-workbench .f-ok {
        padding: 1.35rem;
    }

    footer {
        width: calc(100% - 28px);
        padding-inline: 0;
    }
}

@media (max-width: 420px) {
    .home-workbench .hero-title {
        font-size: clamp(3rem, 14.5vw, 4rem);
    }

    .wb-engine__state {
        display: none;
    }

    .wb-pipeline__stage span:last-child {
        font-size: .43rem;
    }

    .wb-hero-index span:last-child {
        display: none;
    }

    .wb-terminal {
        width: 90%;
    }

    .wb-flow {
        width: 91%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wb-service-card::before {
        display: none;
    }
}
