:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #626262;
  --line: #d9d9d9;
  --soft: #f5f5f5;
  --soft-2: #ededed;
  --inverse: #050505;
  --inverse-text: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

[hidden] {
  display: none !important;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  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 {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark {
  width: 1.25em;
  height: 1.25em;
  display: block;
  object-fit: contain;
  transform: translateY(0.03em);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
}

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

.lang-button,
.primary-button,
.format-list button {
  border: 1px solid var(--inverse);
  background: var(--inverse);
  color: var(--inverse-text);
  cursor: pointer;
}

.lang-button {
  justify-self: end;
  min-width: 52px;
  min-height: 40px;
}

.hero {
  width: 100%;
  min-height: 500px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 92px 20px 112px;
  background: var(--inverse);
  color: var(--inverse-text);
}

.hero-copy {
  width: min(1040px, 100%);
  text-align: center;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

h2 {
  margin: 0 auto;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.download-form {
  width: min(1040px, 100%);
  max-width: none;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 2px solid #d7d7d7;
  border-radius: 7px;
  background: var(--bg);
  overflow: hidden;
}

.download-form input {
  min-width: 0;
  height: 84px;
  border: 0;
  padding: 0 32px;
  outline: 0;
  color: var(--text);
  background: var(--bg);
  font-size: clamp(20px, 3vw, 31px);
}

.download-form input::placeholder {
  color: #4e5661;
}

.download-form input:focus {
  box-shadow: inset 0 0 0 3px var(--soft-2);
}

.primary-button {
  min-width: 210px;
  margin: 10px;
  border-radius: 7px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 520;
  font-size: clamp(22px, 3vw, 38px);
}

.primary-button:hover,
.format-list button:hover,
.lang-button:hover {
  background: var(--bg);
  color: var(--text);
}

.primary-button:disabled,
.format-list button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 28px;
  margin: 0;
  color: #c8c8c8;
  font-size: 14px;
  text-align: center;
}

.form-message:not(:empty) {
  margin-top: 14px;
}

.form-message.is-error {
  color: var(--text);
  font-weight: 700;
}

.result-panel,
.content-section,
.steps,
.formats,
.seo-section,
.faq,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.result-panel {
  border: 2px solid var(--inverse);
  padding: 28px;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.result-panel > div:first-child {
  flex: 1;
  text-align: center;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 760;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.format-list button {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 760;
}

.format-list button.is-active {
  background: var(--bg);
  color: var(--text);
}

.content-section {
  padding: 72px 0;
  display: block;
  border-top: 1px solid var(--line);
  text-align: center;
}

.content-section p,
.seo-section p,
.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.content-section > p {
  max-width: 900px;
  margin: 28px auto 0;
}

.steps,
.formats,
.seo-section,
.faq {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: block;
  text-align: center;
  margin-bottom: 34px;
}

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

.step-grid article,
.format-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.step-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-weight: 800;
}

.step-grid p,
.format-grid p {
  margin: 16px 0 0;
  color: var(--muted);
}

.formats {
  background: var(--inverse);
  color: var(--inverse-text);
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
}

.formats p {
  color: #c7c7c7;
}

.formats article {
  border-color: #373737;
  background: #111111;
}

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

.seo-section p {
  max-width: 940px;
  margin: 28px auto 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 760;
}

.faq details p {
  max-width: 780px;
  margin-top: 12px;
}

.site-footer {
  padding: 34px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 92px;
  }

  .step-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .result-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header,
  .result-panel,
  .content-section,
  .steps,
  .seo-section,
  .faq,
  .site-footer {
    width: min(var(--max), calc(100% - 28px));
  }

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

  .download-form input {
    height: 62px;
  }

  .primary-button {
    min-height: 58px;
    width: 100%;
  }
}
