:root {
  --bg: #f5f8ff;
  --bg-accent: #fff8f1;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #eef4ff;
  --text: #0f1d4d;
  --muted: #5f667b;
  --primary: #147ad6;
  --primary-dark: #101c52;
  --secondary: #ff8a00;
  --border: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.09);
  --shadow-soft: 0 10px 28px rgba(20, 122, 214, 0.12);
  --radius-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20, 122, 214, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 138, 0, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #f8fbff 48%, var(--bg-accent) 100%);
  color: var(--text);
  line-height: 1.6;
}

img,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: 28px 0 52px;
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.site-header::before {
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(20, 122, 214, 0.12);
}

.site-header::after {
  bottom: -120px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 138, 0, 0.1);
}

.site-header.compact {
  padding-bottom: 34px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(20, 122, 214, 0.18));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px 16px 18px 18px;
  background: linear-gradient(155deg, #33d3f2 0%, #147ad6 44%, #5337b8 74%, #ff8a00 100%);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px 9px 8px 9px;
  border: 4px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 15px 15px;
  opacity: 0.96;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 4px;
  left: 4px;
  background:
    linear-gradient(#ffffff 0 0) 0 0 / 6px 6px no-repeat,
    linear-gradient(#ffffff 0 0) 10px 0 / 6px 6px no-repeat,
    linear-gradient(#ffffff 0 0) 0 10px / 6px 6px no-repeat;
  opacity: 0.75;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  transform: translateY(3px);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  letter-spacing: -0.03em;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link,
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-link {
  color: var(--muted);
}

.nav-pill {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  color: var(--primary-dark);
}

.hero,
.tool-hero {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

p {
  margin: 0;
}

.hero-copy,
.tool-intro,
.tool-card p,
.site-footer p,
.message,
small,
.field-label,
.page-summary,
.section-heading p,
.small-copy,
.sidebar-card p,
.hero-stat span,
.step-list li,
.bullet-list li,
.breadcrumb,
.section-copy,
.faq-item p {
  color: var(--muted);
}

.hero-copy,
.page-summary,
.tool-intro,
.section-copy {
  max-width: 135ch;
}

.hero-panel,
.tool-panel,
.tool-card,
.sidebar-card,
.content-section,
.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
}

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

.hero-stat {
  padding: 18px;
  border-radius: 22px;
}

.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.hero-tagline {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 29, 77, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
}

.chip-row,
.inline-list,
.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.mini-link {
  font-weight: 700;
}

.section-heading {
  margin: 24px 0 18px;
}

.section-heading-wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 0 0 52px;
}

.card-grid-spacious {
  margin-bottom: 40px;
}

.tool-card,
.tool-panel,
.sidebar-card,
.content-section {
  border-radius: var(--radius-lg);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(20, 33, 61, 0.14);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(51, 211, 242, 0.18), rgba(255, 138, 0, 0.18));
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #147ad6 0%, #4b3bc0 68%, #ff8a00 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 24px rgba(20, 122, 214, 0.22);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.button-secondary {
  background: linear-gradient(135deg, #243b53 0%, #334e68 100%);
  box-shadow: 0 12px 22px rgba(36, 59, 83, 0.18);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.button-row > * {
  flex: 0 0 auto;
}

.button-row.wrap > * {
  flex: 1 1 180px;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.tool-panel {
  padding: 28px;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.sidebar-card,
.content-section {
  padding: 22px;
}

.content-section {
  position: relative;
  overflow: hidden;
}

.content-section > h2 {
  margin-bottom: 14px;
}

.content-section > h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.content-section > p + p {
  margin-top: 14px;
}

.content-section > h3 + p {
  margin-top: 0;
}

.tool-textarea,
.text-output,
.file-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 33, 61, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: rgba(251, 253, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tool-textarea,
.text-output,
.file-input,
.range-input {
  margin-top: 12px;
}

.tool-textarea {
  min-height: 220px;
  resize: vertical;
}

.output-area {
  background: linear-gradient(180deg, #f9fbff 0%, #f1f7fc 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stat-box {
  padding: 20px 18px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-soft) 0%, #f9fbfd 100%);
  border: 1px solid rgba(20, 122, 214, 0.12);
}

.stat-box span {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin: 18px 0 20px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.range-input {
  width: 100%;
}

.output-group {
  margin-top: 18px;
}

.message {
  min-height: 24px;
  margin: 2px 0 12px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.preview-grid,
.crop-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.preview-card {
  padding: 18px;
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.preview-single {
  margin-top: 20px;
}

.preview-image,
.crop-image {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.crop-stage {
  min-height: 320px;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.file-item {
  padding: 12px 14px;
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 700;
}

.tool-hero {
  max-width: 820px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 33, 61, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.tool-panel-premium {
  display: grid;
  gap: 22px;
}

.tool-panel-head {
  display: grid;
  gap: 12px;
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 122, 214, 0.08);
  border: 1px solid rgba(20, 122, 214, 0.12);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.panel-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.panel-copy {
  max-width: 70ch;
  color: var(--muted);
}

.panel-pill-row,
.stat-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-pill,
.stat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 33, 61, 0.1);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.upload-zone,
.action-card,
.output-box,
.sidebar-card-accent {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.upload-zone::before,
.action-card::before,
.output-box::before,
.sidebar-card-accent::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(20, 122, 214, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.upload-zone {
  padding: 22px;
}

.upload-zone-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 122, 214, 0.14), rgba(255, 138, 0, 0.18));
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.upload-zone h3,
.action-card h3,
.output-box h3,
.sidebar-card-accent h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.upload-zone p,
.action-card p,
.output-box p,
.sidebar-card-accent p {
  color: var(--muted);
}

.file-input-styled {
  margin-top: 0;
  border-style: dashed;
  border-width: 1.5px;
  border-color: rgba(20, 122, 214, 0.26);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(239, 246, 255, 0.94) 100%);
}

.upload-hint {
  margin-top: 12px;
  font-size: 0.93rem;
}

.action-card,
.sidebar-card-accent {
  padding: 22px;
}

.tool-step-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.tool-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.76) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.tool-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: 800;
}

.tool-step strong {
  display: block;
  margin-bottom: 2px;
  color: var(--primary-dark);
}

.button-row-tight {
  margin: 18px 0 0;
}

.output-box {
  padding: 22px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.result-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 122, 214, 0.08);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helper-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.helper-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.helper-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.sidebar-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sidebar-mini-stat {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.86) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.sidebar-mini-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.sidebar-mini-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-list,
.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.step-list li,
.bullet-list li {
  margin-bottom: 10px;
}

.faq-grid {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.content-section[aria-labelledby] {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.content-section[aria-labelledby] > h2 {
  margin-bottom: 2px;
}

.content-section[aria-labelledby] > h3 {
  margin: 0;
  padding: 18px 20px 6px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.88);
}

.content-section[aria-labelledby] > h3 + p {
  margin: 0;
  padding: 0 20px 18px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.feature-tile {
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 33, 61, 0.1);
  box-shadow: var(--shadow-soft);
}

.feature-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.feature-tile p {
  font-size: 0.96rem;
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.contact-intro-card,
.contact-form-card,
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.contact-intro-card,
.contact-form-card {
  padding: 24px;
}

.contact-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 122, 214, 0.08);
  border: 1px solid rgba(20, 122, 214, 0.14);
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.contact-card-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.contact-card-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 122, 214, 0.08);
  border: 1px solid rgba(20, 122, 214, 0.14);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form-card form {
  display: grid;
  gap: 18px;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card label {
  width: 100%;
}

.contact-form-card input,
.contact-form-card textarea {
  padding: 14px 16px;
  border: 1px solid rgba(20, 33, 61, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(244, 248, 255, 0.96) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: rgba(20, 122, 214, 0.34);
  box-shadow: 0 0 0 4px rgba(20, 122, 214, 0.12);
}

.contact-form-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-inline-note {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-soft) 0%, #f9fbfd 100%);
  border: 1px solid rgba(20, 122, 214, 0.14);
}

.contact-inline-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.contact-hidden-field {
  display: none;
}

.contact-form-card .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form-card textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-helper {
  display: grid;
  gap: 14px;
}

.contact-info-card {
  padding: 20px;
}

.contact-info-card-accent {
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(20, 122, 214, 0.14);
}

.contact-info-card h3 {
  margin-bottom: 8px;
}

.contact-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-soft) 0%, #f9fbfd 100%);
  border: 1px solid rgba(20, 122, 214, 0.14);
}

.contact-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.contact-reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-reason {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-reason strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.form-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-section .mini-link {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 33, 61, 0.12);
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.06);
}

.site-footer {
  padding: 0 0 34px;
}

.footer-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--shadow-soft);
}

.hidden {
  display: none;
}

@media (max-width: 960px) {
  .hero,
  .tool-shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    padding-top: 20px;
  }

  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .nav-actions,
  .button-row,
  .inline-list {
    width: 100%;
  }

  .nav-link,
  .nav-pill,
  .button,
  button {
    width: 100%;
  }

  .tool-panel,
  .tool-card,
  .sidebar-card,
  .content-section,
  .hero-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-stat-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .contact-reason-grid,
  .preview-grid,
  .crop-layout,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .upload-zone-top,
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-submit-row {
    align-items: stretch;
  }

  .contact-form-card .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-mini-grid {
    grid-template-columns: 1fr;
  }

  .stat-box span {
    font-size: 1.6rem;
  }

  .tool-textarea {
    min-height: 180px;
  }
}
