@font-face {
  font-family: Inter;
  src: url("/kod-dela/assets/site/fonts/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  src: url("/kod-dela/assets/site/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f4eb;
  --white: #fffbf3;
  --ink: #14213e;
  --muted: #4c566a;
  --rule: #d5cbbb;
  --blue: #182a4a;
  --hero-text: #fbedda;
  --hero-muted: #d1dded;
  --mark: #ffae76;
  --rust: #974624;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font); }
figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
::selection { background: #ffcea8; color: #132342; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: 10px; left: 10px; transform: translateY(-150%); padding: .6rem 1rem; background: var(--white); }
.skip:focus { transform: none; }

.night-surface {
  color: #f7eedc;
  background:
    linear-gradient(44deg, transparent 6%, #a98a5740 6.05%, #e0bf784d 6.4%, transparent 7.05%),
    linear-gradient(135deg, transparent 62%, #9c825926 62.1%, transparent 62.25%, transparent 76%, #eaca862e 76.1%, transparent 76.35%),
    linear-gradient(136deg, transparent 43%, #34534448 59%, #20392d85 61%, transparent 61.18%, transparent 73%, #31514191 73.15%, #152522d7 86%, #080f13 86.15%),
    radial-gradient(ellipse at 80% 78%, #2b5141 0%, #101d22 43%, #080f15 77%);
}
.site-header, .opening { color: inherit; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  padding-block: 13px;
}
.header-inner { border-bottom: 1px solid #3c4034; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.27rem; font-weight: 800; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand small { display: block; color: #ccbd9e; font-weight: 550; font-size: .72rem; letter-spacing: 0; }
.site-header .header-login { min-height: 42px; padding-inline: 19px; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .125rem clamp(.9rem, 2.9vw, 2.75rem); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #f7eedc; font-size: .95rem; font-weight: 600; text-decoration: none; }
.site-header nav a[aria-current] { border-bottom: 2px solid #dfbd78; }
.site-header nav a:hover { color: #dfbd78; }
.site-header nav a:hover, .sheet-index a:hover, .sheet figcaption a:hover { color: var(--rust); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.9vw, 32px);
  min-height: 505px;
  padding: clamp(30px, 4.1vw, 65px) clamp(0px, 2vw, 25px);
  color: #f7eedc;
  overflow: hidden;
}
.intro :focus-visible { outline-color: var(--mark); }
.intro h1 { font-size: clamp(2.65rem, 1.55rem + 3.2vw, 5.4rem); line-height: .99; letter-spacing: -.038em; font-weight: 830; text-transform: uppercase; }
.intro h1 em { display: block; font-style: normal; color: #efc986; }
.intro p { max-width: 38ch; margin-top: 25px; color: #d3d1bd; font-size: clamp(1rem, .92rem + .36vw, 1.235rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.02rem; border: 1px solid transparent; border-radius: 10px; font-weight: 680; font-size: .92rem; line-height: 1.28; text-align: center; text-decoration: none; transition: background-color 160ms, border-color 160ms; }
.action.primary { background: #edc883; color: #272118; }
.action.primary:hover { background: #f8d99d; }
.action.secondary { color: #f7eedc; border-color: #80785e; }
.action.secondary:hover { background: #28342d; border-color: #d4ba87; }
.hero-route { position: relative; aspect-ratio: 3 / 2; width: 100%; isolation: isolate; color: #101716; }
.hero-route img, .globe-motion { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-route { mask-image: radial-gradient(ellipse at center, #000 55%, transparent 91%); }
.hero-route [hidden] { display: none; }
.globe-motion { position: absolute; inset: 0; }
.hero-route.is-animated .globe-poster { visibility: hidden; }
.install-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 19px 0 25px; border-top: 1px solid #3c4034; }
.install-bar div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.install-bar div a { color: #dec89e; font-size: .9rem; }

.section { margin-top: clamp(65px, 8.75vw, 130px); }
.protection { margin-top: clamp(58px, 6.4vw, 92px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .58fr); align-items: end; gap: 18px 32px; padding-bottom: 22px; }
.section-heading h2 { font-size: clamp(2.3rem, 1.71rem + 2.25vw, 4.15rem); line-height: 1.07; letter-spacing: -.038em; font-weight: 760; text-wrap: balance; }
.section-heading p { max-width: 49ch; color: var(--muted); font-size: 1.035rem; }
.text-link { color: var(--rust); font-weight: 620; }
.sheet-index { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 11px 0; border-block: 1px solid var(--rule); }
.sheet-index a { display: inline-flex; align-items: center; min-height: 42px; font-size: .92rem; font-weight: 700; text-decoration: underline; text-decoration-color: #ae9481; }
.sheet-row {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(25px, 7vw, 108px);
  padding-block: clamp(24px, 4vw, 54px);
  border-bottom: 1px solid var(--rule);
}
.sheet-row:nth-of-type(2) .sheet-copy { order: 1; }
.sheet-row:nth-of-type(2) { grid-template-columns: minmax(300px, 1fr) minmax(0, .82fr); }
.sheet-copy h3 { max-width: 20ch; font-size: clamp(1.75rem, 1.26rem + 1.62vw, 3.1rem); line-height: 1.13; letter-spacing: -.032em; font-weight: 740; text-wrap: balance; }
.sheet-copy p { margin-top: 16px; max-width: 49ch; font-size: 1.055rem; color: var(--muted); }
.sheet { max-width: 470px; width: 100%; justify-self: center; }
.sheet-preview { display: block; border: 1px solid #cdbca7; background: var(--white); line-height: 0; }
.sheet-preview img { width: 100%; height: auto; }
.sheet-preview:hover { border-color: var(--rust); }
.sheet figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.sheet figcaption strong { color: var(--ink); font-weight: 650; }
.sheet figcaption a { min-height: 30px; }
.ordinary-web { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 28px; padding: 20px 24px; background: #e7eced; border-radius: 12px; }
.ordinary-web h3 { font-size: 1.27rem; letter-spacing: -.018em; }
.ordinary-web p { max-width: 70ch; margin-top: 4px; color: #465568; }
.web-link { background: #1c3458; color: #fff; flex: none; }
.web-link:hover { background: #294a76; }

.platforms, .guides { border-top: 1px solid var(--rule); }
.platform { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.platform-heading, .release-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; }
.platform-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }
.platform-heading h3 { font-size: 1.38rem; font-weight: 730; letter-spacing: -.018em; }
.platform-heading span, .status, .release-caption { color: var(--muted); font-size: .9rem; }
.status.available { color: #265943; font-weight: 700; }
.releases { display: grid; gap: 18px; margin-top: 13px; padding-inline-start: clamp(0px, 2vw, 22px); }
.release + .release { padding-top: 16px; border-top: 1px dashed var(--rule); }
.release .filename { font-weight: 680; overflow-wrap: anywhere; }
.release-file { min-width: 0; }
.download { display: inline-flex; flex: none; align-items: center; min-height: 40px; padding-inline: 12px; color: white; background: #223e65; border-radius: 8px; font-size: .91rem; font-weight: 650; text-decoration: none; }
.download:hover { background: #335689; }
.checksum { margin-top: 4px; font-size: .82rem; color: var(--muted); }
summary { cursor: pointer; }
.checksum summary { width: fit-content; padding-block: 6px; }
.checksum code { display: block; margin-bottom: 3px; overflow-wrap: anywhere; }
.guide, .guides details { border-bottom: 1px solid var(--rule); }
.guides summary { padding: 12px 0; min-height: 49px; font-weight: 660; }
.guides p { padding: 0 0 16px; max-width: 73ch; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 70px; padding: 24px 0 34px; border-top: 1px solid var(--rule); }
.site-footer span { display: block; color: var(--muted); font-size: .9rem; }

@media (max-width: 960px) {
  .intro { min-height: 0; padding: clamp(26px, 4.5vw, 48px); }
  .intro h1 { font-size: clamp(2.45rem, 1.8rem + 3vw, 4.1rem); }
  .section-heading { align-items: start; }
}

@media (max-width: 780px) {
  .wrap { width: min(100% - 32px, 1240px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 4px 14px; padding-block: 10px; }
  .site-header nav { justify-content: start; flex-basis: 100%; order: 3; }
  .site-header nav a { font-size: .84rem; min-height: 38px; }
  .brand { font-size: 1.12rem; }
  .brand img { width: 34px; height: 34px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0 12px; }
  .intro h1 { font-size: clamp(2.14rem, 1.5rem + 3.45vw, 3.64rem); }
  .intro p { margin-top: 20px; }
  .actions { gap: 8px 10px; margin-top: 19px; }
  .action { font-size: .84rem; }
  .hero-route { max-width: 470px; width: 100%; justify-self: center; }
  .install-bar { flex-wrap: wrap; }
  .section-heading, .sheet-row, .sheet-row:nth-of-type(2) { grid-template-columns: minmax(0, 1fr); }
  .sheet-row:nth-of-type(2) .sheet-copy { order: 0; }
  .section-heading { gap: 12px; padding-bottom: 16px; }
  .sheet-row { gap: 16px; }
  .sheet figcaption { font-size: .82rem; }
  .ordinary-web { align-items: start; flex-direction: column; padding: 17px; }
  .site-footer { flex-direction: column; margin-top: 45px; }
}

@media (max-width: 390px) {
  .platform-heading { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
