:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f2f5f9;
  --text: #121826;
  --muted: #657184;
  --border: #dbe3ee;
  --border-strong: #c5d0df;
  --accent: #1769e8;
  --accent-dark: #0f56c5;
  --accent-soft: #eef5ff;
  --success: #15803d;
  --success-soft: #edf9f1;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --warning-soft: #fff8e6;
  --shadow: 0 14px 38px rgba(18, 24, 38, .08);
  --container: 1180px;
  --radius: 8px;
  --radius-lg: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
svg { display: block; }

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

.site-header {
  display: grid;
  grid-template-columns: minmax(210px, 260px) 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid #c9dcfb;
  border-radius: var(--radius);
  background: #f6faff;
  color: var(--accent);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav a,
.footer a,
.language-switcher {
  color: #253044;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
}

.language-switcher svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-switcher .chevron {
  width: 13px;
  height: 13px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--space-4);
  color: var(--text);
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: var(--space-5);
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  outline: none;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.button-secondary,
.button.secondary {
  background: #fff;
  color: var(--accent);
}

.button-secondary:hover,
.button.secondary:hover,
.button-secondary:focus-visible,
.button.secondary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: #253044;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--accent);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  min-height: 500px;
  padding: clamp(38px, 6vw, 72px) 0 42px;
}

.home-hero h1 {
  max-width: 620px;
}

.home-hero-copy p {
  max-width: 600px;
  margin-bottom: var(--space-6);
  font-size: 18px;
}

.home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #405064;
  font-size: 14px;
  font-weight: 650;
}

.home-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.home-proof span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.home-hero-media {
  min-width: 0;
}

.home-upload,
.tool-form-wrap {
  width: 100%;
  min-width: 0;
}

.file-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 292px;
  padding: clamp(28px, 5vw, 44px);
  border: 2px dashed #9bbdf3;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.file-dropzone:hover,
.file-dropzone:focus-within,
.file-dropzone.is-dragover {
  border-color: var(--accent);
  background: #fbfdff;
  box-shadow: 0 18px 44px rgba(23, 105, 232, .12);
}

.file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: var(--space-4);
  border: 1px solid #c9dcfb;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.dropzone-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-title {
  color: var(--text);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 780;
  line-height: 1.15;
}

.dropzone-subtitle {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
}

.dropzone-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  min-width: 210px;
  margin-top: var(--space-5);
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
}

.dropzone-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone-limit,
.privacy-hint {
  display: block;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.privacy-hint {
  margin-top: var(--space-2);
}

.dropzone-selected {
  display: block;
  max-width: 100%;
  margin-top: var(--space-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-heading h2 {
  margin: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
}

.section-link svg,
.card-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-tools {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
}

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

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

.home-tool-card:hover,
.home-tool-card:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px rgba(18, 24, 38, .07);
  outline: none;
  transform: translateY(-1px);
}

.tool-icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #cfe0f8;
  border-radius: var(--radius);
  background: #f6faff;
  color: var(--accent);
}

.tool-file-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  color: currentColor;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.tool-icon-tile svg {
  width: 21px;
  height: 21px;
  margin-top: -5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon-red,
.tool-icon-orange,
.tool-icon-cyan,
.tool-icon-violet,
.tool-icon-yellow,
.tool-icon-green,
.tool-icon-pink,
.tool-icon-blue {
  background: #f6faff;
  color: var(--accent);
}

.home-tool-card-copy strong,
.home-tool-card-copy small {
  display: block;
}

.home-tool-card-copy strong {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 760;
}

.home-tool-card-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.card-arrow {
  color: #8793a5;
  transition: color .16s ease, transform .16s ease;
}

.home-tool-card:hover .card-arrow,
.home-tool-card:focus-visible .card-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.home-how {
  padding: var(--space-8) 0 0;
  border-top: 1px solid var(--border);
}

.home-how h2 {
  margin-bottom: var(--space-5);
}

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

.how-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: 14px 0;
}

.how-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
}

.how-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-step strong,
.how-step small {
  display: block;
}

.how-step strong {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 760;
}

.how-step small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--border);
}

.tools-page-head {
  max-width: 780px;
  padding: var(--space-12) 0 var(--space-6);
}

.tool-page {
  padding-top: var(--space-10);
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  padding-bottom: var(--space-8);
}

.tool-copy {
  padding-top: var(--space-4);
}

.tool-copy p {
  max-width: 620px;
}

.tool-form-wrap {
  display: grid;
  gap: var(--space-3);
}

.upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tool-dropzone {
  min-height: 320px;
}

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

.field.full,
.form-actions {
  grid-column: 1 / -1;
}

.field label {
  color: #253044;
  font-size: 14px;
  font-weight: 720;
}

.field small,
.field-error {
  color: var(--muted);
  font-size: 14px;
}

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

