.kz24-expert {
  max-width: 850px;
  margin: 0 auto;
  color: var(--kz-text-body, #1a1a1a);
  font-family: var(--kz-font, "Roboto", system-ui, sans-serif);
}

.kz24-expert *,
.kz24-expert *::before,
.kz24-expert *::after {
  box-sizing: border-box;
}

.kz24-expert__intro p {
  margin: 0 0 0.9em;
}

.kz24-expert__heading {
  margin: 1.35em 0 0.45em;
  color: var(--kz-heading, #002e70);
  font-size: 1.25rem;
  line-height: 1.3;
}

.kz24-expert__intro ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  list-style: disc outside;
}

.kz24-expert__intro li {
  margin: 0 0 0.35em;
}

.kz24-expert__title {
  margin: 0 0 0.6em;
  color: var(--kz-heading, #002e70);
  font-size: 1.45rem;
  line-height: 1.3;
}

.kz24-expert__note {
  color: var(--kz-text-soft, #444);
}

.kz24-expert__success,
.kz24-expert__alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.5;
}

.kz24-expert__success {
  background: rgba(27, 127, 74, 0.1);
  border: 1px solid rgba(27, 127, 74, 0.25);
  color: #1b7f4a;
}

.kz24-expert__alert {
  background: rgba(192, 54, 42, 0.08);
  border: 1px solid rgba(192, 54, 42, 0.25);
  color: #9f2f24;
}

.kz24-expert__success[hidden],
.kz24-expert__alert[hidden],
.kz24-expert__form-wrap[hidden] {
  display: none !important;
}

.kz24-expert__section {
  margin: 0 0 8px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--kz-border, #e6e9ef);
}

.kz24-expert__section-title {
  margin: 0 0 14px;
  color: var(--kz-heading, #002e70);
  font-size: 1.15rem;
  line-height: 1.3;
}

.kz24-expert__section-title--sub {
  margin-top: 18px;
  font-size: 1rem;
}

.kz24-expert__field {
  margin: 0 0 14px;
}

.kz24-expert__label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.kz24-expert__req {
  color: #9f2f24;
}

.kz24-expert__hint,
.kz24-expert__legal {
  margin: 6px 0 0;
  color: var(--kz-muted, #6b7280);
  font-size: 13px;
  line-height: 1.45;
}

.kz24-expert__error {
  margin: 6px 0 0;
  color: #9f2f24;
  font-size: 13px;
  line-height: 1.4;
}

.kz24-expert__control {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--kz-border, #e1e1e1);
  border-radius: 6px;
  background: var(--kz-surface, #fff);
  color: var(--kz-text, #111);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  appearance: none;
}

textarea.kz24-expert__control {
  min-height: 96px;
  resize: vertical;
}

.kz24-expert__control:hover {
  border-color: var(--kz-border-strong, #d5dae3);
}

.kz24-expert__control:focus {
  border-color: var(--kz-accent, #0056c3);
  box-shadow: 0 0 0 3px var(--kz-accent-soft, rgba(0, 86, 195, 0.08));
}

.kz24-expert__field.is-invalid .kz24-expert__control,
.kz24-expert__check.is-invalid {
  border-color: #c45a52;
}

.kz24-expert__field.is-invalid .kz24-expert__control {
  box-shadow: 0 0 0 3px rgba(192, 54, 42, 0.08);
}

.kz24-expert__file {
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.kz24-expert__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}

.kz24-expert__checks {
  display: grid;
  gap: 8px;
}

.kz24-expert__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.kz24-expert__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--kz-accent, #0056c3);
}

.kz24-expert__legal {
  margin: 8px 0 16px;
}

.kz24-expert__legal a {
  color: var(--kz-accent, #0056c3);
}

.kz24-expert__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--kz-header-brand, #0056c3);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.kz24-expert__submit:hover {
  background: var(--kz-brand-hover, #0046a0);
}

.kz24-expert__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.kz24-expert__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 700px) {
  .kz24-expert__row {
    grid-template-columns: 1fr 1fr;
  }

  .kz24-expert__control {
    font-size: 15px;
  }

  .kz24-expert__submit {
    width: auto;
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  .kz24-expert {
    width: 100%;
  }

  .kz24-expert__title {
    font-size: 1.3rem;
  }

  .kz24-expert__section {
    padding-top: 16px;
  }
}
