:root {
  color-scheme: light;
  --bg: #fff;
  --text: #111;
  --muted: #555;
  --line: #d8d8d8;
  --soft: #f6f6f6;
  --bad: #9f2d1f;
  --ok: #087b23;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

.top,
.hero,
.facts,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: #111;
  color: #fff;
  border-radius: 0;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.top nav,
.actions,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.top nav a {
  font-size: 16px;
}

.hero {
  min-height: calc(100vh - 95px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  gap: 54px;
  align-items: center;
  padding: 56px 0;
}

.plain-line {
  margin: 0 0 18px;
  color: var(--muted);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.08;
}

.promise {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
}

.trust-line {
  max-width: 680px;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 3px solid #111;
  color: #333;
  font-size: 17px;
}

.primary,
.secondary,
.submit,
.cookie button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary {
  background: #fff;
  color: #111;
}

.lead-form {
  position: sticky;
  top: 24px;
  align-self: start;
  border: 2px solid #111;
  padding: 24px;
  background: #fff;
}

.field {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 22px;
}

.field input::placeholder {
  color: #8d8d8d;
}

.field input:focus-visible,
.submit:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.cookie button:focus-visible {
  outline: 4px solid #b8d6ff;
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.35;
  color: #333;
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.box {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid #111;
  background: #fff;
}

.consent input:checked + .box {
  background: #111;
}

.consent input:checked + .box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.consent input:focus-visible + .box {
  outline: 4px solid #b8d6ff;
  outline-offset: 3px;
}

.consent.is-invalid .box,
.field input.is-invalid,
.lead-form input.is-invalid {
  border-color: var(--bad);
}

.submit {
  width: 100%;
}

.feedback {
  margin: 18px 0 0;
  font-weight: 700;
}

.feedback--success {
  color: var(--ok);
}

.feedback--error {
  color: var(--bad);
}

.facts {
  padding: 34px 0 56px;
  border-top: 1px solid var(--line);
}

.facts h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
}

.facts ul {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0;
  padding-left: 1.25em;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: #333;
  font-size: 15px;
}

.footer p {
  max-width: 560px;
  margin: 8px 0 0;
}

.footer nav {
  align-items: flex-start;
  justify-content: flex-start;
}

.cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  max-width: min(560px, calc(100% - 32px));
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin: 0;
}

.cookie button {
  min-height: 40px;
  padding: 8px 14px;
}

@media (max-width: 820px) {
  body {
    font-size: 18px;
  }

  .top,
  .hero,
  .facts,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .top {
    align-items: flex-start;
    padding: 14px 0;
  }

  .top nav {
    justify-content: flex-end;
    gap: 8px 14px;
  }

  .top nav a {
    font-size: 14px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 42px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 11vw, 50px);
  }

  .lead {
    margin-bottom: 16px;
    font-size: clamp(21px, 6vw, 28px);
  }

  .promise {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .trust-line {
    margin-bottom: 20px;
    padding-left: 12px;
    font-size: 14px;
  }

  .actions {
    align-items: stretch;
    gap: 12px;
  }

  .primary {
    width: 100%;
  }

  .secondary {
    width: auto;
    min-height: 0;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
  }

  .lead-form {
    position: static;
    padding: 18px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cookie {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: stretch;
  }
}
