.dfc-tool {
  box-sizing: border-box;
  margin: 1.5em 0;
  color: #243044;
}

.dfc-tool *,
.dfc-tool *::before,
.dfc-tool *::after {
  box-sizing: border-box;
}

.dfc-tool__card,
.dfc-tool__result-card {
  background: #fff;
  border: 1px solid #d8e5f1;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(36, 48, 68, 0.06);
  padding: 24px;
}

.dfc-tool__title {
  margin: 0 0 10px;
  color: #1f2d3d;
  font-size: 1.5em;
  line-height: 1.35;
}

.dfc-tool__intro,
.dfc-tool__summary {
  margin: 0 0 18px;
  line-height: 1.8;
}

.dfc-tool__section {
  min-width: 0;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #e4edf5;
  border-radius: 10px;
  background: #f9fcff;
}

.dfc-tool__section legend {
  padding: 0 8px;
  font-weight: 700;
}

.dfc-tool__hint {
  margin: 0 0 12px;
  color: #607087;
  font-size: 0.95em;
}

.dfc-tool__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1.6;
}

.dfc-tool__choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.dfc-tool__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: #2f6f9f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.dfc-tool__button:hover,
.dfc-tool__button:focus {
  background: #245c86;
  color: #fff;
}

.dfc-tool__button--secondary {
  margin-top: 18px;
  background: #eef5fb;
  color: #24516f;
}

.dfc-tool__button--secondary:hover,
.dfc-tool__button--secondary:focus {
  background: #dbeaf5;
  color: #1d4058;
}

.dfc-tool__errors {
  margin: 16px 0 0;
}

.dfc-tool__errors p {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 4px solid #c2410c;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
}

.dfc-tool__result {
  margin-top: 24px;
}

.dfc-tool__result-card h3 {
  margin: 0 0 12px;
  color: #1f2d3d;
  font-size: 1.25em;
  line-height: 1.45;
}

.dfc-tool__result-block {
  margin: 18px 0;
}

.dfc-tool__result-block h4,
.dfc-tool__related h4 {
  margin: 0 0 8px;
  font-size: 1em;
}

.dfc-tool__result-block ul,
.dfc-tool__related ul {
  margin: 0;
  padding-left: 1.4em;
}

.dfc-tool__result-block li,
.dfc-tool__related li {
  margin: 6px 0;
  line-height: 1.7;
}

.dfc-tool__notice {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #4a5870;
  line-height: 1.8;
}

.dfc-tool__related {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e4edf5;
  border-radius: 10px;
  background: #fbfdff;
}

@media (max-width: 640px) {
  .dfc-tool__card,
  .dfc-tool__result-card {
    padding: 18px;
  }

  .dfc-tool__section {
    padding: 14px;
  }

  .dfc-tool__button {
    width: 100%;
  }
}
