@font-face {
  font-family: "Golos TTS";
  src: url("/fonts/golos-text-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6-02DA, U+0304, U+0308, U+0329, U+2000-206F;
}
@font-face {
  font-family: "Golos TTS";
  src: url("/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8F, U+2116;
}
:root {
  color-scheme: dark;
  --bg: #0e1013;
  --panel: #191c22;
  --raised: #20242c;
  --field: #11141a;
  --stroke: #343a43;
  --stroke-soft: #282d35;
  --text: #f2f4f6;
  --muted: #a4adb8;
  --subtle: #798490;
  --accent: #86d8e4;
  --accent-strong: #c6f3f7;
  --danger: #f3a3ad;
  font-family: "Golos TTS", "Segoe UI", sans-serif;
  font-size: 15px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(ellipse 55% 48% at 14% 8%, #1c252c88 0%, transparent 100%),
    var(--bg);
  line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { cursor: pointer; }
svg { display: block; width: 20px; height: 20px; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: #0e1013; background: var(--accent); }
.site-shell { display: flex; flex-direction: column; min-height: 100dvh; }
.site-header, .site-footer { width: min(100% - 80px, 1260px); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  min-height: 90px;
  gap: 20px;
  border-bottom: 1px solid var(--stroke-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 1px solid #3a4650; border-radius: 10px; background: #242a32; }
.brand-icon img { width: 34px; height: 34px; object-fit: contain; }
.brand-name { color: var(--text); font-size: 19px; font-weight: 800; letter-spacing: .055em; }
.header-rule { width: 1px; height: 22px; background: var(--stroke); }
.header-server { min-width: 0; overflow: hidden; color: var(--subtle); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.header-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.access-label, .form-index, .section-index, .visual-label, .eyebrow, .release-badge { font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.access-label { color: var(--subtle); white-space: nowrap; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 230px; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #86d8e420; }
.logout { margin: 0; }
.logout button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--stroke); border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.logout button:hover { border-color: #68737e; color: var(--text); background: var(--raised); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; min-height: 54px; align-items: center; border-top: 1px solid var(--stroke-soft); color: var(--subtle); font-size: 12px; }
.site-footer span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.eyebrow-line { width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.auth-layout, .downloads-layout { width: min(100% - 80px, 1260px); margin-inline: auto; flex: 1; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); align-items: center; gap: clamp(40px, 6vw, 110px); padding-block: 64px 72px; }
.auth-intro { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-top: 10px; }
.auth-intro h1 { margin: 27px 0 20px; font-size: clamp(58px, 6.4vw, 92px); font-weight: 780; letter-spacing: -.07em; line-height: .98; }
.auth-intro h1 span { color: var(--accent-strong); }
.auth-intro > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.intro-features { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; }
.intro-features span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.intro-features i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.intro-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  height: clamp(190px, 22vw, 270px);
  overflow: hidden;
  margin-top: 42px;
  border: 1px solid #38424b;
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 38%, #4c9fa531 0%, transparent 38%),
    linear-gradient(135deg, #222832, #151a20 67%);
}
.visual-grid { position: absolute; inset: 0; opacity: .48; background-image: linear-gradient(#50606b22 1px, transparent 1px), linear-gradient(90deg, #50606b22 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, #000, transparent 85%); }
.intro-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 50px; background: linear-gradient(transparent, #151a20); }
.visual-label { position: absolute; top: 18px; left: 20px; color: #8c9ba7; }
.intro-visual img { position: absolute; right: 8%; bottom: -12%; width: min(60%, 310px); border-radius: 16px; filter: drop-shadow(0 14px 25px #0008); }

.auth-card { width: 100%; padding: 30px; border: 1px solid var(--stroke); border-radius: 15px; background: var(--panel); box-shadow: 0 26px 70px #0004; }
.auth-card-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-index { color: var(--accent); }
.form-lock { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--stroke); border-radius: 9px; color: var(--subtle); }
.form-lock svg { width: 18px; height: 18px; }
.auth-card h2 { margin: 16px 0 5px; font-size: 31px; line-height: 1.2; letter-spacing: -.035em; font-weight: 760; }
.form-intro { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.form-error { display: flex; align-items: flex-start; gap: 9px; padding: 12px; margin-bottom: 20px; border: 1px solid #8b454f; border-radius: 8px; background: #38252b; color: #ffbec7; font-size: 13px; line-height: 1.45; }
.form-error span { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e28d99; color: #38252b; font-size: 12px; font-weight: 900; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 8px; color: #dce2e7; font-size: 13px; font-weight: 750; }
.field input, .copy-field input { width: 100%; min-width: 0; height: 48px; padding: 11px 14px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--field); color: var(--text); outline: none; font-size: 15px; font-weight: 550; }
.field input:hover, .copy-field input:hover { border-color: #56606a; }
.field input:focus, .copy-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #86d8e41e; }
.field small { display: block; margin-top: 7px; color: var(--subtle); font-size: 12px; line-height: 1.4; }
.password-field { position: relative; }
.password-field input { padding-right: 96px; }
.password-field button { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); min-height: 33px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.password-field button:hover { background: var(--raised); color: var(--text); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 49px; padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 800; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--accent-strong); color: #111b21; }
.button-primary:hover { background: #e2fbfd; }
.button-secondary { border-color: #52616b; background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--accent); background: #ffffff0a; }
.submit-button { width: 100%; justify-content: space-between; margin-top: 5px; }
.submit-button svg { width: 19px; height: 19px; }
.form-bottom { margin-top: 27px; padding-top: 22px; border-top: 1px solid var(--stroke-soft); color: var(--muted); font-size: 13px; }
.form-bottom a { margin-left: 5px; color: var(--accent-strong); font-weight: 750; }
.form-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

.downloads-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .82fr); align-items: start; gap: clamp(28px, 4vw, 70px); padding-block: 78px 88px; }
.downloads-main { min-width: 0; }
.downloads-main h1 { margin: 19px 0 14px; font-size: clamp(44px, 5.1vw, 68px); line-height: 1.06; letter-spacing: -.055em; font-weight: 760; }
.title-period { color: var(--accent); }
.page-lead { max-width: 610px; margin: 0 0 36px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.featured-release { position: relative; overflow: hidden; padding: 26px; border: 1px solid #40505a; border-radius: 15px; background: radial-gradient(circle at 100% 0%, #82cfd31e, transparent 45%), var(--panel); }
.featured-release::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 72%); }
.featured-topline { display: flex; align-items: center; gap: 12px; }
.release-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #576974; border-radius: 9px; color: var(--accent-strong); background: #26333b; }
.release-mark svg { width: 22px; height: 22px; }
.release-badge { color: var(--accent); }
.release-version { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 750; }
.featured-release h2 { margin: 23px 0 6px; font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: -.02em; }
.featured-release p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; }
.release-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.release-actions .button { min-height: 46px; }
.release-actions .button svg { width: 18px; height: 18px; }
.button-meta { padding-left: 4px; font-size: 12px; font-weight: 700; opacity: .75; }
.release-empty { padding: 23px; border: 1px dashed #56616c; border-radius: 12px; background: var(--panel); }
.release-empty strong { font-size: 16px; }
.release-empty p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.archive { margin-top: 28px; border-top: 1px solid var(--stroke-soft); }
.archive summary { display: flex; align-items: center; gap: 8px; min-height: 60px; list-style: none; color: var(--text); font-size: 14px; font-weight: 750; cursor: pointer; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary > span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--raised); color: var(--muted); font-size: 11px; }
.archive summary svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform .15s; }
.archive[open] summary svg { transform: rotate(180deg); }
.archive-list { padding-bottom: 6px; border-top: 1px solid var(--stroke-soft); }
.archive-row { display: flex; align-items: center; gap: 16px; min-height: 49px; padding: 8px 6px; border-bottom: 1px solid var(--stroke-soft); color: var(--muted); font-size: 13px; }
.archive-row:hover { color: var(--text); background: #ffffff06; }
.archive-name { min-width: 0; overflow-wrap: anywhere; }
.archive-size { margin-left: auto; flex: none; color: var(--subtle); }
.archive-row svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.connect-card { overflow: hidden; margin-top: 20px; border: 1px solid var(--stroke); border-radius: 15px; background: var(--panel); }
.connect-visual { position: relative; display: grid; place-items: center; height: 215px; overflow: hidden; border-bottom: 1px solid var(--stroke); background: radial-gradient(circle at 50% 70%, #64bdc225, transparent 45%), linear-gradient(145deg, #202934, #161b22); }
.connect-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#67727a16 1px, transparent 1px), linear-gradient(90deg, #67727a16 1px, transparent 1px); background-size: 28px 28px; }
.connect-visual img { position: relative; width: 235px; margin-top: 25px; border-radius: 13px; filter: drop-shadow(0 15px 18px #0007); }
.connect-content { padding: 25px; }
.section-index { color: var(--accent); }
.connect-content h2 { margin: 9px 0 18px; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.connect-steps { margin: 0 0 25px; padding: 0; list-style: none; counter-reset: setup; }
.connect-steps li { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.connect-steps li::before { content: counter(setup, decimal-leading-zero); counter-increment: setup; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.copy-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 750; }
.copy-field { display: flex; min-width: 0; border: 1px solid var(--stroke); border-radius: 8px; background: var(--field); }
.copy-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #86d8e41e; }
.copy-field input { height: 43px; border: 0; background: transparent; box-shadow: none !important; font-size: 13px; }
.copy-field button { display: grid; place-items: center; width: 43px; flex: none; border: 0; border-left: 1px solid var(--stroke); border-radius: 0 7px 7px 0; background: transparent; color: var(--muted); }
.copy-field button:hover { color: var(--accent-strong); background: var(--raised); }
.copy-field button svg { width: 17px; height: 17px; }
.copy-feedback { min-height: 17px; margin: 5px 0 0; color: var(--accent); font-size: 11px; }

@media (max-width: 950px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, 440px); gap: 36px; }
  .auth-intro h1 { font-size: clamp(49px, 6.2vw, 68px); }
  .intro-visual { height: 200px; }
  .downloads-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
}
@media (max-width: 760px) {
  .site-header, .site-footer, .auth-layout, .downloads-layout { width: min(100% - 36px, 560px); }
  .site-header { min-height: 72px; gap: 12px; }
  .header-rule, .header-server, .access-label { display: none; }
  .auth-layout, .downloads-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-layout { gap: 22px; align-items: start; padding-block: 35px 55px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { margin: 18px 0 10px; font-size: clamp(39px, 8vw, 60px); line-height: 1.02; }
  .auth-intro > p { font-size: 14px; }
  .intro-features, .intro-visual { display: none; }
  .auth-card { padding: 24px; }
  .downloads-layout { gap: 28px; padding-block: 42px 62px; }
  .downloads-main h1 { font-size: clamp(40px, 8vw, 57px); }
  .page-lead { margin-bottom: 26px; font-size: 14px; }
  .connect-card { margin-top: 0; }
  .connect-visual { height: 160px; }
  .connect-visual img { width: 190px; margin-top: 25px; }
}
@media (max-width: 420px) {
  .site-header, .site-footer, .auth-layout, .downloads-layout { width: calc(100% - 28px); }
  .brand-name { font-size: 17px; }
  .account-chip { max-width: 120px; font-size: 12px; }
  .auth-card { padding: 20px; }
  .auth-card h2 { font-size: 27px; }
  .auth-intro h1 { font-size: 37px; letter-spacing: -.055em; }
  .featured-release { padding: 20px; }
  .release-actions { display: grid; }
  .release-actions .button { width: 100%; }
  .site-footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .archive summary svg { transition: none; }
}
