/* =========================================================================
   ArmyRP — Web/Site/assets/styles.css
   Стиль: печатный проектный документ. Бумага, чернила, линейки, моно-подписи.
   Никаких градиентов, свечения, скруглённых карточек и «стеклянных» панелей.
   ========================================================================= */

:root {
    --paper:        #e9e3d3;
    --paper-2:      #f2ede2;
    --paper-3:      #ddd4bf;

    --ink:          #17170f;
    --ink-2:        #2d2d20;
    --muted:        #625f4c;
    --muted-2:      #6d6855;

    --line:         #c9c0aa;
    --line-strong:  #8e876f;

    --olive:        #4f5827;
    --olive-bright: #6f7a36;
    --stamp:        #9b3527;

    --steel:        #3f5d78;
    --teal:         #2f6b62;
    --amber:        #8a5a1f;

    --container:    1180px;
    --header-h:     72px;

    --font-body:    'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-serif:   'Spectral', Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { display: block; }

:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 400;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}
.skip-link:focus { transform: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

::selection { background: rgba(79, 88, 39, 0.22); color: var(--ink); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-3); }
::-webkit-scrollbar-thumb { background: var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--olive); }

/* ------------------------------------------------------------- layout */
.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section { padding: 84px 0; }

.section--alt {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------- typography */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.section-label .name { color: var(--ink); }
.section-label .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

h1, h2, h3 { font-weight: 700; line-height: 1.1; }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 13px 20px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { border-color: var(--olive); color: var(--olive); }

.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.btn--primary:hover { background: var(--olive); border-color: var(--olive); color: var(--paper-2); }

.btn--ghost { border-color: var(--line-strong); }

.btn--light { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn--light:hover { background: var(--olive-bright); border-color: var(--olive-bright); color: var(--paper-2); }

.btn--block { width: 100%; }

.link-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.18s ease, border-color 0.18s ease;
}
.link-arrow::after {
    content: '';
    position: absolute;
    inset: -15px 0;
}
.link-arrow span { transition: transform 0.18s ease; }
.link-arrow:hover { color: var(--olive); border-color: var(--olive); }
.link-arrow:hover span { transform: translateX(3px); }

/* ----------------------------------------------------------- meta bar */
.meta-bar {
    background: var(--ink);
    color: rgba(242, 237, 226, 0.7);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.meta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 30px;
}
.meta-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--paper-2);
}
.meta-status::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--stamp);
}

/* -------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1;
    color: var(--ink);
}
.brand-sub {
    display: block;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
    position: relative;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--ink);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta {
    padding: 9px 14px;
    font-size: 9px;
}

.burger {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}
.burger i,
.burger i::before,
.burger i::after {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.burger i { top: 50%; transform: translate(-50%, -50%); }
.burger i::before { content: ''; top: -5px; left: 0; }
.burger i::after { content: ''; top: 5px; left: 0; }
.burger.is-open i { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open i::before { top: 0; opacity: 0; }
.burger.is-open i::after { top: 0; transform: rotate(-90deg); }

.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 0 18px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--ink);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}
.mobile-nav a::after { content: '→'; color: var(--muted-2); }
.mobile-nav .mobile-download {
    margin-top: 14px;
    min-height: 44px;
    padding: 14px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper-2);
    justify-content: center;
    gap: 8px;
}
.mobile-nav .mobile-download::after { content: none; }

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
}
@media (min-width: 961px) {
    .hero {
        min-height: calc(100vh - 102px);
        display: grid;
        align-content: center;
    }
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
    gap: 64px;
    align-items: end;
}
.hero-copy { position: relative; }
.hero-copy,
.file-card {
    animation: hero-enter 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.file-card { animation-delay: 0.1s; }

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}
.status-pill::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--stamp);
}

.hero-title {
    margin: 26px 0 0;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(4.2rem, 10vw, 8.6rem);
    line-height: 0.84;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.hero-sub {
    max-width: 48ch;
    margin: 18px 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.35;
    color: var(--ink-2);
}

.hero-lead {
    max-width: 54ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 32px;
}

/* ----------------------------------------------------------- file card */
.file-card {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    border: 1px solid var(--ink);
    background: var(--paper-2);
}
.file-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--ink);
    color: rgba(242, 237, 226, 0.78);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.file-card-head span:last-child { color: var(--paper-2); }

.file-card-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
}
.file-card-brand img { width: 56px; height: 56px; object-fit: contain; }
.file-card-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.file-card-brand span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.file-rows { list-style: none; }
.file-rows > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}
.file-rows dt {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.file-rows dd {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    color: var(--ink);
}
.file-rows > div:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- about */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
}
.statement {
    max-width: 18ch;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}
.about-copy p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
}
.about-copy p + p { margin-top: 16px; }
.about-copy p:first-child {
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.7;
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 60px;
    border-top: 1px solid var(--ink);
}
.process article {
    padding: 22px 24px 0 0;
    border-right: 1px solid var(--line);
}
.process article:last-child { border-right: 0; padding-right: 0; }
.process h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.process p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* ------------------------------------------------------------- launcher */
.download-file {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper-2);
}
.download-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(242, 237, 226, 0.22);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 237, 226, 0.65);
}
.download-head span:first-child { color: var(--paper-2); }

