* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f7fb;
  color: #12263a;
}

.banner img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px 80px;
}

.logo {
  width: min(220px, 58%);
  height: auto;
  margin-bottom: 16px;
}

.logo-small {
  width: min(150px, 46%);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.lead {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.6;
  color: #3d5166;
  margin-bottom: 12px;
}

.note {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
  color: #3d5166;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  background: #ef5b24;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(239, 91, 36, 0.28);
}

.btn:hover { background: #d94e1b; }

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.back:focus-visible {
  outline: 3px solid #343fbd;
  outline-offset: 3px;
}

.card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 40px rgba(18, 38, 58, 0.08);
  text-align: left;
}

.card .btn { width: 100%; }

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.optional {
  font-weight: 500;
  color: #5c7086;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: #12263a;
  background: #fff;
  margin-bottom: 16px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #343fbd;
}

.errors {
  background: #fff1f0;
  color: #9f1d1d;
  border-radius: 10px;
  padding: 12px 14px 12px 32px;
  margin-bottom: 16px;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.privacy {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5c7086;
  text-align: center;
}

.back {
  display: inline-block;
  margin-top: 18px;
  color: #343fbd;
  font-size: 14px;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 38, 58, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(18, 38, 58, 0.25);
}

.modal h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.modal p {
  font-size: 17px;
  line-height: 1.5;
  color: #3d5166;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .banner img { max-height: 160px; }
  .content { padding: 32px 16px 64px; }
  .lead { font-size: 16px; }
}
