.hero.hero-carousel .hero-image-container,
.hero.hero-carousel .hero-image-container.hero-svg-frame {
    aspect-ratio: auto;
    border: 1px solid #d6dceb;
    border-radius: 20px;
    background: #f1f4f8;
    box-shadow: 0 12px 32px rgba(49, 46, 91, .07);
}
.hero.hero-carousel .hero-image-container.hero-svg-frame {
    background: linear-gradient(145deg, #edf0f8 0%, #e7eaf5 48%, #dee6f0 100%);
}
.hero.hero-carousel .hero-image-bg { display: none; }
.hero.hero-carousel .hero-map-mockup {
    position: relative;
    inset: auto;
    padding: 0;
}
.hero.hero-carousel .mockup-toolbar {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: .6rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    border-radius: 0;
    background: rgba(255, 255, 255, .2);
    box-shadow: none;
}
.hero.hero-carousel .compare-format-tabs {
    margin-left: 0;
    padding: 3px;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .48);
}
.hero.hero-carousel .compare-tab {
    min-width: 76px;
    min-height: 44px;
    padding: .4rem .9rem;
    border-radius: 9px;
    color: #58647b;
    font-size: .75rem;
    transition: background-color 180ms ease, color 180ms ease;
}
.hero.hero-carousel .compare-tab.active {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, .16);
}
.hero.hero-carousel .compare-tab:not(.active):hover {
    background: rgba(99, 102, 241, .08);
    color: #4338ca;
}
.hero.hero-carousel .compare-tab:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}
.hero.hero-carousel .hero-compare {
    flex: none;
    height: clamp(280px, 44vh, 430px);
    min-height: 0;
    border-radius: 0;
}
.hero-dxf-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .75rem;
    padding: .5rem .875rem;
    font-size: .625rem;
    line-height: 1.5;
    color: #58647b;
    background: #f1f4f8;
}
.hero-dxf-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero-dxf-source a:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.hero-svg-frame .hero-dxf-source { display: none; }
#hero-layers.hero-svg {
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 19px 19px;
    background: transparent;
    color: #0f172a;
}
.hero-svg-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.125rem .25rem;
    z-index: 2;
}
.hero-svg-heading > div:first-child { min-width: 0; }
.hero-svg-place { font-size: .875rem; font-weight: 700; letter-spacing: -.02em; }
.hero-svg-meta { margin-top: .2rem; font-size: .65rem; color: #64748b; }
.hero-svg-actions { display: flex; flex: 0 0 auto; gap: .25rem; }
.hero-svg-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #475569;
    background: rgba(255, 255, 255, .65);
    cursor: pointer;
}
.hero-svg-action:hover { color: #4f46e5; border-color: #c7d2fe; }
.hero-svg-action[hidden] { display: none; }
.hero-svg-action:disabled { opacity: .4; cursor: default; }
.hero-svg :focus-visible { outline: 3px solid #6366f1; outline-offset: 3px; }
.hero-svg-stage {
    position: relative;
    flex: none;
    height: clamp(280px, 44vh, 430px);
    min-height: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 72%, rgba(99,102,241,.1), transparent 68%);
}
.hero-svg-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(100, 116, 139, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 116, 139, .055) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at 50% 55%, #000 15%, transparent 75%);
}
.hero-svg-fallback { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.hero-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-svg-viewport { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform-origin: 0 0; transform-style: preserve-3d; transition: transform 850ms cubic-bezier(.22,.68,0,1); }
.hero-svg-stack {
    position: relative;
    width: 900px;
    height: 700px;
    margin-left: -450px;
    margin-top: -350px;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateZ(0deg);
    transition: transform 850ms cubic-bezier(.22,.68,0,1);
}
.hero-svg-plane {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    opacity: 1;
    background: transparent;
    transform: translateZ(0px);
    transition: transform 850ms cubic-bezier(.22,.68,0,1), opacity 500ms ease, background-color 650ms ease, border-color 650ms ease;
}
.hero-svg-plane svg { display: block; width: 100%; height: 100%; }
.hero-svg-plane:first-child { background: #fff; }
.hero-svg-plane.is-muted { opacity: 0; }
.hero-svg-stage.is-separated .hero-svg-stack,
.hero-svg-stage.is-tilted .hero-svg-stack { transform: rotateX(55deg) rotateZ(-45deg); }
.hero-svg-stage.is-separated .hero-svg-plane {
    background: #fff;
    border-color: #d7dde8;
    transform: translateZ(var(--layer-z));
}
.hero-svg-stage.is-separated .hero-svg-plane.is-muted { transform: translateZ(calc(var(--layer-z) - 55px)); }
.hero-svg-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.hero-svg-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .375rem;
    padding: .5rem 1rem .75rem;
}
.hero-svg-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 44px;
    padding: .4rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .5);
    font: 600 .66rem 'Inter', sans-serif;
    color: #475569;
    cursor: pointer;
}
.hero-svg-layer::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--layer-color); }
.hero-svg-layer[aria-pressed="true"] { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }
.hero-svg-layer:hover { border-color: #a5b4fc; }
.hero-svg-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .65rem 1rem; border-top: 1px solid rgba(148, 163, 184, .2); font-size: .6rem; color: #566078; }
.hero-svg-source a { color: inherit; text-decoration: none; }
.hero-svg-source a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .hero-svg-stage { height: clamp(280px, 82vw, 390px); }
    .hero-svg-heading { padding: .85rem .85rem .25rem; }
    .hero-svg-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-right: .75rem; padding-left: .75rem; }
    .hero-svg-layer { font-size: .6rem; gap: .25rem; }
}
@media (max-width: 380px) {
    .hero-svg-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-svg-layer { font-size: .65rem; }
    .hero-svg-place { font-size: .8rem; }
}
@media (max-height: 600px) and (orientation: landscape) {
    .hero-svg-stage, .hero.hero-carousel .hero-compare { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-svg-viewport, .hero-svg-stack, .hero-svg-plane, .hero.hero-carousel .compare-tab { transition: none; }
}
