:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #657087;
  --border: #dfe5ef;
  --border-strong: #c8d1df;
  --accent: #6657e8;
  --accent-dark: #5142cf;
  --accent-soft: #eeecff;
  --success: #18794e;
  --danger: #b42318;
  --danger-soft: #fff3f2;
  --shadow: 0 22px 70px rgba(31, 42, 68, .09);
  --radius: 22px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.global-drop-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background: rgba(14, 20, 35, .82);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}

body.global-drag-active .global-drop-overlay {
  opacity: 1;
  visibility: visible;
}

.global-drop-card {
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  padding: 54px 28px;
  border: 2px dashed rgba(255, 255, 255, .72);
  border-radius: 28px;
  background: rgba(102, 87, 232, .24);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.global-drop-card > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: var(--accent);
  background: white;
  font-size: 40px;
  font-weight: 800;
}

.global-drop-card strong {
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: -.035em;
}

.global-drop-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
}

:focus-visible {
  outline: 3px solid rgba(102, 87, 232, .34);
  outline-offset: 3px;
}

::selection { color: #241b70; background: #dcd8ff; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  color: white;
  background: var(--text);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header,
.site-footer,
main {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 790;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px 11px 11px 4px;
  color: white;
  background: linear-gradient(145deg, #786af0, #5546d7);
  box-shadow: 0 7px 18px rgba(102, 87, 232, .25);
  font-size: 17px;
  font-weight: 850;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
  color: #515d73;
  font-size: 14px;
}

.site-header nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover { color: var(--accent); }

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  background: var(--surface);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

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

main { padding-bottom: 42px; }

.hero {
  max-width: 760px;
  margin: 64px auto 30px;
  text-align: center;
}

.home-hero { margin-top: 72px; }

.hero h1,
.hero h2,
.section-heading h2,
.seo-content h2,
.legal-content h2 {
  margin-top: 0;
  letter-spacing: -.045em;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 8vw, 66px);
  line-height: .98;
}

.hero > p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.compact-hero {
  max-width: 700px;
  margin-top: 48px;
  margin-bottom: 58px;
}

.compact-hero h1,
.tool-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.processor {
  width: min(820px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drop-zone {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 335px;
  padding: 50px 26px 42px;
  border: 2px dashed #cfd5ea;
  border-radius: 23px;
  margin: 10px;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.drop-zone.drag-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(.995);
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-symbol {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 34px;
  font-weight: 520;
}

.drop-zone > strong {
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: -.03em;
}

.drop-zone > span:not(.upload-symbol) {
  margin: 5px 0 12px;
  color: #8a93a6;
  font-size: 13px;
}

.drop-zone > small {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.primary-button,
.text-button,
.selected-heading button,
.error-panel button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 13px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(102, 87, 232, .22);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.primary-button:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(102, 87, 232, .28);
  transform: translateY(-1px);
}

.primary-button:active { transform: translateY(0); }
.primary-button:disabled { opacity: .58; cursor: wait; transform: none; }

.selected-panel { padding: 28px; }

.selected-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.selected-heading button {
  padding: 5px 0;
  color: var(--accent);
  background: none;
  font-size: 13px;
  font-weight: 760;
  text-transform: none;
  letter-spacing: 0;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
}

.file-list li::before {
  content: "F";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 850;
}

.file-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 680;
}

.file-list li small {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.home-actions {
  margin-top: 18px;
}

.home-actions > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
}

.home-options {
  scroll-margin-top: 6rem;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.selected-panel,
.home-actions {
  scroll-margin-top: 6rem;
}

.home-options > strong { display: block; font-size: 14px; }
.home-options .quality-option { margin-top: 12px; background: white; }

.option-size-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
}

.option-size-comparison span { display: grid; gap: 2px; }
.option-size-comparison span:last-child { text-align: right; }
.option-size-comparison small { color: var(--muted); font-size: 11px; }
.option-size-comparison strong { font-size: 17px; }
.option-size-comparison b { color: #9ca5b7; }

.option-size-caption {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

[data-home-action-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.file-inspection {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid #c9e6d6;
  border-radius: 13px;
  color: var(--success);
  background: #f3fbf6;
}

.file-inspection > span { color: #35664f; font-size: 13px; }

.metadata-found {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid #d8eee1;
}

.metadata-found small { font-weight: 760; }
.metadata-found span { color: #35664f; font-size: 13px; }

.home-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  text-align: left;
}

.home-action::after { content: "→"; color: var(--accent); }
.home-action:hover { border-color: #afa6fb; background: #fbfaff; }

.workflow-action {
  position: relative;
  justify-content: flex-start;
  gap: 10px;
  padding-block: 11px;
}

.workflow-action::after { content: none; }

.workflow-action > input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.workflow-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 7px;
  color: white;
  background: white;
  transition: border-color .15s ease, background .15s ease;
}

.workflow-action > input:checked + .workflow-check {
  border-color: var(--accent);
  background: var(--accent);
}

.workflow-action > input:checked + .workflow-check::before {
  content: "✓";
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.workflow-action:has(input:checked) {
  border-color: #9b90f6;
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(102, 87, 232, .12);
}

.workflow-action:has(input:focus-visible) {
  outline: 3px solid rgba(102, 87, 232, .34);
  outline-offset: 3px;
}

.workflow-limit-message {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.workflow-heading {
  display: grid;
  gap: 3px;
}

.workflow-heading > strong { font-size: 15px; }
.workflow-heading > span { color: var(--muted); font-size: 12px; }

.workflow-option-group {
  margin-top: 14px;
}

.workflow-option-group > strong {
  grid-column: 1 / -1;
  font-size: 13px;
}

.crop-options {
  display: grid;
  gap: 12px;
}

.crop-editor {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  max-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111827;
  touch-action: none;
}

.crop-editor img {
  display: block;
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-box {
  position: absolute;
  min-width: 22px;
  min-height: 22px;
  border: 2px solid white;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) 0 66.666% / 100% 1px no-repeat;
  box-shadow: 0 0 0 999px rgba(10, 15, 27, .55), 0 10px 28px rgba(0, 0, 0, .35);
  cursor: move;
}

.crop-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.crop-fields label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 720;
}

.crop-fields input[type="number"] {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: white;
}

.tool-options {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.compression-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.compression-options legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 760;
}

.compression-options label { position: relative; }
.compression-options input { position: absolute; opacity: 0; }

.compression-options label span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}

.compression-options label small { color: var(--muted); }

.compression-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.resize-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resize-options > label:not(.check-option) {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 720;
}

.resize-options input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: white;
}

.check-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.check-option input { width: 17px; height: 17px; accent-color: var(--accent); }

.quality-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 720;
}

.quality-option input { accent-color: var(--accent); }
.quality-option output { min-width: 28px; color: var(--accent); text-align: right; }

.option-hint {
  margin: 9px 1px 0;
  color: var(--muted);
  font-size: 12px;
}

.metadata-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c9e6d6;
  border-radius: 13px;
  color: var(--success);
  background: #f3fbf6;
  font-size: 13px;
}

.process-button { width: 100%; margin-top: 20px; }

.progress-panel,
.result-panel,
.error-panel {
  min-height: 330px;
  padding: 52px 28px;
  text-align: center;
}

.progress-panel,
.result-panel {
  display: grid;
  place-items: center;
  align-content: center;
}

.progress-panel strong,
.result-panel h2,
.error-panel strong {
  margin-top: 16px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.progress-panel > span:last-child,
.error-panel > span { color: var(--muted); }

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #ddd9ff;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

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

.done-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: white;
  background: var(--success);
  font-size: 28px;
  font-weight: 800;
}

.result-panel .eyebrow { margin: 15px 0 5px; color: var(--success); }
.result-panel h2 { margin: 0; }

.result-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin: 24px 0;
}

.result-stats span { display: grid; gap: 2px; }
.result-stats small { color: var(--muted); font-size: 12px; }
.result-stats strong { font-size: 19px; }
.result-stats b { color: #9ca5b7; }

.metadata-result {
  margin: -8px 0 20px;
  color: var(--success);
  font-size: 13px;
}

.result-details {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.size-notice {
  max-width: 560px;
  margin: -6px 0 18px;
  padding: 10px 13px;
  border-radius: 10px;
  color: #8a4b08;
  background: #fff7e8;
  font-size: 13px;
}

.download-button { min-width: min(280px, 100%); }

.text-button {
  margin-top: 13px;
  padding: 8px 12px;
  color: var(--accent);
  background: none;
  font-size: 14px;
  font-weight: 720;
}

.error-panel {
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--danger-soft);
}

.error-panel strong { color: var(--danger); }

.error-panel button {
  margin-top: 20px;
  padding: 11px 17px;
  border-radius: 11px;
  color: white;
  background: var(--danger);
  font-weight: 720;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-line span::first-letter { color: var(--success); }

.tool-section { margin-top: 92px; }

.section-heading {
  display: flex;
  align-items: end;
  gap: 25px;
  margin-bottom: 23px;
}

.section-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.1;
}

.section-heading p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.section-heading > a {
  flex: 0 0 auto;
  margin: 0 0 4px auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.tool-card:hover {
  border-color: #bbb4f3;
  box-shadow: 0 13px 34px rgba(38, 47, 73, .08);
  transform: translateY(-2px);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 850;
}

.tool-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.tool-card strong { font-size: 15px; letter-spacing: -.015em; }
.tool-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-arrow { color: #a1a9b8; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px 24px;
  min-height: 150px;
  margin-top: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.site-footer nav { display: flex; gap: 23px; color: var(--muted); font-size: 14px; }
.site-footer > p { grid-column: 1 / -1; margin: 0; color: #8a93a5; font-size: 12px; }
.footer-brand .brand-mark { width: 31px; height: 31px; border-radius: 10px 10px 10px 4px; font-size: 14px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.tool-hero { margin-top: 42px; }

.seo-content,
.legal-content {
  width: min(820px, 100%);
  margin: 92px auto 0;
}

.seo-content > section,
.legal-content > section {
  padding: 39px 0;
  border-bottom: 1px solid var(--border);
}

.seo-content h2,
.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 4vw, 32px);
}

.seo-content p,
.legal-content p { color: #566176; }

.use-cases {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-cases li {
  position: relative;
  padding: 14px 16px 14px 43px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
}

.use-cases li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--success);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 160px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 20px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 820;
}

.steps p { margin: 5px 0 0; font-size: 13px; }

.faq-list { display: grid; gap: 10px; }

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
}

.faq-list summary {
  position: relative;
  padding: 16px 48px 16px 17px;
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 12px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 420;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 17px 18px; }
.related-tools { margin-top: 65px; }
.legal-page { min-height: 640px; }
.legal-content { margin-top: 30px; }
.legal-content > section:last-child { border-bottom: 0; }

@media (max-width: 850px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:nth-child(2),
  .site-header nav a:nth-child(3) { display: none; }
  .hero { margin-top: 42px; }
  .home-hero { margin-top: 55px; }
  .hero h1 { font-size: clamp(39px, 13vw, 54px); }
  .processor { border-radius: 22px; }
  .drop-zone { min-height: 300px; padding-inline: 18px; }
  .selected-panel { padding: 19px; }
  [data-home-action-list] { grid-template-columns: 1fr; }
  .compression-options { grid-template-columns: 1fr; }
  .crop-fields { grid-template-columns: 1fr 1fr; }
  .resize-options { grid-template-columns: 1fr; }
  .check-option { grid-column: auto; }
  .quality-option { grid-template-columns: 1fr auto; }
  .quality-option input { grid-column: 1 / -1; grid-row: 2; }
  .trust-line { display: grid; justify-content: center; }
  .tool-section { margin-top: 68px; }
  .section-heading { align-items: start; }
  .section-heading > a { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 96px; }
  .file-list li small { display: none; }
  .result-stats { gap: 15px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer > p { grid-column: auto; }
  .seo-content { margin-top: 70px; }
  .seo-content > section { padding: 31px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .spinner { animation-duration: 1.6s; }
}
