@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: dark;
  --bg: #0c1010;
  --surface: #151a19;
  --raised: #1c2220;
  --ink: #f2f4eb;
  --muted: #a6afa8;
  --faint: #8b978e;
  --line: #2c3731;
  --accent: #def983;
  --accent-hover: #edffa9;
  --accent-ink: #182009;
  --width: 1200px;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0; line-height: 1.6; }
h1, h2, h3 { margin: 0; }

:is(a, button, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--width), calc(100% - 96px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 5;
  padding: 10px 14px;
  transform: translateY(-170%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip:focus { transform: translateY(0); }

.header {
  border-bottom: 1px solid #252e29;
  background: #0f1312;
}

.header-row,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-row { min-height: 76px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.065em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #efffac;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
}

.nav, .foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.nav a, .foot-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover, .foot-links a:hover, .foot-links a[aria-current] {
  color: var(--accent);
}

.nav .header-help {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
}

.nav .header-help:hover { border-color: var(--faint); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 66px);
  padding-block: 61px 64px;
}

.hero-content { min-width: 0; }

.hero h1 {
  font-size: clamp(3rem, 5.65vw, 5.5rem);
  font-weight: 800;
  line-height: 1.015;
  letter-spacing: -.074em;
  overflow-wrap: anywhere;
}

.hero h1 span { color: var(--accent); }

.hero-copy {
  max-width: 455px;
  margin-top: 19px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.1875rem);
  line-height: 1.55;
}

