:root {
    --so-bg: #f5f7fb;
    --so-surface: #ffffff;
    --so-border: #d9e2ef;
    --so-text: #102033;
    --so-muted: #64748b;
    --so-primary: #145ea8;
    --so-primary-strong: #0f477f;
    --so-success: #147a4d;
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    background: var(--so-bg);
    color: var(--so-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.so-page {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.so-page--encrypted {
    --so-encrypted-width: 100%;
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    pointer-events: none;
    clip-path: inset(0 calc(100% - var(--so-encrypted-width)) 0 0);
    user-select: none;
}

.so-encrypted-text {
    color: transparent !important;
    text-shadow: none !important;
}

.so-cipher-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.so-darkness-layer {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: var(--so-encrypted-width);
    background: linear-gradient(
        to right,
        rgba(8, 13, 19, 0.85) 0%,
        rgba(17, 24, 32, 0.78) max(0%, calc(100% - 170px)),
        rgba(245, 247, 251, 0.08) 100%
    );
    pointer-events: none;
}

.so-cipher-line {
    position: absolute;
    display: block;
    overflow: hidden;
    color: rgba(210, 221, 231, 0.76);
    font-family: Consolas, "Courier New", monospace;
    text-shadow: 0 0 0.2px currentColor;
    white-space: nowrap;
    letter-spacing: 0;
}

.so-cipher-line--light {
    color: rgba(255, 255, 255, 0.9);
}

.so-decrypt-control {
    --so-control-dark-width: 100%;
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 100;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(1180px, calc(100% - 28px));
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #b8c8dc;
    border-radius: 8px;
    background: linear-gradient(
        to right,
        rgba(8, 13, 19, 0.94) 0%,
        rgba(17, 24, 32, 0.86) max(0%, calc(var(--so-control-dark-width) - 80px)),
        rgba(255, 255, 255, 0.96) var(--so-control-dark-width),
        rgba(255, 255, 255, 0.96) 100%
    );
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.16);
    color: var(--so-text);
    font-size: 12px;
    font-weight: 800;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}

.so-decrypt-control > span {
    color: #fff;
    mix-blend-mode: difference;
}

.so-decrypt-control input[type="range"] {
    width: 100%;
    accent-color: var(--so-primary);
    cursor: ew-resize;
}

.so-decrypt-line {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 90;
    width: 2px;
    background: var(--so-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 16px rgba(20, 94, 168, 0.38);
    pointer-events: none;
}

.so-decrypt-line.is-complete {
    opacity: 0;
}

.so-hero,
.so-section,
.so-band {
    border: 1px solid var(--so-border);
    border-radius: 8px;
    background: var(--so-surface);
}

.so-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: center;
    padding: 30px;
}

.so-kicker {
    margin: 0 0 8px;
    color: var(--so-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: 42px;
    line-height: 1.08;
}

h2 {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.18;
}

h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

p {
    color: var(--so-muted);
    line-height: 1.55;
}

.so-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.so-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--so-border);
    border-radius: 6px;
    background: #fff;
    color: var(--so-text);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.so-btn--primary {
    border-color: var(--so-primary);
    background: var(--so-primary);
    color: #fff;
}

.so-image-frame {
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: hidden;
    border: 1px dashed #abc4e2;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 94, 168, 0.12), rgba(20, 122, 77, 0.12)),
        #eef4fb;
    color: var(--so-primary-strong);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.so-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.so-image-frame span {
    display: none;
    padding: 16px;
}

.so-image-frame--missing span {
    display: block;
}

.so-image-frame--card {
    min-height: 132px;
    height: 132px;
    margin-bottom: 14px;
    border-style: solid;
}

.so-image-frame--hero {
    height: 320px;
}

.so-image-frame--wide {
    min-height: 260px;
    height: 260px;
}

.so-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 14px;
    overflow: hidden;
}

.so-band div {
    padding: 16px;
    border-right: 1px solid var(--so-border);
}

.so-band div:last-child {
    border-right: 0;
}

.so-band strong,
.so-band span {
    display: block;
}

.so-band span {
    margin-top: 5px;
    color: var(--so-muted);
    font-size: 13px;
    line-height: 1.4;
}

.so-section {
    margin-top: 14px;
    padding: 22px;
}

.so-section__head {
    margin-bottom: 16px;
}

.so-process__grid,
.so-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.so-process__grid article,
.so-product {
    padding: 16px;
    border: 1px solid var(--so-border);
    border-radius: 8px;
    background: #fff;
}

.so-process__grid strong {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--so-primary);
    color: #fff;
}

.so-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.so-product {
    display: flex;
    flex-direction: column;
}

.so-product--featured {
    border-color: #9fc1e8;
    box-shadow: inset 0 0 0 1px #cfe2f8;
}

.so-product__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.so-product__title strong {
    color: var(--so-primary);
    white-space: nowrap;
}

.so-product ul,
.so-data ul {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.so-product li,
.so-data li {
    position: relative;
    padding-left: 26px;
    line-height: 1.45;
}

.so-product li::before,
.so-data li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--so-success);
    font-weight: 900;
}

.so-product .so-btn {
    width: 100%;
    margin-top: auto;
}

.so-data {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 26px;
}

.so-data ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}

.so-risk__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.so-risk__grid article {
    padding: 16px;
    border: 1px solid var(--so-border);
    border-radius: 8px;
    background: #fff;
}

.so-risk__grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--so-primary-strong);
    font-size: 16px;
}

.so-risk__grid p {
    margin-bottom: 0;
}

.so-legal {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

@media (max-width: 820px) {
    .so-page {
        padding: 14px;
    }

    .so-hero,
    .so-band,
    .so-process__grid,
    .so-products,
    .so-data,
    .so-data ul,
    .so-risk__grid,
    .so-legal {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    .so-band div {
        border-right: 0;
        border-bottom: 1px solid var(--so-border);
    }

    .so-decrypt-control {
        grid-template-columns: auto minmax(100px, 1fr) auto;
        gap: 7px;
        font-size: 11px;
    }
}

@media print {
    .so-decrypt-control,
    .so-decrypt-line,
    .so-page--encrypted {
        display: none !important;
    }
}