.download-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
}
.download-copy { padding: 36px; }
.download-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--paper-2);
}
.download-copy p {
    max-width: 54ch;
    margin-top: 16px;
    color: rgba(242, 237, 226, 0.72);
    font-size: 14.5px;
    line-height: 1.75;
}
.download-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}
.download-meta > span {
    padding: 5px 8px;
    border: 1px solid rgba(242, 237, 226, 0.28);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 237, 226, 0.82);
}
.download-note {
    max-width: 52ch;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: rgba(242, 237, 226, 0.48);
}
.download-side {
    display: grid;
    place-items: center;
    gap: 22px;
    padding: 28px 24px;
    border-left: 1px dashed rgba(242, 237, 226, 0.24);
}
.download-exe {
    font-family: var(--font-mono);
    font-size: 84px;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: rgba(242, 237, 226, 0.08);
    -webkit-text-stroke: 1px rgba(242, 237, 226, 0.34);
}

/* -------------------------------------------------------------- journal */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--ink);
}
.journal-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 36px 34px 0;
    text-decoration: none;
    color: inherit;
}
.journal-item + .journal-item {
    padding-left: 36px;
    border-left: 1px solid var(--line);
}
.journal-meta {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stamp);
}
.journal-item h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.18s ease;
}
.journal-item p {
    max-width: 40ch;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}
.journal-item .link-arrow { margin-top: 16px; }
.journal-item:hover h3 { color: var(--olive); }
.journal-item:hover .link-arrow { color: var(--olive); border-color: var(--olive); }
.journal-item:hover .link-arrow span { transform: translateX(3px); }

/* ----------------------------------------------------------------- faq */
.faq {
    max-width: 920px;
    border-top: 1px solid var(--ink);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    transition: color 0.18s ease;
}
.faq summary:hover .faq-q { color: var(--olive); }
.faq-plus {
    position: relative;
    width: 14px;
    height: 14px;
    justify-self: end;
}
.faq-plus::before,
.faq-plus::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s ease;
}
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus::after { transform: rotate(0); }

.faq .faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}
.faq details[open] .faq-body { grid-template-rows: 1fr; }
.faq .faq-body > div { overflow: hidden; }
.faq .faq-body p {
    max-width: 74ch;
    padding: 0 0 22px 58px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ------------------------------------------------------------ contacts */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
}
.contact-item {
    padding: 24px 28px 0 0;
    border-right: 1px solid var(--line);
}
.contact-item:last-child { border-right: 0; padding-right: 0; }
.contact-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.contact-item h3 {
    margin: 12px 0 8px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.18s ease;
}
.contact-item p {
    max-width: 34ch;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}
.contact-item:hover h3 { color: var(--olive); }
.contact-item:hover .link-arrow { color: var(--olive); border-color: var(--olive); }
.contact-item:hover .link-arrow span { transform: translateX(3px); }

/* -------------------------------------------------------------- footer */
.site-footer {
    padding: 36px 0 26px;
    background: var(--ink);
    color: var(--paper-2);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--paper-2);
}
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand span {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    max-width: 620px;
}
.footer-links a {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(242, 237, 226, 0.62);
    transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--paper-2); }
.footer-links a.is-locked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(242, 237, 226, 0.16);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: rgba(242, 237, 226, 0.45);
}
.footer-bottom p:last-child { text-transform: uppercase; letter-spacing: 0.14em; }

