@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-400-normal.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;
  font-display: swap;
  src: url("../fonts/golos-text-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-500-normal.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: 500;
  font-display: swap;
  src: url("../fonts/golos-text-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-600-normal.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: 600;
  font-display: swap;
  src: url("../fonts/golos-text-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-700-normal.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: 700;
  font-display: swap;
  src: url("../fonts/golos-text-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #0b0d12;
  --ink-2: #3a414d;
  --ink-3: #626b7a;
  --line: #e3e7ed;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --blue: #0568ee;
  --blue-700: #0450bc;
  --blue-100: #d9e8fe;
  --blue-050: #eef5ff;
  --r-sm: 10px;
  --r-lg: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shell: 860px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue-100); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, p, fieldset { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.skip {
  position: fixed; z-index: 100; left: 16px; top: -100px;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600;
}
.skip:focus { top: 16px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 30px; height: 39px; object-fit: contain; }
.brand__name { font-size: 26px; font-weight: 700; letter-spacing: -.045em; }
.header__note { margin-left: auto; color: var(--ink-3); font-size: 14px; }
.header__cta { flex: 0 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(5,104,238,.28), 0 12px 26px -12px rgba(5,104,238,.55);
}
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.hero { padding: 56px 0 80px; }
.kicker {
  display: flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero__title {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.03em;
  max-width: 16ch;
}
.hero__lead { margin-top: 16px; color: var(--ink-3); max-width: 46ch; }

.shot {
  margin-top: 36px; padding: 28px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: grid; gap: 20px;
}
.shot__url { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.shot__url input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-weight: 400; background: #fff;
}
.shot__url input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.shot__modes { border: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.shot__modes legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.choice, .check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  cursor: pointer; font-weight: 500;
}
.choice:has(input:checked), .check:has(input:checked) {
  border-color: var(--blue); background: var(--blue-050); color: var(--blue-700);
}
.shot__flags { display: flex; gap: 12px; flex-wrap: wrap; }
.shot__hint { color: var(--ink-2); font-size: 15px; }
.shot__hint.is-error { color: #b42318; }

.result { margin-top: 32px; display: grid; gap: 16px; }
.result img {
  width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11,13,18,.08);
}

.footer { padding: 24px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer a { color: var(--blue); font-weight: 600; }

@media (max-width: 640px) {
  .header__note { display: none; }
  .shell { width: calc(100% - 32px); }
  .shot { padding: 18px; }
}
