:root {
  --bg: #f3f7ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-muted: #f7f9fd;
  --text: #10182b;
  --text-soft: #566176;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --primary: #1b63ff;
  --primary-dark: #1746b8;
  --primary-soft: rgba(27, 99, 255, 0.1);
  --accent: #0cb98a;
  --accent-soft: rgba(12, 185, 138, 0.12);
  --warning-soft: rgba(255, 196, 61, 0.18);
  --danger: #cf334c;
  --shadow: 0 30px 80px rgba(12, 23, 49, 0.12);
  --shadow-soft: 0 18px 44px rgba(12, 23, 49, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(27, 99, 255, 0.16), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(12, 185, 138, 0.12), transparent 18%),
    linear-gradient(180deg, #f7f9fe 0%, #f1f5fc 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

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

.is-hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 18px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(245, 248, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(27, 99, 255, 0.18);
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.08rem;
}

.brand-name strong {
  color: var(--primary);
}

.brand-tagline {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-menu {
  position: relative;
}

.lang-trigger {
  min-height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 50px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.lang-trigger:hover {
  transform: translateY(-1px);
}

.lang-flag {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 99, 255, 0.08);
  font-size: 1.1rem;
}

.lang-trigger-code {
  display: none;
}

.lang-trigger-name {
  display: none;
}

.lang-chevron {
  display: none;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: auto;
  min-width: 0;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.lang-menu:hover .lang-dropdown,
.lang-menu.is-open .lang-dropdown,
.lang-menu:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 18px;
  color: var(--text);
  font-weight: 700;
}

.lang-dropdown a:hover,
.lang-dropdown a:focus-visible {
  background: var(--surface-muted);
}

.lang-dropdown a.is-active {
  display: none;
}

.lang-dropdown a span:not(.lang-flag):not(.sr-only) {
  display: none;
}

.header-cta,
.button,
.button-secondary,
.button-ghost,
.download-link {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-cta,
.button,
.download-link {
  color: #ffffff;
  background: linear-gradient(180deg, #2d7bff 0%, #1b63ff 100%);
  box-shadow: 0 16px 32px rgba(27, 99, 255, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.button-ghost {
  color: var(--primary);
  background: rgba(27, 99, 255, 0.08);
}

.header-cta:hover,
.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.download-link:hover {
  transform: translateY(-1px);
}

.button[disabled],
.button-secondary[disabled],
.download-link[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hero {
  padding: 48px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-aside,
.surface-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(27, 99, 255, 0.08);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p.lead {
  margin: 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 22px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-aside {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(27, 99, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.92) 100%);
}

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

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.5;
}

.hero-proof {
  margin-top: 14px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 89, 255, 0.98) 0%, rgba(23, 70, 184, 0.98) 100%);
  color: #ffffff;
}

.hero-proof h2 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.hero-proof p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.section {
  padding: 22px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head.center {
  text-align: center;
  display: block;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.content-card h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.section-head p,
.content-card p,
.content-card li {
  color: var(--text-soft);
  line-height: 1.8;
}

.tool-shell {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.tool-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tool-top h2 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  letter-spacing: -0.05em;
}

.tool-top p {
  margin: 0;
  color: var(--text-soft);
}

.tool-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-badges span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(27, 99, 255, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
}

.tool-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 24, 43, 0.05);
  margin-bottom: 18px;
}

.tool-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 800;
  cursor: pointer;
}

.tool-tab.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.tool-panel.is-hidden {
  display: none;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.workflow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.workflow-item strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #2d7bff 0%, #1b63ff 100%);
  color: #ffffff;
  flex-shrink: 0;
}

.workflow-item span {
  font-weight: 700;
  color: var(--text);
}

.dropzone {
  padding: 36px 20px;
  border-radius: 28px;
  border: 2px dashed rgba(27, 99, 255, 0.24);
  background:
    radial-gradient(circle at top center, rgba(27, 99, 255, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 248, 255, 0.92) 100%);
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.dropzone.is-processing {
  opacity: 0.72;
  pointer-events: none;
}

.dropzone-icon {
  font-size: 2rem;
}

.dropzone h3 {
  margin: 10px 0 8px;
  font-size: 1.22rem;
}

.dropzone p {
  margin: 0;
  color: var(--text-soft);
}

.message {
  min-height: 26px;
  margin: 16px 4px 0;
  font-weight: 800;
}

.message.is-success {
  color: #0f8457;
}

.message.is-error {
  color: var(--danger);
}

.meta-grid,
.result-grid,
.value-grid,
.card-grid,
.page-grid,
.article-grid,
.link-grid {
  display: grid;
  gap: 14px;
}

.meta-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.meta-card,
.mini-card,
.faq-item,
.content-card,
.feature-card,
.article-card,
.link-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.meta-card span,
.mini-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.meta-card strong,
.mini-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.controls-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(248, 250, 255, 0.96);
  border: 1px solid var(--line);
}

.control-stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-weight: 800;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.range-row strong {
  min-width: 48px;
}

.field input[type="range"] {
  width: 100%;
}

.field select {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: start;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.checkbox-row input {
  margin-top: 4px;
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.preset-chip.is-active {
  color: #ffffff;
  background: var(--primary);
  border-color: transparent;
}

.field-hint,
.quality-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.quality-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(27, 99, 255, 0.12);
  background: #ffffff;
}

.actions-stack {
  display: grid;
  gap: 12px;
}

.results {
  margin-top: 22px;
}

.results.is-hidden {
  display: none;
}

.result-grid {
  grid-template-columns: repeat(4, 1fr);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.preview-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.preview-card h3 {
  margin: 0 0 12px;
}

.preview-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  background: #f5f7fb;
}

.download-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.result-summary {
  margin: 14px 0 0;
  text-align: center;
  color: var(--text-soft);
  font-weight: 700;
}

.batch-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.batch-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.batch-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.batch-item-head h3 {
  margin: 0;
  font-size: 1rem;
  word-break: break-word;
}

.batch-status {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.batch-status.is-success {
  background: var(--accent-soft);
  color: #077754;
}

.batch-status.is-warning {
  background: var(--warning-soft);
  color: #8a5d00;
}

.batch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mini-card {
  padding: 14px;
}

.batch-actions {
  margin-top: 14px;
  display: flex;
  justify-content: end;
}

.batch-actions .button-secondary {
  min-height: 42px;
}

.ad-shell {
  min-height: 118px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(27, 99, 255, 0.08) 0%, rgba(12, 185, 138, 0.08) 100%),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(27, 99, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.ad-shell.compact {
  min-height: 96px;
}

.value-grid,
.card-grid,
.page-grid,
.article-grid,
.link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card h3,
.article-card h3,
.link-card h3,
.content-card h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.article-card p,
.link-card p,
.feature-card li {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.feature-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.feature-card .chip,
.article-card .chip {
  margin-bottom: 12px;
}

.page-hero {
  padding: 44px 0 22px;
}

.page-hero-card {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--text-soft);
}

.page-hero p {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.8;
}

.content-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  font-size: 1.5rem;
}

.content-card h3 {
  margin: 20px 0 10px;
  font-size: 1.12rem;
}

.content-card ul {
  margin: 0;
  padding-left: 18px;
}

.content-card p,
.content-card li {
  line-height: 1.8;
}

.aside-stack {
  display: grid;
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

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

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

.field-group {
  display: grid;
  gap: 8px;
}

.field-group.is-full {
  grid-column: 1 / -1;
}

.field-group label {
  font-weight: 700;
  color: var(--text);
}

.text-input,
.textarea-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: rgba(27, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(27, 99, 255, 0.12);
}

.textarea-input {
  min-height: 170px;
  resize: vertical;
}

.field-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(27, 99, 255, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
}

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

.mini-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.mini-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin: 12px 0 0;
}

.cta-banner {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f59ff 0%, #1648bc 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.cta-banner p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.site-footer {
  margin-top: 32px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.7fr;
  gap: 18px;
}

.footer-copy p,
.footer-col a {
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-col nav,
.footer-col .footer-links {
  display: grid;
  gap: 10px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
}

.legal-note {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(27, 99, 255, 0.28);
  outline-offset: 3px;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .site-header-inner,
html[dir="rtl"] .header-right,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-meta,
html[dir="rtl"] .tool-top,
html[dir="rtl"] .site-nav,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

@media (max-width: 1080px) {
  .hero-grid,
  .tool-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .value-grid,
  .card-grid,
  .page-grid,
  .article-grid,
  .link-grid,
  .result-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .site-header-inner {
    min-height: 74px;
    padding: 10px 0;
    align-items: start;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    width: 100%;
  }

  .workflow,
  .meta-grid,
  .result-grid,
  .stat-grid,
  .batch-stats {
    grid-template-columns: 1fr;
  }

  .tool-top {
    flex-direction: column;
  }

  .lang-dropdown {
    right: auto;
    left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 22px));
  }

  .hero {
    padding-top: 26px;
  }

  .hero-copy,
  .hero-aside,
  .tool-shell,
  .page-hero-card,
  .content-card,
  .cta-banner,
  .surface-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-actions,
  .cta-banner-actions {
    flex-direction: column;
  }

  .header-cta,
  .button,
  .button-secondary,
  .button-ghost,
  .download-link {
    width: 100%;
  }

  .value-grid,
  .card-grid,
  .page-grid,
  .article-grid,
  .link-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tool-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tool-tab {
    justify-content: center;
  }
}