.art {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  align-self: stretch;
  min-height: 410px;
  border-radius: 20px;
  mask-image: radial-gradient(ellipse 72% 69% at 53% 50%, #000 49%, transparent 99%);
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
}

.downloader {
  margin-top: 27px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(160deg, #171d1b, #131716 82%);
  box-shadow: 0 17px 42px #0005, 0 1px 0 #ffffff07 inset;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
  scroll-margin-top: 16px;
}

.platform-card {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid #303b35;
  border-radius: 10px;
  background: #202724;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}

.platform-card strong { font-weight: 700; }

.platform-card:hover,
.platform-card[aria-current] {
  border-color: #68765a;
  background: #2c362b;
}

.platform-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 750;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.field {
  display: flex;
  align-items: center;
  min-height: 54px;
  min-width: 0;
  border: 1px solid #3a473e;
  border-radius: 11px;
  background: #0d1110;
}

.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #def98328;
}

.field:has([aria-invalid="true"]) { border-color: #eb9589; }

.field input {
  width: 0;
  min-width: 0;
  flex: 1;
  height: 51px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.field input::placeholder { color: var(--faint); }

.paste {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  margin-right: 5px;
  padding: 0 10px;
  border: 1px solid #303c34;
  border-radius: 7px;
  background: #1c2620;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.paste:hover { background: #2b3b30; }

.clip-icon {
  position: relative;
  width: 11px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.clip-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 5px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: #1c2620;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s;
}

.primary:hover { background: var(--accent-hover); }
.primary:disabled { opacity: .67; cursor: wait; }

.form-hint {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.form-legal { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-legal a { color: var(--accent); text-underline-offset: 3px; }

.search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  margin-right: 2px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 6px;
  height: 1.8px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: currentColor;
}

.dl {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-bottom: 1.8px solid currentColor;
  border-radius: 2px;
}

.dl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 1.8px;
  height: 10px;
  background: currentColor;
}

.dl::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
}

.result {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #394c36;
  border-radius: 12px;
  background: #111711;
}

.result strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
}

.status { color: var(--muted); font-size: 14px; }
.countdown { margin-top: 6px; color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }
.result strong:not([hidden]) + .status { margin-top: 5px; }

.result[data-state="error"] {
  border-color: #6d443d;
  background: #231813;
}

.result[data-state="error"] .status { color: #ffb3a3; }

.result-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.quality-field { flex: 1 1 210px; min-width: 0; }
.quality-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 750; }

.quality-field select {
  appearance: none;
  width: 100%;
  min-inline-size: 0;
  height: 48px;
  padding: 0 30px 0 10px;
  border: 1px solid #3d4d41;
  border-radius: 10px;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 21px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 21px / 5px 5px no-repeat, var(--raised);
  color: var(--ink);
  text-overflow: ellipsis;
}

#save { display: inline-flex; align-items: center; max-width: 100%; }
.progress { display: block; width: 100%; height: 8px; margin-top: 10px; accent-color: var(--accent); }
.noscript { margin-top: 10px; color: #ffb3a3; font-size: 14px; }

.retry {
  display: inline-block;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide {
  padding-block: 41px 42px;
  border-block: 1px solid #26302a;
  background: #101513;
}

.guide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.guide h2, .faq h2, .legal h1 {
  font-size: clamp(1.9rem, 3.45vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.062em;
  line-height: 1.07;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.guide-intro { max-width: 690px; margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }

.device-switch {
  display: inline-flex;
  gap: 4px;
  min-inline-size: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b100d;
}

.device-option {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.device-option:has(input:checked) {
  border-color: #394638;
  background: #29362a;
  color: var(--accent);
}

.device-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.device-icon {
  position: relative;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
}

.device-monitor { width: 14px; height: 10px; margin-bottom: 3px; border-radius: 2px; }

.device-monitor::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -4px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
}

.device-phone { width: 9px; height: 15px; border-radius: 2px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.device-mobile,
.device-guide:has(input[value="mobile"]:checked) .device-pc { display: none; }

.device-guide:has(input[value="mobile"]:checked) .device-mobile { display: grid; }

.step {
  padding: 13px 13px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.step-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 107px;
  margin-bottom: 15px;
  padding: 11px;
  border: 1px solid #334337;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 90%, #2c3d2a, #1d2921 73%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.preview-address, .preview-note, .preview-quality, .preview-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #475b4a;
  border-radius: 6px;
  background: #141c16;
  overflow-wrap: anywhere;
}

.preview-address { color: #c9d3c5; }
.preview-address i { flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.preview-button { border-color: transparent; background: var(--accent); color: var(--accent-ink); }

.preview-mobile {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: min(135px, 100%);
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #71816f;
  border-radius: 9px;
  background: #141c16;
}

.step h3 { margin: 0 4px 6px; font-size: 19px; font-weight: 800; letter-spacing: -.036em; }
.step p { margin-inline: 4px; color: var(--muted); font-size: 16px; }

.features { padding-top: clamp(36px, 5vw, 60px); }
.features h2 { font-size: clamp(25px, 4vw, 36px); letter-spacing: -.025em; }
.features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.features li { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.features h3 { margin: 0 0 6px; font-size: 16px; }
.features p { color: var(--muted); font-size: 14px; }

.faq {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) 1.3fr;
  gap: 38px;
  padding-block: 54px 64px;
}

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding: 0 26px 16px 0; }

.footer { border-top: 1px solid var(--line); background: #0f1411; }
.footer-inner { padding-block: 22px; }
.foot-links { justify-content: flex-end; gap: 12px 18px; }
.legal { max-width: 730px; padding-block: 65px; }
.legal p, .legal h2 { margin-top: 18px; }
.legal p, .legal h2 { overflow-wrap: anywhere; }
.legal p { color: var(--muted); }
.legal a, .trail a { color: var(--accent); }

.trail { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; color: var(--muted); font-size: 14px; }
.trail + .hero { padding-top: 35px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(2.75rem, 5.9vw, 4rem); }
  .platform-card { gap: 6px; font-size: 13px; }
}

@media (max-width: 830px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 43px 46px; }
  .hero-content { max-width: 650px; }
  .hero h1 { font-size: clamp(2.7rem, 8vw, 4.5rem); }
  .art { display: none; }
}

@media (max-width: 740px) {
  .header-row { min-height: 65px; gap: 13px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .nav .header-help { display: none; }
  .guide { padding-block: 33px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .step-preview { min-height: 80px; margin-bottom: 11px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 17px; padding-block: 37px 45px; }
  .foot-links { gap: 9px 13px; }
  .foot-links a { font-size: 13px; }
  .footer-inner { align-items: flex-start; }
  .legal { padding-block: 42px 55px; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - clamp(20px, 8vw, 32px)); }
  .hero { padding-block: 31px 34px; }
  .hero h1 { font-size: clamp(1.75rem, 10.1vw, 3.65rem); }
  .hero-copy { margin-top: 14px; }
  .downloader { margin-top: 20px; padding: clamp(8px, 3.5vw, 12px); }
  .platform-grid { gap: 6px; margin-bottom: 13px; }
  .platform-card { padding-inline: 5px; font-size: 13px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-row .primary { min-height: 50px; }
  .primary { white-space: normal; text-align: center; }
  .result-actions .primary, #save { width: 100%; }
  .field input { padding-left: 10px; }
  .guide-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .device-switch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .device-option { min-height: 44px; }
  .guide h2, .faq h2, .legal h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .legal h2 { font-size: clamp(1.125rem, 4.5vw, 1.5rem); line-height: 1.2; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .foot-links { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .platform-card { flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 360px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 9px 3px; }
  .nav { gap: 6px 14px; }
  .nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }
  .brand { gap: 7px; font-size: 22px; }
  .brand-mark { width: 31px; height: 31px; }
  .device-option { padding-inline: 8px; }
}

@media (max-width: 280px) {
  .platform-grid { gap: 5px; }
  .platform-card {
    justify-content: flex-start;
    padding-inline: 2px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .paste { gap: 4px; padding-inline: 7px; font-size: 13px; }
  .result, .step { padding-inline: 9px; }
}

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