:root {
  --bg: #eef8f1;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6473;
  --line: #dfe4ee;
  --blue: #226a96;
  --deep: #123c5a;
  --violet: #7d3fb2;
  --aqua: #1a9fc0;
  --soft: #e4f4ea;
  --danger: #8a1f2d;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

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

strong {
  color: var(--deep);
  font-weight: 800;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: min(320px, 56vw);
  height: auto;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--deep);
  border-radius: 6px;
  background: var(--deep);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.header-cta {
  white-space: nowrap;
}

.button {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 17px;
}

.hero {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: clamp(56px, 12vw, 118px) 24px;
  background:
    linear-gradient(rgba(247, 248, 251, 0.88), rgba(247, 248, 251, 0.96)),
    url("klinik-logo.png") center 34% / min(680px, 84vw) auto no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.form-hero-inner {
  width: min(920px, 100%);
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 86px);
}

.hero .lead,
.form-hero .lead {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--deep);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.22;
}

.copy {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.copy p,
.copy blockquote {
  margin: 0 0 24px;
}

.copy h2 {
  margin: 58px 0 22px;
  color: var(--deep);
  font-size: clamp(34px, 5vw, 54px);
}

.copy blockquote {
  padding: 20px 24px;
  background: var(--surface);
  border-left: 6px solid var(--aqua);
  border-radius: 6px;
  color: var(--deep);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.mid-cta {
  margin: 42px 0 50px;
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
  border: 1px solid #c7decf;
  border-radius: 8px;
  text-align: center;
}

.mid-cta p {
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--deep);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
}

.final-cta {
  display: flex;
  justify-content: center;
  padding: 22px 0 8px;
}

.form-hero {
  padding: clamp(48px, 8vw, 84px) 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.form-hero h1 {
  color: var(--deep);
  font-size: clamp(42px, 7vw, 68px);
}

.form-hero .lead {
  color: var(--muted);
  font-size: clamp(18px, 2.6vw, 25px);
  font-weight: 550;
}

.form-shell {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 72px) 0;
}

.lead-form {
  padding: clamp(22px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-form h2 {
  margin-bottom: 26px;
  color: var(--deep);
  font-size: clamp(26px, 4vw, 38px);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
}

.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd7e5;
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

textarea {
  min-height: 230px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(34, 106, 150, 0.16);
}

.checkbox-line {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  color: var(--ink);
  font-weight: 650;
}

.checkbox-line input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 4px;
  accent-color: var(--deep);
}

.textarea-label {
  margin-top: 4px;
}

.char-counter {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.form-status.is-ok {
  color: #17643a;
}

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

.site-footer {
  display: grid;
  place-items: center;
  padding: 36px 18px 48px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer img {
  width: min(340px, 70vw);
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    min-height: 48vh;
    background-size: min(520px, 92vw) auto;
  }

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

  .lead-form {
    border-radius: 6px;
  }
}