/* --------------------------------------------------------- simple page */
.page-banner {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 102px);
    padding: 72px 0;
}
.panel {
    width: min(100%, 720px);
    margin-inline: auto;
    border: 1px solid var(--ink);
    background: var(--paper-2);
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    background: var(--ink);
    color: rgba(242, 237, 226, 0.65);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.panel-head span:first-child { color: var(--paper-2); }
.panel-body { padding: 36px; }
.panel .status-pill { margin-bottom: 20px; }
.panel h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.panel p {
    max-width: 62ch;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}
.panel .hero-actions { margin-top: 28px; }

/* --------------------------------------------------------- updates pages */
.updates-page {
    padding: 56px 0 84px;
}
.updates-page .section { padding-top: 0; }
.updates-head { max-width: 760px; margin-bottom: 32px; }
.updates-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.updates-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.updates-switch {
    display: flex;
    gap: 26px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.updates-switch a {
    padding: 0 0 10px;
    border-bottom: 2px solid transparent;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.18s ease, border-color 0.18s ease;
}
.updates-switch a:hover { color: var(--ink); }
.updates-switch a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.updates-list { border-top: 1px solid var(--ink); }
.updates-state {
    padding: 22px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.updates-state a { color: var(--ink); text-underline-offset: 3px; }
.updates-list > .updates-state {
    max-width: 760px;
    margin: 24px 0;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--stamp);
    background: var(--paper-2);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
}

.news-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.news-card.is-pinned {
    padding-left: 18px;
    box-shadow: inset 3px 0 0 var(--stamp);
}
.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}
.news-pin {
    padding: 2px 6px;
    border: 1px solid var(--stamp);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
}
.news-card h2 {
    margin: 10px 0 4px;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.news-body {
    max-width: 82ch;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-line;
}

.release {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.release-version {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.release-tag {
    padding: 2px 6px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.release-tag--major { color: var(--olive); border-color: var(--olive); }
.release-tag--hotfix { color: var(--amber); border-color: var(--amber); }
.release-date {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}
.release-items {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}
.release-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}
.release-kind {
    flex: 0 0 auto;
    min-width: 82px;
    padding: 2px 5px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    color: var(--muted);
}
.release-kind--added { color: var(--olive); border-color: var(--olive); }
.release-kind--changed { color: var(--steel); border-color: var(--steel); }
.release-kind--fixed { color: var(--teal); border-color: var(--teal); }
.release-kind--removed { color: var(--stamp); border-color: var(--stamp); }
.release-kind--hotfix { color: var(--amber); border-color: var(--amber); }

/* -------------------------------------------------------- launcher lock */
[data-launcher-download].is-locked { cursor: pointer; }
[data-launcher-download].is-locked > svg { display: none; }
[data-launcher-download].is-locked::before {
    content: '';
    display: inline-block;
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lock-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lock-modal[hidden] { display: none; }
.lock-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 15, 0.62);
}
.lock-dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--ink);
}
.lock-dialog h2 {
    margin: 14px 0 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.lock-lead {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}
.lock-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.lock-close:hover { color: var(--ink); border-color: var(--ink); }
.lock-form { margin-top: 20px; }
.lock-form label {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.lock-form input {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--paper-2);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    letter-spacing: normal;
    text-transform: none;
}
.lock-form input:focus {
    outline: 2px solid var(--olive);
    outline-offset: 1px;
}
.lock-error {
    min-height: 1.3em;
    margin: 2px 0 12px;
    color: var(--stamp);
    font-size: 12px;
}
.lock-success { margin-top: 20px; }
.lock-success p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}
.lock-success strong { color: var(--ink); }
body.lock-open { overflow: hidden; }

/* ------------------------------------------------------------- tablet */
@media (max-width: 1080px) {
    .nav { gap: 15px; }
    .nav a { font-size: 9px; letter-spacing: 0.1em; }
    .header-cta { display: none; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; align-items: start; }
    .hero-copy { max-width: 720px; }
    .file-card { max-width: 560px; justify-self: start; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .statement { max-width: none; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .process article:nth-child(2n) { border-right: 0; padding-right: 0; }
    .process article:nth-child(n + 3) {
        margin-top: 22px;
        padding-top: 22px;
        border-top: 1px solid var(--line);
    }
    .download-body { grid-template-columns: 1fr; }
    .download-side { display: none; }
    .journal-grid { grid-template-columns: 1fr; }
    .journal-item { padding-right: 0; }
    .journal-item + .journal-item {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    .nav { display: none; }
    .burger { display: block; }
    .section { padding: 64px 0; }
    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-item {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .contact-item:last-child { border-bottom: 0; }
    .contact-item p { max-width: 48ch; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 32px, var(--container)); }
    .meta-inner { font-size: 8px; letter-spacing: 0.1em; }
    .meta-date { display: none; }
    .hero { padding: 48px 0 58px; }
    .hero-title { font-size: clamp(3.2rem, 18vw, 4.4rem); }
    .hero-sub { margin-top: 14px; }
    .hero-actions { gap: 12px 16px; }
    .section-label { margin-bottom: 22px; }
    .process { grid-template-columns: 1fr; margin-top: 42px; }
    .process article {
        padding: 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .process article:last-child { border-bottom: 0; }
    .process article:nth-child(n + 3) { margin-top: 0; padding-top: 18px; }
    .download-copy { padding: 24px; }
    .download-head { padding: 10px 16px; }
    .journal-item { padding: 24px 0 28px; }
    .faq summary { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px; }
    .faq .faq-body p { padding-left: 0; }
    .panel-body { padding: 24px; }
    .footer-top { flex-direction: column; gap: 22px; }
    .footer-links { gap: 10px 18px; }
    .updates-page { padding: 40px 0 60px; }
    .release-date { margin-left: 0; width: 100%; }
    .release-item { flex-direction: column; gap: 5px; }
    .release-kind { min-width: 0; align-self: flex-start; }
    .lock-dialog { padding: 22px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 3rem; }
    .btn { padding: 12px 16px; font-size: 9.5px; }
    .file-rows > div { grid-template-columns: 1fr; gap: 2px; }
    .file-rows dd { text-align: left; }
}

/* ----------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-copy,
    .file-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .btn,
    .link-arrow,
    .link-arrow span,
    .journal-item h3,
    .journal-item .link-arrow span,
    .contact-item h3,
    .contact-item .link-arrow span,
    .faq-plus::before,
    .faq-plus::after,
    .faq .faq-body {
        transition-duration: 0.001ms !important;
    }
}
