:root {
    --color-primary: #c0392b;
    --color-secondary: #e74c3c;
    --color-accent: #ffd700;
    --color-bg: #fef5e7;
    --color-ink: #3a120c;
    --color-ink-soft: #6e3a30;
    --color-header: #5c1210;
    --color-line: #3a120c;
    --se-header-h: 96px;
    --se-page-w: 1120px;
    --space-lg: 24px;
    --se-display: "Oswald", Impact, sans-serif;
    --se-body: "Roboto", "Segoe UI", sans-serif;
}

@media (max-width: 1023px) {
    :root { --se-header-h: 68px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-padding-top: var(--se-header-h); }

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

body {
    padding-top: var(--se-header-h);
    background-color: var(--color-bg);
    background-image: repeating-linear-gradient(
        90deg,
        rgba(192, 57, 43, 0.07) 0 12px,
        transparent 12px 32px
    );
    color: var(--color-ink);
    font-family: var(--se-body);
    font-size: 1.05rem;
    line-height: 1.65;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a { color: #9a2418; }
a:hover { color: #6e1212; }

h1,
h2,
h3,
.seKicker,
.seNav,
.seBtn,
.seTab,
.seTable,
.seDesk-date {
    font-family: var(--se-display);
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

h1 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

.seIs-in h2::after {
    content: "";
    display: block;
    height: 4px;
    width: 3rem;
    margin-top: 8px;
    background: currentColor;
    animation: seK-line .6s ease both;
}

@keyframes seK-line {
    from { width: 0; }
    to { width: 3rem; }
}

p { margin: 0 0 14px; }

.seContainer {
    max-width: var(--se-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.seGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.seGrid > * { min-width: 0; }

@media (max-width: 768px) {
    .seGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .seGrid { grid-template-columns: 1fr; }
}

.seHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--se-header-h);
    background: var(--color-header);
    border-bottom: 6px solid var(--color-accent);
}

.seHeader a,
.seHeader a:visited { color: #fff8e8; }

.seHeader-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: calc(var(--se-header-h) - 6px);
    flex-wrap: nowrap;
}

.seHeader-logo {
    display: block;
    flex: 0 0 auto;
    order: 1;
}

.seHeader-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.seNav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    order: 2;
    justify-content: flex-end;
}

.seNav-link {
    color: #fff8e8;
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 2px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.seNav-link:hover,
.seNav-link:visited:hover,
.seNav-link.seIs-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.seHeader-cta { order: 3; flex: 0 0 auto; }

.seHeader a.seBtn,
.seHeader a.seBtn:visited,
.seHeader a.seBtn-primary,
.seHeader a.seBtn-primary:visited {
    background: var(--color-accent);
    color: #3a120c;
    box-shadow: 0 5px 0 #8a6a00;
}

.seBurger,
.seOverlay,
.seDrawer { display: none; }

.seBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    background: #fff8e8;
    color: var(--color-ink);
    box-shadow: 0 5px 0 #a35a48;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease;
}

.seBtn-primary {
    background: var(--color-primary);
    color: #fff8e8;
    box-shadow: 0 5px 0 #6e1212;
}

a.seBtn:visited { color: var(--color-ink); }
a.seBtn-primary:visited { color: #fff8e8; }

.seBtn:hover { color: var(--color-ink); transform: translateY(-1px); }
.seBtn-primary:hover { color: #fff8e8; }
.seBtn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a35a48; }
.seBtn-primary:active { box-shadow: 0 1px 0 #6e1212; }
.seHeader a.seBtn:active,
.seHeader a.seBtn-primary:active { box-shadow: 0 1px 0 #8a6a00; }

.seBtn:focus-visible,
.seNav-link:focus-visible,
.seTab:focus-visible,
.seBurger:focus-visible,
.seDrawer-close:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

@media (max-width: 1023px) {
    .seNav { display: none; }
    .seHeader-cta { display: none; }
    .seHeader-row { justify-content: space-between; }
    .seHeader-logo img { width: 120px; }
    .seBurger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        background: var(--color-accent);
        border: 0;
        border-radius: 8px;
        box-shadow: 0 4px 0 #8a6a00;
        cursor: pointer;
    }
    .seBurger span {
        display: block;
        height: 3px;
        margin: 3px 8px;
        background: #3a120c;
    }
    .seOverlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(58, 18, 12, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .seDrawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #fff8e8;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        padding: 64px 0 20px;
        transform: translateX(100%);
        border-left: 6px solid var(--color-accent);
    }
    .seDrawer a {
        display: block;
        min-height: 44px;
        padding: 10px 20px;
        font-size: 1.05rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--color-ink);
        text-decoration: none;
        font-family: var(--se-display);
    }
    .seDrawer a.seIs-active { color: var(--color-primary); }
    .seDrawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 8px;
        background: var(--color-accent);
        color: #3a120c;
        box-shadow: 0 4px 0 #8a6a00;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }
    .seDrawer-store {
        margin: 12px 20px 0;
        width: calc(100% - 40px);
    }
    .seDrawer a.seBtn-primary,
    .seDrawer a.seBtn-primary:visited {
        display: inline-flex;
        color: #fff8e8;
        background: var(--color-primary);
    }
    body.seNav-open { overflow: hidden; }
    body.seNav-open .seOverlay { opacity: 1; visibility: visible; }
    body.seNav-open .seDrawer { visibility: visible; transform: translateX(0); }
}

@media (min-width: 1024px) {
    .seHeader-logo { order: 2; }
    .seNav { order: 1; justify-content: flex-start; }
    .seHeader-cta { order: 3; }
}

.seHero {
    background-color: #6e1212;
    background-image: repeating-linear-gradient(
        -18deg,
        rgba(255, 215, 0, 0.18) 0 14px,
        transparent 14px 32px
    );
    color: #fff8e8;
    padding: 36px 0 48px;
    border-bottom: 8px solid var(--color-accent);
}

.seHero h1 { color: var(--color-accent); }

.seHero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
}

.seHero-layout > * { min-width: 0; }

.seKicker {
    margin: 0 0 10px;
    color: #ffd978;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.seHero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.seHero a.seBtn,
.seHero a.seBtn:visited {
    background: #fff8e8;
    color: #3a120c;
    box-shadow: 0 5px 0 #8d3a2c;
}

.seHero a.seBtn-primary,
.seHero a.seBtn-primary:visited {
    background: var(--color-accent);
    color: #3a120c;
    box-shadow: 0 5px 0 #8a6a00;
}

.seMosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.seMosaic figure { margin: 0; min-width: 0; }
.seMosaic-b { transform: translateY(14px); }
.seMosaic-c { transform: translateY(-8px); }

.seMosaic img,
.seStill img {
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid var(--color-accent);
    border-radius: 10px;
    background: #3a120c;
}

.seMosaic figcaption,
.seStill figcaption {
    font-family: var(--se-display);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd978;
    margin-top: 6px;
}

.seSection { padding: 42px 0; }

.seTabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.seTab {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: #fff8e8;
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 0 #a35a48;
    cursor: pointer;
}

.seTab[aria-selected="true"] {
    background: var(--color-primary);
    color: #fff8e8;
    box-shadow: 0 4px 0 #6e1212;
}

.seCard {
    background: #fffdf8;
    border: 3px solid var(--color-line);
    border-radius: 14px;
    padding: 22px 28px 18px;
    margin-bottom: 16px;
    -webkit-mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
          radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.seApp-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.seApp-head > div { min-width: 0; }

.seApp-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #ffe8c2;
    border: 3px solid var(--color-line);
}

.seApp-name {
    font-family: var(--se-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.seApp-dev { margin: 0; color: var(--color-ink-soft); }

.seBundle {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    font-family: var(--se-display);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.seTable-wrap {
    overflow-x: auto;
    margin: 8px 0 14px;
}

.seTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.seTable th,
.seTable td {
    border: 2px solid #e7c7a2;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.seTable th {
    background: #ffe08a;
    width: 34%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.seChecked {
    font-family: var(--se-display);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.seChips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.seChips li {
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff8e8;
    padding: 6px 12px;
    font-family: var(--se-display);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.seTerms { margin: 0; }
.seTerms div {
    display: grid;
    grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
    gap: 8px 16px;
    border-bottom: 2px solid #e7c7a2;
    padding: 10px 0;
}
.seTerms dt {
    font-family: var(--se-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.seTerms dd { margin: 0; min-width: 0; }

.seCta {
    background-color: #6e1212;
    background-image: repeating-linear-gradient(
        -18deg,
        rgba(255, 215, 0, 0.16) 0 14px,
        transparent 14px 32px
    );
    color: #fff8e8;
    padding: 42px 0;
    border-top: 8px solid var(--color-accent);
}

.seCta h2 { color: var(--color-accent); }

.seCta a.seBtn-primary,
.seCta a.seBtn-primary:visited {
    background: var(--color-accent);
    color: #3a120c;
    box-shadow: 0 5px 0 #8a6a00;
}

.seFooter {
    background: var(--color-header);
    color: #fff8e8;
    padding: 28px 0 36px;
    border-top: 6px solid var(--color-accent);
}

.seFooter a,
.seFooter a:visited,
.seFooter-link { color: var(--color-accent); }

.seDesk {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 20px;
    border: 3px solid var(--color-accent);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    background: #4a0e0c;
}

.seDesk-note,
.seDesk-links { min-width: 0; }

.seDesk-date { color: var(--color-accent); margin: 0; letter-spacing: 0.06em; text-transform: uppercase; }

.seDesk-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.seFooter-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    min-height: 44px;
}

.seFine { color: #f6d7c4; font-size: 0.92rem; }

.seCookie { display: none; }

.seCookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: var(--color-header);
    color: #fff8e8;
    border: 3px solid var(--color-accent);
    padding: 8px 8px 8px 16px;
}

.seCookie p { margin: 0; font-size: 0.92rem; }
.seCookie a { color: var(--color-accent); }

.seCookie .seBtn,
.seCookie .seBtn-primary,
.seCookie .seBtn:visited {
    border-radius: 999px;
    background: var(--color-accent);
    color: #3a120c;
    box-shadow: 0 4px 0 #8a6a00;
    min-height: 44px;
}

body.seCookie-open { padding-bottom: 96px; }

.sePage { padding: 28px 0 56px; }
.sePage-measure { max-width: 760px; }
.sePage-measure > * { min-width: 0; }

.seBack { font-family: var(--se-display); letter-spacing: 0.05em; text-transform: uppercase; }

.seLead { font-size: 1.08rem; }

.seTimeline { list-style: none; margin: 0; padding: 0; }
.seTimeline li {
    border-left: 6px solid var(--color-primary);
    padding: 0 0 18px 16px;
    margin-left: 6px;
}
.seTimeline time {
    display: block;
    font-family: var(--se-display);
    color: var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.seSplit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 22px;
    align-items: start;
}
.seSplit > * { min-width: 0; }

.seFaq { margin: 0 0 22px; padding: 0; list-style: none; }
.seFaq li {
    border-left: 8px solid var(--color-accent);
    border-radius: 0 12px 12px 0;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fffdf8;
    box-shadow: 0 4px 0 #e7c7a2;
}
.seFaq h2 { font-size: 1.05rem; margin-bottom: 6px; }

.seForm {
    display: grid;
    gap: 12px;
}
.seForm label {
    font-family: var(--se-display);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.seForm input,
.seForm textarea {
    width: 100%;
    border: 0;
    border-bottom: 3px solid var(--color-primary);
    border-radius: 8px 8px 0 0;
    background: #fffdf8;
    color: var(--color-ink);
    font: inherit;
    padding: 10px 12px;
    min-height: 44px;
}
.seForm textarea { min-height: 140px; resize: vertical; }
.seForm-error { color: #8a1a1a; font-family: var(--se-display); letter-spacing: 0.03em; }

.seBrief-band {
    height: 14px;
    margin: -22px -28px 16px;
    background: repeating-linear-gradient(
        -18deg,
        var(--color-primary) 0 8px,
        var(--color-accent) 8px 14px
    );
}
.seBrief:nth-child(even) .seBrief-band {
    background: repeating-linear-gradient(
        -18deg,
        #6e1212 0 8px,
        var(--color-secondary) 8px 14px
    );
}
.seBrief h2 { font-size: 1.15rem; }
.seBrief h2 a { color: var(--color-ink); text-decoration: none; }
.seBrief h2 a:hover { color: var(--color-primary); }
.seMeta {
    font-family: var(--se-display);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
}

.seAlpha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.seAlpha a {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--se-display);
    color: #3a120c;
    background: var(--color-accent);
    box-shadow: 0 3px 0 #8a6a00;
}

.seTips { margin: 0; padding-left: 1.2rem; }
.seTips li { margin-bottom: 10px; }

@media (max-width: 800px) {
    .seHero { padding: 24px 0 32px; }
    .seHero-layout { grid-template-columns: 1fr; }
    .seHero-actions { flex-direction: column; }
    .seHero-actions .seBtn { width: 100%; }
    .seMosaic-b,
    .seMosaic-c { transform: none; }
    .seDesk,
    .seSplit,
    .seTerms div { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .seCookie:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: none;
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    .seApp-head { flex-direction: column; align-items: flex-start; }
    .seApp-icon { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .seIs-in h2::after { animation: none; width: 3rem; }
    .seBtn,
    .seBtn:hover,
    .seBtn:active { transition: none; transform: none; }
    .seDrawer,
    .seOverlay { transition: none; }
}