input[type="file"] {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

input[type="text"],
input[type="number"],
select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

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

.form-actions .button {
  min-width: 190px;
}

.content-block {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

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

.steps li {
  position: relative;
  min-height: 50px;
  padding: 2px 0 0 44px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #c9dcfb;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

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

.tool-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tool-directory {
  padding-bottom: var(--space-10);
}

.tool-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 10px 24px rgba(18, 24, 38, .07);
  outline: none;
  transform: translateY(-1px);
}

.tool-card strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}

.tool-card span,
.muted {
  color: var(--muted);
}

.tool-card span {
  font-size: 14px;
  line-height: 1.45;
}

.ad-slot {
  display: grid;
  gap: 2px;
  min-height: 44px;
  margin: var(--space-4) 0;
  padding: 10px 12px;
  border: 1px dashed #c7d1df;
  border-radius: var(--radius);
  background: #f4f7fb;
  color: #7a8798;
  font-size: 12px;
}

.ad-slot strong {
  color: #526173;
  font-size: 12px;
  font-weight: 700;
}

.cta-grid,
.home-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cta-card,
.home-cta {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}

.cta-card span,
.home-cta small {
  color: var(--muted);
}

.home-cta {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
}

.home-cta-telegram {
  grid-template-columns: 48px minmax(0, 1fr);
}

.home-cta-telegram .button {
  grid-column: 2;
  justify-self: start;
}

.home-cta-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent);
}

.home-cta-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.home-cta-copy strong,
.home-cta-copy small {
  display: block;
}

.home-cta-copy strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 780;
}

.home-cta-copy small {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.alert {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.alert p {
  margin: 6px 0 0;
  font-size: 14px;
}

.alert-error {
  border-color: #ffcdc7;
  background: var(--danger-soft);
  color: var(--danger);
}

.result-page {
  display: grid;
  gap: var(--space-5);
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-12) 0 var(--space-8);
}

.result-copy {
  text-align: center;
}

.result-copy h1 {
  margin-bottom: var(--space-3);
  font-size: clamp(34px, 4vw, 48px);
}

.status-panel,
.download-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel {
  justify-items: center;
  text-align: center;
}

.status-panel p {
  margin-bottom: 0;
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
}

.status-done .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 6px var(--success-soft);
}

.status-failed .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 6px var(--danger-soft);
}

.status-pending .status-dot,
.status-running .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.status-label {
  color: var(--text);
  font-size: 15px;
}

.download-panel {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
}

.download-panel strong,
.download-panel span {
  display: block;
}

.download-panel strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.download-file-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c9dcfb;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.download-file-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

summary {
  color: var(--text);
  font-weight: 720;
  cursor: pointer;
}

