:root {
  color-scheme: dark;
  --canvas: #101010;
  --paper: #181818;
  --button-ink: #17110d;
  --ink: #f5f3ef;
  --muted: #aaa8a4;
  --line: #ffffff21;
  --brand: #ff5b21;
  --brand-hover: #ff7848;
  --wash: #2d211b;
  --hero: #1a1614;
  --accent: #ff6730;
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.shell { width: min(1136px, calc(100% - 64px)); margin-inline: auto; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 800; white-space: nowrap; }
.brand img { display: block; }
.brand-dot { color: var(--brand); }
nav { align-self: stretch; display: flex; align-items: stretch; gap: 31px; }
nav a { display: grid; align-items: center; position: relative; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
nav a:hover, nav .current { color: var(--brand); }
nav .current::after { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--brand); content: ""; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: inline-flex; direction: rtl; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.language-switch button { padding: 6px 9px; min-height: 33px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 730; }
.language-switch button:hover { color: var(--ink); }
.language-switch button[aria-pressed="true"] { background: var(--wash); color: var(--brand-hover); }
.telegram { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.telegram .icon { width: 17px; height: 17px; color: var(--brand); }
.telegram:hover { background: var(--wash); border-color: #ff5b2166; }

.hero { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 30px; min-height: 382px; margin-top: 32px; padding: 50px 64px 72px; overflow: hidden; isolation: isolate; color: #fff; border-radius: 28px; background: radial-gradient(ellipse at 12% 20%, #412116 0%, transparent 55%), var(--hero); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(43px, 5.2vw, 76px); line-height: 1.21; letter-spacing: -.025em; font-weight: 830; }
.hero h1 .hero-dot { color: var(--accent); }
[lang="en"] .hero { background-image: radial-gradient(ellipse at 88% 20%, #412116 0%, transparent 55%); }
[lang="en"] .hero h1 { font-size: clamp(40px, 4.7vw, 67px); letter-spacing: -.045em; }
.hero p { max-width: 425px; margin-top: 21px; color: #dad2cb; font-size: clamp(15px, 1.65vw, 20px); line-height: 1.75; }
.art { position: relative; direction: ltr; min-height: 246px; }
.art-grid { position: absolute; inset: -72px -56px -80px -38px; z-index: -1; opacity: .6; background-image: linear-gradient(90deg, #ff9b6e26 1px, transparent 1px), linear-gradient(#ff9b6e26 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 44% 45%, #000 10%, transparent 69%); }
.film-back { position: absolute; width: 70%; aspect-ratio: 1.53; top: 12%; left: 21%; transform: rotate(11deg); border: 1px solid #ff9b6e58; background: #b9795c2b; border-radius: 16px; padding: 14px; }
.film-back span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #e5ccbea6; margin: 0 4px 0 0; }
.film { width: 78%; position: absolute; top: 12%; left: 5%; transform: rotate(-7deg); overflow: hidden; border: 1px solid #b2796380; border-radius: 15px; background: #29231f; color: #f5e9e2; box-shadow: 0 24px 44px #0009; }
.film-top { height: 32px; padding-inline: 12px; display: flex; align-items: center; gap: 5px; }
.film-top i { width: 5px; height: 5px; border-radius: 50%; background: #a88778; }
.film-top span { margin-left: auto; font-size: 10px; font-weight: 730; }
.film-media { position: relative; aspect-ratio: 1.88; background: #2d1415; }
.film-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-disc { display: grid; place-items: center; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 43px; height: 43px; border-radius: 50%; color: #fff; background: #120e0ca0; border: 1px solid #ffffff85; }
.play-disc .icon { width: 18px; height: 18px; transform: translateX(1px); fill: currentColor; }
.play-disc:hover { background: #120e0ce0; border-color: #fff; }
.duration { position: absolute; left: 9px; bottom: 8px; font: 600 10px/1 system-ui; background: #100c0abf; color: white; padding: 5px 7px; border-radius: 5px; }
.film-caption { padding: 10px 12px; }
.film-progress { height: 3px; border-radius: 5px; background: linear-gradient(90deg, var(--brand) 42%, #54453f 42%); }
.art-download { position: absolute; display: grid; place-items: center; left: 76%; top: 73%; width: 60px; height: 60px; color: var(--button-ink); background: #ff895e; border-radius: 18px; transform: rotate(10deg); box-shadow: 0 14px 24px #0008; border: 1px solid #ffab8a; }
.art-download .icon { width: 30px; height: 30px; }

.tool { position: relative; z-index: 3; width: min(918px, calc(100% - 56px)); margin: -44px auto 0; scroll-margin-top: 57px; }
.link-form { padding: 20px 22px 22px; border-radius: 19px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 11px 27px #0005; }
.field-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 11px; }
.field-title label { font-size: 14px; font-weight: 750; }
.text-button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--brand); font-size: 13px; font-weight: 750; }
.text-button .icon { width: 15px; height: 15px; }
[lang="en"] .text-button .icon { transform: scaleX(-1); }
.text-button:hover { text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.url-field { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #131313; display: flex; gap: 10px; align-items: center; padding-inline: 12px 6px; min-height: 53px; }
.url-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px #ff5b2126; }
.field-icon { color: #a29a95; }
.url-field input { width: 100%; min-width: 0; height: 48px; padding-inline: 4px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 15px; text-align: left; }
.url-field input::placeholder { color: #a29a95; }
.paste-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 37px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 740; }
.paste-button .icon { width: 16px; height: 16px; }
.paste-button:hover { color: var(--brand); border-color: #ff5b2170; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding-inline: 19px; border: 0; border-radius: 12px; background: var(--brand); color: var(--button-ink); font-size: 14px; font-weight: 750; white-space: nowrap; }
.primary-button:hover { background: var(--brand-hover); }
.primary-button:disabled { opacity: .75; }
.primary-button[aria-busy="true"] .icon { display: none; }
.primary-button[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border: 2px solid #16110e55; border-inline-start-color: var(--button-ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { margin-top: 11px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.status.error { color: #ff9890; }

.results { width: min(918px, calc(100% - 56px)); margin: 20px auto 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.result-heading h2 { font-size: 19px; }
.result-heading span { color: var(--brand); font-size: 13px; font-weight: 700; }
.media-list { display: grid; list-style: none; padding: 0; margin: 0; }
.media-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.file-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--wash); color: var(--brand); }
.file-info { display: grid; gap: 3px; margin-inline-end: auto; }
.file-info strong { font-size: 14px; }
.file-info small { color: var(--muted); font-size: 12px; }
.secondary-button { min-height: 40px; padding-inline: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; }
.secondary-button:hover { background: var(--wash); color: var(--brand); }
.media-format { min-height: 40px; padding-inline: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; }
.media-item .primary-button { min-height: 40px; padding-inline: 13px; border-radius: 10px; font-size: 13px; }
.media-item .primary-button .icon { width: 16px; height: 16px; }

.platforms { padding: 37px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.platforms h2 { font-size: 13px; font-weight: 720; color: var(--muted); margin-bottom: 14px; }
.platforms ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 13px; font-weight: 720; color: var(--ink); }
.platform { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 4px; font: 800 14px/1 system-ui; color: white; }
.platform svg { width: 17px; height: 17px; fill: currentColor; }
.linkedin { background: #0966c2; }
.pinterest { color: #bf1327; background: #fce9ed; }
.facebook { background: #166edf; font-size: 19px; }
.instagram { color: #9c286e; background: #f9e6f2; }
.instagram svg { fill: none; }
.tiktok { background: #141725; }

.instructions { padding: 40px 0 43px; border-bottom: 1px solid var(--line); }
.instructions h2, .faq h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.35; margin-bottom: 18px; }
.instructions ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; }
.instructions li { display: flex; align-items: start; gap: 14px; padding: 14px 21px; }
.instructions li:first-child { padding-inline-start: 0; }
.instructions li + li { border-inline-start: 1px solid var(--line); }
.step { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; color: var(--brand); background: var(--wash); font-weight: 760; }
.instructions h3 { font-size: 16px; margin-bottom: 5px; }
.instructions p, .faq p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.faq { padding: 39px 0 43px; display: grid; grid-template-columns: 1fr 2fr; gap: 25px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 730; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 17px; height: 17px; color: var(--brand); }
.faq details[open] .icon { transform: rotate(45deg); }
.faq details p { padding-block: 0 14px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 17px; padding: 19px 0 24px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 19px; }
.site-footer p { color: var(--muted); font-size: 12px; }
.developer-credit { display: grid; gap: 3px; text-align: end; }
.developer-credit span { color: var(--muted); font-size: 11px; }
.developer-credit a { color: var(--brand-hover); font-size: 14px; font-weight: 750; white-space: nowrap; }
.developer-credit a:hover { text-decoration: underline; }

.preview { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 35px); margin: auto; padding: 19px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.preview::backdrop { background: #080605c7; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.preview-head h2 { font-size: 17px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; }
.preview-media img, .preview-media video { display: block; width: 100%; max-height: 66vh; object-fit: contain; border-radius: 10px; background: #100e0d; }

@media (max-width: 900px) {
  nav { gap: 17px; }
  .hero { gap: 15px; min-height: 354px; padding-inline: 38px; }
  .film { width: 84%; }
  .art-download { left: 78%; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .brand { font-size: 22px; }
  .brand img { width: 34px; height: 34px; }
  nav { display: none; }
  .telegram { min-height: 36px; padding-inline: 10px; }
  .header-actions { gap: 6px; }
  .hero { grid-template-columns: 1fr; gap: 4px; margin-top: 18px; min-height: 0; padding: 25px 22px 47px; border-radius: 22px; }
  .hero h1 { font-size: clamp(36px, 9.5vw, 53px); }
  [lang="en"] .hero h1 { font-size: clamp(32px, 9.5vw, 52px); }
  .hero p { max-width: 400px; margin-top: 9px; font-size: 15px; }
  .art { min-height: clamp(154px, 41vw, 205px); width: min(340px, 100%); margin: 4px auto 0; }
  .film { top: 11%; left: 10%; width: 68%; }
  .film-back { left: 25%; width: 63%; }
  .film-top { height: 23px; }
  .film-caption { padding: 7px 9px; }
  .art-download { width: 44px; height: 44px; left: 73%; top: 65%; border-radius: 13px; }
  .art-download .icon { width: 24px; height: 24px; }
  .play-disc { width: 34px; height: 34px; }
  .tool, .results { width: calc(100% - 18px); }
  .tool { margin-top: -31px; }
  .link-form, .results { padding: 14px; border-radius: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .form-row > .primary-button { min-height: 44px; }
  .platforms { padding: 25px 0 28px; }
  .platforms li { min-height: 35px; padding-inline: 8px; gap: 5px; font-size: 12px; }
  .platforms ul { gap: 7px; }
  .instructions { padding-block: 25px; }
  .instructions ol, .faq { grid-template-columns: 1fr; }
  .instructions li { padding: 12px 0; }
  .instructions li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .faq { padding-block: 25px; gap: 0; }
  .site-footer .brand img { width: 25px; height: 25px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .media-item { gap: 7px; }
  .file-icon { width: 34px; height: 34px; }
  .secondary-button, .media-item .primary-button { padding-inline: 8px; }
  .media-item.has-options { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .media-item.has-options .secondary-button { grid-area: 1 / 3; }
  .media-item.has-options .primary-button { grid-area: 2 / 3; }
  .media-format { grid-area: 2 / 1 / 3 / 3; width: 100%; }
}
@media (max-width: 430px) {
  .telegram span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button[aria-busy="true"]::before { animation: none; }
}
