@font-face {
    font-family: Barlow;
    src: url("Barlow-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Barlow;
    src: url("Barlow-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Barlow;
    src: url("Barlow-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("BarlowCondensed-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #192d3d;
    --navy: #172c3d;
    --muted: #4a6070;
    --line: #d7e2e8;
    --canvas: #edf2f4;
    --accent: #ffa45c;
    --display: "Barlow Condensed", Barlow, "Segoe UI", sans-serif;
    font: 17px/1.55 Barlow, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
h3 { font-size: 1.32rem; line-height: 1.15; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #2677a8; outline-offset: 4px; }
.hero :focus-visible, .film :focus-visible, .site-footer :focus-visible { outline-color: #ffb57d; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 6px 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.frame { width: min(1180px, calc(100% - 2 * clamp(18px, 4.5vw, 64px))); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: #f9fbfc; }
.site-nav, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-nav { min-height: 70px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font: 700 2.35rem/1 var(--display); letter-spacing: -.055em; }
.mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #83a0b0; border-radius: 8px; }
.mark::after { content: ""; width: 11px; height: 11px; border: 2px solid #c2692b; border-radius: 50%; }
.brand-dot { color: #ad531c; }
.site-nav nav, .footer-layout nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
.site-nav nav a, .footer-layout nav a { font-weight: 600; text-decoration: none; }
.site-nav nav a:hover, .footer-layout nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .nav-download { padding: 7px 12px; border: 1px solid #bfcfd9; border-radius: 7px; }

.hero {
    color: #fff;
    background:
        linear-gradient(90deg, #172c3d 5%, #172c3df5 37%, #172c3d79 74%),
        linear-gradient(0deg, #172c3df2, #172c3d14 85%),
        #172c3d url("werkstor.webp") right 56% / cover no-repeat;
    border-bottom: 4px solid var(--accent);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 74px); align-items: center; padding-block: clamp(52px, 7.7vw, 112px); }
.hero h1 { font-size: clamp(2.9rem, 5.9vw, 5rem); }
.hero-copy p { max-width: 39ch; margin-top: 20px; color: #e3edf3; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.button { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 46px; padding: 9px 15px; border-radius: 7px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.button span { font-size: 1.12em; }
.button.primary { background: var(--accent); color: var(--navy); }
.button.primary:hover { background: #ffc291; }
.hero .button { margin-top: 25px; }
.hero-preview { overflow: hidden; border: 1px solid #7c95a4; border-radius: 12px; background: var(--navy); box-shadow: 0 20px 60px #091b2c73; }
.preview-label { display: flex; align-items: center; gap: 8px; padding: 8px 13px; font-size: .84rem; color: #e7eff5; font-weight: 600; }
.preview-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-preview img { width: 100%; height: auto; }
.hero-preview figcaption { padding: 7px 13px; background: #f1f5f6; color: var(--muted); font-size: .83rem; }

.section { padding-block: clamp(52px, 6.7vw, 94px); }
.section-lead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 34px; margin-bottom: 34px; }
.section-lead > p { max-width: 43ch; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 4vw, 54px); }
.steps li { counter-increment: step; position: relative; padding-top: 47px; border-top: 1px solid var(--line); }
.steps li::before {
    content: counter(step);
    position: absolute; top: 9px; left: 0; display: grid; place-items: center;
    width: 29px; height: 29px; border-radius: 6px; background: #ffe3cd; color: #723b16;
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps p, .app-content > p { margin-top: 7px; color: var(--muted); }

.film { background: var(--navy); color: #fff; }
.film-layout { min-height: 330px; padding-block: 40px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 5vw, 76px); align-items: center; }
.film-copy > p { max-width: 36ch; margin-top: 12px; color: #dce8ef; }
.film-copy .film-status { margin-top: 20px; padding-left: 12px; border-left: 2px solid var(--accent); color: #fff; }
.film-preview {
    display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: end; justify-items: start;
    overflow: hidden; min-height: 242px; padding: 16px 20px 0;
    border: 1px solid #587385; border-radius: 12px;
    background: linear-gradient(90deg, #28495ee8, #172c3d74), url("werkstor.webp") center 52% / cover no-repeat;
}
.film-preview img { width: 124px; height: auto; border: 4px solid #172c3d; border-radius: 15px 15px 0 0; align-self: end; }
.film-preview figcaption { max-width: 22ch; padding: 9px 0 12px; color: #fff; font-size: .86rem; font-weight: 600; }
.film video { width: 100%; background: #0f202b; border: 1px solid #587385; border-radius: 12px; }

.downloads .section-lead { margin-bottom: 28px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.app-symbol { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 7px; background: #dce7ed; color: #31566e; }
.app-symbol svg { width: 24px; height: 24px; }
.app-content > .app-status { margin-top: 14px; color: var(--ink); font-weight: 600; }
.button.dark { margin-top: 12px; color: #fff; background: #254456; }
.button.dark:hover { background: var(--navy); }
.app details { margin-top: 9px; }
.app summary { width: fit-content; cursor: pointer; font-weight: 600; }
.app code { overflow-wrap: anywhere; font-size: .81rem; }

.site-footer { background: var(--navy); color: #fff; }
.footer-layout { min-height: 83px; }
.footer-layout nav { flex-wrap: wrap; row-gap: 7px; }
.site-footer .mark::after { border-color: var(--accent); }
.site-footer .brand-dot { color: var(--accent); }

.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-body main { flex: 1; width: min(690px, calc(100% - 36px)); margin: 0 auto; padding-block: clamp(55px, 8vw, 100px); }
.legal-body h1 { font-size: clamp(3rem, 7vw, 5rem); margin-bottom: 24px; }
.legal-notice { background: var(--canvas); border-left: 4px solid var(--accent); padding: 16px 20px; }
.legal-body main h2 { margin: 32px 0 8px; font: 700 1.32rem/1.2 Barlow, "Segoe UI", sans-serif; letter-spacing: 0; }
.legal-body main p + p { margin-top: 10px; }

@media (max-width: 900px) {
    .hero-layout { gap: 27px; }
}
@media (max-width: 700px) {
    .site-nav { min-height: 64px; }
    .hero-layout, .film-layout { grid-template-columns: 1fr; }
    .hero { background-position: center, center, 63% 48%; }
    .hero h1 { font-size: clamp(2.8rem, 13.5vw, 4.6rem); }
    .hero-preview { max-width: 500px; }
    .section-lead { margin-bottom: 24px; }
    .steps { grid-template-columns: 1fr; gap: 15px; }
    .steps li { padding: 10px 0 0 43px; }
    .steps p { margin-top: 4px; }
    .film-preview { min-height: 0; }
    .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 450px) {
    .site-nav { flex-wrap: wrap; gap: 6px 12px; padding-block: 9px; }
    .site-nav nav { gap: 13px; font-size: .88rem; }
    .site-nav .nav-download { padding: 5px 7px; }
    .footer-layout { flex-wrap: wrap; gap: 10px 18px; padding-block: 15px; }
    .app { padding: 16px; }
}
