/* Шрифт лежит на своём сервере: страница не должна ждать чужой.
   Один переменный файл на диапазон 400–700, три подмножества. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-text-latin.woff2") format("woff2");
  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+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* белое основание */
  --bg:        #FFFFFF;
  --ground:    #F4F7FB;
  --surface:   #FFFFFF;
  --tint:      #EDF3FD;
  --tint-2:    #E2ECFB;

  /* синие оттенки: от чернил до заливки */
  --ink:       #0E1A2B;
  --ink-2:     #46586F;
  --ink-3:     #6D7C90;
  --line:      #E1E8F1;
  --line-2:    #CBD6E4;

  --accent:      #1B62D6;
  --accent-deep: #0E4AA8;
  --accent-dark: #0A356F;
  --accent-soft: #6D9BEA;

  /* три раздела — три оттенка синего */
  --sec-ustanovka: #1B62D6;
  --sec-nastroika: #0E7C9B;
  --sec-obshchie:  #4453B8;

  --ok:       #157A4A;
  --ok-tint:  #E6F4EC;
  --bad:      #C4342A;
  --bad-tint: #FCEDEC;

  --r-card: 14px;
  --r-ctl:  10px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(14,26,43,.06), 0 1px 1px rgba(14,26,43,.04);
  --sh-2: 0 4px 12px -2px rgba(14,26,43,.10), 0 2px 4px rgba(14,26,43,.05);

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.8,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--tint-2); color: var(--accent-dark); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--ground); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
* { scrollbar-color: var(--line-2) var(--ground); scrollbar-width: thin; }

:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 6px; }

.num { font-variant-numeric: tabular-nums; }

/* ═══════════ каркас ═══════════ */

.top {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top > a {
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 16px;
  text-decoration: none; color: inherit;
}
.top b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.top b span { color: var(--accent); }
.top i { font-style: normal; font-size: 13px; color: var(--ink-3); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 8px; }
footer.wrap { padding-bottom: 40px; }

.hero {
  background: var(--tint);
  border: 1px solid var(--tint-2);
  border-radius: var(--r-card);
  padding: 18px 16px 20px;
}
.hero > *:last-child { margin-bottom: 0; }

section.block { padding-top: 22px; }

/* ═══════════ типографика ═══════════ */

h1.h { font-size: 26px; line-height: 1.18; letter-spacing: -.025em; font-weight: 700; margin: 0 0 10px; text-wrap: balance; }
h2.h { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; margin: 0 0 10px; text-wrap: balance; }
.cap { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
p.t { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
p.t:last-child { margin-bottom: 0; }
p.t b { color: var(--ink); font-weight: 600; }
p.s { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
p.s code { font-family: inherit; font-weight: 600; color: var(--accent-deep); }
a.inline { color: var(--accent); font-weight: 500; text-decoration: none; }
a.inline:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.back {
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 12px;
  font-size: 14px; font-weight: 500; color: var(--accent);
  text-decoration: none;
}
.back svg { width: 15px; height: 15px; }
.back:hover { color: var(--accent-deep); }

/* ═══════════ поиск ═══════════ */

.field {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-ctl);
  box-shadow: var(--sh-1);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.mag { width: 20px; height: 20px; flex: none; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.field input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none; padding: 0;
  font: inherit; font-size: 16.5px; color: var(--ink);
  caret-color: var(--accent);
  -webkit-appearance: none; appearance: none;
}
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.field input::placeholder { color: var(--ink-3); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27,98,214,.13); }
.field:focus-within .mag { color: var(--accent); }

#podskazki {
  margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  overflow: hidden; background: var(--surface); box-shadow: var(--sh-2);
  animation: drop .25s var(--ease) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#podskazki .row {
  display: grid; grid-template-columns: 78px 1fr;
  align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
#podskazki .row:last-child { border-bottom: 0; }
#podskazki .row:hover { background: var(--tint); }
#podskazki .tag {
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 8px;
  background: var(--tint); border-right: 1px solid var(--line);
  font-weight: 700; font-size: 15px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
#podskazki .tag.hot { background: var(--tint-2); color: var(--accent-deep); }
#podskazki .body { padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; }
#podskazki .t { font-size: 15px; font-weight: 600; }
#podskazki .s { font-size: 13px; color: var(--ink-3); }

/* ═══════════ карточки разделов ═══════════ */

.secs { display: flex; flex-direction: column; gap: 9px; }
.sec-card {
  display: grid; grid-template-columns: 42px 1fr 18px;
  align-items: center; gap: 13px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  text-decoration: none; color: inherit;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
a.sec-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); border-color: var(--line-2); }
.sec-ic {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c, var(--accent)) 11%, white);
  color: var(--c, var(--accent));
}
.sec-ic svg { width: 22px; height: 22px; }
.sec-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sec-b b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.sec-b i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.chev { width: 18px; height: 18px; color: var(--line-2); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.sec-card:hover .chev { color: var(--accent); }

.ustanovka { --c: var(--sec-ustanovka); }
.nastroika { --c: var(--sec-nastroika); }
.obshchie  { --c: var(--sec-obshchie); }

/* ═══════════ списки инструкций ═══════════ */

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-1); }
.item {
  display: grid; grid-template-columns: 1fr 18px;
  align-items: center; gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .16s var(--ease);
}
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--tint); }
.item-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item-b b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.kind svg { width: 13px; height: 13px; fill: currentColor; }
.kind.vid { color: var(--accent); }