details p {
  margin: var(--space-3) 0 0;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero,
  .tool-hero {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
    padding-top: var(--space-10);
  }

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

@media (max-width: 700px) {
  .container {
    padding: 0 var(--space-4) var(--space-8);
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .brand {
    align-self: center;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
  }

  .language-switcher {
    display: none;
  }

  .button-ghost {
    display: none;
  }

  h1 {
    font-size: 32px;
  }

  .home-hero {
    gap: var(--space-6);
    padding: var(--space-8) 0 var(--space-6);
  }

  .home-hero-copy p {
    font-size: 16px;
  }

  .home-proof {
    display: grid;
    gap: 8px;
  }

  .file-dropzone,
  .tool-dropzone {
    min-height: 238px;
    padding: var(--space-6) var(--space-4);
  }

  .dropzone-title {
    font-size: 22px;
  }

  .dropzone-action {
    width: 100%;
    min-width: 0;
  }

  .home-tools-grid,
  .how-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

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

  .form-actions .button {
    width: 100%;
  }

  .download-panel {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .download-panel .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-cta,
  .home-cta-telegram {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .home-cta .button,
  .home-cta-telegram .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Homepage redesign fidelity pass: concept-aligned hero, media and cards. */
body {
  overflow-x: hidden;
  background: #fff;
}

:root {
  --container: 1536px;
}

.container {
  padding-right: clamp(16px, 3.65vw, 56px);
  padding-left: clamp(16px, 3.65vw, 56px);
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: 80px;
  border-bottom-color: #d8e0eb;
  box-shadow: 0 1px 0 rgba(18, 24, 38, .02);
}

.brand-mark {
  background: linear-gradient(180deg, #0e7cff 0%, #1769e8 100%);
  border-color: #1769e8;
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 105, 232, .22);
}

.brand-name {
  font-size: 24px;
  letter-spacing: .01em;
}

.button {
  box-shadow: 0 10px 18px rgba(23, 105, 232, .14);
}

.button-secondary,
.button.secondary,
.button-ghost {
  box-shadow: none;
}

.button-ghost {
  border-color: #e8edf5;
  background: #f7f9fc;
}

.home-hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  grid-template-columns: minmax(610px, .88fr) minmax(560px, .9fr);
  min-height: 350px;
  padding: 36px clamp(48px, 3.65vw, 56px) 34px;
  border-bottom: 1px solid #dfe6ef;
  background: #fff;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 59%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 26%),
    url("images/homepage-hero-desk.png") center / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: -9%;
  top: -42%;
  z-index: -1;
  width: 62%;
  height: 184%;
  border-radius: 0 56% 56% 0;
  background: #fff;
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #071126;
  font-size: clamp(38px, 2.75vw, 42px);
  font-weight: 850;
  line-height: 1.08;
}

.home-hero h1 span {
  display: block;
}

.home-hero-copy {
  align-self: center;
  position: relative;
  z-index: 1;
}

.home-hero-copy p {
  max-width: 570px;
  margin-bottom: 22px;
  color: #465873;
  font-size: 19px;
  line-height: 1.48;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 690px;
}

.home-proof-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
}

.home-proof span::before {
  content: none;
}

.home-proof-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #cfe2ff;
  border-radius: 11px;
  background: linear-gradient(180deg, #f6faff 0%, #eaf3ff 100%);
  color: #1769e8;
}

.home-proof-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-proof-fast .home-proof-icon {
  border-color: #d5f1f6;
  background: #ecfbfd;
  color: #09a7bd;
}

.home-proof-free .home-proof-icon {
  border-color: #ffd8d5;
  background: #fff2f1;
  color: #ff5a52;
}

.home-proof strong,
.home-proof small {
  display: block;
}

.home-proof strong {
  color: #071126;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.home-proof small {
  margin-top: 5px;
  color: #52627a;
  font-size: 13px;
  font-weight: 540;
  line-height: 1.36;
}

.home-hero-media {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 560px);
}

.home-hero .file-dropzone {
  min-height: 236px;
  padding: 24px 32px;
  border: 2px dashed #1d75ff;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 46px rgba(18, 24, 38, .18);
}

.home-hero .file-dropzone:hover,
.home-hero .file-dropzone:focus-within,
.home-hero .file-dropzone.is-dragover {
  background: #fff;
  box-shadow: 0 24px 54px rgba(23, 105, 232, .22);
}

.home-hero .dropzone-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  border-color: #bad5ff;
  border-radius: 10px;
  background: #eef5ff;
}

.home-hero .dropzone-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.7;
}

.home-hero .dropzone-title {
  max-width: 430px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 820;
}

.home-hero .dropzone-subtitle {
  margin-top: 6px;
  color: #0068ff;
  font-size: 15px;
  font-weight: 720;
}

.home-hero .dropzone-action {
  min-width: 316px;
  margin-top: 15px;
  box-shadow: 0 14px 24px rgba(23, 105, 232, .24);
}

.home-hero .dropzone-limit {
  margin-top: 15px;
  color: #596a82;
}

.home-hero .privacy-hint {
  margin-top: 8px;
  color: #596a82;
}

