* { box-sizing: border-box; }
.site,
body:has(.site) {
  --bg: #231812;
  --panel: #fff8f1;
  --text: #f7efe4;
  --muted: #d8c4b0;
  --accent: #c46a3a;
  --line: rgba(196, 106, 58, 0.28);
  --ink: #2a1c14;
  --ink-muted: #6b5346;
  --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 {
  min-height: 88vh;
  background:
    linear-gradient(90deg, rgba(18, 8, 16, 0.42) 0%, rgba(18, 8, 16, 0.1) 38%, rgba(18, 8, 16, 0.02) 100%),
    linear-gradient(180deg, rgba(35, 24, 18, 0.12) 0%, rgba(35, 24, 18, 0.28) 50%, rgba(35, 24, 18, 0.88) 100%),
    url("/img/hero.jpg?v=3") center 40% / cover no-repeat;
}
.top { border-bottom: 1px solid var(--line); background: rgba(20, 12, 8, 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; }
.hero { padding: 72px 0 80px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #ffd2b3;
  margin: 0;
  text-shadow: 0 1px 10px rgba(10, 6, 4, 0.45);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  margin: 8px 0 12px;
  max-width: 16ch;
  color: #fff8f2;
  text-shadow: 0 2px 18px rgba(10, 6, 4, 0.5);
}
.lead {
  max-width: 640px;
  color: #f3e6d8;
  font-size: 18px;
  margin: 0;
  text-shadow: 0 1px 12px rgba(10, 6, 4, 0.4);
}
.panel {
  margin-top: 32px;
  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 textarea {
  height: 44px;
  border: 1px solid #e2d4c8;
  border-radius: 10px;
  font: inherit;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.panel button { width: auto; font: inherit; }
.panel button[type="submit"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  height: 44px;
  border-radius: 10px;
  font: inherit;
  padding: 0 16px;
  white-space: nowrap;
}
.panel button[type="submit"] { width: 100%; }
.btn .icon,
.panel button .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.icon--spin { animation: spin 0.8s linear infinite; }
.panel--stack { grid-template-columns: 1fr; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row--tools { gap: 8px; }
.btn:disabled,
.panel button:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid #e8d8cc;
  height: 28px;
  padding: 0 10px 0 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.panel .btn--ghost {
  height: 28px;
  flex-direction: row;
  flex-wrap: nowrap;
}
.btn__in {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.btn__ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn__ico .icon {
  width: 12px;
  height: 12px;
  display: block;
}
.btn--dl .btn__ico { background: #f3d2bc; color: #8a3e18; }
.btn--paste .btn__ico { background: #ead9c8; color: #5c4638; }
.btn--example .btn__ico { background: #f6d7a3; color: #8a5410; }
.btn--clear .btn__ico { background: #edd4ce; color: #7a3a32; }
.btn--ghost:hover {
  border-color: #d7b7a3;
  box-shadow: 0 4px 12px rgba(35, 24, 18, 0.1);
}
.btn--icon {
  min-width: 28px;
  width: 28px;
  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; }
.section--alt { background: #1a120e; }
.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 span { color: inherit !important; }
.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,
.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 .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, 1fr);
  gap: 8px 8px;
  row-gap: 20px;
}
.media-item { display: flex; flex-direction: column; gap: 8px; }
.media-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #eef1f4;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.media-tile img { object-fit: cover; }
.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; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-muted); padding: 0 4px; }
.metrics__item { display: inline-flex; align-items: center; gap: 4px; }
.metrics__time { margin-left: auto; }
.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 {
  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%; max-height: 60vh; margin: 0 auto; }
.post__media img,
.post__media video { width: 100%; height: auto; 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;
}
.dl:hover { color: #fff; text-decoration: none; }
.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: min(900px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  max-height: 90vh;
  overflow: auto;
}
.modal__body { padding: 16px 20px; }
.modal__close {
  position: absolute;
  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(255, 255, 255, 0.86);
}
.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 {
  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-drop summary::-webkit-details-marker { display: none; }
.lang-drop nav {
  position: absolute;
  right: 0;
  margin-top: 6px;
  min-width: 100%;
  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,
.lang-drop span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
}
.lang-drop a:hover { background: #f4f6f8; text-decoration: none; }
.lang-drop .is-on { background: #f3e0d2; font-weight: 600; }
.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); }
.field select,
.card-box select {
  height: 48px;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  font: inherit;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.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: 40px 0 48px; }
  .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; }
}
