* { box-sizing: border-box; }
.site,
body:has(.site) {
  --bg: #07111c;
  --panel: #ffffff;
  --text: #f7f1ea;
  --muted: #c9d3dc;
  --accent: #ff6d24;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #1b2430;
  --ink-muted: #5b6774;
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
}
body:has(.site) {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.site a { color: var(--accent); text-decoration: none; }
.site a:hover { text-decoration: underline; }
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.sky {
  --sky-image: url("/img/hero.jpg");
  background:
    linear-gradient(180deg, rgba(7, 17, 28, 0.12) 0%, rgba(7, 17, 28, 0.45) 48%, rgba(7, 17, 28, 0.88) 100%),
    var(--sky-image) center 32% / cover no-repeat;
}
@media (max-width: 768px) {
  .sky { --sky-image: url("/img/hero-mobile.webp"); }
  @supports (background-image: image-set(url("") type("image/avif"))) {
    .sky {
      --sky-image: image-set(
        url("/img/hero-mobile.avif") type("image/avif"),
        url("/img/hero-mobile.webp") type("image/webp")
      );
    }
  }
}
.home-extra table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.home-extra th, .home-extra td { padding: 6px 10px; border: 1px solid var(--line); }
.top { border-bottom: 1px solid var(--line); background: rgba(7, 17, 28, 0.28); }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }
.logo:hover { text-decoration: none; color: #fff; }
.logo span { color: var(--accent); }
.top__tools { display: flex; align-items: center; gap: 18px; }
.nav { display: flex; gap: 18px; }
.nav a { color: #fff; }
.tool-links { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 12px; }
.site .tool-links a { color: #fff; font-size: 0.9375rem; padding: 5px 0; overflow-wrap: anywhere; }
.tool-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
}
.hero { padding: 24px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--accent); margin: 0; }
.hero h1 { font-size: clamp(30px, 5vw, 53px); line-height: 1.08; font-weight: 700; margin: 0 0 20px; overflow-wrap: anywhere; }
.lead { max-width: 640px; color: var(--muted); font-size: 18px; margin: 0; }
.panel {
  margin-top: 0;
  background: var(--panel);
  color: var(--ink);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.panel label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.panel input,
.panel select,
.panel button,
.panel textarea {
  height: 48px;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  font: inherit;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.panel button { width: auto; }
.panel button[type="submit"],
.btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  min-width: 150px;
  height: 48px;
  border-radius: 10px;
  font: inherit;
  padding: 0 16px;
}
.btn:disabled,
.panel button:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--ghost {
  background: #f4f6f8;
  color: var(--ink);
  border: 1px solid #d8dee6;
}
.btn--icon {
  min-width: 48px;
  width: 48px;
  padding: 0;
}
.hint { color: var(--ink-muted); font-size: 12px; margin: 8px 0 0; }
.hero .hint { color: var(--ink-muted); }
.status {
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}
.status--ok { background: #e8f8ee; color: #1c6b3a; }
.status--err { background: #fdecec; color: #9b1c1c; }
.section { padding: 48px 0; }
.site:has(#results) .hero { padding-bottom: 0; }
#results { padding-top: 8px; }
.section--alt { background: #0b1824; }
.section h2 { font-size: 32px; margin: 0 0 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.steps b { display: block; font-size: 22px; margin-bottom: 8px; }
.steps span { color: var(--muted); }
.home-extra { color: var(--muted); font-size: 16px; line-height: 1.55; }
.home-extra h2,
.home-extra h3 { color: var(--text); margin: 0 0 12px; }
.home-extra p { margin: 0 0 12px; }
.home-extra a { color: var(--accent); }
.home-extra ul { list-style: disc; }
.home-extra ol { list-style: decimal; }
.home-extra ul,
.home-extra ol { margin: 0 0 12px; padding-left: 1.2em; }
.results {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.results a { color: var(--accent); }
.spin {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--accent);
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
.spin--sm { width: 16px; height: 16px; }
.spin--md { width: 24px; height: 24px; }
.spin--lg { width: 32px; height: 32px; }
.spin-wrap { text-align: center; padding: 16px 0; }
.spin-wrap p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.results .spin-wrap p { color: var(--ink-muted); }
.empty { text-align: center; padding: 32px 0; color: var(--ink-muted); font-size: 14px; }
.load-more { padding: 24px 0; }
.load-more p { text-align: center; font-size: 14px; color: var(--ink-muted); }
.profile-head { display: flex; align-items: flex-start; gap: 16px; padding: 8px 0 16px; }
.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8dee6;
}
.profile-head h2 { font-size: 22px; margin: 0; }
.profile-head > .avatar { flex-shrink: 0; }
.profile-stories { position: relative; flex-shrink: 0; padding: 5px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #ffb347, var(--accent)); cursor: pointer; }
.profile-stories .avatar { display: block; border: 3px solid #fff; }
.profile-stories__count { position: absolute; right: 0; bottom: 0; min-width: 25px; height: 25px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 20px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.profile-stories:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.profile-head .muted { font-size: 14px; color: var(--ink-muted); }
.bio { font-size: 14px; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; margin-top: 12px; }
.stats b { margin-right: 6px; }
.tabs { display: flex; border-bottom: 1px solid #d8dee6; margin-bottom: 16px; }
.tabs button {
  flex: 1;
  padding: 0 0 12px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.tabs button.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.media-item { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e4e8ed; border-radius: 12px; background: #f7f9fb; box-shadow: 0 3px 8px rgba(0,0,0,.06); }
.media-item__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.media-item__caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; min-height: 2.8em; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.media-item__body .dl { margin-top: auto; min-height: 54px; border: 2px solid #fff; outline: 2px solid var(--accent); border-radius: 8px; font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; }
.media-item__body .dl:disabled { opacity: .6; cursor: wait; }
.media-item__body .dl:focus-visible { outline: 3px solid #172b45; outline-offset: 4px; }
.media-item__error { margin: 0; color: #b42318; font-size: 13px; }
.media-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #eef1f4;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.media-tile img { object-fit: cover; }
.media-grid--stories .media-tile, .media-grid--reels .media-tile { aspect-ratio: 9 / 16; background: #111; }
.media-grid--stories .media-tile img, .media-grid--reels .media-tile img { object-fit: contain; }
.media-tile__tools { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 24px; background: rgba(0,0,0,.55); color: #fff; }
.media-tile__tools .icon { width: 24px; height: 24px; }
.media-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.media-tile__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 12px;
}
.overlay { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px #000); }
.metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--ink-muted); }
.metrics > div:first-child { display: flex; gap: 12px; }
.metrics__item { display: inline-flex; align-items: center; gap: 4px; }
.metrics__time { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.hl-row { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 16px; }
.hl { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.hl button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 0;
  border: 3px solid #d8dee6;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.hl button img { object-fit: cover; }
.hl button.is-on { border-color: var(--accent); }
.hl span { font-size: 12px; color: var(--ink-muted); max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid #d8dee6; border-radius: 12px; background: #f7f9fb; }
.author img { border-radius: 8px; object-fit: cover; }
.author b { display: block; font-size: 18px; }
.author span { font-size: 14px; color: var(--ink-muted); }
.caption { padding: 12px; border: 1px solid #d8dee6; border-radius: 12px; background: #f7f9fb; }
.caption p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.post { margin-top: 8px; }
.post__stage { position: relative; max-width: 800px; margin: 0 auto; }
.post__frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #d8dee6;
  background: #000;
}
.post__frame.is-load { border: 0; border-radius: 0; }
.post__media { position: relative; width: 100%; margin: 0 auto; }
.post__media img,
.post__media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.post__media.is-wait img,
.post__media.is-wait video { opacity: 0; }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 0;
}
.site .dl { color: #fff; }
.dl:hover { color: #fff; text-decoration: none; }
.dl--icon { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d8dee6;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  color: var(--ink);
}
.car-btn--l { left: 12px; }
.car-btn--r { right: 12px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(27, 36, 48, 0.28);
  cursor: pointer;
  padding: 0;
}
.dots button.is-on { width: 24px; background: var(--ink); }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
}
.modal__box {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 96px);
  max-height: calc(100dvh - 64px);
  color: #fff;
}
.modal { overflow-y: auto; }
.modal__body { padding: 0; }
.modal .spin-wrap p,
.post--compact .media-tile__empty { color: var(--muted); }
.modal__body > .spin-wrap { min-width: 220px; padding: 32px; }
.post--compact { margin: 0; max-width: 100%; }
.post--compact .post__frame { border: 0; }
.post--compact .author { padding: 0 0 12px; border: 0; background: transparent; color: #fff; gap: 10px; }
.post--compact .author span { color: var(--muted); }
.post--compact .caption { margin-top: 12px; border: 0; background: transparent; color: #fff; padding: 0; }
.post--compact .car-btn { display: grid; place-items: center; }
.post--compact .car-btn--l { left: -48px; }
.post--compact .car-btn--r { right: -48px; }
.post--compact .dots button { background: rgba(255, 255, 255, 0.4); }
.post--compact .dots button.is-on { background: #fff; }
.modal__close {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}
.modal__cover {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  border-radius: 16px;
}
.lang { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lang__on { color: #fff; font-weight: 600; }
.lang a { color: rgba(255, 255, 255, 0.75); }
.lang-drop { position: relative; z-index: 40; }
.lang-drop summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
}
.lang-flag { width: 20px; height: 15px; object-fit: contain; flex: none; filter: drop-shadow(0 0 1px #0004); }
.lang-drop summary::-webkit-details-marker { display: none; }
.lang-drop nav {
  position: absolute;
  right: 0;
  margin-top: 6px;
  min-width: max(100%, 9rem);
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 6px;
}
.lang-drop li { list-style: none; }
.lang-drop ul { margin: 0; padding: 0; }
.lang-drop a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
}
.lang-drop a:hover { background: #f4f6f8; text-decoration: none; }
.lang-drop .is-on { background: #ffe6d6; font-weight: 600; }
.foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.content-page h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 20px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); margin-top: auto; }
.foot p { margin: 0 auto 8px; max-width: 720px; text-align: center; font-size: 12px; }
.page-msg { text-align: center; padding: 72px 16px; }
.page-msg h1 { font-size: 40px; margin: 0 0 12px; }
.page-msg p { color: var(--muted); margin: 0 0 20px; }
.icon { width: 20px; height: 20px; display: block; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 24px; height: 24px; }
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f4;
  color: var(--ink-muted);
  font-size: 12px;
}
.hidden { display: none; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.block { display: block; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--ink-muted); }
.chip {
  border: 1px solid #d8dee6;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.chip.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.bar {
  height: 8px;
  background: #e8ecf0;
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.skel {
  border-radius: 10px;
  background: linear-gradient(90deg, #e8ecf0 0%, #f3f5f7 42%, #e8ecf0 100%);
  background-size: 220% 100%;
  animation: pulse 1.8s ease-in-out infinite;
}
.card-box {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.promo-card b { display: block; font-size: 22px; margin-bottom: 8px; color: var(--text); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.faq-item b { display: block; margin-bottom: 6px; color: var(--text); }
.faq-item span { color: var(--muted); font-size: 14px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { background-position: 100% 0; opacity: 0.72; }
  50% { background-position: 0 0; opacity: 1; }
  100% { background-position: 100% 0; opacity: 0.72; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .sky { min-height: 0; }
  .hero { padding: 20px 0; }
  .hero h1 { max-width: none; }
  .panel { grid-template-columns: 1fr; }
  .steps,
  .promo-grid,
  .feat-grid,
  .split,
  .split--rev,
  .media-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 979px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .modal { padding: 48px 12px 16px; }
  .modal__box { max-width: 100%; }
  .post--compact .car-btn--l { left: 6px; }
  .post--compact .car-btn--r { right: 6px; }
}
