:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --card: #fefefd;
  --ink: #202523;
  --muted: #626862;
  --quiet: #686d65;
  --line: #e1dfd7;
  --accent: #db4831;
  --action: #bd3927;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
p { margin: 0; }
.wrap { width: min(1116px, calc(100% - 64px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 28px; font-weight: 800; letter-spacing: -.085em; transform: scaleX(.88); transform-origin: left; }
.logo span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 36px; color: #393e3a; font-size: 14px; font-weight: 700; }
.registration { color: var(--quiet); display: flex; gap: 9px; align-items: center; font-weight: 400; font-size: 13px; }
.registration::before { content: ""; width: 7px; height: 7px; background: #639c6c; border-radius: 50%; }

.hero { min-height: 666px; padding-block: 70px; display: grid; grid-template-columns: 1fr 1.06fr; gap: 52px; align-items: center; }
.eyebrow { color: #565b55; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }
h1 { margin: 32px 0 29px; font-size: clamp(53px, 5.7vw, 82px); line-height: 1.07; letter-spacing: -.065em; }
h1 em { color: var(--accent); font-family: Georgia, 'Times New Roman', serif; font-size: .86em; font-weight: 400; letter-spacing: -.075em; }
.description { color: var(--muted); max-width: 415px; font-size: 18px; line-height: 1.68; }
.note { display: flex; align-items: center; gap: 12px; margin-top: 57px; font-size: 13px; color: var(--quiet); }
.note .icon { color: #8b8f84; }

.card { padding: 27px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px #4c3f2010; min-width: 0; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid #e6e4de; }
.tabs button { display: flex; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--quiet); font-size: 15px; font-weight: 700; padding: 5px 0 19px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.tabs .icon { width: 16px; height: 16px; }
.panel { margin: 22px 0 20px; }
.drop { min-height: 223px; display: flex; padding: 23px 15px; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #c8c5ba; border-radius: 13px; background: #f9f8f6; }
.drop.dragging { background: #fcf1e9; border-color: var(--accent); }
.drop-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.drop strong { max-width: 100%; overflow-wrap: anywhere; margin-top: 15px; font-size: 17px; }
#file-detail { margin: 8px 0 16px; font-size: 13px; color: var(--quiet); }
.secondary { background: var(--card); color: var(--ink); border: 1px solid #d7d4cb; border-radius: 8px; padding: 10px 15px; font-size: 13px; font-weight: 700; }
.secondary:hover { border-color: var(--quiet); }
.limits { display: flex; justify-content: space-between; font-size: 11px; color: var(--quiet); margin-top: 14px; }
.youtube { margin-top: 27px; }
.panel label, .access label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.url-field { display: flex; align-items: center; gap: 12px; padding: 0 15px; height: 57px; background: #f9f8f6; border: 1px solid #d7d4cb; border-radius: 10px; color: var(--quiet); }
.url-field:focus-within { border-color: var(--action); }
.url-field input { min-width: 0; flex: 1; height: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
input::placeholder { color: #737970; }
#youtube-hint { margin-top: 15px; font-size: 13px; color: var(--quiet); }
.video-mark { display: grid; place-items: center; height: 131px; color: #e0e0db; }
.video-mark .icon { width: 60px; height: 60px; stroke-width: 1; }
.primary { display: flex; justify-content: center; align-items: center; gap: 13px; width: 100%; min-height: 53px; padding: 12px; color: white; background: var(--action); border: 0; border-radius: 9px; font-size: 15px; font-weight: 700; }
.primary:hover:not(:disabled) { background: #a83020; }
.primary:disabled { background: #d3d2ca; cursor: default; }
.access { margin-bottom: 16px; }
.access input { width: 100%; border: 1px solid #d7d4cb; border-radius: 8px; padding: 10px; }
.error { color: #a83020; font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
.fallback { margin-bottom: 12px; }
.outcome { min-height: 390px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 17px; text-align: center; }
.outcome h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.outcome p { color: var(--muted); font-size: 14px; }
#progress-wait, #progress-return { max-width: 320px; line-height: 1.45; }
#progress-return { color: var(--quiet); font-size: 13px; }
audio { width: 100%; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.steps { border-block: 1px solid var(--line); }
.steps ol { min-height: 107px; margin-block: 0; padding: 36px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; }
.steps li { display: flex; align-items: baseline; gap: 14px; font-size: 15px; font-weight: 700; }
.steps li span { color: var(--action); font-size: 12px; letter-spacing: .04em; }
.footer-inner { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 12px; }

@media (max-width: 850px) {
  .hero { gap: 24px; }
  .card { padding-inline: 19px; }
  .tabs { gap: 18px; }
  .tabs button { font-size: 13px; }
}

@media (max-width: 700px) {
  .wrap { width: min(480px, calc(100% - 40px)); }
  .header-inner { min-height: 68px; }
  .logo { font-size: 26px; }
  nav { font-size: 13px; }
  .registration, .note { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 38px; min-height: 0; padding-block: 56px 45px; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; }
  h1 { margin: 23px 0 20px; font-size: clamp(42px, 12.2vw, 57px); }
  .description { font-size: 16px; line-height: 1.53; }
  .card { padding: 22px 19px; }
  .tabs { gap: 24px; }
  .tabs .icon { width: 14px; height: 14px; }
  .panel { margin-top: 20px; }
  .drop { min-height: 215px; }
  .url-field input { font-size: 16px; }
  .steps ol { grid-template-columns: 1fr; gap: 18px; padding-block: 26px; }
  .steps li { font-size: 14px; }
  .footer-inner { min-height: 60px; }
}

@media (max-width: 350px) {
  .tabs { gap: 12px; }
  .tabs button { gap: 5px; }
}