.home-tools {
  padding: 20px 0 20px;
  border-top: 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.home-how h2 {
  color: #071126;
  font-size: 26px;
  font-weight: 850;
}

.home-tools-grid {
  gap: 12px 18px;
}

.home-tool-card {
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  min-height: 84px;
  padding: 14px 18px;
  border-color: #dce4ef;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(18, 24, 38, .02);
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
  border-color: #b9c8dc;
  box-shadow: 0 16px 30px rgba(18, 24, 38, .08);
  transform: translateY(-2px);
}

.tool-icon-tile {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #ff475b 0%, #f21f40 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(242, 31, 64, .20);
}

.tool-icon-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 0 11px 0 5px;
  background: rgba(255, 255, 255, .28);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.tool-file-badge {
  bottom: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.tool-icon-tile svg {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon-red {
  background: linear-gradient(145deg, #ff4658 0%, #f61f41 100%);
  box-shadow: 0 10px 18px rgba(246, 31, 65, .20);
}

.tool-icon-orange {
  background: linear-gradient(145deg, #ff9a38 0%, #ff6a1e 100%);
  box-shadow: 0 10px 18px rgba(255, 106, 30, .20);
}

.tool-icon-cyan {
  background: linear-gradient(145deg, #34d6d9 0%, #0aa4bd 100%);
  box-shadow: 0 10px 18px rgba(10, 164, 189, .20);
}

.tool-icon-violet {
  background: linear-gradient(145deg, #8f5bff 0%, #6741d9 100%);
  box-shadow: 0 10px 18px rgba(103, 65, 217, .20);
}

.tool-icon-yellow {
  background: linear-gradient(145deg, #ffc83d 0%, #ffb11c 100%);
  box-shadow: 0 10px 18px rgba(255, 177, 28, .20);
}

.tool-icon-green {
  background: linear-gradient(145deg, #41cc6b 0%, #20a84d 100%);
  box-shadow: 0 10px 18px rgba(32, 168, 77, .20);
}

.tool-icon-pink {
  background: linear-gradient(145deg, #f55c9d 0%, #e62f82 100%);
  box-shadow: 0 10px 18px rgba(230, 47, 130, .20);
}

.tool-icon-blue {
  background: linear-gradient(145deg, #3188ff 0%, #1769e8 100%);
  box-shadow: 0 10px 18px rgba(23, 105, 232, .20);
}

.home-tool-card-copy strong {
  color: #071126;
  font-size: 16px;
  font-weight: 830;
}

.home-tool-card-copy small {
  color: #4d5f78;
  font-size: 14px;
}

.card-arrow {
  color: #26354b;
}

.home-cta-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  padding: 20px 0 20px;
}

.home-cta {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-height: 94px;
  padding: 16px 26px;
  border-color: #bdd5fb;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4f8ff 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.home-cta-telegram {
  grid-template-columns: 72px minmax(0, 1fr);
  border-color: #bee9df;
  background: linear-gradient(90deg, #edfdf8 0%, #f9fffd 100%);
}

.home-cta-telegram .button {
  grid-column: 2;
  width: fit-content;
  margin-top: 7px;
}

.home-cta-icon {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8f1ff 0%, #d8e8ff 100%);
  color: #1769e8;
}

.home-cta-telegram .home-cta-icon {
  border-radius: 999px;
  background: linear-gradient(180deg, #28bdf0 0%, #1499d0 100%);
  color: #fff;
}

.home-cta-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-cta-telegram .home-cta-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  stroke: none;
}

.home-cta-telegram .home-cta-icon path + path {
  fill: none;
  stroke: #1499d0;
  stroke-width: 2;
  stroke-linecap: round;
}

.home-cta-copy strong {
  color: #071126;
  font-size: 20px;
  font-weight: 850;
}

.home-cta-copy small {
  color: #4d5f78;
  font-size: 15px;
}

.home-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 28px;
  align-items: center;
  padding: 16px 0 34px;
  border-top-color: #dfe6ef;
}

.how-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.how-step {
  grid-template-columns: 54px minmax(0, 1fr);
  position: relative;
  padding: 10px 0;
}

.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 4px;
  width: 42px;
  height: 1px;
  background: #cad6e6;
}

.how-icon {
  width: 50px;
  height: 50px;
  border-color: #d5e5ff;
  border-radius: 999px;
  background: #f7fbff;
}

.how-step strong {
  color: #071126;
  font-size: 15px;
  font-weight: 850;
}

.how-step small {
  color: #53647d;
  font-size: 14px;
}

.home-rating {
  display: grid;
  gap: 9px;
  min-height: 138px;
  padding: 24px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(18, 24, 38, .08);
}

.home-rating strong {
  color: #071126;
  font-size: 18px;
  font-weight: 850;
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.rating-stars span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: #03b67a;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.home-rating small {
  color: #40516a;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .home-hero::before {
    width: 100%;
    opacity: .22;
  }

  .home-hero::after {
    display: none;
  }

  .home-hero-media {
    justify-self: stretch;
    width: 100%;
  }

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

  .home-how {
    grid-template-columns: 1fr;
  }

  .home-rating {
    max-width: 360px;
  }

  .how-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .brand-name {
    font-size: 20px;
  }

  .home-hero {
    gap: 22px;
    width: auto;
    margin-left: 0;
    padding: 30px 0 28px;
    border-bottom: 0;
  }

  .home-hero::before {
    inset: auto -16px 18px -16px;
    width: auto;
    height: 320px;
    opacity: .16;
  }

  .home-hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .home-hero h1 span {
    display: inline;
  }

  .home-hero h1 span + span::before {
    content: " ";
  }

  .home-hero-copy p {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .home-proof {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-proof-item {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 46px;
  }

  .home-proof-icon {
    width: 42px;
    height: 42px;
  }

  .home-proof-icon svg {
    width: 24px;
    height: 24px;
  }

  .home-hero .file-dropzone {
    min-height: 260px;
    padding: 26px 18px;
  }

  .home-hero .dropzone-action {
    width: 100%;
    min-width: 0;
  }

  .home-tools {
    padding-top: 12px;
  }

  .home-tool-card {
    grid-template-columns: 54px minmax(0, 1fr) 20px;
  }

  .home-cta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-cta,
  .home-cta-telegram {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px;
  }

  .home-cta .button,
  .home-cta-telegram .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-how {
    gap: 16px;
    padding-bottom: 30px;
  }

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

  .home-rating {
    max-width: none;
  }
}
