* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #053f35;
  background:
    linear-gradient(120deg, rgba(66, 184, 61, .1), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #fbfefb 0%, #eef8ed 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 28px 20px 18px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(5, 63, 53, .08);
}

.header-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: block;
  width: 200px;
  max-width: 70vw;
  height: auto;
}

main {
  flex: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: start;
}

.intro {
  padding-top: 18px;
}

h1 {
  max-width: 620px;
  margin: 0;
  color: #053f35;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: #315c52;
  font-size: 15px;
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  color: #315c52;
  font-size: 14px;
  line-height: 1.55;
}

.step-no {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #42b83d, #053f35);
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 3px;
  color: #053f35;
}

.contact-card {
  border: 1px solid rgba(5, 63, 53, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 56px rgba(5, 63, 53, .13);
  overflow: hidden;
}

.card-head {
  padding: 28px 30px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(5, 63, 53, .97), rgba(36, 146, 59, .9)),
    linear-gradient(90deg, rgba(255, 255, 255, .12), transparent);
}

.card-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: 0;
}

.card-head p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.55;
}

form {
  padding: 30px;
  display: grid;
  gap: 20px;
}

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

label {
  color: #053f35;
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid #d6e7d2;
  border-radius: 8px;
  padding: 14px 15px;
  color: #053f35;
  background-color: #f7fbf6;
  font: 14px Arial, Helvetica, sans-serif;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #053f35 50%),
    linear-gradient(135deg, #053f35 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.55;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #42b83d;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(66, 184, 61, .18);
}

.hint {
  color: #315c52;
  font-size: 13px;
  line-height: 1.45;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.privacy {
  margin: 0;
  color: #315c52;
  font-size: 13px;
  line-height: 1.45;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #ffffff;
  background: #053f35;
  font: 14px Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(5, 63, 53, .2);
  transition: transform .2s ease, background .2s ease;
}

button:hover {
  background: #24923b;
  transform: translateY(-1px);
}

button.danger {
  background: #b3261e;
  box-shadow: 0 10px 22px rgba(179, 38, 30, .2);
}

button.danger:hover {
  background: #8f1d18;
}

button:focus-visible {
  outline: 3px solid rgba(66, 184, 61, .35);
  outline-offset: 3px;
}

.reason-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #315c52;
  font-size: 14px;
  line-height: 1.45;
}

.reason-toggle input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #b3261e;
}

.reason-field {
  display: none;
}

.reason-field.is-visible {
  display: grid;
}

.footer {
  border-top: 1px solid rgba(5, 63, 53, .08);
  background: rgba(255, 255, 255, .78);
}

.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #315c52;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .intro {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .header {
    padding-top: 22px;
  }

  main,
  .footer-inner {
    width: min(100% - 24px, 1080px);
  }

  .card-head,
  form {
    padding: 24px 20px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}