/* ═══════════ бирки ═══════════ */

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--tint-2); color: var(--accent-dark);
  font-weight: 700; font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.badge i { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--accent-deep); opacity: .85; }
.badge.plain { background: var(--ground); color: var(--ink-2); font-weight: 600; }

.row-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-ctl); box-shadow: var(--sh-1);
}
.row-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-card span { font-size: 12.5px; color: var(--ink-3); }
.row-card b { font-size: 15px; font-weight: 600; }

/* ═══════════ чипы линейки и экрана ═══════════ */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex: 1 1 72px;
  padding: 11px 6px;
  border-radius: var(--r-ctl);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2); cursor: pointer; text-align: center; text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
#vybor-ekrana { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.chip:hover { border-color: var(--accent-soft); color: var(--ink); }
.chip.on {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 8px -2px rgba(27,98,214,.5);
}

/* ═══════════ кнопки ═══════════ */

.btns { display: flex; flex-direction: column; gap: 9px; }
.btns.pair { flex-direction: row; }
.btns.pair .btn { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px; min-height: 48px;
  border-radius: var(--r-ctl);
  border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sh-1);
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { border-color: var(--accent-soft); color: var(--accent-deep); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.pri {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 10px -2px rgba(27,98,214,.5);
}
.btn.pri:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* ═══════════ видео и шаги ═══════════ */

.video {
  display: block; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--tint), var(--tint-2));
  cursor: pointer; font: inherit; color: var(--ink-2);
  overflow: hidden;
}
button.video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.play {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -4px rgba(27,98,214,.55);
  transition: transform .25s var(--ease);
}
.play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.video:hover .play { transform: scale(1.06); }
.video-hint { font-size: 13.5px; font-weight: 600; }

.warning {
  margin: 20px 0 0; padding: 12px 14px;
  background: var(--bad-tint); color: var(--ink);
  border-radius: var(--r-ctl);
  font-size: 15px; line-height: 1.5;
}
.warning p { margin: 0; }
.warning p + p { margin-top: 6px; }
.warning-t { font-weight: 700; color: var(--bad); text-transform: uppercase; letter-spacing: .02em; }
.warning-cols { margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 20px; }
.warning-cols p + p { margin-top: 0; }
.warning a { color: var(--accent-deep); font-weight: 600; }
.warning-shots { margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.warning-shots figure { margin: 0; }
.warning-shots figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.shot.shot-empty {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink-3); font-size: 13.5px;
  border-style: dashed; border-color: var(--line-2);
}
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 13px; }
.step .n {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint-2); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step .txt { display: block; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.shot { margin-top: 10px; width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }

/* ═══════════ плашки ═══════════ */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 15px; box-shadow: var(--sh-1);
}
.card.blue { background: var(--tint); border-color: var(--tint-2); }
.card-t { font-size: 15.5px; font-weight: 650; margin-bottom: 8px; }

.empty { text-align: center; padding: 26px 0 8px; }
.empty-ic {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, white);
  color: var(--c, var(--accent));
}
.empty-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty p.t { max-width: 34ch; margin-left: auto; margin-right: auto; }
.empty .btns { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
