:root {
  --bg: #f3efe6;
  --surface: #fffdf8;
  --surface-soft: #fbf8f1;
  --ink: #1c241f;
  --ink-2: #334039;
  --muted: #5d665f;
  --line: #ddd6c8;
  --line-strong: #c9c1b1;
  --accent: #0e7257;
  --accent-strong: #0a5c46;
  --accent-soft: #e3f2ea;
  --accent-line: #bfe0cf;
  --warm: #dd6b3d;
  --warm-soft: #fbe9df;
  --danger: #b3261e;
  --danger-soft: #fce8e6;
  --danger-line: #f0c4c0;
  --shadow: 0 28px 70px -36px rgba(28, 36, 31, 0.45);
  --shadow-soft: 0 18px 40px -30px rgba(28, 36, 31, 0.3);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(173, 212, 190, 0.5), transparent 70%),
    radial-gradient(760px 420px at -8% 24%, rgba(246, 210, 185, 0.62), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid rgba(14, 114, 87, 0.45);
  outline-offset: 3px;
}

::selection {
  background: rgba(14, 114, 87, 0.2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

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

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  padding: 22px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.brand__name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand__dot {
  color: var(--warm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--muted);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.language-switch:hover {
  border-color: #b7ae9d;
  background: var(--surface-soft);
}

.language-switch:focus-within {
  outline: 3px solid rgba(14, 114, 87, 0.4);
  outline-offset: 2px;
}

.language-switch__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--muted);
}

.language-switch select {
  min-height: 26px;
  padding: 2px 2px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}

.language-switch select:focus-visible {
  outline: none;
}

/* Hero */

.hero {
  padding: 44px 0 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(410px, 0.98fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(221, 107, 61, 0.16);
}

.hero h1 {
  margin: 18px 0 24px;
  font-size: clamp(2.7rem, 5.2vw, 4.55rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.accent-word {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
  background-image: linear-gradient(transparent 71%, rgba(221, 107, 61, 0.3) 71%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lede {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 650;
}

.hero__facts svg {
  color: var(--accent);
}

.hero__converter {
  min-width: 0;
}

/* Converter card */

.converter {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(28, 36, 31, 0.08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.converter::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #45a887 60%, var(--warm));
}

.converter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.converter__head h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.limit-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Dropzone */

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--surface-soft);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.dropzone:hover {
  border-color: var(--accent);
  background: #f7fbf8;
}

.dropzone:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 114, 87, 0.13);
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 3px rgba(14, 114, 87, 0.08);
}

.dropzone.is-busy {
  opacity: 0.62;
}

.dropzone.is-error {
  border-color: var(--danger);
  animation: shake 0.35s ease;
}

.dropzone__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 190px;
  padding: 30px 18px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.dropzone__button:focus-visible {
  outline: none;
}

.dropzone__button:disabled {
  cursor: wait;
}

.dropzone__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  transition: transform 0.18s ease;
}

.dropzone:hover .dropzone__icon {
  transform: translateY(-2px);
}

.dropzone__title {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.dropzone__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.dropzone__link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dropzone.is-compact {
  border-style: solid;
  background: #f9fbf8;
}

.dropzone.is-compact .dropzone__button {
  flex-direction: row;
  gap: 12px;
  min-height: 0;
  padding: 13px 16px;
}

.dropzone.is-compact .dropzone__icon {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 11px;
}

.dropzone.is-compact .dropzone__icon svg {
  width: 19px;
  height: 19px;
}

.dropzone.is-compact .dropzone__title {
  font-size: 0.92rem;
}

.dropzone.is-compact .dropzone__sub {
  display: none;
}

.hint {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* Selected file */

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.file__badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 48px;
  height: 46px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.file[data-kind="doc"] .file__badge {
  background: var(--warm-soft);
  color: #984321;
}

.file__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.file__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file__size {
  color: var(--muted);
  font-size: 0.77rem;
}

.file__remove {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.file__remove:hover:not(:disabled) {
  background: var(--danger-soft);
  color: var(--danger);
}

.file__remove:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Target format */

.targets {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.targets legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.targets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.target-option {
  position: relative;
  display: block;
}

.target-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.target-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.target-chip b {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.target-chip small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.targets:not(:disabled) .target-option:hover input:not(:checked) + .target-chip {
  border-color: #b7ae9d;
  background: var(--surface-soft);
}

.target-option input:checked + .target-chip {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.target-option input:checked + .target-chip b {
  color: var(--accent-strong);
}

.target-option input:focus-visible + .target-chip {
  outline: 3px solid rgba(14, 114, 87, 0.32);
  outline-offset: 2px;
}

.targets:disabled .target-chip {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Convert button */

.convert-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 12px 20px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(10, 92, 70, 0.75);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.005em;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.convert-button:hover:not(:disabled) {
  background: var(--accent-strong);
  box-shadow: 0 14px 28px -14px rgba(10, 92, 70, 0.85);
  transform: translateY(-1px);
}

.convert-button:active:not(:disabled) {
  transform: translateY(0);
}

.convert-button:disabled {
  background: #d8d3c8;
  color: #857f74;
  box-shadow: none;
  cursor: not-allowed;
}

.convert-button.is-loading:disabled {
  background: var(--accent-strong);
  color: #fff;
  cursor: wait;
}

.convert-button.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.convert-button.is-loading .convert-button__icon {
  display: none;
}

/* Status */

.status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.status--info {
  border-color: #d5e4da;
  background: #f1f6f3;
  color: #2d4a3b;
}

.status--loading {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink-2);
}

.status--error {
  border-color: var(--danger-line);
  background: var(--danger-soft);
  color: #7b1d17;
}

.status--success {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.status__icon svg {
  width: 20px;
  height: 20px;
}

.status__body {
  flex: 1;
  min-width: 0;
}

.status__text {
  margin: 0;
  font-weight: 650;
}

.status__detail {
  margin: 3px 0 0;
  font-weight: 500;
  opacity: 0.88;
}

.status__cancel {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spinner {
  display: block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(14, 114, 87, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress {
  overflow: hidden;
  height: 7px;
  margin-top: 9px;
  border-radius: 99px;
  background: rgba(28, 36, 31, 0.1);
}

.progress__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #43a785);
  transition: width 0.22s ease;
}

.progress.is-indeterminate .progress__fill {
  width: 38%;
  animation: progress-slide 1.2s ease-in-out infinite;
}

/* Result */

.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #eef8f2, #f9fdfa);
}

.result__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.result__body {
  min-width: 0;
}

.result__body h3 {
  margin: 1px 0 3px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.result__name {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.result__meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.download-button:hover {
  background: var(--accent-strong);
}

.text-button {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  background: rgba(14, 114, 87, 0.08);
}

.converter__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

/* Sections */

.section {
  padding: 84px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
}

.section__head h2,
.faq__intro h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section__lede {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Formats */

.formats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.format-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.format-card:hover {
  border-color: #cfc6b6;
  box-shadow: 0 22px 44px -32px rgba(28, 36, 31, 0.4);
  transform: translateY(-2px);
}

.format-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.format-card--images .format-card__icon {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.format-card--docs .format-card__icon {
  background: var(--warm-soft);
  color: #984321;
}

.format-card h3 {
  margin: 16px 0 12px;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.format-card p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.flow__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.flow__row > span:not(.flow__arrow) {
  padding: 5px 9px;
  border-radius: 7px;
  background: #f0ece2;
  color: var(--ink-2);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.flow__arrow {
  color: var(--warm);
  font-size: 0.9rem;
  font-weight: 800;
}

.flow--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.flow__target {
  background: #e9edf7;
  color: #3c4b7a;
}

.formats__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.formats__note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent);
}

/* FAQ */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.42fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.faq__intro > p:last-child {
  max-width: 320px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.faq__item summary {
  position: relative;
  padding: 17px 52px 17px 18px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 650;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__item[open] summary {
  color: var(--accent-strong);
}

.faq__answer {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.65;
}

.faq__answer p {
  margin: 0;
}

/* Footer */

.footer {
  padding: 28px 0 38px;
  border-top: 1px solid rgba(28, 36, 31, 0.1);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__mark {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: #7b1d17;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Motion */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-slide {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(275%);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Responsive */

@media (max-width: 1020px) {
  .hero {
    padding-top: 30px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__lede {
    max-width: 620px;
  }

  .hero__converter {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 880px) {
  .section {
    padding: 70px 0;
  }

  .formats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq__intro > p:last-child {
    max-width: 520px;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 18px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10.4vw, 3.5rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

  .converter {
    padding: 20px;
    border-radius: 22px;
  }

  .section {
    padding: 58px 0;
  }

  .formats__grid {
    grid-template-columns: 1fr;
  }

  .format-card {
    min-height: 0;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }

  .header__inner {
    gap: 10px;
  }

  .brand {
    gap: 7px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .brand__mark svg {
    width: 28px;
    height: 28px;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .language-switch {
    gap: 4px;
    padding: 3px 6px 3px 8px;
  }

  .language-switch select {
    min-height: 24px;
    font-size: 0.72rem;
  }

  .site-header {
    padding: 16px 0;
  }

  .hero__facts {
    gap: 7px;
  }

  .hero__facts li {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .converter {
    padding: 17px;
  }

  .converter__head {
    align-items: flex-start;
  }

  .converter__head h2 {
    font-size: 1.12rem;
  }

  .dropzone__button {
    min-height: 170px;
    padding: 24px 14px;
  }

  .targets__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-chip {
    padding: 9px 9px;
  }

  .target-chip small {
    font-size: 0.63rem;
  }

  .result {
    padding: 14px;
  }

  .result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button {
    justify-content: center;
  }

  .text-button {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
